]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
releasing version 1:1.2.8-3
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for linux nfs-utils 1.2.8.
4 #
5 # Report bugs to <linux-nfs@vger.kernel.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: linux-nfs@vger.kernel.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='linux nfs-utils'
592 PACKAGE_TARNAME='nfs-utils'
593 PACKAGE_VERSION='1.2.8'
594 PACKAGE_STRING='linux nfs-utils 1.2.8'
595 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
596 PACKAGE_URL=''
597
598 ac_default_prefix=/usr
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_unique_file="support/include/config.h.in"
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 ACLOCAL_AMFLAGS
640 AM_CFLAGS
641 LDFLAGS_FOR_BUILD
642 CPPFLAGS_FOR_BUILD
643 CXXFLAGS_FOR_BUILD
644 CFLAGS_FOR_BUILD
645 LIBOBJS
646 ALLOCA
647 GSSAPI_LIBS
648 GSSAPI_CFLAGS
649 RPCSECGSS_LIBS
650 RPCSECGSS_CFLAGS
651 GSSGLUE_LIBS
652 GSSGLUE_CFLAGS
653 PKG_CONFIG_LIBDIR
654 PKG_CONFIG_PATH
655 PKG_CONFIG
656 GSSKRB_LIBS
657 GSSKRB_CFLAGS
658 K5VERS
659 KRBLDFLAGS
660 KRBCFLAGS
661 KRBLIBS
662 KRBDIR
663 LIBMOUNT
664 CONFIG_LIBMOUNT_FALSE
665 CONFIG_LIBMOUNT_TRUE
666 LIBDL
667 LIBBLKID
668 LIBBSD
669 LIBCRYPT
670 LIBSOCKET
671 CONFIG_NFSIDMAP_FALSE
672 CONFIG_NFSIDMAP_TRUE
673 CONFIG_NFSDCLTRACK_FALSE
674 CONFIG_NFSDCLTRACK_TRUE
675 LIBSQLITE
676 LIBKEYUTILS
677 LIBNFSIDMAP
678 LIBEVENT
679 LIBNSL
680 CC_FOR_BUILD
681 CXXCPP
682 OTOOL64
683 OTOOL
684 LIPO
685 NMEDIT
686 DSYMUTIL
687 MANIFEST_TOOL
688 RANLIB
689 ac_ct_AR
690 AR
691 DLLTOOL
692 OBJDUMP
693 NM
694 ac_ct_DUMPBIN
695 DUMPBIN
696 LD
697 FGREP
698 SED
699 LIBTOOL
700 LN_S
701 am__fastdepCXX_FALSE
702 am__fastdepCXX_TRUE
703 CXXDEPMODE
704 ac_ct_CXX
705 CXXFLAGS
706 CXX
707 HAVE_TCP_WRAPPER
708 HAVE_LIBWRAP
709 LIBWRAP
710 LIBCAP
711 LIBTIRPC
712 EGREP
713 GREP
714 CPP
715 AM_CPPFLAGS
716 am__fastdepCC_FALSE
717 am__fastdepCC_TRUE
718 CCDEPMODE
719 am__nodep
720 AMDEPBACKSLASH
721 AMDEP_FALSE
722 AMDEP_TRUE
723 am__quote
724 am__include
725 DEPDIR
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 MOUNT_CONFIG_FALSE
734 MOUNT_CONFIG_TRUE
735 enable_mountconfig
736 mountfile
737 CONFIG_IPV6_FALSE
738 CONFIG_IPV6_TRUE
739 enable_ipv6
740 CONFIG_MOUNT_FALSE
741 CONFIG_MOUNT_TRUE
742 CONFIG_RPCGEN_FALSE
743 CONFIG_RPCGEN_TRUE
744 RPCGEN_PATH
745 kprefix
746 CONFIG_GSS_FALSE
747 CONFIG_GSS_TRUE
748 enable_gss
749 SVCGSSD
750 GSSD
751 CONFIG_NFSV41_FALSE
752 CONFIG_NFSV41_TRUE
753 enable_nfsv41
754 CONFIG_NFSV4_FALSE
755 CONFIG_NFSV4_TRUE
756 enable_nfsv4
757 IDMAPD
758 startstatd
759 statduser
760 statdpath
761 statedir
762 RELEASE
763 MAINT
764 MAINTAINER_MODE_FALSE
765 MAINTAINER_MODE_TRUE
766 am__untar
767 am__tar
768 AMTAR
769 am__leading_dot
770 SET_MAKE
771 AWK
772 mkdir_p
773 MKDIR_P
774 INSTALL_STRIP_PROGRAM
775 STRIP
776 install_sh
777 MAKEINFO
778 AUTOHEADER
779 AUTOMAKE
780 AUTOCONF
781 ACLOCAL
782 VERSION
783 PACKAGE
784 CYGPATH_W
785 am__isrc
786 INSTALL_DATA
787 INSTALL_SCRIPT
788 INSTALL_PROGRAM
789 host_os
790 host_vendor
791 host_cpu
792 host
793 build_os
794 build_vendor
795 build_cpu
796 build
797 target_alias
798 host_alias
799 build_alias
800 LIBS
801 ECHO_T
802 ECHO_N
803 ECHO_C
804 DEFS
805 mandir
806 localedir
807 libdir
808 psdir
809 pdfdir
810 dvidir
811 htmldir
812 infodir
813 docdir
814 oldincludedir
815 includedir
816 localstatedir
817 sharedstatedir
818 sysconfdir
819 datadir
820 datarootdir
821 libexecdir
822 sbindir
823 bindir
824 program_transform_name
825 prefix
826 exec_prefix
827 PACKAGE_URL
828 PACKAGE_BUGREPORT
829 PACKAGE_STRING
830 PACKAGE_VERSION
831 PACKAGE_TARNAME
832 PACKAGE_NAME
833 PATH_SEPARATOR
834 SHELL'
835 ac_subst_files=''
836 ac_user_opts='
837 enable_option_checking
838 enable_maintainer_mode
839 with_release
840 with_statedir
841 with_statdpath
842 with_statduser
843 with_start_statd
844 enable_nfsv4
845 enable_nfsv41
846 enable_gss
847 enable_kprefix
848 with_rpcgen
849 enable_uuid
850 enable_mount
851 enable_libmount_mount
852 enable_tirpc
853 enable_ipv6
854 enable_mountconfig
855 with_mountfile
856 enable_nfsdcltrack
857 with_tirpcinclude
858 enable_dependency_tracking
859 enable_caps
860 with_tcp_wrappers
861 enable_largefile
862 enable_shared
863 enable_static
864 with_pic
865 enable_fast_install
866 with_gnu_ld
867 with_sysroot
868 enable_libtool_lock
869 with_krb5
870 with_gssglue
871 '
872       ac_precious_vars='build_alias
873 host_alias
874 target_alias
875 CC
876 CFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
880 CPP
881 CXX
882 CXXFLAGS
883 CCC
884 CXXCPP
885 PKG_CONFIG
886 PKG_CONFIG_PATH
887 PKG_CONFIG_LIBDIR
888 GSSGLUE_CFLAGS
889 GSSGLUE_LIBS
890 RPCSECGSS_CFLAGS
891 RPCSECGSS_LIBS'
892
893
894 # Initialize some variables set by options.
895 ac_init_help=
896 ac_init_version=false
897 ac_unrecognized_opts=
898 ac_unrecognized_sep=
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
901 cache_file=/dev/null
902 exec_prefix=NONE
903 no_create=
904 no_recursion=
905 prefix=NONE
906 program_prefix=NONE
907 program_suffix=NONE
908 program_transform_name=s,x,x,
909 silent=
910 site=
911 srcdir=
912 verbose=
913 x_includes=NONE
914 x_libraries=NONE
915
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
941
942 ac_prev=
943 ac_dashdash=
944 for ac_option
945 do
946   # If the previous option needs an argument, assign it.
947   if test -n "$ac_prev"; then
948     eval $ac_prev=\$ac_option
949     ac_prev=
950     continue
951   fi
952
953   case $ac_option in
954   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955   *=)   ac_optarg= ;;
956   *)    ac_optarg=yes ;;
957   esac
958
959   # Accept the important Cygnus configure options, so we can diagnose typos.
960
961   case $ac_dashdash$ac_option in
962   --)
963     ac_dashdash=yes ;;
964
965   -bindir | --bindir | --bindi | --bind | --bin | --bi)
966     ac_prev=bindir ;;
967   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968     bindir=$ac_optarg ;;
969
970   -build | --build | --buil | --bui | --bu)
971     ac_prev=build_alias ;;
972   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973     build_alias=$ac_optarg ;;
974
975   -cache-file | --cache-file | --cache-fil | --cache-fi \
976   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977     ac_prev=cache_file ;;
978   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980     cache_file=$ac_optarg ;;
981
982   --config-cache | -C)
983     cache_file=config.cache ;;
984
985   -datadir | --datadir | --datadi | --datad)
986     ac_prev=datadir ;;
987   -datadir=* | --datadir=* | --datadi=* | --datad=*)
988     datadir=$ac_optarg ;;
989
990   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991   | --dataroo | --dataro | --datar)
992     ac_prev=datarootdir ;;
993   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995     datarootdir=$ac_optarg ;;
996
997   -disable-* | --disable-*)
998     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001       as_fn_error $? "invalid feature name: $ac_useropt"
1002     ac_useropt_orig=$ac_useropt
1003     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004     case $ac_user_opts in
1005       *"
1006 "enable_$ac_useropt"
1007 "*) ;;
1008       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009          ac_unrecognized_sep=', ';;
1010     esac
1011     eval enable_$ac_useropt=no ;;
1012
1013   -docdir | --docdir | --docdi | --doc | --do)
1014     ac_prev=docdir ;;
1015   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016     docdir=$ac_optarg ;;
1017
1018   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019     ac_prev=dvidir ;;
1020   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021     dvidir=$ac_optarg ;;
1022
1023   -enable-* | --enable-*)
1024     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027       as_fn_error $? "invalid feature name: $ac_useropt"
1028     ac_useropt_orig=$ac_useropt
1029     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030     case $ac_user_opts in
1031       *"
1032 "enable_$ac_useropt"
1033 "*) ;;
1034       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035          ac_unrecognized_sep=', ';;
1036     esac
1037     eval enable_$ac_useropt=\$ac_optarg ;;
1038
1039   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041   | --exec | --exe | --ex)
1042     ac_prev=exec_prefix ;;
1043   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045   | --exec=* | --exe=* | --ex=*)
1046     exec_prefix=$ac_optarg ;;
1047
1048   -gas | --gas | --ga | --g)
1049     # Obsolete; use --with-gas.
1050     with_gas=yes ;;
1051
1052   -help | --help | --hel | --he | -h)
1053     ac_init_help=long ;;
1054   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055     ac_init_help=recursive ;;
1056   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057     ac_init_help=short ;;
1058
1059   -host | --host | --hos | --ho)
1060     ac_prev=host_alias ;;
1061   -host=* | --host=* | --hos=* | --ho=*)
1062     host_alias=$ac_optarg ;;
1063
1064   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065     ac_prev=htmldir ;;
1066   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067   | --ht=*)
1068     htmldir=$ac_optarg ;;
1069
1070   -includedir | --includedir | --includedi | --included | --include \
1071   | --includ | --inclu | --incl | --inc)
1072     ac_prev=includedir ;;
1073   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074   | --includ=* | --inclu=* | --incl=* | --inc=*)
1075     includedir=$ac_optarg ;;
1076
1077   -infodir | --infodir | --infodi | --infod | --info | --inf)
1078     ac_prev=infodir ;;
1079   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080     infodir=$ac_optarg ;;
1081
1082   -libdir | --libdir | --libdi | --libd)
1083     ac_prev=libdir ;;
1084   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085     libdir=$ac_optarg ;;
1086
1087   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088   | --libexe | --libex | --libe)
1089     ac_prev=libexecdir ;;
1090   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091   | --libexe=* | --libex=* | --libe=*)
1092     libexecdir=$ac_optarg ;;
1093
1094   -localedir | --localedir | --localedi | --localed | --locale)
1095     ac_prev=localedir ;;
1096   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097     localedir=$ac_optarg ;;
1098
1099   -localstatedir | --localstatedir | --localstatedi | --localstated \
1100   | --localstate | --localstat | --localsta | --localst | --locals)
1101     ac_prev=localstatedir ;;
1102   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104     localstatedir=$ac_optarg ;;
1105
1106   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107     ac_prev=mandir ;;
1108   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109     mandir=$ac_optarg ;;
1110
1111   -nfp | --nfp | --nf)
1112     # Obsolete; use --without-fp.
1113     with_fp=no ;;
1114
1115   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116   | --no-cr | --no-c | -n)
1117     no_create=yes ;;
1118
1119   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121     no_recursion=yes ;;
1122
1123   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125   | --oldin | --oldi | --old | --ol | --o)
1126     ac_prev=oldincludedir ;;
1127   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130     oldincludedir=$ac_optarg ;;
1131
1132   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133     ac_prev=prefix ;;
1134   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135     prefix=$ac_optarg ;;
1136
1137   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138   | --program-pre | --program-pr | --program-p)
1139     ac_prev=program_prefix ;;
1140   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142     program_prefix=$ac_optarg ;;
1143
1144   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145   | --program-suf | --program-su | --program-s)
1146     ac_prev=program_suffix ;;
1147   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149     program_suffix=$ac_optarg ;;
1150
1151   -program-transform-name | --program-transform-name \
1152   | --program-transform-nam | --program-transform-na \
1153   | --program-transform-n | --program-transform- \
1154   | --program-transform | --program-transfor \
1155   | --program-transfo | --program-transf \
1156   | --program-trans | --program-tran \
1157   | --progr-tra | --program-tr | --program-t)
1158     ac_prev=program_transform_name ;;
1159   -program-transform-name=* | --program-transform-name=* \
1160   | --program-transform-nam=* | --program-transform-na=* \
1161   | --program-transform-n=* | --program-transform-=* \
1162   | --program-transform=* | --program-transfor=* \
1163   | --program-transfo=* | --program-transf=* \
1164   | --program-trans=* | --program-tran=* \
1165   | --progr-tra=* | --program-tr=* | --program-t=*)
1166     program_transform_name=$ac_optarg ;;
1167
1168   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169     ac_prev=pdfdir ;;
1170   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171     pdfdir=$ac_optarg ;;
1172
1173   -psdir | --psdir | --psdi | --psd | --ps)
1174     ac_prev=psdir ;;
1175   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176     psdir=$ac_optarg ;;
1177
1178   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179   | -silent | --silent | --silen | --sile | --sil)
1180     silent=yes ;;
1181
1182   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183     ac_prev=sbindir ;;
1184   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185   | --sbi=* | --sb=*)
1186     sbindir=$ac_optarg ;;
1187
1188   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190   | --sharedst | --shareds | --shared | --share | --shar \
1191   | --sha | --sh)
1192     ac_prev=sharedstatedir ;;
1193   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196   | --sha=* | --sh=*)
1197     sharedstatedir=$ac_optarg ;;
1198
1199   -site | --site | --sit)
1200     ac_prev=site ;;
1201   -site=* | --site=* | --sit=*)
1202     site=$ac_optarg ;;
1203
1204   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205     ac_prev=srcdir ;;
1206   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207     srcdir=$ac_optarg ;;
1208
1209   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210   | --syscon | --sysco | --sysc | --sys | --sy)
1211     ac_prev=sysconfdir ;;
1212   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214     sysconfdir=$ac_optarg ;;
1215
1216   -target | --target | --targe | --targ | --tar | --ta | --t)
1217     ac_prev=target_alias ;;
1218   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219     target_alias=$ac_optarg ;;
1220
1221   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222     verbose=yes ;;
1223
1224   -version | --version | --versio | --versi | --vers | -V)
1225     ac_init_version=: ;;
1226
1227   -with-* | --with-*)
1228     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229     # Reject names that are not valid shell variable names.
1230     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231       as_fn_error $? "invalid package name: $ac_useropt"
1232     ac_useropt_orig=$ac_useropt
1233     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234     case $ac_user_opts in
1235       *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239          ac_unrecognized_sep=', ';;
1240     esac
1241     eval with_$ac_useropt=\$ac_optarg ;;
1242
1243   -without-* | --without-*)
1244     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245     # Reject names that are not valid shell variable names.
1246     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247       as_fn_error $? "invalid package name: $ac_useropt"
1248     ac_useropt_orig=$ac_useropt
1249     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250     case $ac_user_opts in
1251       *"
1252 "with_$ac_useropt"
1253 "*) ;;
1254       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255          ac_unrecognized_sep=', ';;
1256     esac
1257     eval with_$ac_useropt=no ;;
1258
1259   --x)
1260     # Obsolete; use --with-x.
1261     with_x=yes ;;
1262
1263   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264   | --x-incl | --x-inc | --x-in | --x-i)
1265     ac_prev=x_includes ;;
1266   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268     x_includes=$ac_optarg ;;
1269
1270   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272     ac_prev=x_libraries ;;
1273   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275     x_libraries=$ac_optarg ;;
1276
1277   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1279     ;;
1280
1281   *=*)
1282     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283     # Reject names that are not valid shell variable names.
1284     case $ac_envvar in #(
1285       '' | [0-9]* | *[!_$as_cr_alnum]* )
1286       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287     esac
1288     eval $ac_envvar=\$ac_optarg
1289     export $ac_envvar ;;
1290
1291   *)
1292     # FIXME: should be removed in autoconf 3.0.
1293     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1297     ;;
1298
1299   esac
1300 done
1301
1302 if test -n "$ac_prev"; then
1303   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304   as_fn_error $? "missing argument to $ac_option"
1305 fi
1306
1307 if test -n "$ac_unrecognized_opts"; then
1308   case $enable_option_checking in
1309     no) ;;
1310     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312   esac
1313 fi
1314
1315 # Check all directory arguments for consistency.
1316 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317                 datadir sysconfdir sharedstatedir localstatedir includedir \
1318                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319                 libdir localedir mandir
1320 do
1321   eval ac_val=\$$ac_var
1322   # Remove trailing slashes.
1323   case $ac_val in
1324     */ )
1325       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326       eval $ac_var=\$ac_val;;
1327   esac
1328   # Be sure to have absolute directory names.
1329   case $ac_val in
1330     [\\/$]* | ?:[\\/]* )  continue;;
1331     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332   esac
1333   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334 done
1335
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1342
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345   if test "x$build_alias" = x; then
1346     cross_compiling=maybe
1347   elif test "x$build_alias" != "x$host_alias"; then
1348     cross_compiling=yes
1349   fi
1350 fi
1351
1352 ac_tool_prefix=
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355 test "$silent" = yes && exec 6>/dev/null
1356
1357
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361   as_fn_error $? "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363   as_fn_error $? "pwd does not report name of working directory"
1364
1365
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368   ac_srcdir_defaulted=yes
1369   # Try the directory containing this script, then the parent directory.
1370   ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372          X"$as_myself" : 'X\(//\)[^/]' \| \
1373          X"$as_myself" : 'X\(//\)$' \| \
1374          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\/\)[^/].*/{
1381             s//\1/
1382             q
1383           }
1384           /^X\(\/\/\)$/{
1385             s//\1/
1386             q
1387           }
1388           /^X\(\/\).*/{
1389             s//\1/
1390             q
1391           }
1392           s/.*/./; q'`
1393   srcdir=$ac_confdir
1394   if test ! -r "$srcdir/$ac_unique_file"; then
1395     srcdir=..
1396   fi
1397 else
1398   ac_srcdir_defaulted=no
1399 fi
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1403 fi
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1407         pwd)`
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410   srcdir=.
1411 fi
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1415 case $srcdir in
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417 esac
1418 for ac_var in $ac_precious_vars; do
1419   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420   eval ac_env_${ac_var}_value=\$${ac_var}
1421   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 done
1424
1425 #
1426 # Report the --help message.
1427 #
1428 if test "$ac_init_help" = "long"; then
1429   # Omit some internal or obsolete options to make the list less imposing.
1430   # This message is too long to be a string in the A/UX 3.1 sh.
1431   cat <<_ACEOF
1432 \`configure' configures linux nfs-utils 1.2.8 to adapt to many kinds of systems.
1433
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE.  See below for descriptions of some of the useful variables.
1438
1439 Defaults for the options are specified in brackets.
1440
1441 Configuration:
1442   -h, --help              display this help and exit
1443       --help=short        display options specific to this package
1444       --help=recursive    display the short help of all the included packages
1445   -V, --version           display version information and exit
1446   -q, --quiet, --silent   do not print \`checking ...' messages
1447       --cache-file=FILE   cache test results in FILE [disabled]
1448   -C, --config-cache      alias for \`--cache-file=config.cache'
1449   -n, --no-create         do not create output files
1450       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1451
1452 Installation directories:
1453   --prefix=PREFIX         install architecture-independent files in PREFIX
1454                           [$ac_default_prefix]
1455   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1456                           [PREFIX]
1457
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1462
1463 For better control, use the options below.
1464
1465 Fine tuning of the installation directories:
1466   --bindir=DIR            user executables [EPREFIX/bin]
1467   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1468   --libexecdir=DIR        program executables [EPREFIX/libexec]
1469   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1470   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1471   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1472   --libdir=DIR            object code libraries [EPREFIX/lib]
1473   --includedir=DIR        C header files [PREFIX/include]
1474   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1475   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1476   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1477   --infodir=DIR           info documentation [DATAROOTDIR/info]
1478   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1479   --mandir=DIR            man documentation [DATAROOTDIR/man]
1480   --docdir=DIR            documentation root [DATAROOTDIR/doc/nfs-utils]
1481   --htmldir=DIR           html documentation [DOCDIR]
1482   --dvidir=DIR            dvi documentation [DOCDIR]
1483   --pdfdir=DIR            pdf documentation [DOCDIR]
1484   --psdir=DIR             ps documentation [DOCDIR]
1485 _ACEOF
1486
1487   cat <<\_ACEOF
1488
1489 Program names:
1490   --program-prefix=PREFIX            prepend PREFIX to installed program names
1491   --program-suffix=SUFFIX            append SUFFIX to installed program names
1492   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1493
1494 System types:
1495   --build=BUILD     configure for building on BUILD [guessed]
1496   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1497 _ACEOF
1498 fi
1499
1500 if test -n "$ac_init_help"; then
1501   case $ac_init_help in
1502      short | recursive ) echo "Configuration of linux nfs-utils 1.2.8:";;
1503    esac
1504   cat <<\_ACEOF
1505
1506 Optional Features:
1507   --disable-option-checking  ignore unrecognized --enable/--with options
1508   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1509   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1510   --enable-maintainer-mode
1511                           enable make rules and dependencies not useful (and
1512                           sometimes confusing) to the casual installer
1513   --enable-nfsv4          enable support for NFSv4 [default=yes]
1514   --enable-nfsv41         enable support for NFSv41 [default=yes]
1515   --enable-gss            enable support for rpcsec_gss [default=yes]
1516   --enable-kprefix        install progs as rpc.knfsd etc
1517   --disable-uuid          Exclude uuid support to avoid buggy libblkid
1518   --enable-mount          Create mount.nfs and do not use the util-linux
1519                           mount(8) functionality. [default=yes]
1520   --enable-libmount-mount Link mount.nfs with libmount (EXPERIMENTAL)
1521   --enable-tirpc          enable use of TI-RPC [default=yes]
1522   --enable-ipv6           enable support for IPv6 [default=no]
1523   --enable-mountconfig    enable mount to use a configuration file
1524   --enable-nfsdcltrack    enable NFSv4 clientid tracking programs
1525                           [default=yes]
1526   --enable-dependency-tracking
1527                           do not reject slow dependency extractors
1528   --disable-dependency-tracking
1529                           speeds up one-time build
1530   --disable-caps          Disable capabilities support
1531   --disable-largefile     omit support for large files
1532   --enable-shared[=PKGS]  build shared libraries [default=yes]
1533   --enable-static[=PKGS]  build static libraries [default=yes]
1534   --enable-fast-install[=PKGS]
1535                           optimize for fast installation [default=yes]
1536   --disable-libtool-lock  avoid locking (might break parallel builds)
1537
1538 Optional Packages:
1539   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1540   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1541   --with-release=XXX      set release to XXX [1]
1542   --with-statedir=/foo    use state dir /foo [default=/var/lib/nfs]
1543   --with-statdpath=/foo   define the statd state dir as /foo instead of the
1544                           NFS statedir [default=/var/lib/nfs]
1545   --with-statduser=rpcuser
1546                           statd to run under [rpcuser or nobody]
1547   --with-start-statd=scriptname
1548                           When an nfs filesystems is mounted with locking, run
1549                           this script
1550   --with-rpcgen=internal  use internal rpcgen instead of system one
1551   --with-mountfile=filename
1552                           Using filename as the NFS mount options file
1553                           [/etc/nfsmounts.conf]
1554   --with-tirpcinclude=DIR use TI-RPC headers in DIR
1555   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1556                  (optionally in PATH)
1557   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1558                           both]
1559   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1560   --with-sysroot=DIR Search for dependent libraries within DIR
1561                         (or the compiler's sysroot if not specified).
1562   --with-krb5=DIR         use Kerberos v5 installation in DIR
1563   --with-gssglue          Use libgssglue for GSS support
1564
1565 Some influential environment variables:
1566   CC          C compiler command
1567   CFLAGS      C compiler flags
1568   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1569               nonstandard directory <lib dir>
1570   LIBS        libraries to pass to the linker, e.g. -l<library>
1571   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1572               you have headers in a nonstandard directory <include dir>
1573   CPP         C preprocessor
1574   CXX         C++ compiler command
1575   CXXFLAGS    C++ compiler flags
1576   CXXCPP      C++ preprocessor
1577   PKG_CONFIG  path to pkg-config utility
1578   PKG_CONFIG_PATH
1579               directories to add to pkg-config's search path
1580   PKG_CONFIG_LIBDIR
1581               path overriding pkg-config's built-in search path
1582   GSSGLUE_CFLAGS
1583               C compiler flags for GSSGLUE, overriding pkg-config
1584   GSSGLUE_LIBS
1585               linker flags for GSSGLUE, overriding pkg-config
1586   RPCSECGSS_CFLAGS
1587               C compiler flags for RPCSECGSS, overriding pkg-config
1588   RPCSECGSS_LIBS
1589               linker flags for RPCSECGSS, overriding pkg-config
1590
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1593
1594 Report bugs to <linux-nfs@vger.kernel.org>.
1595 _ACEOF
1596 ac_status=$?
1597 fi
1598
1599 if test "$ac_init_help" = "recursive"; then
1600   # If there are subdirs, report their specific --help.
1601   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602     test -d "$ac_dir" ||
1603       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604       continue
1605     ac_builddir=.
1606
1607 case "$ac_dir" in
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *)
1610   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611   # A ".." for each directory in $ac_dir_suffix.
1612   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613   case $ac_top_builddir_sub in
1614   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616   esac ;;
1617 esac
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1622
1623 case $srcdir in
1624   .)  # We are building in place.
1625     ac_srcdir=.
1626     ac_top_srcdir=$ac_top_builddir_sub
1627     ac_abs_top_srcdir=$ac_pwd ;;
1628   [\\/]* | ?:[\\/]* )  # Absolute name.
1629     ac_srcdir=$srcdir$ac_dir_suffix;
1630     ac_top_srcdir=$srcdir
1631     ac_abs_top_srcdir=$srcdir ;;
1632   *) # Relative name.
1633     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634     ac_top_srcdir=$ac_top_build_prefix$srcdir
1635     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 esac
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639     cd "$ac_dir" || { ac_status=$?; continue; }
1640     # Check for guested configure.
1641     if test -f "$ac_srcdir/configure.gnu"; then
1642       echo &&
1643       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644     elif test -f "$ac_srcdir/configure"; then
1645       echo &&
1646       $SHELL "$ac_srcdir/configure" --help=recursive
1647     else
1648       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649     fi || ac_status=$?
1650     cd "$ac_pwd" || { ac_status=$?; break; }
1651   done
1652 fi
1653
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1656   cat <<\_ACEOF
1657 linux nfs-utils configure 1.2.8
1658 generated by GNU Autoconf 2.69
1659
1660 Copyright (C) 2012 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1663 _ACEOF
1664   exit
1665 fi
1666
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1670
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   rm -f conftest.$ac_objext
1678   if { { ac_try="$ac_compile"
1679 case "(($ac_try" in
1680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681   *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685   (eval "$ac_compile") 2>conftest.err
1686   ac_status=$?
1687   if test -s conftest.err; then
1688     grep -v '^ *+' conftest.err >conftest.er1
1689     cat conftest.er1 >&5
1690     mv -f conftest.er1 conftest.err
1691   fi
1692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693   test $ac_status = 0; } && {
1694          test -z "$ac_c_werror_flag" ||
1695          test ! -s conftest.err
1696        } && test -s conftest.$ac_objext; then :
1697   ac_retval=0
1698 else
1699   $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702         ac_retval=1
1703 fi
1704   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705   as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_compile
1708
1709 # ac_fn_c_try_link LINENO
1710 # -----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_link ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   rm -f conftest.$ac_objext conftest$ac_exeext
1716   if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719   *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723   (eval "$ac_link") 2>conftest.err
1724   ac_status=$?
1725   if test -s conftest.err; then
1726     grep -v '^ *+' conftest.err >conftest.er1
1727     cat conftest.er1 >&5
1728     mv -f conftest.er1 conftest.err
1729   fi
1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731   test $ac_status = 0; } && {
1732          test -z "$ac_c_werror_flag" ||
1733          test ! -s conftest.err
1734        } && test -s conftest$ac_exeext && {
1735          test "$cross_compiling" = yes ||
1736          test -x conftest$ac_exeext
1737        }; then :
1738   ac_retval=0
1739 else
1740   $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743         ac_retval=1
1744 fi
1745   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747   # interfere with the next link command; also delete a directory that is
1748   # left behind by Apple's compiler.  We do this before executing the actions.
1749   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751   as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_link
1754
1755 # ac_fn_c_try_cpp LINENO
1756 # ----------------------
1757 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_c_try_cpp ()
1759 {
1760   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761   if { { ac_try="$ac_cpp conftest.$ac_ext"
1762 case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769   ac_status=$?
1770   if test -s conftest.err; then
1771     grep -v '^ *+' conftest.err >conftest.er1
1772     cat conftest.er1 >&5
1773     mv -f conftest.er1 conftest.err
1774   fi
1775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776   test $ac_status = 0; } > conftest.i && {
1777          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778          test ! -s conftest.err
1779        }; then :
1780   ac_retval=0
1781 else
1782   $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785     ac_retval=1
1786 fi
1787   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788   as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_cpp
1791
1792 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795 # the include files in INCLUDES and setting the cache variable VAR
1796 # accordingly.
1797 ac_fn_c_check_header_mongrel ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   if eval \${$3+:} false; then :
1801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804   $as_echo_n "(cached) " >&6
1805 fi
1806 eval ac_res=\$$3
1807                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 else
1810   # Is the header compilable?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812 $as_echo_n "checking $2 usability... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h.  */
1815 $4
1816 #include <$2>
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819   ac_header_compiler=yes
1820 else
1821   ac_header_compiler=no
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825 $as_echo "$ac_header_compiler" >&6; }
1826
1827 # Is the header present?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829 $as_echo_n "checking $2 presence... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h.  */
1832 #include <$2>
1833 _ACEOF
1834 if ac_fn_c_try_cpp "$LINENO"; then :
1835   ac_header_preproc=yes
1836 else
1837   ac_header_preproc=no
1838 fi
1839 rm -f conftest.err conftest.i conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841 $as_echo "$ac_header_preproc" >&6; }
1842
1843 # So?  What about this header?
1844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1845   yes:no: )
1846     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850     ;;
1851   no:yes:* )
1852     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1855 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1859 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 ( $as_echo "## ---------------------------------------- ##
1863 ## Report this to linux-nfs@vger.kernel.org ##
1864 ## ---------------------------------------- ##"
1865      ) | sed "s/^/$as_me: WARNING:     /" >&2
1866     ;;
1867 esac
1868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871   $as_echo_n "(cached) " >&6
1872 else
1873   eval "$3=\$ac_header_compiler"
1874 fi
1875 eval ac_res=\$$3
1876                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 fi
1879   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881 } # ac_fn_c_check_header_mongrel
1882
1883 # ac_fn_c_try_run LINENO
1884 # ----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1886 # that executables *can* be run.
1887 ac_fn_c_try_run ()
1888 {
1889   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890   if { { ac_try="$ac_link"
1891 case "(($ac_try" in
1892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893   *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897   (eval "$ac_link") 2>&5
1898   ac_status=$?
1899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1901   { { case "(($ac_try" in
1902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903   *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907   (eval "$ac_try") 2>&5
1908   ac_status=$?
1909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910   test $ac_status = 0; }; }; then :
1911   ac_retval=0
1912 else
1913   $as_echo "$as_me: program exited with status $ac_status" >&5
1914        $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917        ac_retval=$ac_status
1918 fi
1919   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921   as_fn_set_status $ac_retval
1922
1923 } # ac_fn_c_try_run
1924
1925 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists and can be compiled using the include files in
1928 # INCLUDES, setting the cache variable VAR accordingly.
1929 ac_fn_c_check_header_compile ()
1930 {
1931   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval \${$3+:} false; then :
1935   $as_echo_n "(cached) " >&6
1936 else
1937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h.  */
1939 $4
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943   eval "$3=yes"
1944 else
1945   eval "$3=no"
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 fi
1949 eval ac_res=\$$3
1950                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954 } # ac_fn_c_check_header_compile
1955
1956 # ac_fn_c_check_func LINENO FUNC VAR
1957 # ----------------------------------
1958 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1959 ac_fn_c_check_func ()
1960 {
1961   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval \${$3+:} false; then :
1965   $as_echo_n "(cached) " >&6
1966 else
1967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h.  */
1969 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1971 #define $2 innocuous_$2
1972
1973 /* System header to define __stub macros and hopefully few prototypes,
1974     which can conflict with char $2 (); below.
1975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1976     <limits.h> exists even on freestanding compilers.  */
1977
1978 #ifdef __STDC__
1979 # include <limits.h>
1980 #else
1981 # include <assert.h>
1982 #endif
1983
1984 #undef $2
1985
1986 /* Override any GCC internal prototype to avoid an error.
1987    Use char because int might match the return type of a GCC
1988    builtin and then its argument prototype would still apply.  */
1989 #ifdef __cplusplus
1990 extern "C"
1991 #endif
1992 char $2 ();
1993 /* The GNU C library defines this for functions which it implements
1994     to always fail with ENOSYS.  Some functions are actually named
1995     something starting with __ and the normal name is an alias.  */
1996 #if defined __stub_$2 || defined __stub___$2
1997 choke me
1998 #endif
1999
2000 int
2001 main ()
2002 {
2003 return $2 ();
2004   ;
2005   return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_link "$LINENO"; then :
2009   eval "$3=yes"
2010 else
2011   eval "$3=no"
2012 fi
2013 rm -f core conftest.err conftest.$ac_objext \
2014     conftest$ac_exeext conftest.$ac_ext
2015 fi
2016 eval ac_res=\$$3
2017                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021 } # ac_fn_c_check_func
2022
2023 # ac_fn_cxx_try_compile LINENO
2024 # ----------------------------
2025 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2026 ac_fn_cxx_try_compile ()
2027 {
2028   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029   rm -f conftest.$ac_objext
2030   if { { ac_try="$ac_compile"
2031 case "(($ac_try" in
2032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033   *) ac_try_echo=$ac_try;;
2034 esac
2035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036 $as_echo "$ac_try_echo"; } >&5
2037   (eval "$ac_compile") 2>conftest.err
2038   ac_status=$?
2039   if test -s conftest.err; then
2040     grep -v '^ *+' conftest.err >conftest.er1
2041     cat conftest.er1 >&5
2042     mv -f conftest.er1 conftest.err
2043   fi
2044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045   test $ac_status = 0; } && {
2046          test -z "$ac_cxx_werror_flag" ||
2047          test ! -s conftest.err
2048        } && test -s conftest.$ac_objext; then :
2049   ac_retval=0
2050 else
2051   $as_echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054         ac_retval=1
2055 fi
2056   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057   as_fn_set_status $ac_retval
2058
2059 } # ac_fn_cxx_try_compile
2060
2061 # ac_fn_cxx_try_cpp LINENO
2062 # ------------------------
2063 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2064 ac_fn_cxx_try_cpp ()
2065 {
2066   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067   if { { ac_try="$ac_cpp conftest.$ac_ext"
2068 case "(($ac_try" in
2069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070   *) ac_try_echo=$ac_try;;
2071 esac
2072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073 $as_echo "$ac_try_echo"; } >&5
2074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2075   ac_status=$?
2076   if test -s conftest.err; then
2077     grep -v '^ *+' conftest.err >conftest.er1
2078     cat conftest.er1 >&5
2079     mv -f conftest.er1 conftest.err
2080   fi
2081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082   test $ac_status = 0; } > conftest.i && {
2083          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2084          test ! -s conftest.err
2085        }; then :
2086   ac_retval=0
2087 else
2088   $as_echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2090
2091     ac_retval=1
2092 fi
2093   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094   as_fn_set_status $ac_retval
2095
2096 } # ac_fn_cxx_try_cpp
2097
2098 # ac_fn_cxx_try_link LINENO
2099 # -------------------------
2100 # Try to link conftest.$ac_ext, and return whether this succeeded.
2101 ac_fn_cxx_try_link ()
2102 {
2103   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104   rm -f conftest.$ac_objext conftest$ac_exeext
2105   if { { ac_try="$ac_link"
2106 case "(($ac_try" in
2107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108   *) ac_try_echo=$ac_try;;
2109 esac
2110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 $as_echo "$ac_try_echo"; } >&5
2112   (eval "$ac_link") 2>conftest.err
2113   ac_status=$?
2114   if test -s conftest.err; then
2115     grep -v '^ *+' conftest.err >conftest.er1
2116     cat conftest.er1 >&5
2117     mv -f conftest.er1 conftest.err
2118   fi
2119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120   test $ac_status = 0; } && {
2121          test -z "$ac_cxx_werror_flag" ||
2122          test ! -s conftest.err
2123        } && test -s conftest$ac_exeext && {
2124          test "$cross_compiling" = yes ||
2125          test -x conftest$ac_exeext
2126        }; then :
2127   ac_retval=0
2128 else
2129   $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2131
2132         ac_retval=1
2133 fi
2134   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2135   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2136   # interfere with the next link command; also delete a directory that is
2137   # left behind by Apple's compiler.  We do this before executing the actions.
2138   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2139   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140   as_fn_set_status $ac_retval
2141
2142 } # ac_fn_cxx_try_link
2143
2144 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2145 # -------------------------------------------
2146 # Tests whether TYPE exists after having included INCLUDES, setting cache
2147 # variable VAR accordingly.
2148 ac_fn_c_check_type ()
2149 {
2150   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152 $as_echo_n "checking for $2... " >&6; }
2153 if eval \${$3+:} false; then :
2154   $as_echo_n "(cached) " >&6
2155 else
2156   eval "$3=no"
2157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h.  */
2159 $4
2160 int
2161 main ()
2162 {
2163 if (sizeof ($2))
2164          return 0;
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h.  */
2172 $4
2173 int
2174 main ()
2175 {
2176 if (sizeof (($2)))
2177             return 0;
2178   ;
2179   return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183
2184 else
2185   eval "$3=yes"
2186 fi
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 fi
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 fi
2191 eval ac_res=\$$3
2192                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195
2196 } # ac_fn_c_check_type
2197
2198 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2199 # --------------------------------------------
2200 # Tries to find the compile-time value of EXPR in a program that includes
2201 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2202 # computed
2203 ac_fn_c_compute_int ()
2204 {
2205   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206   if test "$cross_compiling" = yes; then
2207     # Depending upon the size, compute the lo and hi bounds.
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h.  */
2210 $4
2211 int
2212 main ()
2213 {
2214 static int test_array [1 - 2 * !(($2) >= 0)];
2215 test_array [0] = 0;
2216 return test_array [0];
2217
2218   ;
2219   return 0;
2220 }
2221 _ACEOF
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223   ac_lo=0 ac_mid=0
2224   while :; do
2225     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h.  */
2227 $4
2228 int
2229 main ()
2230 {
2231 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2232 test_array [0] = 0;
2233 return test_array [0];
2234
2235   ;
2236   return 0;
2237 }
2238 _ACEOF
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240   ac_hi=$ac_mid; break
2241 else
2242   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2243                         if test $ac_lo -le $ac_mid; then
2244                           ac_lo= ac_hi=
2245                           break
2246                         fi
2247                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2248 fi
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250   done
2251 else
2252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h.  */
2254 $4
2255 int
2256 main ()
2257 {
2258 static int test_array [1 - 2 * !(($2) < 0)];
2259 test_array [0] = 0;
2260 return test_array [0];
2261
2262   ;
2263   return 0;
2264 }
2265 _ACEOF
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267   ac_hi=-1 ac_mid=-1
2268   while :; do
2269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h.  */
2271 $4
2272 int
2273 main ()
2274 {
2275 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2276 test_array [0] = 0;
2277 return test_array [0];
2278
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284   ac_lo=$ac_mid; break
2285 else
2286   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2287                         if test $ac_mid -le $ac_hi; then
2288                           ac_lo= ac_hi=
2289                           break
2290                         fi
2291                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2292 fi
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294   done
2295 else
2296   ac_lo= ac_hi=
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 # Binary search between lo and hi bounds.
2302 while test "x$ac_lo" != "x$ac_hi"; do
2303   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2306 $4
2307 int
2308 main ()
2309 {
2310 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2311 test_array [0] = 0;
2312 return test_array [0];
2313
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 if ac_fn_c_try_compile "$LINENO"; then :
2319   ac_hi=$ac_mid
2320 else
2321   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2322 fi
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 done
2325 case $ac_lo in #((
2326 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2327 '') ac_retval=1 ;;
2328 esac
2329   else
2330     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h.  */
2332 $4
2333 static long int longval () { return $2; }
2334 static unsigned long int ulongval () { return $2; }
2335 #include <stdio.h>
2336 #include <stdlib.h>
2337 int
2338 main ()
2339 {
2340
2341   FILE *f = fopen ("conftest.val", "w");
2342   if (! f)
2343     return 1;
2344   if (($2) < 0)
2345     {
2346       long int i = longval ();
2347       if (i != ($2))
2348         return 1;
2349       fprintf (f, "%ld", i);
2350     }
2351   else
2352     {
2353       unsigned long int i = ulongval ();
2354       if (i != ($2))
2355         return 1;
2356       fprintf (f, "%lu", i);
2357     }
2358   /* Do not output a trailing newline, as this causes \r\n confusion
2359      on some platforms.  */
2360   return ferror (f) || fclose (f) != 0;
2361
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 if ac_fn_c_try_run "$LINENO"; then :
2367   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2368 else
2369   ac_retval=1
2370 fi
2371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2372   conftest.$ac_objext conftest.beam conftest.$ac_ext
2373 rm -f conftest.val
2374
2375   fi
2376   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2377   as_fn_set_status $ac_retval
2378
2379 } # ac_fn_c_compute_int
2380 cat >config.log <<_ACEOF
2381 This file contains any messages produced by compilers while
2382 running configure, to aid debugging if configure makes a mistake.
2383
2384 It was created by linux nfs-utils $as_me 1.2.8, which was
2385 generated by GNU Autoconf 2.69.  Invocation command line was
2386
2387   $ $0 $@
2388
2389 _ACEOF
2390 exec 5>>config.log
2391 {
2392 cat <<_ASUNAME
2393 ## --------- ##
2394 ## Platform. ##
2395 ## --------- ##
2396
2397 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2398 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2399 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2400 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2401 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2402
2403 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2404 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2405
2406 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2407 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2408 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2409 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2410 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2411 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2412 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2413
2414 _ASUNAME
2415
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419   IFS=$as_save_IFS
2420   test -z "$as_dir" && as_dir=.
2421     $as_echo "PATH: $as_dir"
2422   done
2423 IFS=$as_save_IFS
2424
2425 } >&5
2426
2427 cat >&5 <<_ACEOF
2428
2429
2430 ## ----------- ##
2431 ## Core tests. ##
2432 ## ----------- ##
2433
2434 _ACEOF
2435
2436
2437 # Keep a trace of the command line.
2438 # Strip out --no-create and --no-recursion so they do not pile up.
2439 # Strip out --silent because we don't want to record it for future runs.
2440 # Also quote any args containing shell meta-characters.
2441 # Make two passes to allow for proper duplicate-argument suppression.
2442 ac_configure_args=
2443 ac_configure_args0=
2444 ac_configure_args1=
2445 ac_must_keep_next=false
2446 for ac_pass in 1 2
2447 do
2448   for ac_arg
2449   do
2450     case $ac_arg in
2451     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2452     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2453     | -silent | --silent | --silen | --sile | --sil)
2454       continue ;;
2455     *\'*)
2456       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2457     esac
2458     case $ac_pass in
2459     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2460     2)
2461       as_fn_append ac_configure_args1 " '$ac_arg'"
2462       if test $ac_must_keep_next = true; then
2463         ac_must_keep_next=false # Got value, back to normal.
2464       else
2465         case $ac_arg in
2466           *=* | --config-cache | -C | -disable-* | --disable-* \
2467           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2468           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2469           | -with-* | --with-* | -without-* | --without-* | --x)
2470             case "$ac_configure_args0 " in
2471               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2472             esac
2473             ;;
2474           -* ) ac_must_keep_next=true ;;
2475         esac
2476       fi
2477       as_fn_append ac_configure_args " '$ac_arg'"
2478       ;;
2479     esac
2480   done
2481 done
2482 { ac_configure_args0=; unset ac_configure_args0;}
2483 { ac_configure_args1=; unset ac_configure_args1;}
2484
2485 # When interrupted or exit'd, cleanup temporary files, and complete
2486 # config.log.  We remove comments because anyway the quotes in there
2487 # would cause problems or look ugly.
2488 # WARNING: Use '\'' to represent an apostrophe within the trap.
2489 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2490 trap 'exit_status=$?
2491   # Save into config.log some information that might help in debugging.
2492   {
2493     echo
2494
2495     $as_echo "## ---------------- ##
2496 ## Cache variables. ##
2497 ## ---------------- ##"
2498     echo
2499     # The following way of writing the cache mishandles newlines in values,
2500 (
2501   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2502     eval ac_val=\$$ac_var
2503     case $ac_val in #(
2504     *${as_nl}*)
2505       case $ac_var in #(
2506       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2507 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2508       esac
2509       case $ac_var in #(
2510       _ | IFS | as_nl) ;; #(
2511       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2512       *) { eval $ac_var=; unset $ac_var;} ;;
2513       esac ;;
2514     esac
2515   done
2516   (set) 2>&1 |
2517     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2518     *${as_nl}ac_space=\ *)
2519       sed -n \
2520         "s/'\''/'\''\\\\'\'''\''/g;
2521           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2522       ;; #(
2523     *)
2524       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2525       ;;
2526     esac |
2527     sort
2528 )
2529     echo
2530
2531     $as_echo "## ----------------- ##
2532 ## Output variables. ##
2533 ## ----------------- ##"
2534     echo
2535     for ac_var in $ac_subst_vars
2536     do
2537       eval ac_val=\$$ac_var
2538       case $ac_val in
2539       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2540       esac
2541       $as_echo "$ac_var='\''$ac_val'\''"
2542     done | sort
2543     echo
2544
2545     if test -n "$ac_subst_files"; then
2546       $as_echo "## ------------------- ##
2547 ## File substitutions. ##
2548 ## ------------------- ##"
2549       echo
2550       for ac_var in $ac_subst_files
2551       do
2552         eval ac_val=\$$ac_var
2553         case $ac_val in
2554         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2555         esac
2556         $as_echo "$ac_var='\''$ac_val'\''"
2557       done | sort
2558       echo
2559     fi
2560
2561     if test -s confdefs.h; then
2562       $as_echo "## ----------- ##
2563 ## confdefs.h. ##
2564 ## ----------- ##"
2565       echo
2566       cat confdefs.h
2567       echo
2568     fi
2569     test "$ac_signal" != 0 &&
2570       $as_echo "$as_me: caught signal $ac_signal"
2571     $as_echo "$as_me: exit $exit_status"
2572   } >&5
2573   rm -f core *.core core.conftest.* &&
2574     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2575     exit $exit_status
2576 ' 0
2577 for ac_signal in 1 2 13 15; do
2578   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2579 done
2580 ac_signal=0
2581
2582 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2583 rm -f -r conftest* confdefs.h
2584
2585 $as_echo "/* confdefs.h */" > confdefs.h
2586
2587 # Predefined preprocessor variables.
2588
2589 cat >>confdefs.h <<_ACEOF
2590 #define PACKAGE_NAME "$PACKAGE_NAME"
2591 _ACEOF
2592
2593 cat >>confdefs.h <<_ACEOF
2594 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2595 _ACEOF
2596
2597 cat >>confdefs.h <<_ACEOF
2598 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2599 _ACEOF
2600
2601 cat >>confdefs.h <<_ACEOF
2602 #define PACKAGE_STRING "$PACKAGE_STRING"
2603 _ACEOF
2604
2605 cat >>confdefs.h <<_ACEOF
2606 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2607 _ACEOF
2608
2609 cat >>confdefs.h <<_ACEOF
2610 #define PACKAGE_URL "$PACKAGE_URL"
2611 _ACEOF
2612
2613
2614 # Let the site file select an alternate cache file if it wants to.
2615 # Prefer an explicitly selected file to automatically selected ones.
2616 ac_site_file1=NONE
2617 ac_site_file2=NONE
2618 if test -n "$CONFIG_SITE"; then
2619   # We do not want a PATH search for config.site.
2620   case $CONFIG_SITE in #((
2621     -*)  ac_site_file1=./$CONFIG_SITE;;
2622     */*) ac_site_file1=$CONFIG_SITE;;
2623     *)   ac_site_file1=./$CONFIG_SITE;;
2624   esac
2625 elif test "x$prefix" != xNONE; then
2626   ac_site_file1=$prefix/share/config.site
2627   ac_site_file2=$prefix/etc/config.site
2628 else
2629   ac_site_file1=$ac_default_prefix/share/config.site
2630   ac_site_file2=$ac_default_prefix/etc/config.site
2631 fi
2632 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2633 do
2634   test "x$ac_site_file" = xNONE && continue
2635   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2636     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2637 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2638     sed 's/^/| /' "$ac_site_file" >&5
2639     . "$ac_site_file" \
2640       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 as_fn_error $? "failed to load site script $ac_site_file
2643 See \`config.log' for more details" "$LINENO" 5; }
2644   fi
2645 done
2646
2647 if test -r "$cache_file"; then
2648   # Some versions of bash will fail to source /dev/null (special files
2649   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2650   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2651     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2652 $as_echo "$as_me: loading cache $cache_file" >&6;}
2653     case $cache_file in
2654       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2655       *)                      . "./$cache_file";;
2656     esac
2657   fi
2658 else
2659   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2660 $as_echo "$as_me: creating cache $cache_file" >&6;}
2661   >$cache_file
2662 fi
2663
2664 # Check that the precious variables saved in the cache have kept the same
2665 # value.
2666 ac_cache_corrupted=false
2667 for ac_var in $ac_precious_vars; do
2668   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2669   eval ac_new_set=\$ac_env_${ac_var}_set
2670   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2671   eval ac_new_val=\$ac_env_${ac_var}_value
2672   case $ac_old_set,$ac_new_set in
2673     set,)
2674       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2675 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2676       ac_cache_corrupted=: ;;
2677     ,set)
2678       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2679 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2680       ac_cache_corrupted=: ;;
2681     ,);;
2682     *)
2683       if test "x$ac_old_val" != "x$ac_new_val"; then
2684         # differences in whitespace do not lead to failure.
2685         ac_old_val_w=`echo x $ac_old_val`
2686         ac_new_val_w=`echo x $ac_new_val`
2687         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2688           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2689 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2690           ac_cache_corrupted=:
2691         else
2692           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2693 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2694           eval $ac_var=\$ac_old_val
2695         fi
2696         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2697 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2698         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2699 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2700       fi;;
2701   esac
2702   # Pass precious variables to config.status.
2703   if test "$ac_new_set" = set; then
2704     case $ac_new_val in
2705     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2706     *) ac_arg=$ac_var=$ac_new_val ;;
2707     esac
2708     case " $ac_configure_args " in
2709       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2710       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2711     esac
2712   fi
2713 done
2714 if $ac_cache_corrupted; then
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2718 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2719   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2720 fi
2721 ## -------------------- ##
2722 ## Main body of script. ##
2723 ## -------------------- ##
2724
2725 ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730
2731
2732 ac_aux_dir=
2733 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2734   if test -f "$ac_dir/install-sh"; then
2735     ac_aux_dir=$ac_dir
2736     ac_install_sh="$ac_aux_dir/install-sh -c"
2737     break
2738   elif test -f "$ac_dir/install.sh"; then
2739     ac_aux_dir=$ac_dir
2740     ac_install_sh="$ac_aux_dir/install.sh -c"
2741     break
2742   elif test -f "$ac_dir/shtool"; then
2743     ac_aux_dir=$ac_dir
2744     ac_install_sh="$ac_aux_dir/shtool install -c"
2745     break
2746   fi
2747 done
2748 if test -z "$ac_aux_dir"; then
2749   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2750 fi
2751
2752 # These three variables are undocumented and unsupported,
2753 # and are intended to be withdrawn in a future Autoconf release.
2754 # They can cause serious problems if a builder's source tree is in a directory
2755 # whose full name contains unusual characters.
2756 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2757 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2758 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2759
2760
2761 # Make sure we can run config.sub.
2762 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2763   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2764
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2766 $as_echo_n "checking build system type... " >&6; }
2767 if ${ac_cv_build+:} false; then :
2768   $as_echo_n "(cached) " >&6
2769 else
2770   ac_build_alias=$build_alias
2771 test "x$ac_build_alias" = x &&
2772   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2773 test "x$ac_build_alias" = x &&
2774   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2775 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2776   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2777
2778 fi
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2780 $as_echo "$ac_cv_build" >&6; }
2781 case $ac_cv_build in
2782 *-*-*) ;;
2783 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2784 esac
2785 build=$ac_cv_build
2786 ac_save_IFS=$IFS; IFS='-'
2787 set x $ac_cv_build
2788 shift
2789 build_cpu=$1
2790 build_vendor=$2
2791 shift; shift
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2794 build_os=$*
2795 IFS=$ac_save_IFS
2796 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2797
2798
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2800 $as_echo_n "checking host system type... " >&6; }
2801 if ${ac_cv_host+:} false; then :
2802   $as_echo_n "(cached) " >&6
2803 else
2804   if test "x$host_alias" = x; then
2805   ac_cv_host=$ac_cv_build
2806 else
2807   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2808     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2809 fi
2810
2811 fi
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2813 $as_echo "$ac_cv_host" >&6; }
2814 case $ac_cv_host in
2815 *-*-*) ;;
2816 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2817 esac
2818 host=$ac_cv_host
2819 ac_save_IFS=$IFS; IFS='-'
2820 set x $ac_cv_host
2821 shift
2822 host_cpu=$1
2823 host_vendor=$2
2824 shift; shift
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2827 host_os=$*
2828 IFS=$ac_save_IFS
2829 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2830
2831
2832
2833 am__api_version='1.12'
2834
2835 # Find a good install program.  We prefer a C program (faster),
2836 # so one script is as good as another.  But avoid the broken or
2837 # incompatible versions:
2838 # SysV /etc/install, /usr/sbin/install
2839 # SunOS /usr/etc/install
2840 # IRIX /sbin/install
2841 # AIX /bin/install
2842 # AmigaOS /C/install, which installs bootblocks on floppy discs
2843 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2844 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2845 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2846 # OS/2's system install, which has a completely different semantic
2847 # ./install, which can be erroneously created by make from ./install.sh.
2848 # Reject install programs that cannot install multiple files.
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2850 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2851 if test -z "$INSTALL"; then
2852 if ${ac_cv_path_install+:} false; then :
2853   $as_echo_n "(cached) " >&6
2854 else
2855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858   IFS=$as_save_IFS
2859   test -z "$as_dir" && as_dir=.
2860     # Account for people who put trailing slashes in PATH elements.
2861 case $as_dir/ in #((
2862   ./ | .// | /[cC]/* | \
2863   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2864   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2865   /usr/ucb/* ) ;;
2866   *)
2867     # OSF1 and SCO ODT 3.0 have their own names for install.
2868     # Don't use installbsd from OSF since it installs stuff as root
2869     # by default.
2870     for ac_prog in ginstall scoinst install; do
2871       for ac_exec_ext in '' $ac_executable_extensions; do
2872         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2873           if test $ac_prog = install &&
2874             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2875             # AIX install.  It has an incompatible calling convention.
2876             :
2877           elif test $ac_prog = install &&
2878             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2879             # program-specific install script used by HP pwplus--don't use.
2880             :
2881           else
2882             rm -rf conftest.one conftest.two conftest.dir
2883             echo one > conftest.one
2884             echo two > conftest.two
2885             mkdir conftest.dir
2886             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2887               test -s conftest.one && test -s conftest.two &&
2888               test -s conftest.dir/conftest.one &&
2889               test -s conftest.dir/conftest.two
2890             then
2891               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2892               break 3
2893             fi
2894           fi
2895         fi
2896       done
2897     done
2898     ;;
2899 esac
2900
2901   done
2902 IFS=$as_save_IFS
2903
2904 rm -rf conftest.one conftest.two conftest.dir
2905
2906 fi
2907   if test "${ac_cv_path_install+set}" = set; then
2908     INSTALL=$ac_cv_path_install
2909   else
2910     # As a last resort, use the slow shell script.  Don't cache a
2911     # value for INSTALL within a source directory, because that will
2912     # break other packages using the cache if that directory is
2913     # removed, or if the value is a relative name.
2914     INSTALL=$ac_install_sh
2915   fi
2916 fi
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2918 $as_echo "$INSTALL" >&6; }
2919
2920 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2921 # It thinks the first close brace ends the variable substitution.
2922 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2923
2924 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2925
2926 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2927
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2929 $as_echo_n "checking whether build environment is sane... " >&6; }
2930 # Reject unsafe characters in $srcdir or the absolute working directory
2931 # name.  Accept space and tab only in the latter.
2932 am_lf='
2933 '
2934 case `pwd` in
2935   *[\\\"\#\$\&\'\`$am_lf]*)
2936     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2937 esac
2938 case $srcdir in
2939   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2940     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2941 esac
2942
2943 # Do 'set' in a subshell so we don't clobber the current shell's
2944 # arguments.  Must try -L first in case configure is actually a
2945 # symlink; some systems play weird games with the mod time of symlinks
2946 # (eg FreeBSD returns the mod time of the symlink's containing
2947 # directory).
2948 if (
2949    am_has_slept=no
2950    for am_try in 1 2; do
2951      echo "timestamp, slept: $am_has_slept" > conftest.file
2952      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2953      if test "$*" = "X"; then
2954         # -L didn't work.
2955         set X `ls -t "$srcdir/configure" conftest.file`
2956      fi
2957      if test "$*" != "X $srcdir/configure conftest.file" \
2958         && test "$*" != "X conftest.file $srcdir/configure"; then
2959
2960         # If neither matched, then we have a broken ls.  This can happen
2961         # if, for instance, CONFIG_SHELL is bash and it inherits a
2962         # broken ls alias from the environment.  This has actually
2963         # happened.  Such a system could not be considered "sane".
2964         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2965   alias in your environment" "$LINENO" 5
2966      fi
2967      if test "$2" = conftest.file || test $am_try -eq 2; then
2968        break
2969      fi
2970      # Just in case.
2971      sleep 1
2972      am_has_slept=yes
2973    done
2974    test "$2" = conftest.file
2975    )
2976 then
2977    # Ok.
2978    :
2979 else
2980    as_fn_error $? "newly created file is older than distributed files!
2981 Check your system clock" "$LINENO" 5
2982 fi
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2984 $as_echo "yes" >&6; }
2985 # If we didn't sleep, we still need to ensure time stamps of config.status and
2986 # generated files are strictly newer.
2987 am_sleep_pid=
2988 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2989   ( sleep 1 ) &
2990   am_sleep_pid=$!
2991 fi
2992
2993 rm -f conftest.file
2994
2995 test "$program_prefix" != NONE &&
2996   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2997 # Use a double $ so make ignores it.
2998 test "$program_suffix" != NONE &&
2999   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3000 # Double any \ or $.
3001 # By default was `s,x,x', remove it if useless.
3002 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3003 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3004
3005 # expand $ac_aux_dir to an absolute path
3006 am_aux_dir=`cd $ac_aux_dir && pwd`
3007
3008 if test x"${MISSING+set}" != xset; then
3009   case $am_aux_dir in
3010   *\ * | *\     *)
3011     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3012   *)
3013     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3014   esac
3015 fi
3016 # Use eval to expand $SHELL
3017 if eval "$MISSING --run true"; then
3018   am_missing_run="$MISSING --run "
3019 else
3020   am_missing_run=
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3022 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3023 fi
3024
3025 if test x"${install_sh}" != xset; then
3026   case $am_aux_dir in
3027   *\ * | *\     *)
3028     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3029   *)
3030     install_sh="\${SHELL} $am_aux_dir/install-sh"
3031   esac
3032 fi
3033
3034 # Installed binaries are usually stripped using 'strip' when the user
3035 # run "make install-strip".  However 'strip' might not be the right
3036 # tool to use in cross-compilation environments, therefore Automake
3037 # will honor the 'STRIP' environment variable to overrule this program.
3038 if test "$cross_compiling" != no; then
3039   if test -n "$ac_tool_prefix"; then
3040   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3041 set dummy ${ac_tool_prefix}strip; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_STRIP+:} false; then :
3045   $as_echo_n "(cached) " >&6
3046 else
3047   if test -n "$STRIP"; then
3048   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053   IFS=$as_save_IFS
3054   test -z "$as_dir" && as_dir=.
3055     for ac_exec_ext in '' $ac_executable_extensions; do
3056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059     break 2
3060   fi
3061 done
3062   done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 STRIP=$ac_cv_prog_STRIP
3068 if test -n "$STRIP"; then
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3070 $as_echo "$STRIP" >&6; }
3071 else
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077 fi
3078 if test -z "$ac_cv_prog_STRIP"; then
3079   ac_ct_STRIP=$STRIP
3080   # Extract the first word of "strip", so it can be a program name with args.
3081 set dummy strip; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3085   $as_echo_n "(cached) " >&6
3086 else
3087   if test -n "$ac_ct_STRIP"; then
3088   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093   IFS=$as_save_IFS
3094   test -z "$as_dir" && as_dir=.
3095     for ac_exec_ext in '' $ac_executable_extensions; do
3096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097     ac_cv_prog_ac_ct_STRIP="strip"
3098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099     break 2
3100   fi
3101 done
3102   done
3103 IFS=$as_save_IFS
3104
3105 fi
3106 fi
3107 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3108 if test -n "$ac_ct_STRIP"; then
3109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3110 $as_echo "$ac_ct_STRIP" >&6; }
3111 else
3112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3114 fi
3115
3116   if test "x$ac_ct_STRIP" = x; then
3117     STRIP=":"
3118   else
3119     case $cross_compiling:$ac_tool_warned in
3120 yes:)
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3123 ac_tool_warned=yes ;;
3124 esac
3125     STRIP=$ac_ct_STRIP
3126   fi
3127 else
3128   STRIP="$ac_cv_prog_STRIP"
3129 fi
3130
3131 fi
3132 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3133
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3135 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3136 if test -z "$MKDIR_P"; then
3137   if ${ac_cv_path_mkdir+:} false; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145     for ac_prog in mkdir gmkdir; do
3146          for ac_exec_ext in '' $ac_executable_extensions; do
3147            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3148            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3149              'mkdir (GNU coreutils) '* | \
3150              'mkdir (coreutils) '* | \
3151              'mkdir (fileutils) '4.1*)
3152                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3153                break 3;;
3154            esac
3155          done
3156        done
3157   done
3158 IFS=$as_save_IFS
3159
3160 fi
3161
3162   test -d ./--version && rmdir ./--version
3163   if test "${ac_cv_path_mkdir+set}" = set; then
3164     MKDIR_P="$ac_cv_path_mkdir -p"
3165   else
3166     # As a last resort, use the slow shell script.  Don't cache a
3167     # value for MKDIR_P within a source directory, because that will
3168     # break other packages using the cache if that directory is
3169     # removed, or if the value is a relative name.
3170     MKDIR_P="$ac_install_sh -d"
3171   fi
3172 fi
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3174 $as_echo "$MKDIR_P" >&6; }
3175
3176 for ac_prog in gawk mawk nawk awk
3177 do
3178   # Extract the first word of "$ac_prog", so it can be a program name with args.
3179 set dummy $ac_prog; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_AWK+:} false; then :
3183   $as_echo_n "(cached) " >&6
3184 else
3185   if test -n "$AWK"; then
3186   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3190 do
3191   IFS=$as_save_IFS
3192   test -z "$as_dir" && as_dir=.
3193     for ac_exec_ext in '' $ac_executable_extensions; do
3194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195     ac_cv_prog_AWK="$ac_prog"
3196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197     break 2
3198   fi
3199 done
3200   done
3201 IFS=$as_save_IFS
3202
3203 fi
3204 fi
3205 AWK=$ac_cv_prog_AWK
3206 if test -n "$AWK"; then
3207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3208 $as_echo "$AWK" >&6; }
3209 else
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212 fi
3213
3214
3215   test -n "$AWK" && break
3216 done
3217
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3219 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3220 set x ${MAKE-make}
3221 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3222 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3223   $as_echo_n "(cached) " >&6
3224 else
3225   cat >conftest.make <<\_ACEOF
3226 SHELL = /bin/sh
3227 all:
3228         @echo '@@@%%%=$(MAKE)=@@@%%%'
3229 _ACEOF
3230 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3231 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3232   *@@@%%%=?*=@@@%%%*)
3233     eval ac_cv_prog_make_${ac_make}_set=yes;;
3234   *)
3235     eval ac_cv_prog_make_${ac_make}_set=no;;
3236 esac
3237 rm -f conftest.make
3238 fi
3239 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3242   SET_MAKE=
3243 else
3244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246   SET_MAKE="MAKE=${MAKE-make}"
3247 fi
3248
3249 rm -rf .tst 2>/dev/null
3250 mkdir .tst 2>/dev/null
3251 if test -d .tst; then
3252   am__leading_dot=.
3253 else
3254   am__leading_dot=_
3255 fi
3256 rmdir .tst 2>/dev/null
3257
3258 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3259   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3260   # is not polluted with repeated "-I."
3261   am__isrc=' -I$(srcdir)'
3262   # test to see if srcdir already configured
3263   if test -f $srcdir/config.status; then
3264     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3265   fi
3266 fi
3267
3268 # test whether we have cygpath
3269 if test -z "$CYGPATH_W"; then
3270   if (cygpath --version) >/dev/null 2>/dev/null; then
3271     CYGPATH_W='cygpath -w'
3272   else
3273     CYGPATH_W=echo
3274   fi
3275 fi
3276
3277
3278 # Define the identity of the package.
3279  PACKAGE='nfs-utils'
3280  VERSION='1.2.8'
3281
3282
3283 cat >>confdefs.h <<_ACEOF
3284 #define PACKAGE "$PACKAGE"
3285 _ACEOF
3286
3287
3288 cat >>confdefs.h <<_ACEOF
3289 #define VERSION "$VERSION"
3290 _ACEOF
3291
3292 # Some tools Automake needs.
3293
3294 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3295
3296
3297 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3298
3299
3300 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3301
3302
3303 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3304
3305
3306 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3307
3308 # For better backward compatibility.  To be removed once Automake 1.9.x
3309 # dies out for good.  For more background, see:
3310 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3311 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3312 mkdir_p='$(MKDIR_P)'
3313
3314 # We need awk for the "check" target.  The system "awk" is bad on
3315 # some platforms.
3316 # Always define AMTAR for backward compatibility.  Yes, it's still used
3317 # in the wild :-(  We should find a proper way to deprecate it ...
3318 AMTAR='$${TAR-tar}'
3319
3320 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3321
3322
3323
3324
3325
3326
3327
3328
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3330 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3331     # Check whether --enable-maintainer-mode was given.
3332 if test "${enable_maintainer_mode+set}" = set; then :
3333   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3334 else
3335   USE_MAINTAINER_MODE=no
3336 fi
3337
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3339 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3340    if test $USE_MAINTAINER_MODE = yes; then
3341   MAINTAINER_MODE_TRUE=
3342   MAINTAINER_MODE_FALSE='#'
3343 else
3344   MAINTAINER_MODE_TRUE='#'
3345   MAINTAINER_MODE_FALSE=
3346 fi
3347
3348   MAINT=$MAINTAINER_MODE_TRUE
3349
3350
3351
3352
3353 # Check whether --with-release was given.
3354 if test "${with_release+set}" = set; then :
3355   withval=$with_release; RELEASE=$withval
3356 else
3357   RELEASE=1
3358 fi
3359
3360
3361
3362 # Check whether --with-statedir was given.
3363 if test "${with_statedir+set}" = set; then :
3364   withval=$with_statedir; statedir=$withval
3365 else
3366   statedir=/var/lib/nfs
3367 fi
3368
3369
3370
3371 # Check whether --with-statdpath was given.
3372 if test "${with_statdpath+set}" = set; then :
3373   withval=$with_statdpath; statdpath=$withval
3374 else
3375   statdpath=$statedir
3376
3377 fi
3378
3379
3380
3381 # Check whether --with-statduser was given.
3382 if test "${with_statduser+set}" = set; then :
3383   withval=$with_statduser; statduser=$withval
3384 else
3385   if test "x$cross_compiling" = "xno"; then
3386                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
3387                         statduser=rpcuser
3388                 else
3389                         statduser=nobody
3390                 fi
3391         else
3392                 statduser=nobody
3393         fi
3394 fi
3395
3396
3397
3398 # Check whether --with-start-statd was given.
3399 if test "${with_start_statd+set}" = set; then :
3400   withval=$with_start_statd; startstatd=$withval
3401 else
3402   startstatd=/usr/sbin/start-statd
3403
3404 fi
3405
3406
3407
3408 cat >>confdefs.h <<_ACEOF
3409 #define START_STATD "$startstatd"
3410 _ACEOF
3411
3412 # Check whether --enable-nfsv4 was given.
3413 if test "${enable_nfsv4+set}" = set; then :
3414   enableval=$enable_nfsv4; enable_nfsv4=$enableval
3415 else
3416   enable_nfsv4=yes
3417 fi
3418
3419         if test "$enable_nfsv4" = yes; then
3420                 IDMAPD=idmapd
3421         else
3422                 enable_nfsv4=
3423                 IDMAPD=
3424         fi
3425
3426
3427          if test "$enable_nfsv4" = "yes"; then
3428   CONFIG_NFSV4_TRUE=
3429   CONFIG_NFSV4_FALSE='#'
3430 else
3431   CONFIG_NFSV4_TRUE='#'
3432   CONFIG_NFSV4_FALSE=
3433 fi
3434
3435
3436 # Check whether --enable-nfsv41 was given.
3437 if test "${enable_nfsv41+set}" = set; then :
3438   enableval=$enable_nfsv41; enable_nfsv41=$enableval
3439 else
3440   enable_nfsv41=yes
3441 fi
3442
3443         if test "$enable_nfsv41" = yes; then
3444                 if test "$enable_nfsv4" != yes; then
3445                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NFS v4 is not enabled. Disabling NFS v4.1" >&5
3446 $as_echo "$as_me: WARNING: NFS v4 is not enabled. Disabling NFS v4.1" >&2;}
3447                         enable_nfsv41=no
3448                 fi
3449                 BLKMAPD=blkmapd
3450         else
3451                 enable_nfsv41=
3452                 BLKMAPD=
3453         fi
3454
3455          if test "$enable_nfsv41" = "yes"; then
3456   CONFIG_NFSV41_TRUE=
3457   CONFIG_NFSV41_FALSE='#'
3458 else
3459   CONFIG_NFSV41_TRUE='#'
3460   CONFIG_NFSV41_FALSE=
3461 fi
3462
3463
3464 # Check whether --enable-gss was given.
3465 if test "${enable_gss+set}" = set; then :
3466   enableval=$enable_gss; enable_gss=$enableval
3467 else
3468   enable_gss=yes
3469 fi
3470
3471         if test "$enable_gss" = yes; then
3472                 GSSD=gssd
3473                 SVCGSSD=svcgssd
3474         else
3475                 enable_gss=
3476                 GSSD=
3477                 SVCGSSD=
3478         fi
3479
3480
3481
3482          if test "$enable_gss" = "yes"; then
3483   CONFIG_GSS_TRUE=
3484   CONFIG_GSS_FALSE='#'
3485 else
3486   CONFIG_GSS_TRUE='#'
3487   CONFIG_GSS_FALSE=
3488 fi
3489
3490 # Check whether --enable-kprefix was given.
3491 if test "${enable_kprefix+set}" = set; then :
3492   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
3493 else
3494   kprefix=
3495 fi
3496
3497
3498
3499 # Check whether --with-rpcgen was given.
3500 if test "${with_rpcgen+set}" = set; then :
3501   withval=$with_rpcgen; rpcgen_path=$withval
3502 else
3503   rpcgen_path=yes
3504 fi
3505
3506         RPCGEN_PATH=
3507         if test "$rpcgen_path" = "yes"; then
3508             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
3509             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
3510         elif test "$rpcgen_path" != "internal"; then
3511             RPCGEN_PATH=$rpcgen_path
3512         fi
3513
3514          if test "$RPCGEN_PATH" = ""; then
3515   CONFIG_RPCGEN_TRUE=
3516   CONFIG_RPCGEN_FALSE='#'
3517 else
3518   CONFIG_RPCGEN_TRUE='#'
3519   CONFIG_RPCGEN_FALSE=
3520 fi
3521
3522 # Check whether --enable-uuid was given.
3523 if test "${enable_uuid+set}" = set; then :
3524   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
3525 else
3526   choose_blkid=default
3527 fi
3528
3529 # Check whether --enable-mount was given.
3530 if test "${enable_mount+set}" = set; then :
3531   enableval=$enable_mount; enable_mount=$enableval
3532 else
3533   enable_mount=yes
3534 fi
3535
3536          if test "$enable_mount" = "yes"; then
3537   CONFIG_MOUNT_TRUE=
3538   CONFIG_MOUNT_FALSE='#'
3539 else
3540   CONFIG_MOUNT_TRUE='#'
3541   CONFIG_MOUNT_FALSE=
3542 fi
3543
3544
3545 if test "$enable_mount" = yes; then
3546         # Check whether --enable-libmount-mount was given.
3547 if test "${enable_libmount_mount+set}" = set; then :
3548   enableval=$enable_libmount_mount; enable_libmount=$enableval
3549 else
3550   enable_libmount=no
3551 fi
3552
3553 fi
3554
3555 # Check whether --enable-tirpc was given.
3556 if test "${enable_tirpc+set}" = set; then :
3557   enableval=$enable_tirpc; enable_tirpc=$enableval
3558 else
3559   enable_tirpc=''
3560 fi
3561
3562 # Check whether --enable-ipv6 was given.
3563 if test "${enable_ipv6+set}" = set; then :
3564   enableval=$enable_ipv6; enable_ipv6=$enableval
3565 else
3566   enable_ipv6=no
3567 fi
3568
3569         if test "$enable_ipv6" = yes; then
3570
3571 $as_echo "#define IPV6_SUPPORTED 1" >>confdefs.h
3572
3573         else
3574                 enable_ipv6=
3575         fi
3576
3577          if test "$enable_ipv6" = "yes"; then
3578   CONFIG_IPV6_TRUE=
3579   CONFIG_IPV6_FALSE='#'
3580 else
3581   CONFIG_IPV6_TRUE='#'
3582   CONFIG_IPV6_FALSE=
3583 fi
3584
3585
3586 if test "$enable_mount" = yes; then
3587         # Check whether --enable-mountconfig was given.
3588 if test "${enable_mountconfig+set}" = set; then :
3589   enableval=$enable_mountconfig; mountconfig=$enableval
3590 else
3591   mountconfig=no
3592 fi
3593
3594         if test "$enable_mountconfig" = yes; then
3595
3596 $as_echo "#define MOUNT_CONFIG 1" >>confdefs.h
3597
3598
3599 # Check whether --with-mountfile was given.
3600 if test "${with_mountfile+set}" = set; then :
3601   withval=$with_mountfile; mountfile=$withval
3602 else
3603   mountfile=/etc/nfsmount.conf
3604 fi
3605
3606
3607
3608 cat >>confdefs.h <<_ACEOF
3609 #define MOUNTOPTS_CONFFILE "$mountfile"
3610 _ACEOF
3611
3612         else
3613                 enable_mountconfig=
3614         fi
3615
3616          if test "$enable_mountconfig" = "yes"; then
3617   MOUNT_CONFIG_TRUE=
3618   MOUNT_CONFIG_FALSE='#'
3619 else
3620   MOUNT_CONFIG_TRUE='#'
3621   MOUNT_CONFIG_FALSE=
3622 fi
3623
3624 else
3625          if test "$enable_mount" = "yes"; then
3626   MOUNT_CONFIG_TRUE=
3627   MOUNT_CONFIG_FALSE='#'
3628 else
3629   MOUNT_CONFIG_TRUE='#'
3630   MOUNT_CONFIG_FALSE=
3631 fi
3632
3633 fi
3634
3635 # Check whether --enable-nfsdcltrack was given.
3636 if test "${enable_nfsdcltrack+set}" = set; then :
3637   enableval=$enable_nfsdcltrack; enable_nfsdctrack=$enableval
3638 else
3639   enable_nfsdcltrack="yes"
3640 fi
3641
3642
3643 DEPDIR="${am__leading_dot}deps"
3644
3645 ac_config_commands="$ac_config_commands depfiles"
3646
3647
3648 am_make=${MAKE-make}
3649 cat > confinc << 'END'
3650 am__doit:
3651         @echo this is the am__doit target
3652 .PHONY: am__doit
3653 END
3654 # If we don't find an include directive, just comment out the code.
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3656 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3657 am__include="#"
3658 am__quote=
3659 _am_result=none
3660 # First try GNU make style include.
3661 echo "include confinc" > confmf
3662 # Ignore all kinds of additional output from 'make'.
3663 case `$am_make -s -f confmf 2> /dev/null` in #(
3664 *the\ am__doit\ target*)
3665   am__include=include
3666   am__quote=
3667   _am_result=GNU
3668   ;;
3669 esac
3670 # Now try BSD make style include.
3671 if test "$am__include" = "#"; then
3672    echo '.include "confinc"' > confmf
3673    case `$am_make -s -f confmf 2> /dev/null` in #(
3674    *the\ am__doit\ target*)
3675      am__include=.include
3676      am__quote="\""
3677      _am_result=BSD
3678      ;;
3679    esac
3680 fi
3681
3682
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3684 $as_echo "$_am_result" >&6; }
3685 rm -f confinc confmf
3686
3687 # Check whether --enable-dependency-tracking was given.
3688 if test "${enable_dependency_tracking+set}" = set; then :
3689   enableval=$enable_dependency_tracking;
3690 fi
3691
3692 if test "x$enable_dependency_tracking" != xno; then
3693   am_depcomp="$ac_aux_dir/depcomp"
3694   AMDEPBACKSLASH='\'
3695   am__nodep='_no'
3696 fi
3697  if test "x$enable_dependency_tracking" != xno; then
3698   AMDEP_TRUE=
3699   AMDEP_FALSE='#'
3700 else
3701   AMDEP_TRUE='#'
3702   AMDEP_FALSE=
3703 fi
3704
3705
3706 ac_ext=c
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711 if test -n "$ac_tool_prefix"; then
3712   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3713 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 $as_echo_n "checking for $ac_word... " >&6; }
3716 if ${ac_cv_prog_CC+:} false; then :
3717   $as_echo_n "(cached) " >&6
3718 else
3719   if test -n "$CC"; then
3720   ac_cv_prog_CC="$CC" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725   IFS=$as_save_IFS
3726   test -z "$as_dir" && as_dir=.
3727     for ac_exec_ext in '' $ac_executable_extensions; do
3728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731     break 2
3732   fi
3733 done
3734   done
3735 IFS=$as_save_IFS
3736
3737 fi
3738 fi
3739 CC=$ac_cv_prog_CC
3740 if test -n "$CC"; then
3741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3742 $as_echo "$CC" >&6; }
3743 else
3744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3746 fi
3747
3748
3749 fi
3750 if test -z "$ac_cv_prog_CC"; then
3751   ac_ct_CC=$CC
3752   # Extract the first word of "gcc", so it can be a program name with args.
3753 set dummy gcc; ac_word=$2
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 $as_echo_n "checking for $ac_word... " >&6; }
3756 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3757   $as_echo_n "(cached) " >&6
3758 else
3759   if test -n "$ac_ct_CC"; then
3760   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765   IFS=$as_save_IFS
3766   test -z "$as_dir" && as_dir=.
3767     for ac_exec_ext in '' $ac_executable_extensions; do
3768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769     ac_cv_prog_ac_ct_CC="gcc"
3770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771     break 2
3772   fi
3773 done
3774   done
3775 IFS=$as_save_IFS
3776
3777 fi
3778 fi
3779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3780 if test -n "$ac_ct_CC"; then
3781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3782 $as_echo "$ac_ct_CC" >&6; }
3783 else
3784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3786 fi
3787
3788   if test "x$ac_ct_CC" = x; then
3789     CC=""
3790   else
3791     case $cross_compiling:$ac_tool_warned in
3792 yes:)
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3795 ac_tool_warned=yes ;;
3796 esac
3797     CC=$ac_ct_CC
3798   fi
3799 else
3800   CC="$ac_cv_prog_CC"
3801 fi
3802
3803 if test -z "$CC"; then
3804           if test -n "$ac_tool_prefix"; then
3805     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3806 set dummy ${ac_tool_prefix}cc; ac_word=$2
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808 $as_echo_n "checking for $ac_word... " >&6; }
3809 if ${ac_cv_prog_CC+:} false; then :
3810   $as_echo_n "(cached) " >&6
3811 else
3812   if test -n "$CC"; then
3813   ac_cv_prog_CC="$CC" # Let the user override the test.
3814 else
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3817 do
3818   IFS=$as_save_IFS
3819   test -z "$as_dir" && as_dir=.
3820     for ac_exec_ext in '' $ac_executable_extensions; do
3821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822     ac_cv_prog_CC="${ac_tool_prefix}cc"
3823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3824     break 2
3825   fi
3826 done
3827   done
3828 IFS=$as_save_IFS
3829
3830 fi
3831 fi
3832 CC=$ac_cv_prog_CC
3833 if test -n "$CC"; then
3834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3835 $as_echo "$CC" >&6; }
3836 else
3837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 $as_echo "no" >&6; }
3839 fi
3840
3841
3842   fi
3843 fi
3844 if test -z "$CC"; then
3845   # Extract the first word of "cc", so it can be a program name with args.
3846 set dummy cc; ac_word=$2
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3848 $as_echo_n "checking for $ac_word... " >&6; }
3849 if ${ac_cv_prog_CC+:} false; then :
3850   $as_echo_n "(cached) " >&6
3851 else
3852   if test -n "$CC"; then
3853   ac_cv_prog_CC="$CC" # Let the user override the test.
3854 else
3855   ac_prog_rejected=no
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3858 do
3859   IFS=$as_save_IFS
3860   test -z "$as_dir" && as_dir=.
3861     for ac_exec_ext in '' $ac_executable_extensions; do
3862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3864        ac_prog_rejected=yes
3865        continue
3866      fi
3867     ac_cv_prog_CC="cc"
3868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869     break 2
3870   fi
3871 done
3872   done
3873 IFS=$as_save_IFS
3874
3875 if test $ac_prog_rejected = yes; then
3876   # We found a bogon in the path, so make sure we never use it.
3877   set dummy $ac_cv_prog_CC
3878   shift
3879   if test $# != 0; then
3880     # We chose a different compiler from the bogus one.
3881     # However, it has the same basename, so the bogon will be chosen
3882     # first if we set CC to just the basename; use the full file name.
3883     shift
3884     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3885   fi
3886 fi
3887 fi
3888 fi
3889 CC=$ac_cv_prog_CC
3890 if test -n "$CC"; then
3891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3892 $as_echo "$CC" >&6; }
3893 else
3894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 $as_echo "no" >&6; }
3896 fi
3897
3898
3899 fi
3900 if test -z "$CC"; then
3901   if test -n "$ac_tool_prefix"; then
3902   for ac_prog in cl.exe
3903   do
3904     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if ${ac_cv_prog_CC+:} false; then :
3909   $as_echo_n "(cached) " >&6
3910 else
3911   if test -n "$CC"; then
3912   ac_cv_prog_CC="$CC" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917   IFS=$as_save_IFS
3918   test -z "$as_dir" && as_dir=.
3919     for ac_exec_ext in '' $ac_executable_extensions; do
3920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923     break 2
3924   fi
3925 done
3926   done
3927 IFS=$as_save_IFS
3928
3929 fi
3930 fi
3931 CC=$ac_cv_prog_CC
3932 if test -n "$CC"; then
3933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934 $as_echo "$CC" >&6; }
3935 else
3936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3938 fi
3939
3940
3941     test -n "$CC" && break
3942   done
3943 fi
3944 if test -z "$CC"; then
3945   ac_ct_CC=$CC
3946   for ac_prog in cl.exe
3947 do
3948   # Extract the first word of "$ac_prog", so it can be a program name with args.
3949 set dummy $ac_prog; ac_word=$2
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3951 $as_echo_n "checking for $ac_word... " >&6; }
3952 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3953   $as_echo_n "(cached) " >&6
3954 else
3955   if test -n "$ac_ct_CC"; then
3956   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3957 else
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH
3960 do
3961   IFS=$as_save_IFS
3962   test -z "$as_dir" && as_dir=.
3963     for ac_exec_ext in '' $ac_executable_extensions; do
3964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3965     ac_cv_prog_ac_ct_CC="$ac_prog"
3966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3967     break 2
3968   fi
3969 done
3970   done
3971 IFS=$as_save_IFS
3972
3973 fi
3974 fi
3975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3976 if test -n "$ac_ct_CC"; then
3977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3978 $as_echo "$ac_ct_CC" >&6; }
3979 else
3980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3981 $as_echo "no" >&6; }
3982 fi
3983
3984
3985   test -n "$ac_ct_CC" && break
3986 done
3987
3988   if test "x$ac_ct_CC" = x; then
3989     CC=""
3990   else
3991     case $cross_compiling:$ac_tool_warned in
3992 yes:)
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3995 ac_tool_warned=yes ;;
3996 esac
3997     CC=$ac_ct_CC
3998   fi
3999 fi
4000
4001 fi
4002
4003
4004 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4006 as_fn_error $? "no acceptable C compiler found in \$PATH
4007 See \`config.log' for more details" "$LINENO" 5; }
4008
4009 # Provide some information about the compiler.
4010 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4011 set X $ac_compile
4012 ac_compiler=$2
4013 for ac_option in --version -v -V -qversion; do
4014   { { ac_try="$ac_compiler $ac_option >&5"
4015 case "(($ac_try" in
4016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017   *) ac_try_echo=$ac_try;;
4018 esac
4019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4020 $as_echo "$ac_try_echo"; } >&5
4021   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4022   ac_status=$?
4023   if test -s conftest.err; then
4024     sed '10a\
4025 ... rest of stderr output deleted ...
4026          10q' conftest.err >conftest.er1
4027     cat conftest.er1 >&5
4028   fi
4029   rm -f conftest.er1 conftest.err
4030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031   test $ac_status = 0; }
4032 done
4033
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h.  */
4036
4037 int
4038 main ()
4039 {
4040
4041   ;
4042   return 0;
4043 }
4044 _ACEOF
4045 ac_clean_files_save=$ac_clean_files
4046 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4047 # Try to create an executable without -o first, disregard a.out.
4048 # It will help us diagnose broken compilers, and finding out an intuition
4049 # of exeext.
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4051 $as_echo_n "checking whether the C compiler works... " >&6; }
4052 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4053
4054 # The possible output files:
4055 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4056
4057 ac_rmfiles=
4058 for ac_file in $ac_files
4059 do
4060   case $ac_file in
4061     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4062     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4063   esac
4064 done
4065 rm -f $ac_rmfiles
4066
4067 if { { ac_try="$ac_link_default"
4068 case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074   (eval "$ac_link_default") 2>&5
4075   ac_status=$?
4076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077   test $ac_status = 0; }; then :
4078   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4079 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4080 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4081 # so that the user can short-circuit this test for compilers unknown to
4082 # Autoconf.
4083 for ac_file in $ac_files ''
4084 do
4085   test -f "$ac_file" || continue
4086   case $ac_file in
4087     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4088         ;;
4089     [ab].out )
4090         # We found the default executable, but exeext='' is most
4091         # certainly right.
4092         break;;
4093     *.* )
4094         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4095         then :; else
4096            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4097         fi
4098         # We set ac_cv_exeext here because the later test for it is not
4099         # safe: cross compilers may not add the suffix if given an `-o'
4100         # argument, so we may need to know it at that point already.
4101         # Even if this section looks crufty: it has the advantage of
4102         # actually working.
4103         break;;
4104     * )
4105         break;;
4106   esac
4107 done
4108 test "$ac_cv_exeext" = no && ac_cv_exeext=
4109
4110 else
4111   ac_file=''
4112 fi
4113 if test -z "$ac_file"; then :
4114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115 $as_echo "no" >&6; }
4116 $as_echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4118
4119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4121 as_fn_error 77 "C compiler cannot create executables
4122 See \`config.log' for more details" "$LINENO" 5; }
4123 else
4124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4125 $as_echo "yes" >&6; }
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4128 $as_echo_n "checking for C compiler default output file name... " >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4130 $as_echo "$ac_file" >&6; }
4131 ac_exeext=$ac_cv_exeext
4132
4133 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4134 ac_clean_files=$ac_clean_files_save
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4136 $as_echo_n "checking for suffix of executables... " >&6; }
4137 if { { ac_try="$ac_link"
4138 case "(($ac_try" in
4139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140   *) ac_try_echo=$ac_try;;
4141 esac
4142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4143 $as_echo "$ac_try_echo"; } >&5
4144   (eval "$ac_link") 2>&5
4145   ac_status=$?
4146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147   test $ac_status = 0; }; then :
4148   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4149 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4150 # work properly (i.e., refer to `conftest.exe'), while it won't with
4151 # `rm'.
4152 for ac_file in conftest.exe conftest conftest.*; do
4153   test -f "$ac_file" || continue
4154   case $ac_file in
4155     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4156     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4157           break;;
4158     * ) break;;
4159   esac
4160 done
4161 else
4162   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4165 See \`config.log' for more details" "$LINENO" 5; }
4166 fi
4167 rm -f conftest conftest$ac_cv_exeext
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4169 $as_echo "$ac_cv_exeext" >&6; }
4170
4171 rm -f conftest.$ac_ext
4172 EXEEXT=$ac_cv_exeext
4173 ac_exeext=$EXEEXT
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h.  */
4176 #include <stdio.h>
4177 int
4178 main ()
4179 {
4180 FILE *f = fopen ("conftest.out", "w");
4181  return ferror (f) || fclose (f) != 0;
4182
4183   ;
4184   return 0;
4185 }
4186 _ACEOF
4187 ac_clean_files="$ac_clean_files conftest.out"
4188 # Check that the compiler produces executables we can run.  If not, either
4189 # the compiler is broken, or we cross compile.
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4191 $as_echo_n "checking whether we are cross compiling... " >&6; }
4192 if test "$cross_compiling" != yes; then
4193   { { ac_try="$ac_link"
4194 case "(($ac_try" in
4195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196   *) ac_try_echo=$ac_try;;
4197 esac
4198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4199 $as_echo "$ac_try_echo"; } >&5
4200   (eval "$ac_link") 2>&5
4201   ac_status=$?
4202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4203   test $ac_status = 0; }
4204   if { ac_try='./conftest$ac_cv_exeext'
4205   { { case "(($ac_try" in
4206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207   *) ac_try_echo=$ac_try;;
4208 esac
4209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4210 $as_echo "$ac_try_echo"; } >&5
4211   (eval "$ac_try") 2>&5
4212   ac_status=$?
4213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214   test $ac_status = 0; }; }; then
4215     cross_compiling=no
4216   else
4217     if test "$cross_compiling" = maybe; then
4218         cross_compiling=yes
4219     else
4220         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4222 as_fn_error $? "cannot run C compiled programs.
4223 If you meant to cross compile, use \`--host'.
4224 See \`config.log' for more details" "$LINENO" 5; }
4225     fi
4226   fi
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4229 $as_echo "$cross_compiling" >&6; }
4230
4231 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4232 ac_clean_files=$ac_clean_files_save
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4234 $as_echo_n "checking for suffix of object files... " >&6; }
4235 if ${ac_cv_objext+:} false; then :
4236   $as_echo_n "(cached) " >&6
4237 else
4238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h.  */
4240
4241 int
4242 main ()
4243 {
4244
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 rm -f conftest.o conftest.obj
4250 if { { ac_try="$ac_compile"
4251 case "(($ac_try" in
4252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253   *) ac_try_echo=$ac_try;;
4254 esac
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 $as_echo "$ac_try_echo"; } >&5
4257   (eval "$ac_compile") 2>&5
4258   ac_status=$?
4259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260   test $ac_status = 0; }; then :
4261   for ac_file in conftest.o conftest.obj conftest.*; do
4262   test -f "$ac_file" || continue;
4263   case $ac_file in
4264     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4265     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4266        break;;
4267   esac
4268 done
4269 else
4270   $as_echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4275 as_fn_error $? "cannot compute suffix of object files: cannot compile
4276 See \`config.log' for more details" "$LINENO" 5; }
4277 fi
4278 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4279 fi
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4281 $as_echo "$ac_cv_objext" >&6; }
4282 OBJEXT=$ac_cv_objext
4283 ac_objext=$OBJEXT
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4285 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4286 if ${ac_cv_c_compiler_gnu+:} false; then :
4287   $as_echo_n "(cached) " >&6
4288 else
4289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h.  */
4291
4292 int
4293 main ()
4294 {
4295 #ifndef __GNUC__
4296        choke me
4297 #endif
4298
4299   ;
4300   return 0;
4301 }
4302 _ACEOF
4303 if ac_fn_c_try_compile "$LINENO"; then :
4304   ac_compiler_gnu=yes
4305 else
4306   ac_compiler_gnu=no
4307 fi
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4310
4311 fi
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4313 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4314 if test $ac_compiler_gnu = yes; then
4315   GCC=yes
4316 else
4317   GCC=
4318 fi
4319 ac_test_CFLAGS=${CFLAGS+set}
4320 ac_save_CFLAGS=$CFLAGS
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4322 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4323 if ${ac_cv_prog_cc_g+:} false; then :
4324   $as_echo_n "(cached) " >&6
4325 else
4326   ac_save_c_werror_flag=$ac_c_werror_flag
4327    ac_c_werror_flag=yes
4328    ac_cv_prog_cc_g=no
4329    CFLAGS="-g"
4330    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h.  */
4332
4333 int
4334 main ()
4335 {
4336
4337   ;
4338   return 0;
4339 }
4340 _ACEOF
4341 if ac_fn_c_try_compile "$LINENO"; then :
4342   ac_cv_prog_cc_g=yes
4343 else
4344   CFLAGS=""
4345       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h.  */
4347
4348 int
4349 main ()
4350 {
4351
4352   ;
4353   return 0;
4354 }
4355 _ACEOF
4356 if ac_fn_c_try_compile "$LINENO"; then :
4357
4358 else
4359   ac_c_werror_flag=$ac_save_c_werror_flag
4360          CFLAGS="-g"
4361          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h.  */
4363
4364 int
4365 main ()
4366 {
4367
4368   ;
4369   return 0;
4370 }
4371 _ACEOF
4372 if ac_fn_c_try_compile "$LINENO"; then :
4373   ac_cv_prog_cc_g=yes
4374 fi
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 fi
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378 fi
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380    ac_c_werror_flag=$ac_save_c_werror_flag
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4383 $as_echo "$ac_cv_prog_cc_g" >&6; }
4384 if test "$ac_test_CFLAGS" = set; then
4385   CFLAGS=$ac_save_CFLAGS
4386 elif test $ac_cv_prog_cc_g = yes; then
4387   if test "$GCC" = yes; then
4388     CFLAGS="-g -O2"
4389   else
4390     CFLAGS="-g"
4391   fi
4392 else
4393   if test "$GCC" = yes; then
4394     CFLAGS="-O2"
4395   else
4396     CFLAGS=
4397   fi
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4400 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4401 if ${ac_cv_prog_cc_c89+:} false; then :
4402   $as_echo_n "(cached) " >&6
4403 else
4404   ac_cv_prog_cc_c89=no
4405 ac_save_CC=$CC
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h.  */
4408 #include <stdarg.h>
4409 #include <stdio.h>
4410 struct stat;
4411 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4412 struct buf { int x; };
4413 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4414 static char *e (p, i)
4415      char **p;
4416      int i;
4417 {
4418   return p[i];
4419 }
4420 static char *f (char * (*g) (char **, int), char **p, ...)
4421 {
4422   char *s;
4423   va_list v;
4424   va_start (v,p);
4425   s = g (p, va_arg (v,int));
4426   va_end (v);
4427   return s;
4428 }
4429
4430 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4431    function prototypes and stuff, but not '\xHH' hex character constants.
4432    These don't provoke an error unfortunately, instead are silently treated
4433    as 'x'.  The following induces an error, until -std is added to get
4434    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4435    array size at least.  It's necessary to write '\x00'==0 to get something
4436    that's true only with -std.  */
4437 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4438
4439 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4440    inside strings and character constants.  */
4441 #define FOO(x) 'x'
4442 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4443
4444 int test (int i, double x);
4445 struct s1 {int (*f) (int a);};
4446 struct s2 {int (*f) (double a);};
4447 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4448 int argc;
4449 char **argv;
4450 int
4451 main ()
4452 {
4453 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4454   ;
4455   return 0;
4456 }
4457 _ACEOF
4458 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4459         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4460 do
4461   CC="$ac_save_CC $ac_arg"
4462   if ac_fn_c_try_compile "$LINENO"; then :
4463   ac_cv_prog_cc_c89=$ac_arg
4464 fi
4465 rm -f core conftest.err conftest.$ac_objext
4466   test "x$ac_cv_prog_cc_c89" != "xno" && break
4467 done
4468 rm -f conftest.$ac_ext
4469 CC=$ac_save_CC
4470
4471 fi
4472 # AC_CACHE_VAL
4473 case "x$ac_cv_prog_cc_c89" in
4474   x)
4475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4476 $as_echo "none needed" >&6; } ;;
4477   xno)
4478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4479 $as_echo "unsupported" >&6; } ;;
4480   *)
4481     CC="$CC $ac_cv_prog_cc_c89"
4482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4483 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4484 esac
4485 if test "x$ac_cv_prog_cc_c89" != xno; then :
4486
4487 fi
4488
4489 ac_ext=c
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494
4495 depcc="$CC"   am_compiler_list=
4496
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4498 $as_echo_n "checking dependency style of $depcc... " >&6; }
4499 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4500   $as_echo_n "(cached) " >&6
4501 else
4502   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4503   # We make a subdir and do the tests there.  Otherwise we can end up
4504   # making bogus files that we don't know about and never remove.  For
4505   # instance it was reported that on HP-UX the gcc test will end up
4506   # making a dummy file named 'D' -- because '-MD' means "put the output
4507   # in D".
4508   rm -rf conftest.dir
4509   mkdir conftest.dir
4510   # Copy depcomp to subdir because otherwise we won't find it if we're
4511   # using a relative directory.
4512   cp "$am_depcomp" conftest.dir
4513   cd conftest.dir
4514   # We will build objects and dependencies in a subdirectory because
4515   # it helps to detect inapplicable dependency modes.  For instance
4516   # both Tru64's cc and ICC support -MD to output dependencies as a
4517   # side effect of compilation, but ICC will put the dependencies in
4518   # the current directory while Tru64 will put them in the object
4519   # directory.
4520   mkdir sub
4521
4522   am_cv_CC_dependencies_compiler_type=none
4523   if test "$am_compiler_list" = ""; then
4524      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4525   fi
4526   am__universal=false
4527   case " $depcc " in #(
4528      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4529      esac
4530
4531   for depmode in $am_compiler_list; do
4532     # Setup a source with many dependencies, because some compilers
4533     # like to wrap large dependency lists on column 80 (with \), and
4534     # we should not choose a depcomp mode which is confused by this.
4535     #
4536     # We need to recreate these files for each test, as the compiler may
4537     # overwrite some of them when testing with obscure command lines.
4538     # This happens at least with the AIX C compiler.
4539     : > sub/conftest.c
4540     for i in 1 2 3 4 5 6; do
4541       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4542       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4543       # Solaris 10 /bin/sh.
4544       echo '/* dummy */' > sub/conftst$i.h
4545     done
4546     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4547
4548     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4549     # mode.  It turns out that the SunPro C++ compiler does not properly
4550     # handle '-M -o', and we need to detect this.  Also, some Intel
4551     # versions had trouble with output in subdirs.
4552     am__obj=sub/conftest.${OBJEXT-o}
4553     am__minus_obj="-o $am__obj"
4554     case $depmode in
4555     gcc)
4556       # This depmode causes a compiler race in universal mode.
4557       test "$am__universal" = false || continue
4558       ;;
4559     nosideeffect)
4560       # After this tag, mechanisms are not by side-effect, so they'll
4561       # only be used when explicitly requested.
4562       if test "x$enable_dependency_tracking" = xyes; then
4563         continue
4564       else
4565         break
4566       fi
4567       ;;
4568     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4569       # This compiler won't grok '-c -o', but also, the minuso test has
4570       # not run yet.  These depmodes are late enough in the game, and
4571       # so weak that their functioning should not be impacted.
4572       am__obj=conftest.${OBJEXT-o}
4573       am__minus_obj=
4574       ;;
4575     none) break ;;
4576     esac
4577     if depmode=$depmode \
4578        source=sub/conftest.c object=$am__obj \
4579        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4580        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4581          >/dev/null 2>conftest.err &&
4582        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4583        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4584        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4585        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4586       # icc doesn't choke on unknown options, it will just issue warnings
4587       # or remarks (even with -Werror).  So we grep stderr for any message
4588       # that says an option was ignored or not supported.
4589       # When given -MP, icc 7.0 and 7.1 complain thusly:
4590       #   icc: Command line warning: ignoring option '-M'; no argument required
4591       # The diagnosis changed in icc 8.0:
4592       #   icc: Command line remark: option '-MP' not supported
4593       if (grep 'ignoring option' conftest.err ||
4594           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4595         am_cv_CC_dependencies_compiler_type=$depmode
4596         break
4597       fi
4598     fi
4599   done
4600
4601   cd ..
4602   rm -rf conftest.dir
4603 else
4604   am_cv_CC_dependencies_compiler_type=none
4605 fi
4606
4607 fi
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4609 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4610 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4611
4612  if
4613   test "x$enable_dependency_tracking" != xno \
4614   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4615   am__fastdepCC_TRUE=
4616   am__fastdepCC_FALSE='#'
4617 else
4618   am__fastdepCC_TRUE='#'
4619   am__fastdepCC_FALSE=
4620 fi
4621
4622
4623
4624 ac_ext=c
4625 ac_cpp='$CPP $CPPFLAGS'
4626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4630 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4631 # On Suns, sometimes $CPP names a directory.
4632 if test -n "$CPP" && test -d "$CPP"; then
4633   CPP=
4634 fi
4635 if test -z "$CPP"; then
4636   if ${ac_cv_prog_CPP+:} false; then :
4637   $as_echo_n "(cached) " >&6
4638 else
4639       # Double quotes because CPP needs to be expanded
4640     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4641     do
4642       ac_preproc_ok=false
4643 for ac_c_preproc_warn_flag in '' yes
4644 do
4645   # Use a header file that comes with gcc, so configuring glibc
4646   # with a fresh cross-compiler works.
4647   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4648   # <limits.h> exists even on freestanding compilers.
4649   # On the NeXT, cc -E runs the code through the compiler's parser,
4650   # not just through cpp. "Syntax error" is here to catch this case.
4651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h.  */
4653 #ifdef __STDC__
4654 # include <limits.h>
4655 #else
4656 # include <assert.h>
4657 #endif
4658                      Syntax error
4659 _ACEOF
4660 if ac_fn_c_try_cpp "$LINENO"; then :
4661
4662 else
4663   # Broken: fails on valid input.
4664 continue
4665 fi
4666 rm -f conftest.err conftest.i conftest.$ac_ext
4667
4668   # OK, works on sane cases.  Now check whether nonexistent headers
4669   # can be detected and how.
4670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h.  */
4672 #include <ac_nonexistent.h>
4673 _ACEOF
4674 if ac_fn_c_try_cpp "$LINENO"; then :
4675   # Broken: success on invalid input.
4676 continue
4677 else
4678   # Passes both tests.
4679 ac_preproc_ok=:
4680 break
4681 fi
4682 rm -f conftest.err conftest.i conftest.$ac_ext
4683
4684 done
4685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4686 rm -f conftest.i conftest.err conftest.$ac_ext
4687 if $ac_preproc_ok; then :
4688   break
4689 fi
4690
4691     done
4692     ac_cv_prog_CPP=$CPP
4693
4694 fi
4695   CPP=$ac_cv_prog_CPP
4696 else
4697   ac_cv_prog_CPP=$CPP
4698 fi
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4700 $as_echo "$CPP" >&6; }
4701 ac_preproc_ok=false
4702 for ac_c_preproc_warn_flag in '' yes
4703 do
4704   # Use a header file that comes with gcc, so configuring glibc
4705   # with a fresh cross-compiler works.
4706   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4707   # <limits.h> exists even on freestanding compilers.
4708   # On the NeXT, cc -E runs the code through the compiler's parser,
4709   # not just through cpp. "Syntax error" is here to catch this case.
4710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h.  */
4712 #ifdef __STDC__
4713 # include <limits.h>
4714 #else
4715 # include <assert.h>
4716 #endif
4717                      Syntax error
4718 _ACEOF
4719 if ac_fn_c_try_cpp "$LINENO"; then :
4720
4721 else
4722   # Broken: fails on valid input.
4723 continue
4724 fi
4725 rm -f conftest.err conftest.i conftest.$ac_ext
4726
4727   # OK, works on sane cases.  Now check whether nonexistent headers
4728   # can be detected and how.
4729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h.  */
4731 #include <ac_nonexistent.h>
4732 _ACEOF
4733 if ac_fn_c_try_cpp "$LINENO"; then :
4734   # Broken: success on invalid input.
4735 continue
4736 else
4737   # Passes both tests.
4738 ac_preproc_ok=:
4739 break
4740 fi
4741 rm -f conftest.err conftest.i conftest.$ac_ext
4742
4743 done
4744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4745 rm -f conftest.i conftest.err conftest.$ac_ext
4746 if $ac_preproc_ok; then :
4747
4748 else
4749   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4751 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4752 See \`config.log' for more details" "$LINENO" 5; }
4753 fi
4754
4755 ac_ext=c
4756 ac_cpp='$CPP $CPPFLAGS'
4757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4760
4761
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4763 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4764 if ${ac_cv_path_GREP+:} false; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767   if test -z "$GREP"; then
4768   ac_path_GREP_found=false
4769   # Loop through the user's path and test for each of PROGNAME-LIST
4770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775     for ac_prog in grep ggrep; do
4776     for ac_exec_ext in '' $ac_executable_extensions; do
4777       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4778       as_fn_executable_p "$ac_path_GREP" || continue
4779 # Check for GNU ac_path_GREP and select it if it is found.
4780   # Check for GNU $ac_path_GREP
4781 case `"$ac_path_GREP" --version 2>&1` in
4782 *GNU*)
4783   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4784 *)
4785   ac_count=0
4786   $as_echo_n 0123456789 >"conftest.in"
4787   while :
4788   do
4789     cat "conftest.in" "conftest.in" >"conftest.tmp"
4790     mv "conftest.tmp" "conftest.in"
4791     cp "conftest.in" "conftest.nl"
4792     $as_echo 'GREP' >> "conftest.nl"
4793     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4794     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4795     as_fn_arith $ac_count + 1 && ac_count=$as_val
4796     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4797       # Best one so far, save it but keep looking for a better one
4798       ac_cv_path_GREP="$ac_path_GREP"
4799       ac_path_GREP_max=$ac_count
4800     fi
4801     # 10*(2^10) chars as input seems more than enough
4802     test $ac_count -gt 10 && break
4803   done
4804   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4805 esac
4806
4807       $ac_path_GREP_found && break 3
4808     done
4809   done
4810   done
4811 IFS=$as_save_IFS
4812   if test -z "$ac_cv_path_GREP"; then
4813     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4814   fi
4815 else
4816   ac_cv_path_GREP=$GREP
4817 fi
4818
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4821 $as_echo "$ac_cv_path_GREP" >&6; }
4822  GREP="$ac_cv_path_GREP"
4823
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4826 $as_echo_n "checking for egrep... " >&6; }
4827 if ${ac_cv_path_EGREP+:} false; then :
4828   $as_echo_n "(cached) " >&6
4829 else
4830   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4831    then ac_cv_path_EGREP="$GREP -E"
4832    else
4833      if test -z "$EGREP"; then
4834   ac_path_EGREP_found=false
4835   # Loop through the user's path and test for each of PROGNAME-LIST
4836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4838 do
4839   IFS=$as_save_IFS
4840   test -z "$as_dir" && as_dir=.
4841     for ac_prog in egrep; do
4842     for ac_exec_ext in '' $ac_executable_extensions; do
4843       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4844       as_fn_executable_p "$ac_path_EGREP" || continue
4845 # Check for GNU ac_path_EGREP and select it if it is found.
4846   # Check for GNU $ac_path_EGREP
4847 case `"$ac_path_EGREP" --version 2>&1` in
4848 *GNU*)
4849   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4850 *)
4851   ac_count=0
4852   $as_echo_n 0123456789 >"conftest.in"
4853   while :
4854   do
4855     cat "conftest.in" "conftest.in" >"conftest.tmp"
4856     mv "conftest.tmp" "conftest.in"
4857     cp "conftest.in" "conftest.nl"
4858     $as_echo 'EGREP' >> "conftest.nl"
4859     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4860     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4861     as_fn_arith $ac_count + 1 && ac_count=$as_val
4862     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4863       # Best one so far, save it but keep looking for a better one
4864       ac_cv_path_EGREP="$ac_path_EGREP"
4865       ac_path_EGREP_max=$ac_count
4866     fi
4867     # 10*(2^10) chars as input seems more than enough
4868     test $ac_count -gt 10 && break
4869   done
4870   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4871 esac
4872
4873       $ac_path_EGREP_found && break 3
4874     done
4875   done
4876   done
4877 IFS=$as_save_IFS
4878   if test -z "$ac_cv_path_EGREP"; then
4879     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4880   fi
4881 else
4882   ac_cv_path_EGREP=$EGREP
4883 fi
4884
4885    fi
4886 fi
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4888 $as_echo "$ac_cv_path_EGREP" >&6; }
4889  EGREP="$ac_cv_path_EGREP"
4890
4891
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4893 $as_echo_n "checking for ANSI C header files... " >&6; }
4894 if ${ac_cv_header_stdc+:} false; then :
4895   $as_echo_n "(cached) " >&6
4896 else
4897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h.  */
4899 #include <stdlib.h>
4900 #include <stdarg.h>
4901 #include <string.h>
4902 #include <float.h>
4903
4904 int
4905 main ()
4906 {
4907
4908   ;
4909   return 0;
4910 }
4911 _ACEOF
4912 if ac_fn_c_try_compile "$LINENO"; then :
4913   ac_cv_header_stdc=yes
4914 else
4915   ac_cv_header_stdc=no
4916 fi
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918
4919 if test $ac_cv_header_stdc = yes; then
4920   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h.  */
4923 #include <string.h>
4924
4925 _ACEOF
4926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4927   $EGREP "memchr" >/dev/null 2>&1; then :
4928
4929 else
4930   ac_cv_header_stdc=no
4931 fi
4932 rm -f conftest*
4933
4934 fi
4935
4936 if test $ac_cv_header_stdc = yes; then
4937   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h.  */
4940 #include <stdlib.h>
4941
4942 _ACEOF
4943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944   $EGREP "free" >/dev/null 2>&1; then :
4945
4946 else
4947   ac_cv_header_stdc=no
4948 fi
4949 rm -f conftest*
4950
4951 fi
4952
4953 if test $ac_cv_header_stdc = yes; then
4954   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4955   if test "$cross_compiling" = yes; then :
4956   :
4957 else
4958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h.  */
4960 #include <ctype.h>
4961 #include <stdlib.h>
4962 #if ((' ' & 0x0FF) == 0x020)
4963 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4964 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4965 #else
4966 # define ISLOWER(c) \
4967                    (('a' <= (c) && (c) <= 'i') \
4968                      || ('j' <= (c) && (c) <= 'r') \
4969                      || ('s' <= (c) && (c) <= 'z'))
4970 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4971 #endif
4972
4973 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4974 int
4975 main ()
4976 {
4977   int i;
4978   for (i = 0; i < 256; i++)
4979     if (XOR (islower (i), ISLOWER (i))
4980         || toupper (i) != TOUPPER (i))
4981       return 2;
4982   return 0;
4983 }
4984 _ACEOF
4985 if ac_fn_c_try_run "$LINENO"; then :
4986
4987 else
4988   ac_cv_header_stdc=no
4989 fi
4990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4991   conftest.$ac_objext conftest.beam conftest.$ac_ext
4992 fi
4993
4994 fi
4995 fi
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4997 $as_echo "$ac_cv_header_stdc" >&6; }
4998 if test $ac_cv_header_stdc = yes; then
4999
5000 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5001
5002 fi
5003
5004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5005 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5006                   inttypes.h stdint.h unistd.h
5007 do :
5008   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5009 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5010 "
5011 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5012   cat >>confdefs.h <<_ACEOF
5013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5014 _ACEOF
5015
5016 fi
5017
5018 done
5019
5020
5021
5022
5023
5024 # Check whether --with-tirpcinclude was given.
5025 if test "${with_tirpcinclude+set}" = set; then :
5026   withval=$with_tirpcinclude; tirpc_header_dir=$withval
5027 else
5028   tirpc_header_dir=/usr/include/tirpc
5029 fi
5030
5031
5032
5033   if test "$enable_tirpc" != "no"; then
5034
5035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clnt_tli_create in -ltirpc" >&5
5036 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
5037 if ${ac_cv_lib_tirpc_clnt_tli_create+:} false; then :
5038   $as_echo_n "(cached) " >&6
5039 else
5040   ac_check_lib_save_LIBS=$LIBS
5041 LIBS="-ltirpc  $LIBS"
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h.  */
5044
5045 /* Override any GCC internal prototype to avoid an error.
5046    Use char because int might match the return type of a GCC
5047    builtin and then its argument prototype would still apply.  */
5048 #ifdef __cplusplus
5049 extern "C"
5050 #endif
5051 char clnt_tli_create ();
5052 int
5053 main ()
5054 {
5055 return clnt_tli_create ();
5056   ;
5057   return 0;
5058 }
5059 _ACEOF
5060 if ac_fn_c_try_link "$LINENO"; then :
5061   ac_cv_lib_tirpc_clnt_tli_create=yes
5062 else
5063   ac_cv_lib_tirpc_clnt_tli_create=no
5064 fi
5065 rm -f core conftest.err conftest.$ac_objext \
5066     conftest$ac_exeext conftest.$ac_ext
5067 LIBS=$ac_check_lib_save_LIBS
5068 fi
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
5070 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
5071 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = xyes; then :
5072   :
5073 else
5074   if test "$enable_tirpc" = "yes"; then
5075                         as_fn_error $? "libtirpc not found." "$LINENO" 5
5076                   else
5077                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc not found. TIRPC disabled!" >&5
5078 $as_echo "$as_me: WARNING: libtirpc not found. TIRPC disabled!" >&2;}
5079                         enable_tirpc="no"
5080                   fi
5081 fi
5082
5083   fi
5084
5085   if test "$enable_tirpc" != "no"; then
5086
5087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_free_private_data in -ltirpc" >&5
5088 $as_echo_n "checking for authgss_free_private_data in -ltirpc... " >&6; }
5089 if ${ac_cv_lib_tirpc_authgss_free_private_data+:} false; then :
5090   $as_echo_n "(cached) " >&6
5091 else
5092   ac_check_lib_save_LIBS=$LIBS
5093 LIBS="-ltirpc  $LIBS"
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h.  */
5096
5097 /* Override any GCC internal prototype to avoid an error.
5098    Use char because int might match the return type of a GCC
5099    builtin and then its argument prototype would still apply.  */
5100 #ifdef __cplusplus
5101 extern "C"
5102 #endif
5103 char authgss_free_private_data ();
5104 int
5105 main ()
5106 {
5107 return authgss_free_private_data ();
5108   ;
5109   return 0;
5110 }
5111 _ACEOF
5112 if ac_fn_c_try_link "$LINENO"; then :
5113   ac_cv_lib_tirpc_authgss_free_private_data=yes
5114 else
5115   ac_cv_lib_tirpc_authgss_free_private_data=no
5116 fi
5117 rm -f core conftest.err conftest.$ac_objext \
5118     conftest$ac_exeext conftest.$ac_ext
5119 LIBS=$ac_check_lib_save_LIBS
5120 fi
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_authgss_free_private_data" >&5
5122 $as_echo "$ac_cv_lib_tirpc_authgss_free_private_data" >&6; }
5123 if test "x$ac_cv_lib_tirpc_authgss_free_private_data" = xyes; then :
5124   have_free_private_data=yes
5125 else
5126   have_free_private_data=no
5127 fi
5128
5129   fi
5130
5131   if test "$enable_tirpc" != "no"; then
5132             for ac_header in ${tirpc_header_dir}/netconfig.h
5133 do :
5134   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5135 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5137   cat >>confdefs.h <<_ACEOF
5138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5139 _ACEOF
5140  AM_CPPFLAGS="-I${tirpc_header_dir}"
5141
5142 else
5143   if test "$enable_tirpc" = "yes"; then
5144                          as_fn_error $? "libtirpc headers not found." "$LINENO" 5
5145                        else
5146                          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc headers not found. TIRPC disabled!" >&5
5147 $as_echo "$as_me: WARNING: libtirpc headers not found. TIRPC disabled!" >&2;}
5148                          enable_tirpc="no"
5149                        fi
5150 fi
5151
5152 done
5153
5154
5155   fi
5156
5157     if test "$enable_tirpc" != "no"; then
5158
5159 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
5160
5161     LIBTIRPC="-ltirpc"
5162     if test "$have_free_private_data" = "yes"; then
5163
5164 $as_echo "#define HAVE_AUTHGSS_FREE_PRIVATE_DATA 1" >>confdefs.h
5165
5166     fi
5167   else
5168     LIBTIRPC=""
5169   fi
5170
5171
5172
5173
5174
5175
5176
5177     ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
5178 if test "x$ac_cv_func_prctl" = xyes; then :
5179
5180 else
5181   as_fn_error $? "prctl syscall is not available" "$LINENO" 5
5182 fi
5183
5184
5185   # Check whether --enable-caps was given.
5186 if test "${enable_caps+set}" = set; then :
5187   enableval=$enable_caps;
5188 fi
5189
5190
5191   LIBCAP=
5192
5193   if test "x$enable_caps" != "xno" ; then
5194         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
5195 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
5196 if ${ac_cv_lib_cap_cap_get_proc+:} false; then :
5197   $as_echo_n "(cached) " >&6
5198 else
5199   ac_check_lib_save_LIBS=$LIBS
5200 LIBS="-lcap  $LIBS"
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h.  */
5203
5204 /* Override any GCC internal prototype to avoid an error.
5205    Use char because int might match the return type of a GCC
5206    builtin and then its argument prototype would still apply.  */
5207 #ifdef __cplusplus
5208 extern "C"
5209 #endif
5210 char cap_get_proc ();
5211 int
5212 main ()
5213 {
5214 return cap_get_proc ();
5215   ;
5216   return 0;
5217 }
5218 _ACEOF
5219 if ac_fn_c_try_link "$LINENO"; then :
5220   ac_cv_lib_cap_cap_get_proc=yes
5221 else
5222   ac_cv_lib_cap_cap_get_proc=no
5223 fi
5224 rm -f core conftest.err conftest.$ac_objext \
5225     conftest$ac_exeext conftest.$ac_ext
5226 LIBS=$ac_check_lib_save_LIBS
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_get_proc" >&5
5229 $as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
5230 if test "x$ac_cv_lib_cap_cap_get_proc" = xyes; then :
5231   LIBCAP=-lcap
5232 fi
5233
5234
5235     for ac_header in sys/capability.h
5236 do :
5237   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
5238 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
5239   cat >>confdefs.h <<_ACEOF
5240 #define HAVE_SYS_CAPABILITY_H 1
5241 _ACEOF
5242
5243 else
5244   test "x$enable_caps" = "xyes" && as_fn_error $? "libcap headers not found." "$LINENO" 5
5245 fi
5246
5247 done
5248
5249   fi
5250
5251
5252
5253
5254
5255 # Check whether user wants TCP wrappers support
5256
5257   TCPW_MSG="no"
5258
5259 # Check whether --with-tcp-wrappers was given.
5260 if test "${with_tcp_wrappers+set}" = set; then :
5261   withval=$with_tcp_wrappers; with_tcpw=$withval
5262 else
5263   with_tcpw=yes
5264 fi
5265
5266         if test "x$with_tcpw" != "xno" ; then
5267             saved_LIBS="$LIBS"
5268             saved_LDFLAGS="$LDFLAGS"
5269             saved_CPPFLAGS="$CPPFLAGS"
5270             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
5271                 if test -d "${with_tcpw}/lib"; then
5272                     if test -n "${need_dash_r}"; then
5273                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
5274                     else
5275                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
5276                     fi
5277                 else
5278                     if test -n "${need_dash_r}"; then
5279                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
5280                     else
5281                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
5282                     fi
5283                 fi
5284                 if test -d "${with_tcpw}/include"; then
5285                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
5286                 else
5287                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
5288                 fi
5289             fi
5290             LIBWRAP="-lwrap"
5291             LIBS="$LIBWRAP $LIBS"
5292             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
5293 $as_echo_n "checking for libwrap... " >&6; }
5294             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h.  */
5296
5297                 #include <tcpd.h>
5298                 int deny_severity = 0, allow_severity = 0;
5299
5300 int
5301 main ()
5302 {
5303 hosts_access(0);
5304   ;
5305   return 0;
5306 }
5307 _ACEOF
5308 if ac_fn_c_try_link "$LINENO"; then :
5309
5310                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5311 $as_echo "yes" >&6; }
5312
5313
5314 $as_echo "#define LIBWRAP 1" >>confdefs.h
5315
5316
5317 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
5318
5319
5320 $as_echo "#define HAVE_TCP_WRAPPER 1" >>confdefs.h
5321
5322                 TCPW_MSG="yes"
5323
5324 else
5325
5326                 as_fn_error $? "*** libwrap missing" "$LINENO" 5
5327
5328
5329 fi
5330 rm -f core conftest.err conftest.$ac_objext \
5331     conftest$ac_exeext conftest.$ac_ext
5332             LIBS="$saved_LIBS"
5333         fi
5334
5335
5336
5337
5338
5339 # Arrange for large-file support
5340 # Check whether --enable-largefile was given.
5341 if test "${enable_largefile+set}" = set; then :
5342   enableval=$enable_largefile;
5343 fi
5344
5345 if test "$enable_largefile" != no; then
5346
5347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5348 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5349 if ${ac_cv_sys_largefile_CC+:} false; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   ac_cv_sys_largefile_CC=no
5353      if test "$GCC" != yes; then
5354        ac_save_CC=$CC
5355        while :; do
5356          # IRIX 6.2 and later do not support large files by default,
5357          # so use the C compiler's -n32 option if that helps.
5358          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h.  */
5360 #include <sys/types.h>
5361  /* Check that off_t can represent 2**63 - 1 correctly.
5362     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5363     since some C++ compilers masquerading as C compilers
5364     incorrectly reject 9223372036854775807.  */
5365 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5366   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5367                        && LARGE_OFF_T % 2147483647 == 1)
5368                       ? 1 : -1];
5369 int
5370 main ()
5371 {
5372
5373   ;
5374   return 0;
5375 }
5376 _ACEOF
5377          if ac_fn_c_try_compile "$LINENO"; then :
5378   break
5379 fi
5380 rm -f core conftest.err conftest.$ac_objext
5381          CC="$CC -n32"
5382          if ac_fn_c_try_compile "$LINENO"; then :
5383   ac_cv_sys_largefile_CC=' -n32'; break
5384 fi
5385 rm -f core conftest.err conftest.$ac_objext
5386          break
5387        done
5388        CC=$ac_save_CC
5389        rm -f conftest.$ac_ext
5390     fi
5391 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5393 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5394   if test "$ac_cv_sys_largefile_CC" != no; then
5395     CC=$CC$ac_cv_sys_largefile_CC
5396   fi
5397
5398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5399 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5400 if ${ac_cv_sys_file_offset_bits+:} false; then :
5401   $as_echo_n "(cached) " >&6
5402 else
5403   while :; do
5404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h.  */
5406 #include <sys/types.h>
5407  /* Check that off_t can represent 2**63 - 1 correctly.
5408     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5409     since some C++ compilers masquerading as C compilers
5410     incorrectly reject 9223372036854775807.  */
5411 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5412   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5413                        && LARGE_OFF_T % 2147483647 == 1)
5414                       ? 1 : -1];
5415 int
5416 main ()
5417 {
5418
5419   ;
5420   return 0;
5421 }
5422 _ACEOF
5423 if ac_fn_c_try_compile "$LINENO"; then :
5424   ac_cv_sys_file_offset_bits=no; break
5425 fi
5426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h.  */
5429 #define _FILE_OFFSET_BITS 64
5430 #include <sys/types.h>
5431  /* Check that off_t can represent 2**63 - 1 correctly.
5432     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5433     since some C++ compilers masquerading as C compilers
5434     incorrectly reject 9223372036854775807.  */
5435 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5436   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5437                        && LARGE_OFF_T % 2147483647 == 1)
5438                       ? 1 : -1];
5439 int
5440 main ()
5441 {
5442
5443   ;
5444   return 0;
5445 }
5446 _ACEOF
5447 if ac_fn_c_try_compile "$LINENO"; then :
5448   ac_cv_sys_file_offset_bits=64; break
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451   ac_cv_sys_file_offset_bits=unknown
5452   break
5453 done
5454 fi
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5456 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5457 case $ac_cv_sys_file_offset_bits in #(
5458   no | unknown) ;;
5459   *)
5460 cat >>confdefs.h <<_ACEOF
5461 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5462 _ACEOF
5463 ;;
5464 esac
5465 rm -rf conftest*
5466   if test $ac_cv_sys_file_offset_bits = unknown; then
5467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5468 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5469 if ${ac_cv_sys_large_files+:} false; then :
5470   $as_echo_n "(cached) " >&6
5471 else
5472   while :; do
5473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h.  */
5475 #include <sys/types.h>
5476  /* Check that off_t can represent 2**63 - 1 correctly.
5477     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5478     since some C++ compilers masquerading as C compilers
5479     incorrectly reject 9223372036854775807.  */
5480 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5481   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5482                        && LARGE_OFF_T % 2147483647 == 1)
5483                       ? 1 : -1];
5484 int
5485 main ()
5486 {
5487
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 if ac_fn_c_try_compile "$LINENO"; then :
5493   ac_cv_sys_large_files=no; break
5494 fi
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h.  */
5498 #define _LARGE_FILES 1
5499 #include <sys/types.h>
5500  /* Check that off_t can represent 2**63 - 1 correctly.
5501     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5502     since some C++ compilers masquerading as C compilers
5503     incorrectly reject 9223372036854775807.  */
5504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5505   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5506                        && LARGE_OFF_T % 2147483647 == 1)
5507                       ? 1 : -1];
5508 int
5509 main ()
5510 {
5511
5512   ;
5513   return 0;
5514 }
5515 _ACEOF
5516 if ac_fn_c_try_compile "$LINENO"; then :
5517   ac_cv_sys_large_files=1; break
5518 fi
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520   ac_cv_sys_large_files=unknown
5521   break
5522 done
5523 fi
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5525 $as_echo "$ac_cv_sys_large_files" >&6; }
5526 case $ac_cv_sys_large_files in #(
5527   no | unknown) ;;
5528   *)
5529 cat >>confdefs.h <<_ACEOF
5530 #define _LARGE_FILES $ac_cv_sys_large_files
5531 _ACEOF
5532 ;;
5533 esac
5534 rm -rf conftest*
5535   fi
5536
5537
5538 fi
5539
5540
5541
5542 ac_config_headers="$ac_config_headers support/include/config.h"
5543
5544
5545 # Checks for programs.
5546 ac_ext=cpp
5547 ac_cpp='$CXXCPP $CPPFLAGS'
5548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5551 if test -z "$CXX"; then
5552   if test -n "$CCC"; then
5553     CXX=$CCC
5554   else
5555     if test -n "$ac_tool_prefix"; then
5556   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5557   do
5558     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_CXX+:} false; then :
5563   $as_echo_n "(cached) " >&6
5564 else
5565   if test -n "$CXX"; then
5566   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571   IFS=$as_save_IFS
5572   test -z "$as_dir" && as_dir=.
5573     for ac_exec_ext in '' $ac_executable_extensions; do
5574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577     break 2
5578   fi
5579 done
5580   done
5581 IFS=$as_save_IFS
5582
5583 fi
5584 fi
5585 CXX=$ac_cv_prog_CXX
5586 if test -n "$CXX"; then
5587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5588 $as_echo "$CXX" >&6; }
5589 else
5590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5592 fi
5593
5594
5595     test -n "$CXX" && break
5596   done
5597 fi
5598 if test -z "$CXX"; then
5599   ac_ct_CXX=$CXX
5600   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5601 do
5602   # Extract the first word of "$ac_prog", so it can be a program name with args.
5603 set dummy $ac_prog; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5607   $as_echo_n "(cached) " >&6
5608 else
5609   if test -n "$ac_ct_CXX"; then
5610   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615   IFS=$as_save_IFS
5616   test -z "$as_dir" && as_dir=.
5617     for ac_exec_ext in '' $ac_executable_extensions; do
5618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619     ac_cv_prog_ac_ct_CXX="$ac_prog"
5620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621     break 2
5622   fi
5623 done
5624   done
5625 IFS=$as_save_IFS
5626
5627 fi
5628 fi
5629 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5630 if test -n "$ac_ct_CXX"; then
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5632 $as_echo "$ac_ct_CXX" >&6; }
5633 else
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5636 fi
5637
5638
5639   test -n "$ac_ct_CXX" && break
5640 done
5641
5642   if test "x$ac_ct_CXX" = x; then
5643     CXX="g++"
5644   else
5645     case $cross_compiling:$ac_tool_warned in
5646 yes:)
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5649 ac_tool_warned=yes ;;
5650 esac
5651     CXX=$ac_ct_CXX
5652   fi
5653 fi
5654
5655   fi
5656 fi
5657 # Provide some information about the compiler.
5658 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5659 set X $ac_compile
5660 ac_compiler=$2
5661 for ac_option in --version -v -V -qversion; do
5662   { { ac_try="$ac_compiler $ac_option >&5"
5663 case "(($ac_try" in
5664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665   *) ac_try_echo=$ac_try;;
5666 esac
5667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5668 $as_echo "$ac_try_echo"; } >&5
5669   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5670   ac_status=$?
5671   if test -s conftest.err; then
5672     sed '10a\
5673 ... rest of stderr output deleted ...
5674          10q' conftest.err >conftest.er1
5675     cat conftest.er1 >&5
5676   fi
5677   rm -f conftest.er1 conftest.err
5678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679   test $ac_status = 0; }
5680 done
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5683 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5684 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5685   $as_echo_n "(cached) " >&6
5686 else
5687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h.  */
5689
5690 int
5691 main ()
5692 {
5693 #ifndef __GNUC__
5694        choke me
5695 #endif
5696
5697   ;
5698   return 0;
5699 }
5700 _ACEOF
5701 if ac_fn_cxx_try_compile "$LINENO"; then :
5702   ac_compiler_gnu=yes
5703 else
5704   ac_compiler_gnu=no
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5708
5709 fi
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5711 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5712 if test $ac_compiler_gnu = yes; then
5713   GXX=yes
5714 else
5715   GXX=
5716 fi
5717 ac_test_CXXFLAGS=${CXXFLAGS+set}
5718 ac_save_CXXFLAGS=$CXXFLAGS
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5720 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5721 if ${ac_cv_prog_cxx_g+:} false; then :
5722   $as_echo_n "(cached) " >&6
5723 else
5724   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5725    ac_cxx_werror_flag=yes
5726    ac_cv_prog_cxx_g=no
5727    CXXFLAGS="-g"
5728    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h.  */
5730
5731 int
5732 main ()
5733 {
5734
5735   ;
5736   return 0;
5737 }
5738 _ACEOF
5739 if ac_fn_cxx_try_compile "$LINENO"; then :
5740   ac_cv_prog_cxx_g=yes
5741 else
5742   CXXFLAGS=""
5743       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h.  */
5745
5746 int
5747 main ()
5748 {
5749
5750   ;
5751   return 0;
5752 }
5753 _ACEOF
5754 if ac_fn_cxx_try_compile "$LINENO"; then :
5755
5756 else
5757   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5758          CXXFLAGS="-g"
5759          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h.  */
5761
5762 int
5763 main ()
5764 {
5765
5766   ;
5767   return 0;
5768 }
5769 _ACEOF
5770 if ac_fn_cxx_try_compile "$LINENO"; then :
5771   ac_cv_prog_cxx_g=yes
5772 fi
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 fi
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5779 fi
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5781 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5782 if test "$ac_test_CXXFLAGS" = set; then
5783   CXXFLAGS=$ac_save_CXXFLAGS
5784 elif test $ac_cv_prog_cxx_g = yes; then
5785   if test "$GXX" = yes; then
5786     CXXFLAGS="-g -O2"
5787   else
5788     CXXFLAGS="-g"
5789   fi
5790 else
5791   if test "$GXX" = yes; then
5792     CXXFLAGS="-O2"
5793   else
5794     CXXFLAGS=
5795   fi
5796 fi
5797 ac_ext=c
5798 ac_cpp='$CPP $CPPFLAGS'
5799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5802
5803 depcc="$CXX"  am_compiler_list=
5804
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5806 $as_echo_n "checking dependency style of $depcc... " >&6; }
5807 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5808   $as_echo_n "(cached) " >&6
5809 else
5810   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5811   # We make a subdir and do the tests there.  Otherwise we can end up
5812   # making bogus files that we don't know about and never remove.  For
5813   # instance it was reported that on HP-UX the gcc test will end up
5814   # making a dummy file named 'D' -- because '-MD' means "put the output
5815   # in D".
5816   rm -rf conftest.dir
5817   mkdir conftest.dir
5818   # Copy depcomp to subdir because otherwise we won't find it if we're
5819   # using a relative directory.
5820   cp "$am_depcomp" conftest.dir
5821   cd conftest.dir
5822   # We will build objects and dependencies in a subdirectory because
5823   # it helps to detect inapplicable dependency modes.  For instance
5824   # both Tru64's cc and ICC support -MD to output dependencies as a
5825   # side effect of compilation, but ICC will put the dependencies in
5826   # the current directory while Tru64 will put them in the object
5827   # directory.
5828   mkdir sub
5829
5830   am_cv_CXX_dependencies_compiler_type=none
5831   if test "$am_compiler_list" = ""; then
5832      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5833   fi
5834   am__universal=false
5835   case " $depcc " in #(
5836      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5837      esac
5838
5839   for depmode in $am_compiler_list; do
5840     # Setup a source with many dependencies, because some compilers
5841     # like to wrap large dependency lists on column 80 (with \), and
5842     # we should not choose a depcomp mode which is confused by this.
5843     #
5844     # We need to recreate these files for each test, as the compiler may
5845     # overwrite some of them when testing with obscure command lines.
5846     # This happens at least with the AIX C compiler.
5847     : > sub/conftest.c
5848     for i in 1 2 3 4 5 6; do
5849       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5850       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5851       # Solaris 10 /bin/sh.
5852       echo '/* dummy */' > sub/conftst$i.h
5853     done
5854     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5855
5856     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5857     # mode.  It turns out that the SunPro C++ compiler does not properly
5858     # handle '-M -o', and we need to detect this.  Also, some Intel
5859     # versions had trouble with output in subdirs.
5860     am__obj=sub/conftest.${OBJEXT-o}
5861     am__minus_obj="-o $am__obj"
5862     case $depmode in
5863     gcc)
5864       # This depmode causes a compiler race in universal mode.
5865       test "$am__universal" = false || continue
5866       ;;
5867     nosideeffect)
5868       # After this tag, mechanisms are not by side-effect, so they'll
5869       # only be used when explicitly requested.
5870       if test "x$enable_dependency_tracking" = xyes; then
5871         continue
5872       else
5873         break
5874       fi
5875       ;;
5876     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5877       # This compiler won't grok '-c -o', but also, the minuso test has
5878       # not run yet.  These depmodes are late enough in the game, and
5879       # so weak that their functioning should not be impacted.
5880       am__obj=conftest.${OBJEXT-o}
5881       am__minus_obj=
5882       ;;
5883     none) break ;;
5884     esac
5885     if depmode=$depmode \
5886        source=sub/conftest.c object=$am__obj \
5887        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5888        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5889          >/dev/null 2>conftest.err &&
5890        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5891        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5892        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5893        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5894       # icc doesn't choke on unknown options, it will just issue warnings
5895       # or remarks (even with -Werror).  So we grep stderr for any message
5896       # that says an option was ignored or not supported.
5897       # When given -MP, icc 7.0 and 7.1 complain thusly:
5898       #   icc: Command line warning: ignoring option '-M'; no argument required
5899       # The diagnosis changed in icc 8.0:
5900       #   icc: Command line remark: option '-MP' not supported
5901       if (grep 'ignoring option' conftest.err ||
5902           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5903         am_cv_CXX_dependencies_compiler_type=$depmode
5904         break
5905       fi
5906     fi
5907   done
5908
5909   cd ..
5910   rm -rf conftest.dir
5911 else
5912   am_cv_CXX_dependencies_compiler_type=none
5913 fi
5914
5915 fi
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5917 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5918 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5919
5920  if
5921   test "x$enable_dependency_tracking" != xno \
5922   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5923   am__fastdepCXX_TRUE=
5924   am__fastdepCXX_FALSE='#'
5925 else
5926   am__fastdepCXX_TRUE='#'
5927   am__fastdepCXX_FALSE=
5928 fi
5929
5930
5931 ac_ext=c
5932 ac_cpp='$CPP $CPPFLAGS'
5933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5936 if test -n "$ac_tool_prefix"; then
5937   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5938 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_CC+:} false; then :
5942   $as_echo_n "(cached) " >&6
5943 else
5944   if test -n "$CC"; then
5945   ac_cv_prog_CC="$CC" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950   IFS=$as_save_IFS
5951   test -z "$as_dir" && as_dir=.
5952     for ac_exec_ext in '' $ac_executable_extensions; do
5953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956     break 2
5957   fi
5958 done
5959   done
5960 IFS=$as_save_IFS
5961
5962 fi
5963 fi
5964 CC=$ac_cv_prog_CC
5965 if test -n "$CC"; then
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5967 $as_echo "$CC" >&6; }
5968 else
5969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5971 fi
5972
5973
5974 fi
5975 if test -z "$ac_cv_prog_CC"; then
5976   ac_ct_CC=$CC
5977   # Extract the first word of "gcc", so it can be a program name with args.
5978 set dummy gcc; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5982   $as_echo_n "(cached) " >&6
5983 else
5984   if test -n "$ac_ct_CC"; then
5985   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990   IFS=$as_save_IFS
5991   test -z "$as_dir" && as_dir=.
5992     for ac_exec_ext in '' $ac_executable_extensions; do
5993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994     ac_cv_prog_ac_ct_CC="gcc"
5995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996     break 2
5997   fi
5998 done
5999   done
6000 IFS=$as_save_IFS
6001
6002 fi
6003 fi
6004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6005 if test -n "$ac_ct_CC"; then
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6007 $as_echo "$ac_ct_CC" >&6; }
6008 else
6009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6011 fi
6012
6013   if test "x$ac_ct_CC" = x; then
6014     CC=""
6015   else
6016     case $cross_compiling:$ac_tool_warned in
6017 yes:)
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6020 ac_tool_warned=yes ;;
6021 esac
6022     CC=$ac_ct_CC
6023   fi
6024 else
6025   CC="$ac_cv_prog_CC"
6026 fi
6027
6028 if test -z "$CC"; then
6029           if test -n "$ac_tool_prefix"; then
6030     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6031 set dummy ${ac_tool_prefix}cc; ac_word=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if ${ac_cv_prog_CC+:} false; then :
6035   $as_echo_n "(cached) " >&6
6036 else
6037   if test -n "$CC"; then
6038   ac_cv_prog_CC="$CC" # Let the user override the test.
6039 else
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $PATH
6042 do
6043   IFS=$as_save_IFS
6044   test -z "$as_dir" && as_dir=.
6045     for ac_exec_ext in '' $ac_executable_extensions; do
6046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6047     ac_cv_prog_CC="${ac_tool_prefix}cc"
6048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049     break 2
6050   fi
6051 done
6052   done
6053 IFS=$as_save_IFS
6054
6055 fi
6056 fi
6057 CC=$ac_cv_prog_CC
6058 if test -n "$CC"; then
6059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6060 $as_echo "$CC" >&6; }
6061 else
6062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6064 fi
6065
6066
6067   fi
6068 fi
6069 if test -z "$CC"; then
6070   # Extract the first word of "cc", so it can be a program name with args.
6071 set dummy cc; ac_word=$2
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073 $as_echo_n "checking for $ac_word... " >&6; }
6074 if ${ac_cv_prog_CC+:} false; then :
6075   $as_echo_n "(cached) " >&6
6076 else
6077   if test -n "$CC"; then
6078   ac_cv_prog_CC="$CC" # Let the user override the test.
6079 else
6080   ac_prog_rejected=no
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084   IFS=$as_save_IFS
6085   test -z "$as_dir" && as_dir=.
6086     for ac_exec_ext in '' $ac_executable_extensions; do
6087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6089        ac_prog_rejected=yes
6090        continue
6091      fi
6092     ac_cv_prog_CC="cc"
6093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094     break 2
6095   fi
6096 done
6097   done
6098 IFS=$as_save_IFS
6099
6100 if test $ac_prog_rejected = yes; then
6101   # We found a bogon in the path, so make sure we never use it.
6102   set dummy $ac_cv_prog_CC
6103   shift
6104   if test $# != 0; then
6105     # We chose a different compiler from the bogus one.
6106     # However, it has the same basename, so the bogon will be chosen
6107     # first if we set CC to just the basename; use the full file name.
6108     shift
6109     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6110   fi
6111 fi
6112 fi
6113 fi
6114 CC=$ac_cv_prog_CC
6115 if test -n "$CC"; then
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6117 $as_echo "$CC" >&6; }
6118 else
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 fi
6122
6123
6124 fi
6125 if test -z "$CC"; then
6126   if test -n "$ac_tool_prefix"; then
6127   for ac_prog in cl.exe
6128   do
6129     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if ${ac_cv_prog_CC+:} false; then :
6134   $as_echo_n "(cached) " >&6
6135 else
6136   if test -n "$CC"; then
6137   ac_cv_prog_CC="$CC" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142   IFS=$as_save_IFS
6143   test -z "$as_dir" && as_dir=.
6144     for ac_exec_ext in '' $ac_executable_extensions; do
6145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6148     break 2
6149   fi
6150 done
6151   done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 CC=$ac_cv_prog_CC
6157 if test -n "$CC"; then
6158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6159 $as_echo "$CC" >&6; }
6160 else
6161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6163 fi
6164
6165
6166     test -n "$CC" && break
6167   done
6168 fi
6169 if test -z "$CC"; then
6170   ac_ct_CC=$CC
6171   for ac_prog in cl.exe
6172 do
6173   # Extract the first word of "$ac_prog", so it can be a program name with args.
6174 set dummy $ac_prog; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   if test -n "$ac_ct_CC"; then
6181   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186   IFS=$as_save_IFS
6187   test -z "$as_dir" && as_dir=.
6188     for ac_exec_ext in '' $ac_executable_extensions; do
6189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190     ac_cv_prog_ac_ct_CC="$ac_prog"
6191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192     break 2
6193   fi
6194 done
6195   done
6196 IFS=$as_save_IFS
6197
6198 fi
6199 fi
6200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6201 if test -n "$ac_ct_CC"; then
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6203 $as_echo "$ac_ct_CC" >&6; }
6204 else
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6207 fi
6208
6209
6210   test -n "$ac_ct_CC" && break
6211 done
6212
6213   if test "x$ac_ct_CC" = x; then
6214     CC=""
6215   else
6216     case $cross_compiling:$ac_tool_warned in
6217 yes:)
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6220 ac_tool_warned=yes ;;
6221 esac
6222     CC=$ac_ct_CC
6223   fi
6224 fi
6225
6226 fi
6227
6228
6229 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6231 as_fn_error $? "no acceptable C compiler found in \$PATH
6232 See \`config.log' for more details" "$LINENO" 5; }
6233
6234 # Provide some information about the compiler.
6235 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6236 set X $ac_compile
6237 ac_compiler=$2
6238 for ac_option in --version -v -V -qversion; do
6239   { { ac_try="$ac_compiler $ac_option >&5"
6240 case "(($ac_try" in
6241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242   *) ac_try_echo=$ac_try;;
6243 esac
6244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6245 $as_echo "$ac_try_echo"; } >&5
6246   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6247   ac_status=$?
6248   if test -s conftest.err; then
6249     sed '10a\
6250 ... rest of stderr output deleted ...
6251          10q' conftest.err >conftest.er1
6252     cat conftest.er1 >&5
6253   fi
6254   rm -f conftest.er1 conftest.err
6255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256   test $ac_status = 0; }
6257 done
6258
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6260 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6261 if ${ac_cv_c_compiler_gnu+:} false; then :
6262   $as_echo_n "(cached) " >&6
6263 else
6264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h.  */
6266
6267 int
6268 main ()
6269 {
6270 #ifndef __GNUC__
6271        choke me
6272 #endif
6273
6274   ;
6275   return 0;
6276 }
6277 _ACEOF
6278 if ac_fn_c_try_compile "$LINENO"; then :
6279   ac_compiler_gnu=yes
6280 else
6281   ac_compiler_gnu=no
6282 fi
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6285
6286 fi
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6288 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6289 if test $ac_compiler_gnu = yes; then
6290   GCC=yes
6291 else
6292   GCC=
6293 fi
6294 ac_test_CFLAGS=${CFLAGS+set}
6295 ac_save_CFLAGS=$CFLAGS
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6297 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6298 if ${ac_cv_prog_cc_g+:} false; then :
6299   $as_echo_n "(cached) " >&6
6300 else
6301   ac_save_c_werror_flag=$ac_c_werror_flag
6302    ac_c_werror_flag=yes
6303    ac_cv_prog_cc_g=no
6304    CFLAGS="-g"
6305    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h.  */
6307
6308 int
6309 main ()
6310 {
6311
6312   ;
6313   return 0;
6314 }
6315 _ACEOF
6316 if ac_fn_c_try_compile "$LINENO"; then :
6317   ac_cv_prog_cc_g=yes
6318 else
6319   CFLAGS=""
6320       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h.  */
6322
6323 int
6324 main ()
6325 {
6326
6327   ;
6328   return 0;
6329 }
6330 _ACEOF
6331 if ac_fn_c_try_compile "$LINENO"; then :
6332
6333 else
6334   ac_c_werror_flag=$ac_save_c_werror_flag
6335          CFLAGS="-g"
6336          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h.  */
6338
6339 int
6340 main ()
6341 {
6342
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 if ac_fn_c_try_compile "$LINENO"; then :
6348   ac_cv_prog_cc_g=yes
6349 fi
6350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6351 fi
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355    ac_c_werror_flag=$ac_save_c_werror_flag
6356 fi
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6358 $as_echo "$ac_cv_prog_cc_g" >&6; }
6359 if test "$ac_test_CFLAGS" = set; then
6360   CFLAGS=$ac_save_CFLAGS
6361 elif test $ac_cv_prog_cc_g = yes; then
6362   if test "$GCC" = yes; then
6363     CFLAGS="-g -O2"
6364   else
6365     CFLAGS="-g"
6366   fi
6367 else
6368   if test "$GCC" = yes; then
6369     CFLAGS="-O2"
6370   else
6371     CFLAGS=
6372   fi
6373 fi
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6375 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6376 if ${ac_cv_prog_cc_c89+:} false; then :
6377   $as_echo_n "(cached) " >&6
6378 else
6379   ac_cv_prog_cc_c89=no
6380 ac_save_CC=$CC
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h.  */
6383 #include <stdarg.h>
6384 #include <stdio.h>
6385 struct stat;
6386 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6387 struct buf { int x; };
6388 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6389 static char *e (p, i)
6390      char **p;
6391      int i;
6392 {
6393   return p[i];
6394 }
6395 static char *f (char * (*g) (char **, int), char **p, ...)
6396 {
6397   char *s;
6398   va_list v;
6399   va_start (v,p);
6400   s = g (p, va_arg (v,int));
6401   va_end (v);
6402   return s;
6403 }
6404
6405 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6406    function prototypes and stuff, but not '\xHH' hex character constants.
6407    These don't provoke an error unfortunately, instead are silently treated
6408    as 'x'.  The following induces an error, until -std is added to get
6409    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6410    array size at least.  It's necessary to write '\x00'==0 to get something
6411    that's true only with -std.  */
6412 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6413
6414 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6415    inside strings and character constants.  */
6416 #define FOO(x) 'x'
6417 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6418
6419 int test (int i, double x);
6420 struct s1 {int (*f) (int a);};
6421 struct s2 {int (*f) (double a);};
6422 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6423 int argc;
6424 char **argv;
6425 int
6426 main ()
6427 {
6428 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6429   ;
6430   return 0;
6431 }
6432 _ACEOF
6433 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6434         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6435 do
6436   CC="$ac_save_CC $ac_arg"
6437   if ac_fn_c_try_compile "$LINENO"; then :
6438   ac_cv_prog_cc_c89=$ac_arg
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext
6441   test "x$ac_cv_prog_cc_c89" != "xno" && break
6442 done
6443 rm -f conftest.$ac_ext
6444 CC=$ac_save_CC
6445
6446 fi
6447 # AC_CACHE_VAL
6448 case "x$ac_cv_prog_cc_c89" in
6449   x)
6450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6451 $as_echo "none needed" >&6; } ;;
6452   xno)
6453     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6454 $as_echo "unsupported" >&6; } ;;
6455   *)
6456     CC="$CC $ac_cv_prog_cc_c89"
6457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6458 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6459 esac
6460 if test "x$ac_cv_prog_cc_c89" != xno; then :
6461
6462 fi
6463
6464 ac_ext=c
6465 ac_cpp='$CPP $CPPFLAGS'
6466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6469
6470 depcc="$CC"   am_compiler_list=
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6473 $as_echo_n "checking dependency style of $depcc... " >&6; }
6474 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6475   $as_echo_n "(cached) " >&6
6476 else
6477   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6478   # We make a subdir and do the tests there.  Otherwise we can end up
6479   # making bogus files that we don't know about and never remove.  For
6480   # instance it was reported that on HP-UX the gcc test will end up
6481   # making a dummy file named 'D' -- because '-MD' means "put the output
6482   # in D".
6483   rm -rf conftest.dir
6484   mkdir conftest.dir
6485   # Copy depcomp to subdir because otherwise we won't find it if we're
6486   # using a relative directory.
6487   cp "$am_depcomp" conftest.dir
6488   cd conftest.dir
6489   # We will build objects and dependencies in a subdirectory because
6490   # it helps to detect inapplicable dependency modes.  For instance
6491   # both Tru64's cc and ICC support -MD to output dependencies as a
6492   # side effect of compilation, but ICC will put the dependencies in
6493   # the current directory while Tru64 will put them in the object
6494   # directory.
6495   mkdir sub
6496
6497   am_cv_CC_dependencies_compiler_type=none
6498   if test "$am_compiler_list" = ""; then
6499      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6500   fi
6501   am__universal=false
6502   case " $depcc " in #(
6503      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6504      esac
6505
6506   for depmode in $am_compiler_list; do
6507     # Setup a source with many dependencies, because some compilers
6508     # like to wrap large dependency lists on column 80 (with \), and
6509     # we should not choose a depcomp mode which is confused by this.
6510     #
6511     # We need to recreate these files for each test, as the compiler may
6512     # overwrite some of them when testing with obscure command lines.
6513     # This happens at least with the AIX C compiler.
6514     : > sub/conftest.c
6515     for i in 1 2 3 4 5 6; do
6516       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6517       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6518       # Solaris 10 /bin/sh.
6519       echo '/* dummy */' > sub/conftst$i.h
6520     done
6521     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6522
6523     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6524     # mode.  It turns out that the SunPro C++ compiler does not properly
6525     # handle '-M -o', and we need to detect this.  Also, some Intel
6526     # versions had trouble with output in subdirs.
6527     am__obj=sub/conftest.${OBJEXT-o}
6528     am__minus_obj="-o $am__obj"
6529     case $depmode in
6530     gcc)
6531       # This depmode causes a compiler race in universal mode.
6532       test "$am__universal" = false || continue
6533       ;;
6534     nosideeffect)
6535       # After this tag, mechanisms are not by side-effect, so they'll
6536       # only be used when explicitly requested.
6537       if test "x$enable_dependency_tracking" = xyes; then
6538         continue
6539       else
6540         break
6541       fi
6542       ;;
6543     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6544       # This compiler won't grok '-c -o', but also, the minuso test has
6545       # not run yet.  These depmodes are late enough in the game, and
6546       # so weak that their functioning should not be impacted.
6547       am__obj=conftest.${OBJEXT-o}
6548       am__minus_obj=
6549       ;;
6550     none) break ;;
6551     esac
6552     if depmode=$depmode \
6553        source=sub/conftest.c object=$am__obj \
6554        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6555        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6556          >/dev/null 2>conftest.err &&
6557        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6558        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6559        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6560        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6561       # icc doesn't choke on unknown options, it will just issue warnings
6562       # or remarks (even with -Werror).  So we grep stderr for any message
6563       # that says an option was ignored or not supported.
6564       # When given -MP, icc 7.0 and 7.1 complain thusly:
6565       #   icc: Command line warning: ignoring option '-M'; no argument required
6566       # The diagnosis changed in icc 8.0:
6567       #   icc: Command line remark: option '-MP' not supported
6568       if (grep 'ignoring option' conftest.err ||
6569           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6570         am_cv_CC_dependencies_compiler_type=$depmode
6571         break
6572       fi
6573     fi
6574   done
6575
6576   cd ..
6577   rm -rf conftest.dir
6578 else
6579   am_cv_CC_dependencies_compiler_type=none
6580 fi
6581
6582 fi
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6584 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6585 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6586
6587  if
6588   test "x$enable_dependency_tracking" != xno \
6589   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6590   am__fastdepCC_TRUE=
6591   am__fastdepCC_FALSE='#'
6592 else
6593   am__fastdepCC_TRUE='#'
6594   am__fastdepCC_FALSE=
6595 fi
6596
6597
6598 ac_ext=c
6599 ac_cpp='$CPP $CPPFLAGS'
6600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6604 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6605 # On Suns, sometimes $CPP names a directory.
6606 if test -n "$CPP" && test -d "$CPP"; then
6607   CPP=
6608 fi
6609 if test -z "$CPP"; then
6610   if ${ac_cv_prog_CPP+:} false; then :
6611   $as_echo_n "(cached) " >&6
6612 else
6613       # Double quotes because CPP needs to be expanded
6614     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6615     do
6616       ac_preproc_ok=false
6617 for ac_c_preproc_warn_flag in '' yes
6618 do
6619   # Use a header file that comes with gcc, so configuring glibc
6620   # with a fresh cross-compiler works.
6621   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6622   # <limits.h> exists even on freestanding compilers.
6623   # On the NeXT, cc -E runs the code through the compiler's parser,
6624   # not just through cpp. "Syntax error" is here to catch this case.
6625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h.  */
6627 #ifdef __STDC__
6628 # include <limits.h>
6629 #else
6630 # include <assert.h>
6631 #endif
6632                      Syntax error
6633 _ACEOF
6634 if ac_fn_c_try_cpp "$LINENO"; then :
6635
6636 else
6637   # Broken: fails on valid input.
6638 continue
6639 fi
6640 rm -f conftest.err conftest.i conftest.$ac_ext
6641
6642   # OK, works on sane cases.  Now check whether nonexistent headers
6643   # can be detected and how.
6644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h.  */
6646 #include <ac_nonexistent.h>
6647 _ACEOF
6648 if ac_fn_c_try_cpp "$LINENO"; then :
6649   # Broken: success on invalid input.
6650 continue
6651 else
6652   # Passes both tests.
6653 ac_preproc_ok=:
6654 break
6655 fi
6656 rm -f conftest.err conftest.i conftest.$ac_ext
6657
6658 done
6659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6660 rm -f conftest.i conftest.err conftest.$ac_ext
6661 if $ac_preproc_ok; then :
6662   break
6663 fi
6664
6665     done
6666     ac_cv_prog_CPP=$CPP
6667
6668 fi
6669   CPP=$ac_cv_prog_CPP
6670 else
6671   ac_cv_prog_CPP=$CPP
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6674 $as_echo "$CPP" >&6; }
6675 ac_preproc_ok=false
6676 for ac_c_preproc_warn_flag in '' yes
6677 do
6678   # Use a header file that comes with gcc, so configuring glibc
6679   # with a fresh cross-compiler works.
6680   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6681   # <limits.h> exists even on freestanding compilers.
6682   # On the NeXT, cc -E runs the code through the compiler's parser,
6683   # not just through cpp. "Syntax error" is here to catch this case.
6684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h.  */
6686 #ifdef __STDC__
6687 # include <limits.h>
6688 #else
6689 # include <assert.h>
6690 #endif
6691                      Syntax error
6692 _ACEOF
6693 if ac_fn_c_try_cpp "$LINENO"; then :
6694
6695 else
6696   # Broken: fails on valid input.
6697 continue
6698 fi
6699 rm -f conftest.err conftest.i conftest.$ac_ext
6700
6701   # OK, works on sane cases.  Now check whether nonexistent headers
6702   # can be detected and how.
6703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h.  */
6705 #include <ac_nonexistent.h>
6706 _ACEOF
6707 if ac_fn_c_try_cpp "$LINENO"; then :
6708   # Broken: success on invalid input.
6709 continue
6710 else
6711   # Passes both tests.
6712 ac_preproc_ok=:
6713 break
6714 fi
6715 rm -f conftest.err conftest.i conftest.$ac_ext
6716
6717 done
6718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6719 rm -f conftest.i conftest.err conftest.$ac_ext
6720 if $ac_preproc_ok; then :
6721
6722 else
6723   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6725 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6726 See \`config.log' for more details" "$LINENO" 5; }
6727 fi
6728
6729 ac_ext=c
6730 ac_cpp='$CPP $CPPFLAGS'
6731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6734
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6737 $as_echo_n "checking whether ln -s works... " >&6; }
6738 LN_S=$as_ln_s
6739 if test "$LN_S" = "ln -s"; then
6740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6741 $as_echo "yes" >&6; }
6742 else
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6744 $as_echo "no, using $LN_S" >&6; }
6745 fi
6746
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6748 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6749 set x ${MAKE-make}
6750 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6751 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6752   $as_echo_n "(cached) " >&6
6753 else
6754   cat >conftest.make <<\_ACEOF
6755 SHELL = /bin/sh
6756 all:
6757         @echo '@@@%%%=$(MAKE)=@@@%%%'
6758 _ACEOF
6759 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6760 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6761   *@@@%%%=?*=@@@%%%*)
6762     eval ac_cv_prog_make_${ac_make}_set=yes;;
6763   *)
6764     eval ac_cv_prog_make_${ac_make}_set=no;;
6765 esac
6766 rm -f conftest.make
6767 fi
6768 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6770 $as_echo "yes" >&6; }
6771   SET_MAKE=
6772 else
6773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774 $as_echo "no" >&6; }
6775   SET_MAKE="MAKE=${MAKE-make}"
6776 fi
6777
6778 case `pwd` in
6779   *\ * | *\     *)
6780     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6781 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6782 esac
6783
6784
6785
6786 macro_version='2.4.2'
6787 macro_revision='1.3337'
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801 ltmain="$ac_aux_dir/ltmain.sh"
6802
6803 # Backslashify metacharacters that are still active within
6804 # double-quoted strings.
6805 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6806
6807 # Same as above, but do not quote variable references.
6808 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6809
6810 # Sed substitution to delay expansion of an escaped shell variable in a
6811 # double_quote_subst'ed string.
6812 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6813
6814 # Sed substitution to delay expansion of an escaped single quote.
6815 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6816
6817 # Sed substitution to avoid accidental globbing in evaled expressions
6818 no_glob_subst='s/\*/\\\*/g'
6819
6820 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6821 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6822 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6823
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6825 $as_echo_n "checking how to print strings... " >&6; }
6826 # Test print first, because it will be a builtin if present.
6827 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6828    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6829   ECHO='print -r --'
6830 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6831   ECHO='printf %s\n'
6832 else
6833   # Use this function as a fallback that always works.
6834   func_fallback_echo ()
6835   {
6836     eval 'cat <<_LTECHO_EOF
6837 $1
6838 _LTECHO_EOF'
6839   }
6840   ECHO='func_fallback_echo'
6841 fi
6842
6843 # func_echo_all arg...
6844 # Invoke $ECHO with all args, space-separated.
6845 func_echo_all ()
6846 {
6847     $ECHO ""
6848 }
6849
6850 case "$ECHO" in
6851   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6852 $as_echo "printf" >&6; } ;;
6853   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6854 $as_echo "print -r" >&6; } ;;
6855   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6856 $as_echo "cat" >&6; } ;;
6857 esac
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6873 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6874 if ${ac_cv_path_SED+:} false; then :
6875   $as_echo_n "(cached) " >&6
6876 else
6877             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6878      for ac_i in 1 2 3 4 5 6 7; do
6879        ac_script="$ac_script$as_nl$ac_script"
6880      done
6881      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6882      { ac_script=; unset ac_script;}
6883      if test -z "$SED"; then
6884   ac_path_SED_found=false
6885   # Loop through the user's path and test for each of PROGNAME-LIST
6886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889   IFS=$as_save_IFS
6890   test -z "$as_dir" && as_dir=.
6891     for ac_prog in sed gsed; do
6892     for ac_exec_ext in '' $ac_executable_extensions; do
6893       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6894       as_fn_executable_p "$ac_path_SED" || continue
6895 # Check for GNU ac_path_SED and select it if it is found.
6896   # Check for GNU $ac_path_SED
6897 case `"$ac_path_SED" --version 2>&1` in
6898 *GNU*)
6899   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6900 *)
6901   ac_count=0
6902   $as_echo_n 0123456789 >"conftest.in"
6903   while :
6904   do
6905     cat "conftest.in" "conftest.in" >"conftest.tmp"
6906     mv "conftest.tmp" "conftest.in"
6907     cp "conftest.in" "conftest.nl"
6908     $as_echo '' >> "conftest.nl"
6909     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6910     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6911     as_fn_arith $ac_count + 1 && ac_count=$as_val
6912     if test $ac_count -gt ${ac_path_SED_max-0}; then
6913       # Best one so far, save it but keep looking for a better one
6914       ac_cv_path_SED="$ac_path_SED"
6915       ac_path_SED_max=$ac_count
6916     fi
6917     # 10*(2^10) chars as input seems more than enough
6918     test $ac_count -gt 10 && break
6919   done
6920   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6921 esac
6922
6923       $ac_path_SED_found && break 3
6924     done
6925   done
6926   done
6927 IFS=$as_save_IFS
6928   if test -z "$ac_cv_path_SED"; then
6929     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6930   fi
6931 else
6932   ac_cv_path_SED=$SED
6933 fi
6934
6935 fi
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6937 $as_echo "$ac_cv_path_SED" >&6; }
6938  SED="$ac_cv_path_SED"
6939   rm -f conftest.sed
6940
6941 test -z "$SED" && SED=sed
6942 Xsed="$SED -e 1s/^X//"
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6955 $as_echo_n "checking for fgrep... " >&6; }
6956 if ${ac_cv_path_FGREP+:} false; then :
6957   $as_echo_n "(cached) " >&6
6958 else
6959   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6960    then ac_cv_path_FGREP="$GREP -F"
6961    else
6962      if test -z "$FGREP"; then
6963   ac_path_FGREP_found=false
6964   # Loop through the user's path and test for each of PROGNAME-LIST
6965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6967 do
6968   IFS=$as_save_IFS
6969   test -z "$as_dir" && as_dir=.
6970     for ac_prog in fgrep; do
6971     for ac_exec_ext in '' $ac_executable_extensions; do
6972       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6973       as_fn_executable_p "$ac_path_FGREP" || continue
6974 # Check for GNU ac_path_FGREP and select it if it is found.
6975   # Check for GNU $ac_path_FGREP
6976 case `"$ac_path_FGREP" --version 2>&1` in
6977 *GNU*)
6978   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6979 *)
6980   ac_count=0
6981   $as_echo_n 0123456789 >"conftest.in"
6982   while :
6983   do
6984     cat "conftest.in" "conftest.in" >"conftest.tmp"
6985     mv "conftest.tmp" "conftest.in"
6986     cp "conftest.in" "conftest.nl"
6987     $as_echo 'FGREP' >> "conftest.nl"
6988     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6989     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6990     as_fn_arith $ac_count + 1 && ac_count=$as_val
6991     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6992       # Best one so far, save it but keep looking for a better one
6993       ac_cv_path_FGREP="$ac_path_FGREP"
6994       ac_path_FGREP_max=$ac_count
6995     fi
6996     # 10*(2^10) chars as input seems more than enough
6997     test $ac_count -gt 10 && break
6998   done
6999   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7000 esac
7001
7002       $ac_path_FGREP_found && break 3
7003     done
7004   done
7005   done
7006 IFS=$as_save_IFS
7007   if test -z "$ac_cv_path_FGREP"; then
7008     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7009   fi
7010 else
7011   ac_cv_path_FGREP=$FGREP
7012 fi
7013
7014    fi
7015 fi
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7017 $as_echo "$ac_cv_path_FGREP" >&6; }
7018  FGREP="$ac_cv_path_FGREP"
7019
7020
7021 test -z "$GREP" && GREP=grep
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041 # Check whether --with-gnu-ld was given.
7042 if test "${with_gnu_ld+set}" = set; then :
7043   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7044 else
7045   with_gnu_ld=no
7046 fi
7047
7048 ac_prog=ld
7049 if test "$GCC" = yes; then
7050   # Check if gcc -print-prog-name=ld gives a path.
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7052 $as_echo_n "checking for ld used by $CC... " >&6; }
7053   case $host in
7054   *-*-mingw*)
7055     # gcc leaves a trailing carriage return which upsets mingw
7056     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7057   *)
7058     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7059   esac
7060   case $ac_prog in
7061     # Accept absolute paths.
7062     [\\/]* | ?:[\\/]*)
7063       re_direlt='/[^/][^/]*/\.\./'
7064       # Canonicalize the pathname of ld
7065       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7066       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7067         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7068       done
7069       test -z "$LD" && LD="$ac_prog"
7070       ;;
7071   "")
7072     # If it fails, then pretend we aren't using GCC.
7073     ac_prog=ld
7074     ;;
7075   *)
7076     # If it is relative, then search for the first ld in PATH.
7077     with_gnu_ld=unknown
7078     ;;
7079   esac
7080 elif test "$with_gnu_ld" = yes; then
7081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7082 $as_echo_n "checking for GNU ld... " >&6; }
7083 else
7084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7085 $as_echo_n "checking for non-GNU ld... " >&6; }
7086 fi
7087 if ${lt_cv_path_LD+:} false; then :
7088   $as_echo_n "(cached) " >&6
7089 else
7090   if test -z "$LD"; then
7091   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7092   for ac_dir in $PATH; do
7093     IFS="$lt_save_ifs"
7094     test -z "$ac_dir" && ac_dir=.
7095     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7096       lt_cv_path_LD="$ac_dir/$ac_prog"
7097       # Check to see if the program is GNU ld.  I'd rather use --version,
7098       # but apparently some variants of GNU ld only accept -v.
7099       # Break only if it was the GNU/non-GNU ld that we prefer.
7100       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7101       *GNU* | *'with BFD'*)
7102         test "$with_gnu_ld" != no && break
7103         ;;
7104       *)
7105         test "$with_gnu_ld" != yes && break
7106         ;;
7107       esac
7108     fi
7109   done
7110   IFS="$lt_save_ifs"
7111 else
7112   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7113 fi
7114 fi
7115
7116 LD="$lt_cv_path_LD"
7117 if test -n "$LD"; then
7118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7119 $as_echo "$LD" >&6; }
7120 else
7121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7123 fi
7124 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7126 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7127 if ${lt_cv_prog_gnu_ld+:} false; then :
7128   $as_echo_n "(cached) " >&6
7129 else
7130   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7131 case `$LD -v 2>&1 </dev/null` in
7132 *GNU* | *'with BFD'*)
7133   lt_cv_prog_gnu_ld=yes
7134   ;;
7135 *)
7136   lt_cv_prog_gnu_ld=no
7137   ;;
7138 esac
7139 fi
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7141 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7142 with_gnu_ld=$lt_cv_prog_gnu_ld
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7153 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7154 if ${lt_cv_path_NM+:} false; then :
7155   $as_echo_n "(cached) " >&6
7156 else
7157   if test -n "$NM"; then
7158   # Let the user override the test.
7159   lt_cv_path_NM="$NM"
7160 else
7161   lt_nm_to_check="${ac_tool_prefix}nm"
7162   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7163     lt_nm_to_check="$lt_nm_to_check nm"
7164   fi
7165   for lt_tmp_nm in $lt_nm_to_check; do
7166     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7167     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7168       IFS="$lt_save_ifs"
7169       test -z "$ac_dir" && ac_dir=.
7170       tmp_nm="$ac_dir/$lt_tmp_nm"
7171       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7172         # Check to see if the nm accepts a BSD-compat flag.
7173         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7174         #   nm: unknown option "B" ignored
7175         # Tru64's nm complains that /dev/null is an invalid object file
7176         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7177         */dev/null* | *'Invalid file or object type'*)
7178           lt_cv_path_NM="$tmp_nm -B"
7179           break
7180           ;;
7181         *)
7182           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7183           */dev/null*)
7184             lt_cv_path_NM="$tmp_nm -p"
7185             break
7186             ;;
7187           *)
7188             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7189             continue # so that we can try to find one that supports BSD flags
7190             ;;
7191           esac
7192           ;;
7193         esac
7194       fi
7195     done
7196     IFS="$lt_save_ifs"
7197   done
7198   : ${lt_cv_path_NM=no}
7199 fi
7200 fi
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7202 $as_echo "$lt_cv_path_NM" >&6; }
7203 if test "$lt_cv_path_NM" != "no"; then
7204   NM="$lt_cv_path_NM"
7205 else
7206   # Didn't find any BSD compatible name lister, look for dumpbin.
7207   if test -n "$DUMPBIN"; then :
7208     # Let the user override the test.
7209   else
7210     if test -n "$ac_tool_prefix"; then
7211   for ac_prog in dumpbin "link -dump"
7212   do
7213     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_DUMPBIN+:} false; then :
7218   $as_echo_n "(cached) " >&6
7219 else
7220   if test -n "$DUMPBIN"; then
7221   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226   IFS=$as_save_IFS
7227   test -z "$as_dir" && as_dir=.
7228     for ac_exec_ext in '' $ac_executable_extensions; do
7229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232     break 2
7233   fi
7234 done
7235   done
7236 IFS=$as_save_IFS
7237
7238 fi
7239 fi
7240 DUMPBIN=$ac_cv_prog_DUMPBIN
7241 if test -n "$DUMPBIN"; then
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7243 $as_echo "$DUMPBIN" >&6; }
7244 else
7245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7247 fi
7248
7249
7250     test -n "$DUMPBIN" && break
7251   done
7252 fi
7253 if test -z "$DUMPBIN"; then
7254   ac_ct_DUMPBIN=$DUMPBIN
7255   for ac_prog in dumpbin "link -dump"
7256 do
7257   # Extract the first word of "$ac_prog", so it can be a program name with args.
7258 set dummy $ac_prog; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264   if test -n "$ac_ct_DUMPBIN"; then
7265   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270   IFS=$as_save_IFS
7271   test -z "$as_dir" && as_dir=.
7272     for ac_exec_ext in '' $ac_executable_extensions; do
7273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276     break 2
7277   fi
7278 done
7279   done
7280 IFS=$as_save_IFS
7281
7282 fi
7283 fi
7284 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7285 if test -n "$ac_ct_DUMPBIN"; then
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7287 $as_echo "$ac_ct_DUMPBIN" >&6; }
7288 else
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293
7294   test -n "$ac_ct_DUMPBIN" && break
7295 done
7296
7297   if test "x$ac_ct_DUMPBIN" = x; then
7298     DUMPBIN=":"
7299   else
7300     case $cross_compiling:$ac_tool_warned in
7301 yes:)
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7304 ac_tool_warned=yes ;;
7305 esac
7306     DUMPBIN=$ac_ct_DUMPBIN
7307   fi
7308 fi
7309
7310     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7311     *COFF*)
7312       DUMPBIN="$DUMPBIN -symbols"
7313       ;;
7314     *)
7315       DUMPBIN=:
7316       ;;
7317     esac
7318   fi
7319
7320   if test "$DUMPBIN" != ":"; then
7321     NM="$DUMPBIN"
7322   fi
7323 fi
7324 test -z "$NM" && NM=nm
7325
7326
7327
7328
7329
7330
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7332 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7333 if ${lt_cv_nm_interface+:} false; then :
7334   $as_echo_n "(cached) " >&6
7335 else
7336   lt_cv_nm_interface="BSD nm"
7337   echo "int some_variable = 0;" > conftest.$ac_ext
7338   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7339   (eval "$ac_compile" 2>conftest.err)
7340   cat conftest.err >&5
7341   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7342   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7343   cat conftest.err >&5
7344   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7345   cat conftest.out >&5
7346   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7347     lt_cv_nm_interface="MS dumpbin"
7348   fi
7349   rm -f conftest*
7350 fi
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7352 $as_echo "$lt_cv_nm_interface" >&6; }
7353
7354 # find the maximum length of command line arguments
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7356 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7357 if ${lt_cv_sys_max_cmd_len+:} false; then :
7358   $as_echo_n "(cached) " >&6
7359 else
7360     i=0
7361   teststring="ABCD"
7362
7363   case $build_os in
7364   msdosdjgpp*)
7365     # On DJGPP, this test can blow up pretty badly due to problems in libc
7366     # (any single argument exceeding 2000 bytes causes a buffer overrun
7367     # during glob expansion).  Even if it were fixed, the result of this
7368     # check would be larger than it should be.
7369     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7370     ;;
7371
7372   gnu*)
7373     # Under GNU Hurd, this test is not required because there is
7374     # no limit to the length of command line arguments.
7375     # Libtool will interpret -1 as no limit whatsoever
7376     lt_cv_sys_max_cmd_len=-1;
7377     ;;
7378
7379   cygwin* | mingw* | cegcc*)
7380     # On Win9x/ME, this test blows up -- it succeeds, but takes
7381     # about 5 minutes as the teststring grows exponentially.
7382     # Worse, since 9x/ME are not pre-emptively multitasking,
7383     # you end up with a "frozen" computer, even though with patience
7384     # the test eventually succeeds (with a max line length of 256k).
7385     # Instead, let's just punt: use the minimum linelength reported by
7386     # all of the supported platforms: 8192 (on NT/2K/XP).
7387     lt_cv_sys_max_cmd_len=8192;
7388     ;;
7389
7390   mint*)
7391     # On MiNT this can take a long time and run out of memory.
7392     lt_cv_sys_max_cmd_len=8192;
7393     ;;
7394
7395   amigaos*)
7396     # On AmigaOS with pdksh, this test takes hours, literally.
7397     # So we just punt and use a minimum line length of 8192.
7398     lt_cv_sys_max_cmd_len=8192;
7399     ;;
7400
7401   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7402     # This has been around since 386BSD, at least.  Likely further.
7403     if test -x /sbin/sysctl; then
7404       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7405     elif test -x /usr/sbin/sysctl; then
7406       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7407     else
7408       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7409     fi
7410     # And add a safety zone
7411     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7412     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7413     ;;
7414
7415   interix*)
7416     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7417     lt_cv_sys_max_cmd_len=196608
7418     ;;
7419
7420   os2*)
7421     # The test takes a long time on OS/2.
7422     lt_cv_sys_max_cmd_len=8192
7423     ;;
7424
7425   osf*)
7426     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7427     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7428     # nice to cause kernel panics so lets avoid the loop below.
7429     # First set a reasonable default.
7430     lt_cv_sys_max_cmd_len=16384
7431     #
7432     if test -x /sbin/sysconfig; then
7433       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7434         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7435       esac
7436     fi
7437     ;;
7438   sco3.2v5*)
7439     lt_cv_sys_max_cmd_len=102400
7440     ;;
7441   sysv5* | sco5v6* | sysv4.2uw2*)
7442     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7443     if test -n "$kargmax"; then
7444       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7445     else
7446       lt_cv_sys_max_cmd_len=32768
7447     fi
7448     ;;
7449   *)
7450     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7451     if test -n "$lt_cv_sys_max_cmd_len"; then
7452       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7453       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7454     else
7455       # Make teststring a little bigger before we do anything with it.
7456       # a 1K string should be a reasonable start.
7457       for i in 1 2 3 4 5 6 7 8 ; do
7458         teststring=$teststring$teststring
7459       done
7460       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7461       # If test is not a shell built-in, we'll probably end up computing a
7462       # maximum length that is only half of the actual maximum length, but
7463       # we can't tell.
7464       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7465                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7466               test $i != 17 # 1/2 MB should be enough
7467       do
7468         i=`expr $i + 1`
7469         teststring=$teststring$teststring
7470       done
7471       # Only check the string length outside the loop.
7472       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7473       teststring=
7474       # Add a significant safety factor because C++ compilers can tack on
7475       # massive amounts of additional arguments before passing them to the
7476       # linker.  It appears as though 1/2 is a usable value.
7477       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7478     fi
7479     ;;
7480   esac
7481
7482 fi
7483
7484 if test -n $lt_cv_sys_max_cmd_len ; then
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7486 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7487 else
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7489 $as_echo "none" >&6; }
7490 fi
7491 max_cmd_len=$lt_cv_sys_max_cmd_len
7492
7493
7494
7495
7496
7497
7498 : ${CP="cp -f"}
7499 : ${MV="mv -f"}
7500 : ${RM="rm -f"}
7501
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7503 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7504 # Try some XSI features
7505 xsi_shell=no
7506 ( _lt_dummy="a/b/c"
7507   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7508       = c,a/b,b/c, \
7509     && eval 'test $(( 1 + 1 )) -eq 2 \
7510     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7511   && xsi_shell=yes
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7513 $as_echo "$xsi_shell" >&6; }
7514
7515
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7517 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7518 lt_shell_append=no
7519 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7520     >/dev/null 2>&1 \
7521   && lt_shell_append=yes
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7523 $as_echo "$lt_shell_append" >&6; }
7524
7525
7526 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7527   lt_unset=unset
7528 else
7529   lt_unset=false
7530 fi
7531
7532
7533
7534
7535
7536 # test EBCDIC or ASCII
7537 case `echo X|tr X '\101'` in
7538  A) # ASCII based system
7539     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7540   lt_SP2NL='tr \040 \012'
7541   lt_NL2SP='tr \015\012 \040\040'
7542   ;;
7543  *) # EBCDIC based system
7544   lt_SP2NL='tr \100 \n'
7545   lt_NL2SP='tr \r\n \100\100'
7546   ;;
7547 esac
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7558 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7559 if ${lt_cv_to_host_file_cmd+:} false; then :
7560   $as_echo_n "(cached) " >&6
7561 else
7562   case $host in
7563   *-*-mingw* )
7564     case $build in
7565       *-*-mingw* ) # actually msys
7566         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7567         ;;
7568       *-*-cygwin* )
7569         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7570         ;;
7571       * ) # otherwise, assume *nix
7572         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7573         ;;
7574     esac
7575     ;;
7576   *-*-cygwin* )
7577     case $build in
7578       *-*-mingw* ) # actually msys
7579         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7580         ;;
7581       *-*-cygwin* )
7582         lt_cv_to_host_file_cmd=func_convert_file_noop
7583         ;;
7584       * ) # otherwise, assume *nix
7585         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7586         ;;
7587     esac
7588     ;;
7589   * ) # unhandled hosts (and "normal" native builds)
7590     lt_cv_to_host_file_cmd=func_convert_file_noop
7591     ;;
7592 esac
7593
7594 fi
7595
7596 to_host_file_cmd=$lt_cv_to_host_file_cmd
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7598 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7599
7600
7601
7602
7603
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7605 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7606 if ${lt_cv_to_tool_file_cmd+:} false; then :
7607   $as_echo_n "(cached) " >&6
7608 else
7609   #assume ordinary cross tools, or native build.
7610 lt_cv_to_tool_file_cmd=func_convert_file_noop
7611 case $host in
7612   *-*-mingw* )
7613     case $build in
7614       *-*-mingw* ) # actually msys
7615         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7616         ;;
7617     esac
7618     ;;
7619 esac
7620
7621 fi
7622
7623 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7625 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7626
7627
7628
7629
7630
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7632 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7633 if ${lt_cv_ld_reload_flag+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636   lt_cv_ld_reload_flag='-r'
7637 fi
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7639 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7640 reload_flag=$lt_cv_ld_reload_flag
7641 case $reload_flag in
7642 "" | " "*) ;;
7643 *) reload_flag=" $reload_flag" ;;
7644 esac
7645 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7646 case $host_os in
7647   cygwin* | mingw* | pw32* | cegcc*)
7648     if test "$GCC" != yes; then
7649       reload_cmds=false
7650     fi
7651     ;;
7652   darwin*)
7653     if test "$GCC" = yes; then
7654       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7655     else
7656       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7657     fi
7658     ;;
7659 esac
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669 if test -n "$ac_tool_prefix"; then
7670   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7671 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if ${ac_cv_prog_OBJDUMP+:} false; then :
7675   $as_echo_n "(cached) " >&6
7676 else
7677   if test -n "$OBJDUMP"; then
7678   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683   IFS=$as_save_IFS
7684   test -z "$as_dir" && as_dir=.
7685     for ac_exec_ext in '' $ac_executable_extensions; do
7686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689     break 2
7690   fi
7691 done
7692   done
7693 IFS=$as_save_IFS
7694
7695 fi
7696 fi
7697 OBJDUMP=$ac_cv_prog_OBJDUMP
7698 if test -n "$OBJDUMP"; then
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7700 $as_echo "$OBJDUMP" >&6; }
7701 else
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7704 fi
7705
7706
7707 fi
7708 if test -z "$ac_cv_prog_OBJDUMP"; then
7709   ac_ct_OBJDUMP=$OBJDUMP
7710   # Extract the first word of "objdump", so it can be a program name with args.
7711 set dummy objdump; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7715   $as_echo_n "(cached) " >&6
7716 else
7717   if test -n "$ac_ct_OBJDUMP"; then
7718   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723   IFS=$as_save_IFS
7724   test -z "$as_dir" && as_dir=.
7725     for ac_exec_ext in '' $ac_executable_extensions; do
7726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729     break 2
7730   fi
7731 done
7732   done
7733 IFS=$as_save_IFS
7734
7735 fi
7736 fi
7737 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7738 if test -n "$ac_ct_OBJDUMP"; then
7739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7740 $as_echo "$ac_ct_OBJDUMP" >&6; }
7741 else
7742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7745
7746   if test "x$ac_ct_OBJDUMP" = x; then
7747     OBJDUMP="false"
7748   else
7749     case $cross_compiling:$ac_tool_warned in
7750 yes:)
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7753 ac_tool_warned=yes ;;
7754 esac
7755     OBJDUMP=$ac_ct_OBJDUMP
7756   fi
7757 else
7758   OBJDUMP="$ac_cv_prog_OBJDUMP"
7759 fi
7760
7761 test -z "$OBJDUMP" && OBJDUMP=objdump
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7772 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7773 if ${lt_cv_deplibs_check_method+:} false; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   lt_cv_file_magic_cmd='$MAGIC_CMD'
7777 lt_cv_file_magic_test_file=
7778 lt_cv_deplibs_check_method='unknown'
7779 # Need to set the preceding variable on all platforms that support
7780 # interlibrary dependencies.
7781 # 'none' -- dependencies not supported.
7782 # `unknown' -- same as none, but documents that we really don't know.
7783 # 'pass_all' -- all dependencies passed with no checks.
7784 # 'test_compile' -- check by making test program.
7785 # 'file_magic [[regex]]' -- check by looking for files in library path
7786 # which responds to the $file_magic_cmd with a given extended regex.
7787 # If you have `file' or equivalent on your system and you're not sure
7788 # whether `pass_all' will *always* work, you probably want this one.
7789
7790 case $host_os in
7791 aix[4-9]*)
7792   lt_cv_deplibs_check_method=pass_all
7793   ;;
7794
7795 beos*)
7796   lt_cv_deplibs_check_method=pass_all
7797   ;;
7798
7799 bsdi[45]*)
7800   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7801   lt_cv_file_magic_cmd='/usr/bin/file -L'
7802   lt_cv_file_magic_test_file=/shlib/libc.so
7803   ;;
7804
7805 cygwin*)
7806   # func_win32_libid is a shell function defined in ltmain.sh
7807   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7808   lt_cv_file_magic_cmd='func_win32_libid'
7809   ;;
7810
7811 mingw* | pw32*)
7812   # Base MSYS/MinGW do not provide the 'file' command needed by
7813   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7814   # unless we find 'file', for example because we are cross-compiling.
7815   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7816   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7817     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7818     lt_cv_file_magic_cmd='func_win32_libid'
7819   else
7820     # Keep this pattern in sync with the one in func_win32_libid.
7821     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7822     lt_cv_file_magic_cmd='$OBJDUMP -f'
7823   fi
7824   ;;
7825
7826 cegcc*)
7827   # use the weaker test based on 'objdump'. See mingw*.
7828   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7829   lt_cv_file_magic_cmd='$OBJDUMP -f'
7830   ;;
7831
7832 darwin* | rhapsody*)
7833   lt_cv_deplibs_check_method=pass_all
7834   ;;
7835
7836 freebsd* | dragonfly*)
7837   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7838     case $host_cpu in
7839     i*86 )
7840       # Not sure whether the presence of OpenBSD here was a mistake.
7841       # Let's accept both of them until this is cleared up.
7842       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7843       lt_cv_file_magic_cmd=/usr/bin/file
7844       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7845       ;;
7846     esac
7847   else
7848     lt_cv_deplibs_check_method=pass_all
7849   fi
7850   ;;
7851
7852 gnu*)
7853   lt_cv_deplibs_check_method=pass_all
7854   ;;
7855
7856 haiku*)
7857   lt_cv_deplibs_check_method=pass_all
7858   ;;
7859
7860 hpux10.20* | hpux11*)
7861   lt_cv_file_magic_cmd=/usr/bin/file
7862   case $host_cpu in
7863   ia64*)
7864     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7865     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7866     ;;
7867   hppa*64*)
7868     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]'
7869     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7870     ;;
7871   *)
7872     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7873     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7874     ;;
7875   esac
7876   ;;
7877
7878 interix[3-9]*)
7879   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7880   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7881   ;;
7882
7883 irix5* | irix6* | nonstopux*)
7884   case $LD in
7885   *-32|*"-32 ") libmagic=32-bit;;
7886   *-n32|*"-n32 ") libmagic=N32;;
7887   *-64|*"-64 ") libmagic=64-bit;;
7888   *) libmagic=never-match;;
7889   esac
7890   lt_cv_deplibs_check_method=pass_all
7891   ;;
7892
7893 # This must be glibc/ELF.
7894 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7895   lt_cv_deplibs_check_method=pass_all
7896   ;;
7897
7898 netbsd*)
7899   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7900     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7901   else
7902     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7903   fi
7904   ;;
7905
7906 newos6*)
7907   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7908   lt_cv_file_magic_cmd=/usr/bin/file
7909   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7910   ;;
7911
7912 *nto* | *qnx*)
7913   lt_cv_deplibs_check_method=pass_all
7914   ;;
7915
7916 openbsd*)
7917   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7918     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7919   else
7920     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7921   fi
7922   ;;
7923
7924 osf3* | osf4* | osf5*)
7925   lt_cv_deplibs_check_method=pass_all
7926   ;;
7927
7928 rdos*)
7929   lt_cv_deplibs_check_method=pass_all
7930   ;;
7931
7932 solaris*)
7933   lt_cv_deplibs_check_method=pass_all
7934   ;;
7935
7936 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7937   lt_cv_deplibs_check_method=pass_all
7938   ;;
7939
7940 sysv4 | sysv4.3*)
7941   case $host_vendor in
7942   motorola)
7943     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]'
7944     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7945     ;;
7946   ncr)
7947     lt_cv_deplibs_check_method=pass_all
7948     ;;
7949   sequent)
7950     lt_cv_file_magic_cmd='/bin/file'
7951     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7952     ;;
7953   sni)
7954     lt_cv_file_magic_cmd='/bin/file'
7955     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7956     lt_cv_file_magic_test_file=/lib/libc.so
7957     ;;
7958   siemens)
7959     lt_cv_deplibs_check_method=pass_all
7960     ;;
7961   pc)
7962     lt_cv_deplibs_check_method=pass_all
7963     ;;
7964   esac
7965   ;;
7966
7967 tpf*)
7968   lt_cv_deplibs_check_method=pass_all
7969   ;;
7970 esac
7971
7972 fi
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7974 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7975
7976 file_magic_glob=
7977 want_nocaseglob=no
7978 if test "$build" = "$host"; then
7979   case $host_os in
7980   mingw* | pw32*)
7981     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7982       want_nocaseglob=yes
7983     else
7984       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7985     fi
7986     ;;
7987   esac
7988 fi
7989
7990 file_magic_cmd=$lt_cv_file_magic_cmd
7991 deplibs_check_method=$lt_cv_deplibs_check_method
7992 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015 if test -n "$ac_tool_prefix"; then
8016   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8017 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if ${ac_cv_prog_DLLTOOL+:} false; then :
8021   $as_echo_n "(cached) " >&6
8022 else
8023   if test -n "$DLLTOOL"; then
8024   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029   IFS=$as_save_IFS
8030   test -z "$as_dir" && as_dir=.
8031     for ac_exec_ext in '' $ac_executable_extensions; do
8032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8033     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035     break 2
8036   fi
8037 done
8038   done
8039 IFS=$as_save_IFS
8040
8041 fi
8042 fi
8043 DLLTOOL=$ac_cv_prog_DLLTOOL
8044 if test -n "$DLLTOOL"; then
8045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8046 $as_echo "$DLLTOOL" >&6; }
8047 else
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8050 fi
8051
8052
8053 fi
8054 if test -z "$ac_cv_prog_DLLTOOL"; then
8055   ac_ct_DLLTOOL=$DLLTOOL
8056   # Extract the first word of "dlltool", so it can be a program name with args.
8057 set dummy dlltool; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8061   $as_echo_n "(cached) " >&6
8062 else
8063   if test -n "$ac_ct_DLLTOOL"; then
8064   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069   IFS=$as_save_IFS
8070   test -z "$as_dir" && as_dir=.
8071     for ac_exec_ext in '' $ac_executable_extensions; do
8072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075     break 2
8076   fi
8077 done
8078   done
8079 IFS=$as_save_IFS
8080
8081 fi
8082 fi
8083 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8084 if test -n "$ac_ct_DLLTOOL"; then
8085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8086 $as_echo "$ac_ct_DLLTOOL" >&6; }
8087 else
8088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8090 fi
8091
8092   if test "x$ac_ct_DLLTOOL" = x; then
8093     DLLTOOL="false"
8094   else
8095     case $cross_compiling:$ac_tool_warned in
8096 yes:)
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8099 ac_tool_warned=yes ;;
8100 esac
8101     DLLTOOL=$ac_ct_DLLTOOL
8102   fi
8103 else
8104   DLLTOOL="$ac_cv_prog_DLLTOOL"
8105 fi
8106
8107 test -z "$DLLTOOL" && DLLTOOL=dlltool
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8119 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8120 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8121   $as_echo_n "(cached) " >&6
8122 else
8123   lt_cv_sharedlib_from_linklib_cmd='unknown'
8124
8125 case $host_os in
8126 cygwin* | mingw* | pw32* | cegcc*)
8127   # two different shell functions defined in ltmain.sh
8128   # decide which to use based on capabilities of $DLLTOOL
8129   case `$DLLTOOL --help 2>&1` in
8130   *--identify-strict*)
8131     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8132     ;;
8133   *)
8134     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8135     ;;
8136   esac
8137   ;;
8138 *)
8139   # fallback: assume linklib IS sharedlib
8140   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8141   ;;
8142 esac
8143
8144 fi
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8146 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8147 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8148 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8149
8150
8151
8152
8153
8154
8155
8156 if test -n "$ac_tool_prefix"; then
8157   for ac_prog in ar
8158   do
8159     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if ${ac_cv_prog_AR+:} false; then :
8164   $as_echo_n "(cached) " >&6
8165 else
8166   if test -n "$AR"; then
8167   ac_cv_prog_AR="$AR" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8171 do
8172   IFS=$as_save_IFS
8173   test -z "$as_dir" && as_dir=.
8174     for ac_exec_ext in '' $ac_executable_extensions; do
8175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8176     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178     break 2
8179   fi
8180 done
8181   done
8182 IFS=$as_save_IFS
8183
8184 fi
8185 fi
8186 AR=$ac_cv_prog_AR
8187 if test -n "$AR"; then
8188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8189 $as_echo "$AR" >&6; }
8190 else
8191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8193 fi
8194
8195
8196     test -n "$AR" && break
8197   done
8198 fi
8199 if test -z "$AR"; then
8200   ac_ct_AR=$AR
8201   for ac_prog in ar
8202 do
8203   # Extract the first word of "$ac_prog", so it can be a program name with args.
8204 set dummy $ac_prog; ac_word=$2
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206 $as_echo_n "checking for $ac_word... " >&6; }
8207 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8208   $as_echo_n "(cached) " >&6
8209 else
8210   if test -n "$ac_ct_AR"; then
8211   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8212 else
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 for as_dir in $PATH
8215 do
8216   IFS=$as_save_IFS
8217   test -z "$as_dir" && as_dir=.
8218     for ac_exec_ext in '' $ac_executable_extensions; do
8219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8220     ac_cv_prog_ac_ct_AR="$ac_prog"
8221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222     break 2
8223   fi
8224 done
8225   done
8226 IFS=$as_save_IFS
8227
8228 fi
8229 fi
8230 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8231 if test -n "$ac_ct_AR"; then
8232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8233 $as_echo "$ac_ct_AR" >&6; }
8234 else
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8237 fi
8238
8239
8240   test -n "$ac_ct_AR" && break
8241 done
8242
8243   if test "x$ac_ct_AR" = x; then
8244     AR="false"
8245   else
8246     case $cross_compiling:$ac_tool_warned in
8247 yes:)
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8250 ac_tool_warned=yes ;;
8251 esac
8252     AR=$ac_ct_AR
8253   fi
8254 fi
8255
8256 : ${AR=ar}
8257 : ${AR_FLAGS=cru}
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8270 $as_echo_n "checking for archiver @FILE support... " >&6; }
8271 if ${lt_cv_ar_at_file+:} false; then :
8272   $as_echo_n "(cached) " >&6
8273 else
8274   lt_cv_ar_at_file=no
8275    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h.  */
8277
8278 int
8279 main ()
8280 {
8281
8282   ;
8283   return 0;
8284 }
8285 _ACEOF
8286 if ac_fn_c_try_compile "$LINENO"; then :
8287   echo conftest.$ac_objext > conftest.lst
8288       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8289       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8290   (eval $lt_ar_try) 2>&5
8291   ac_status=$?
8292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8293   test $ac_status = 0; }
8294       if test "$ac_status" -eq 0; then
8295         # Ensure the archiver fails upon bogus file names.
8296         rm -f conftest.$ac_objext libconftest.a
8297         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8298   (eval $lt_ar_try) 2>&5
8299   ac_status=$?
8300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8301   test $ac_status = 0; }
8302         if test "$ac_status" -ne 0; then
8303           lt_cv_ar_at_file=@
8304         fi
8305       fi
8306       rm -f conftest.* libconftest.a
8307
8308 fi
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310
8311 fi
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8313 $as_echo "$lt_cv_ar_at_file" >&6; }
8314
8315 if test "x$lt_cv_ar_at_file" = xno; then
8316   archiver_list_spec=
8317 else
8318   archiver_list_spec=$lt_cv_ar_at_file
8319 fi
8320
8321
8322
8323
8324
8325
8326
8327 if test -n "$ac_tool_prefix"; then
8328   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8329 set dummy ${ac_tool_prefix}strip; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if ${ac_cv_prog_STRIP+:} false; then :
8333   $as_echo_n "(cached) " >&6
8334 else
8335   if test -n "$STRIP"; then
8336   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8337 else
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8340 do
8341   IFS=$as_save_IFS
8342   test -z "$as_dir" && as_dir=.
8343     for ac_exec_ext in '' $ac_executable_extensions; do
8344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8345     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347     break 2
8348   fi
8349 done
8350   done
8351 IFS=$as_save_IFS
8352
8353 fi
8354 fi
8355 STRIP=$ac_cv_prog_STRIP
8356 if test -n "$STRIP"; then
8357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8358 $as_echo "$STRIP" >&6; }
8359 else
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8362 fi
8363
8364
8365 fi
8366 if test -z "$ac_cv_prog_STRIP"; then
8367   ac_ct_STRIP=$STRIP
8368   # Extract the first word of "strip", so it can be a program name with args.
8369 set dummy strip; ac_word=$2
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371 $as_echo_n "checking for $ac_word... " >&6; }
8372 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8373   $as_echo_n "(cached) " >&6
8374 else
8375   if test -n "$ac_ct_STRIP"; then
8376   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8377 else
8378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 for as_dir in $PATH
8380 do
8381   IFS=$as_save_IFS
8382   test -z "$as_dir" && as_dir=.
8383     for ac_exec_ext in '' $ac_executable_extensions; do
8384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8385     ac_cv_prog_ac_ct_STRIP="strip"
8386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8387     break 2
8388   fi
8389 done
8390   done
8391 IFS=$as_save_IFS
8392
8393 fi
8394 fi
8395 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8396 if test -n "$ac_ct_STRIP"; then
8397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8398 $as_echo "$ac_ct_STRIP" >&6; }
8399 else
8400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8402 fi
8403
8404   if test "x$ac_ct_STRIP" = x; then
8405     STRIP=":"
8406   else
8407     case $cross_compiling:$ac_tool_warned in
8408 yes:)
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8411 ac_tool_warned=yes ;;
8412 esac
8413     STRIP=$ac_ct_STRIP
8414   fi
8415 else
8416   STRIP="$ac_cv_prog_STRIP"
8417 fi
8418
8419 test -z "$STRIP" && STRIP=:
8420
8421
8422
8423
8424
8425
8426 if test -n "$ac_tool_prefix"; then
8427   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if ${ac_cv_prog_RANLIB+:} false; then :
8432   $as_echo_n "(cached) " >&6
8433 else
8434   if test -n "$RANLIB"; then
8435   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8436 else
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8439 do
8440   IFS=$as_save_IFS
8441   test -z "$as_dir" && as_dir=.
8442     for ac_exec_ext in '' $ac_executable_extensions; do
8443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446     break 2
8447   fi
8448 done
8449   done
8450 IFS=$as_save_IFS
8451
8452 fi
8453 fi
8454 RANLIB=$ac_cv_prog_RANLIB
8455 if test -n "$RANLIB"; then
8456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8457 $as_echo "$RANLIB" >&6; }
8458 else
8459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8461 fi
8462
8463
8464 fi
8465 if test -z "$ac_cv_prog_RANLIB"; then
8466   ac_ct_RANLIB=$RANLIB
8467   # Extract the first word of "ranlib", so it can be a program name with args.
8468 set dummy ranlib; ac_word=$2
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470 $as_echo_n "checking for $ac_word... " >&6; }
8471 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8472   $as_echo_n "(cached) " >&6
8473 else
8474   if test -n "$ac_ct_RANLIB"; then
8475   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8476 else
8477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478 for as_dir in $PATH
8479 do
8480   IFS=$as_save_IFS
8481   test -z "$as_dir" && as_dir=.
8482     for ac_exec_ext in '' $ac_executable_extensions; do
8483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8484     ac_cv_prog_ac_ct_RANLIB="ranlib"
8485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8486     break 2
8487   fi
8488 done
8489   done
8490 IFS=$as_save_IFS
8491
8492 fi
8493 fi
8494 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8495 if test -n "$ac_ct_RANLIB"; then
8496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8497 $as_echo "$ac_ct_RANLIB" >&6; }
8498 else
8499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 $as_echo "no" >&6; }
8501 fi
8502
8503   if test "x$ac_ct_RANLIB" = x; then
8504     RANLIB=":"
8505   else
8506     case $cross_compiling:$ac_tool_warned in
8507 yes:)
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8510 ac_tool_warned=yes ;;
8511 esac
8512     RANLIB=$ac_ct_RANLIB
8513   fi
8514 else
8515   RANLIB="$ac_cv_prog_RANLIB"
8516 fi
8517
8518 test -z "$RANLIB" && RANLIB=:
8519
8520
8521
8522
8523
8524
8525 # Determine commands to create old-style static archives.
8526 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8527 old_postinstall_cmds='chmod 644 $oldlib'
8528 old_postuninstall_cmds=
8529
8530 if test -n "$RANLIB"; then
8531   case $host_os in
8532   openbsd*)
8533     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8534     ;;
8535   *)
8536     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8537     ;;
8538   esac
8539   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8540 fi
8541
8542 case $host_os in
8543   darwin*)
8544     lock_old_archive_extraction=yes ;;
8545   *)
8546     lock_old_archive_extraction=no ;;
8547 esac
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587 # If no C compiler was specified, use CC.
8588 LTCC=${LTCC-"$CC"}
8589
8590 # If no C compiler flags were specified, use CFLAGS.
8591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8592
8593 # Allow CC to be a program name with arguments.
8594 compiler=$CC
8595
8596
8597 # Check for command to grab the raw symbol name followed by C symbol from nm.
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8599 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8600 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8601   $as_echo_n "(cached) " >&6
8602 else
8603
8604 # These are sane defaults that work on at least a few old systems.
8605 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8606
8607 # Character class describing NM global symbol codes.
8608 symcode='[BCDEGRST]'
8609
8610 # Regexp to match symbols that can be accessed directly from C.
8611 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8612
8613 # Define system-specific variables.
8614 case $host_os in
8615 aix*)
8616   symcode='[BCDT]'
8617   ;;
8618 cygwin* | mingw* | pw32* | cegcc*)
8619   symcode='[ABCDGISTW]'
8620   ;;
8621 hpux*)
8622   if test "$host_cpu" = ia64; then
8623     symcode='[ABCDEGRST]'
8624   fi
8625   ;;
8626 irix* | nonstopux*)
8627   symcode='[BCDEGRST]'
8628   ;;
8629 osf*)
8630   symcode='[BCDEGQRST]'
8631   ;;
8632 solaris*)
8633   symcode='[BDRT]'
8634   ;;
8635 sco3.2v5*)
8636   symcode='[DT]'
8637   ;;
8638 sysv4.2uw2*)
8639   symcode='[DT]'
8640   ;;
8641 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8642   symcode='[ABDT]'
8643   ;;
8644 sysv4)
8645   symcode='[DFNSTU]'
8646   ;;
8647 esac
8648
8649 # If we're using GNU nm, then use its standard symbol codes.
8650 case `$NM -V 2>&1` in
8651 *GNU* | *'with BFD'*)
8652   symcode='[ABCDGIRSTW]' ;;
8653 esac
8654
8655 # Transform an extracted symbol line into a proper C declaration.
8656 # Some systems (esp. on ia64) link data and code symbols differently,
8657 # so use this general approach.
8658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8659
8660 # Transform an extracted symbol line into symbol name and symbol address
8661 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8662 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'"
8663
8664 # Handle CRLF in mingw tool chain
8665 opt_cr=
8666 case $build_os in
8667 mingw*)
8668   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8669   ;;
8670 esac
8671
8672 # Try without a prefix underscore, then with it.
8673 for ac_symprfx in "" "_"; do
8674
8675   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8676   symxfrm="\\1 $ac_symprfx\\2 \\2"
8677
8678   # Write the raw and C identifiers.
8679   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8680     # Fake it for dumpbin and say T for any non-static function
8681     # and D for any global variable.
8682     # Also find C++ and __fastcall symbols from MSVC++,
8683     # which start with @ or ?.
8684     lt_cv_sys_global_symbol_pipe="$AWK '"\
8685 "     {last_section=section; section=\$ 3};"\
8686 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8687 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8688 "     \$ 0!~/External *\|/{next};"\
8689 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8690 "     {if(hide[section]) next};"\
8691 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8692 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8693 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8694 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8695 "     ' prfx=^$ac_symprfx"
8696   else
8697     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8698   fi
8699   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8700
8701   # Check to see that the pipe works correctly.
8702   pipe_works=no
8703
8704   rm -f conftest*
8705   cat > conftest.$ac_ext <<_LT_EOF
8706 #ifdef __cplusplus
8707 extern "C" {
8708 #endif
8709 char nm_test_var;
8710 void nm_test_func(void);
8711 void nm_test_func(void){}
8712 #ifdef __cplusplus
8713 }
8714 #endif
8715 int main(){nm_test_var='a';nm_test_func();return(0);}
8716 _LT_EOF
8717
8718   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8719   (eval $ac_compile) 2>&5
8720   ac_status=$?
8721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8722   test $ac_status = 0; }; then
8723     # Now try to grab the symbols.
8724     nlist=conftest.nm
8725     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8726   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8727   ac_status=$?
8728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8729   test $ac_status = 0; } && test -s "$nlist"; then
8730       # Try sorting and uniquifying the output.
8731       if sort "$nlist" | uniq > "$nlist"T; then
8732         mv -f "$nlist"T "$nlist"
8733       else
8734         rm -f "$nlist"T
8735       fi
8736
8737       # Make sure that we snagged all the symbols we need.
8738       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8739         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8740           cat <<_LT_EOF > conftest.$ac_ext
8741 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8742 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8743 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8744    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8745 # define LT_DLSYM_CONST
8746 #elif defined(__osf__)
8747 /* This system does not cope well with relocations in const data.  */
8748 # define LT_DLSYM_CONST
8749 #else
8750 # define LT_DLSYM_CONST const
8751 #endif
8752
8753 #ifdef __cplusplus
8754 extern "C" {
8755 #endif
8756
8757 _LT_EOF
8758           # Now generate the symbol file.
8759           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8760
8761           cat <<_LT_EOF >> conftest.$ac_ext
8762
8763 /* The mapping between symbol names and symbols.  */
8764 LT_DLSYM_CONST struct {
8765   const char *name;
8766   void       *address;
8767 }
8768 lt__PROGRAM__LTX_preloaded_symbols[] =
8769 {
8770   { "@PROGRAM@", (void *) 0 },
8771 _LT_EOF
8772           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8773           cat <<\_LT_EOF >> conftest.$ac_ext
8774   {0, (void *) 0}
8775 };
8776
8777 /* This works around a problem in FreeBSD linker */
8778 #ifdef FREEBSD_WORKAROUND
8779 static const void *lt_preloaded_setup() {
8780   return lt__PROGRAM__LTX_preloaded_symbols;
8781 }
8782 #endif
8783
8784 #ifdef __cplusplus
8785 }
8786 #endif
8787 _LT_EOF
8788           # Now try linking the two files.
8789           mv conftest.$ac_objext conftstm.$ac_objext
8790           lt_globsym_save_LIBS=$LIBS
8791           lt_globsym_save_CFLAGS=$CFLAGS
8792           LIBS="conftstm.$ac_objext"
8793           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8794           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8795   (eval $ac_link) 2>&5
8796   ac_status=$?
8797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8798   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8799             pipe_works=yes
8800           fi
8801           LIBS=$lt_globsym_save_LIBS
8802           CFLAGS=$lt_globsym_save_CFLAGS
8803         else
8804           echo "cannot find nm_test_func in $nlist" >&5
8805         fi
8806       else
8807         echo "cannot find nm_test_var in $nlist" >&5
8808       fi
8809     else
8810       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8811     fi
8812   else
8813     echo "$progname: failed program was:" >&5
8814     cat conftest.$ac_ext >&5
8815   fi
8816   rm -rf conftest* conftst*
8817
8818   # Do not use the global_symbol_pipe unless it works.
8819   if test "$pipe_works" = yes; then
8820     break
8821   else
8822     lt_cv_sys_global_symbol_pipe=
8823   fi
8824 done
8825
8826 fi
8827
8828 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8829   lt_cv_sys_global_symbol_to_cdecl=
8830 fi
8831 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8833 $as_echo "failed" >&6; }
8834 else
8835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8836 $as_echo "ok" >&6; }
8837 fi
8838
8839 # Response file support.
8840 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8841   nm_file_list_spec='@'
8842 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8843   nm_file_list_spec='@'
8844 fi
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8873 $as_echo_n "checking for sysroot... " >&6; }
8874
8875 # Check whether --with-sysroot was given.
8876 if test "${with_sysroot+set}" = set; then :
8877   withval=$with_sysroot;
8878 else
8879   with_sysroot=no
8880 fi
8881
8882
8883 lt_sysroot=
8884 case ${with_sysroot} in #(
8885  yes)
8886    if test "$GCC" = yes; then
8887      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8888    fi
8889    ;; #(
8890  /*)
8891    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8892    ;; #(
8893  no|'')
8894    ;; #(
8895  *)
8896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8897 $as_echo "${with_sysroot}" >&6; }
8898    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8899    ;;
8900 esac
8901
8902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8903 $as_echo "${lt_sysroot:-no}" >&6; }
8904
8905
8906
8907
8908
8909 # Check whether --enable-libtool-lock was given.
8910 if test "${enable_libtool_lock+set}" = set; then :
8911   enableval=$enable_libtool_lock;
8912 fi
8913
8914 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8915
8916 # Some flags need to be propagated to the compiler or linker for good
8917 # libtool support.
8918 case $host in
8919 ia64-*-hpux*)
8920   # Find out which ABI we are using.
8921   echo 'int i;' > conftest.$ac_ext
8922   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8923   (eval $ac_compile) 2>&5
8924   ac_status=$?
8925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8926   test $ac_status = 0; }; then
8927     case `/usr/bin/file conftest.$ac_objext` in
8928       *ELF-32*)
8929         HPUX_IA64_MODE="32"
8930         ;;
8931       *ELF-64*)
8932         HPUX_IA64_MODE="64"
8933         ;;
8934     esac
8935   fi
8936   rm -rf conftest*
8937   ;;
8938 *-*-irix6*)
8939   # Find out which ABI we are using.
8940   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8941   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8942   (eval $ac_compile) 2>&5
8943   ac_status=$?
8944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8945   test $ac_status = 0; }; then
8946     if test "$lt_cv_prog_gnu_ld" = yes; then
8947       case `/usr/bin/file conftest.$ac_objext` in
8948         *32-bit*)
8949           LD="${LD-ld} -melf32bsmip"
8950           ;;
8951         *N32*)
8952           LD="${LD-ld} -melf32bmipn32"
8953           ;;
8954         *64-bit*)
8955           LD="${LD-ld} -melf64bmip"
8956         ;;
8957       esac
8958     else
8959       case `/usr/bin/file conftest.$ac_objext` in
8960         *32-bit*)
8961           LD="${LD-ld} -32"
8962           ;;
8963         *N32*)
8964           LD="${LD-ld} -n32"
8965           ;;
8966         *64-bit*)
8967           LD="${LD-ld} -64"
8968           ;;
8969       esac
8970     fi
8971   fi
8972   rm -rf conftest*
8973   ;;
8974
8975 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8976 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8977   # Find out which ABI we are using.
8978   echo 'int i;' > conftest.$ac_ext
8979   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8980   (eval $ac_compile) 2>&5
8981   ac_status=$?
8982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8983   test $ac_status = 0; }; then
8984     case `/usr/bin/file conftest.o` in
8985       *32-bit*)
8986         case $host in
8987           x86_64-*kfreebsd*-gnu)
8988             LD="${LD-ld} -m elf_i386_fbsd"
8989             ;;
8990           x86_64-*linux*)
8991             LD="${LD-ld} -m elf_i386"
8992             ;;
8993           ppc64-*linux*|powerpc64-*linux*)
8994             LD="${LD-ld} -m elf32ppclinux"
8995             ;;
8996           s390x-*linux*)
8997             LD="${LD-ld} -m elf_s390"
8998             ;;
8999           sparc64-*linux*)
9000             LD="${LD-ld} -m elf32_sparc"
9001             ;;
9002         esac
9003         ;;
9004       *64-bit*)
9005         case $host in
9006           x86_64-*kfreebsd*-gnu)
9007             LD="${LD-ld} -m elf_x86_64_fbsd"
9008             ;;
9009           x86_64-*linux*)
9010             LD="${LD-ld} -m elf_x86_64"
9011             ;;
9012           ppc*-*linux*|powerpc*-*linux*)
9013             LD="${LD-ld} -m elf64ppc"
9014             ;;
9015           s390*-*linux*|s390*-*tpf*)
9016             LD="${LD-ld} -m elf64_s390"
9017             ;;
9018           sparc*-*linux*)
9019             LD="${LD-ld} -m elf64_sparc"
9020             ;;
9021         esac
9022         ;;
9023     esac
9024   fi
9025   rm -rf conftest*
9026   ;;
9027
9028 *-*-sco3.2v5*)
9029   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9030   SAVE_CFLAGS="$CFLAGS"
9031   CFLAGS="$CFLAGS -belf"
9032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9033 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9034 if ${lt_cv_cc_needs_belf+:} false; then :
9035   $as_echo_n "(cached) " >&6
9036 else
9037   ac_ext=c
9038 ac_cpp='$CPP $CPPFLAGS'
9039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9042
9043      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h.  */
9045
9046 int
9047 main ()
9048 {
9049
9050   ;
9051   return 0;
9052 }
9053 _ACEOF
9054 if ac_fn_c_try_link "$LINENO"; then :
9055   lt_cv_cc_needs_belf=yes
9056 else
9057   lt_cv_cc_needs_belf=no
9058 fi
9059 rm -f core conftest.err conftest.$ac_objext \
9060     conftest$ac_exeext conftest.$ac_ext
9061      ac_ext=c
9062 ac_cpp='$CPP $CPPFLAGS'
9063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9066
9067 fi
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9069 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9070   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9071     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9072     CFLAGS="$SAVE_CFLAGS"
9073   fi
9074   ;;
9075 *-*solaris*)
9076   # Find out which ABI we are using.
9077   echo 'int i;' > conftest.$ac_ext
9078   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9079   (eval $ac_compile) 2>&5
9080   ac_status=$?
9081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9082   test $ac_status = 0; }; then
9083     case `/usr/bin/file conftest.o` in
9084     *64-bit*)
9085       case $lt_cv_prog_gnu_ld in
9086       yes*)
9087         case $host in
9088         i?86-*-solaris*)
9089           LD="${LD-ld} -m elf_x86_64"
9090           ;;
9091         sparc*-*-solaris*)
9092           LD="${LD-ld} -m elf64_sparc"
9093           ;;
9094         esac
9095         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9096         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9097           LD="${LD-ld}_sol2"
9098         fi
9099         ;;
9100       *)
9101         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9102           LD="${LD-ld} -64"
9103         fi
9104         ;;
9105       esac
9106       ;;
9107     esac
9108   fi
9109   rm -rf conftest*
9110   ;;
9111 esac
9112
9113 need_locks="$enable_libtool_lock"
9114
9115 if test -n "$ac_tool_prefix"; then
9116   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9117 set dummy ${ac_tool_prefix}mt; ac_word=$2
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119 $as_echo_n "checking for $ac_word... " >&6; }
9120 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9121   $as_echo_n "(cached) " >&6
9122 else
9123   if test -n "$MANIFEST_TOOL"; then
9124   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9125 else
9126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127 for as_dir in $PATH
9128 do
9129   IFS=$as_save_IFS
9130   test -z "$as_dir" && as_dir=.
9131     for ac_exec_ext in '' $ac_executable_extensions; do
9132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9133     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9135     break 2
9136   fi
9137 done
9138   done
9139 IFS=$as_save_IFS
9140
9141 fi
9142 fi
9143 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9144 if test -n "$MANIFEST_TOOL"; then
9145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9146 $as_echo "$MANIFEST_TOOL" >&6; }
9147 else
9148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 $as_echo "no" >&6; }
9150 fi
9151
9152
9153 fi
9154 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9155   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9156   # Extract the first word of "mt", so it can be a program name with args.
9157 set dummy mt; ac_word=$2
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9159 $as_echo_n "checking for $ac_word... " >&6; }
9160 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9161   $as_echo_n "(cached) " >&6
9162 else
9163   if test -n "$ac_ct_MANIFEST_TOOL"; then
9164   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9165 else
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167 for as_dir in $PATH
9168 do
9169   IFS=$as_save_IFS
9170   test -z "$as_dir" && as_dir=.
9171     for ac_exec_ext in '' $ac_executable_extensions; do
9172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9173     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9175     break 2
9176   fi
9177 done
9178   done
9179 IFS=$as_save_IFS
9180
9181 fi
9182 fi
9183 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9184 if test -n "$ac_ct_MANIFEST_TOOL"; then
9185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9186 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9187 else
9188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9190 fi
9191
9192   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9193     MANIFEST_TOOL=":"
9194   else
9195     case $cross_compiling:$ac_tool_warned in
9196 yes:)
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9199 ac_tool_warned=yes ;;
9200 esac
9201     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9202   fi
9203 else
9204   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9205 fi
9206
9207 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9209 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9210 if ${lt_cv_path_mainfest_tool+:} false; then :
9211   $as_echo_n "(cached) " >&6
9212 else
9213   lt_cv_path_mainfest_tool=no
9214   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9215   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9216   cat conftest.err >&5
9217   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9218     lt_cv_path_mainfest_tool=yes
9219   fi
9220   rm -f conftest*
9221 fi
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9223 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9224 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9225   MANIFEST_TOOL=:
9226 fi
9227
9228
9229
9230
9231
9232
9233   case $host_os in
9234     rhapsody* | darwin*)
9235     if test -n "$ac_tool_prefix"; then
9236   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9237 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239 $as_echo_n "checking for $ac_word... " >&6; }
9240 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9241   $as_echo_n "(cached) " >&6
9242 else
9243   if test -n "$DSYMUTIL"; then
9244   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9245 else
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247 for as_dir in $PATH
9248 do
9249   IFS=$as_save_IFS
9250   test -z "$as_dir" && as_dir=.
9251     for ac_exec_ext in '' $ac_executable_extensions; do
9252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9253     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9255     break 2
9256   fi
9257 done
9258   done
9259 IFS=$as_save_IFS
9260
9261 fi
9262 fi
9263 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9264 if test -n "$DSYMUTIL"; then
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9266 $as_echo "$DSYMUTIL" >&6; }
9267 else
9268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269 $as_echo "no" >&6; }
9270 fi
9271
9272
9273 fi
9274 if test -z "$ac_cv_prog_DSYMUTIL"; then
9275   ac_ct_DSYMUTIL=$DSYMUTIL
9276   # Extract the first word of "dsymutil", so it can be a program name with args.
9277 set dummy dsymutil; ac_word=$2
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9279 $as_echo_n "checking for $ac_word... " >&6; }
9280 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9281   $as_echo_n "(cached) " >&6
9282 else
9283   if test -n "$ac_ct_DSYMUTIL"; then
9284   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9285 else
9286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287 for as_dir in $PATH
9288 do
9289   IFS=$as_save_IFS
9290   test -z "$as_dir" && as_dir=.
9291     for ac_exec_ext in '' $ac_executable_extensions; do
9292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9293     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295     break 2
9296   fi
9297 done
9298   done
9299 IFS=$as_save_IFS
9300
9301 fi
9302 fi
9303 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9304 if test -n "$ac_ct_DSYMUTIL"; then
9305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9306 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9307 else
9308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309 $as_echo "no" >&6; }
9310 fi
9311
9312   if test "x$ac_ct_DSYMUTIL" = x; then
9313     DSYMUTIL=":"
9314   else
9315     case $cross_compiling:$ac_tool_warned in
9316 yes:)
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9319 ac_tool_warned=yes ;;
9320 esac
9321     DSYMUTIL=$ac_ct_DSYMUTIL
9322   fi
9323 else
9324   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9325 fi
9326
9327     if test -n "$ac_tool_prefix"; then
9328   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9329 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9331 $as_echo_n "checking for $ac_word... " >&6; }
9332 if ${ac_cv_prog_NMEDIT+:} false; then :
9333   $as_echo_n "(cached) " >&6
9334 else
9335   if test -n "$NMEDIT"; then
9336   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9337 else
9338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339 for as_dir in $PATH
9340 do
9341   IFS=$as_save_IFS
9342   test -z "$as_dir" && as_dir=.
9343     for ac_exec_ext in '' $ac_executable_extensions; do
9344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9345     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9347     break 2
9348   fi
9349 done
9350   done
9351 IFS=$as_save_IFS
9352
9353 fi
9354 fi
9355 NMEDIT=$ac_cv_prog_NMEDIT
9356 if test -n "$NMEDIT"; then
9357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9358 $as_echo "$NMEDIT" >&6; }
9359 else
9360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9361 $as_echo "no" >&6; }
9362 fi
9363
9364
9365 fi
9366 if test -z "$ac_cv_prog_NMEDIT"; then
9367   ac_ct_NMEDIT=$NMEDIT
9368   # Extract the first word of "nmedit", so it can be a program name with args.
9369 set dummy nmedit; ac_word=$2
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371 $as_echo_n "checking for $ac_word... " >&6; }
9372 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9373   $as_echo_n "(cached) " >&6
9374 else
9375   if test -n "$ac_ct_NMEDIT"; then
9376   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9377 else
9378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379 for as_dir in $PATH
9380 do
9381   IFS=$as_save_IFS
9382   test -z "$as_dir" && as_dir=.
9383     for ac_exec_ext in '' $ac_executable_extensions; do
9384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9385     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9387     break 2
9388   fi
9389 done
9390   done
9391 IFS=$as_save_IFS
9392
9393 fi
9394 fi
9395 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9396 if test -n "$ac_ct_NMEDIT"; then
9397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9398 $as_echo "$ac_ct_NMEDIT" >&6; }
9399 else
9400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
9402 fi
9403
9404   if test "x$ac_ct_NMEDIT" = x; then
9405     NMEDIT=":"
9406   else
9407     case $cross_compiling:$ac_tool_warned in
9408 yes:)
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9411 ac_tool_warned=yes ;;
9412 esac
9413     NMEDIT=$ac_ct_NMEDIT
9414   fi
9415 else
9416   NMEDIT="$ac_cv_prog_NMEDIT"
9417 fi
9418
9419     if test -n "$ac_tool_prefix"; then
9420   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9421 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423 $as_echo_n "checking for $ac_word... " >&6; }
9424 if ${ac_cv_prog_LIPO+:} false; then :
9425   $as_echo_n "(cached) " >&6
9426 else
9427   if test -n "$LIPO"; then
9428   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9429 else
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 for as_dir in $PATH
9432 do
9433   IFS=$as_save_IFS
9434   test -z "$as_dir" && as_dir=.
9435     for ac_exec_ext in '' $ac_executable_extensions; do
9436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9437     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439     break 2
9440   fi
9441 done
9442   done
9443 IFS=$as_save_IFS
9444
9445 fi
9446 fi
9447 LIPO=$ac_cv_prog_LIPO
9448 if test -n "$LIPO"; then
9449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9450 $as_echo "$LIPO" >&6; }
9451 else
9452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9454 fi
9455
9456
9457 fi
9458 if test -z "$ac_cv_prog_LIPO"; then
9459   ac_ct_LIPO=$LIPO
9460   # Extract the first word of "lipo", so it can be a program name with args.
9461 set dummy lipo; ac_word=$2
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9463 $as_echo_n "checking for $ac_word... " >&6; }
9464 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9465   $as_echo_n "(cached) " >&6
9466 else
9467   if test -n "$ac_ct_LIPO"; then
9468   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9469 else
9470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471 for as_dir in $PATH
9472 do
9473   IFS=$as_save_IFS
9474   test -z "$as_dir" && as_dir=.
9475     for ac_exec_ext in '' $ac_executable_extensions; do
9476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9477     ac_cv_prog_ac_ct_LIPO="lipo"
9478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9479     break 2
9480   fi
9481 done
9482   done
9483 IFS=$as_save_IFS
9484
9485 fi
9486 fi
9487 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9488 if test -n "$ac_ct_LIPO"; then
9489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9490 $as_echo "$ac_ct_LIPO" >&6; }
9491 else
9492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493 $as_echo "no" >&6; }
9494 fi
9495
9496   if test "x$ac_ct_LIPO" = x; then
9497     LIPO=":"
9498   else
9499     case $cross_compiling:$ac_tool_warned in
9500 yes:)
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9503 ac_tool_warned=yes ;;
9504 esac
9505     LIPO=$ac_ct_LIPO
9506   fi
9507 else
9508   LIPO="$ac_cv_prog_LIPO"
9509 fi
9510
9511     if test -n "$ac_tool_prefix"; then
9512   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9513 set dummy ${ac_tool_prefix}otool; ac_word=$2
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515 $as_echo_n "checking for $ac_word... " >&6; }
9516 if ${ac_cv_prog_OTOOL+:} false; then :
9517   $as_echo_n "(cached) " >&6
9518 else
9519   if test -n "$OTOOL"; then
9520   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9521 else
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 for as_dir in $PATH
9524 do
9525   IFS=$as_save_IFS
9526   test -z "$as_dir" && as_dir=.
9527     for ac_exec_ext in '' $ac_executable_extensions; do
9528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9529     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9531     break 2
9532   fi
9533 done
9534   done
9535 IFS=$as_save_IFS
9536
9537 fi
9538 fi
9539 OTOOL=$ac_cv_prog_OTOOL
9540 if test -n "$OTOOL"; then
9541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9542 $as_echo "$OTOOL" >&6; }
9543 else
9544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9546 fi
9547
9548
9549 fi
9550 if test -z "$ac_cv_prog_OTOOL"; then
9551   ac_ct_OTOOL=$OTOOL
9552   # Extract the first word of "otool", so it can be a program name with args.
9553 set dummy otool; ac_word=$2
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555 $as_echo_n "checking for $ac_word... " >&6; }
9556 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9557   $as_echo_n "(cached) " >&6
9558 else
9559   if test -n "$ac_ct_OTOOL"; then
9560   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9561 else
9562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 for as_dir in $PATH
9564 do
9565   IFS=$as_save_IFS
9566   test -z "$as_dir" && as_dir=.
9567     for ac_exec_ext in '' $ac_executable_extensions; do
9568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9569     ac_cv_prog_ac_ct_OTOOL="otool"
9570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9571     break 2
9572   fi
9573 done
9574   done
9575 IFS=$as_save_IFS
9576
9577 fi
9578 fi
9579 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9580 if test -n "$ac_ct_OTOOL"; then
9581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9582 $as_echo "$ac_ct_OTOOL" >&6; }
9583 else
9584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 $as_echo "no" >&6; }
9586 fi
9587
9588   if test "x$ac_ct_OTOOL" = x; then
9589     OTOOL=":"
9590   else
9591     case $cross_compiling:$ac_tool_warned in
9592 yes:)
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9595 ac_tool_warned=yes ;;
9596 esac
9597     OTOOL=$ac_ct_OTOOL
9598   fi
9599 else
9600   OTOOL="$ac_cv_prog_OTOOL"
9601 fi
9602
9603     if test -n "$ac_tool_prefix"; then
9604   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9605 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607 $as_echo_n "checking for $ac_word... " >&6; }
9608 if ${ac_cv_prog_OTOOL64+:} false; then :
9609   $as_echo_n "(cached) " >&6
9610 else
9611   if test -n "$OTOOL64"; then
9612   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9613 else
9614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615 for as_dir in $PATH
9616 do
9617   IFS=$as_save_IFS
9618   test -z "$as_dir" && as_dir=.
9619     for ac_exec_ext in '' $ac_executable_extensions; do
9620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9621     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9623     break 2
9624   fi
9625 done
9626   done
9627 IFS=$as_save_IFS
9628
9629 fi
9630 fi
9631 OTOOL64=$ac_cv_prog_OTOOL64
9632 if test -n "$OTOOL64"; then
9633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9634 $as_echo "$OTOOL64" >&6; }
9635 else
9636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 $as_echo "no" >&6; }
9638 fi
9639
9640
9641 fi
9642 if test -z "$ac_cv_prog_OTOOL64"; then
9643   ac_ct_OTOOL64=$OTOOL64
9644   # Extract the first word of "otool64", so it can be a program name with args.
9645 set dummy otool64; ac_word=$2
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9647 $as_echo_n "checking for $ac_word... " >&6; }
9648 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9649   $as_echo_n "(cached) " >&6
9650 else
9651   if test -n "$ac_ct_OTOOL64"; then
9652   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9653 else
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 for as_dir in $PATH
9656 do
9657   IFS=$as_save_IFS
9658   test -z "$as_dir" && as_dir=.
9659     for ac_exec_ext in '' $ac_executable_extensions; do
9660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9661     ac_cv_prog_ac_ct_OTOOL64="otool64"
9662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9663     break 2
9664   fi
9665 done
9666   done
9667 IFS=$as_save_IFS
9668
9669 fi
9670 fi
9671 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9672 if test -n "$ac_ct_OTOOL64"; then
9673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9674 $as_echo "$ac_ct_OTOOL64" >&6; }
9675 else
9676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9678 fi
9679
9680   if test "x$ac_ct_OTOOL64" = x; then
9681     OTOOL64=":"
9682   else
9683     case $cross_compiling:$ac_tool_warned in
9684 yes:)
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9687 ac_tool_warned=yes ;;
9688 esac
9689     OTOOL64=$ac_ct_OTOOL64
9690   fi
9691 else
9692   OTOOL64="$ac_cv_prog_OTOOL64"
9693 fi
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9722 $as_echo_n "checking for -single_module linker flag... " >&6; }
9723 if ${lt_cv_apple_cc_single_mod+:} false; then :
9724   $as_echo_n "(cached) " >&6
9725 else
9726   lt_cv_apple_cc_single_mod=no
9727       if test -z "${LT_MULTI_MODULE}"; then
9728         # By default we will add the -single_module flag. You can override
9729         # by either setting the environment variable LT_MULTI_MODULE
9730         # non-empty at configure time, or by adding -multi_module to the
9731         # link flags.
9732         rm -rf libconftest.dylib*
9733         echo "int foo(void){return 1;}" > conftest.c
9734         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9735 -dynamiclib -Wl,-single_module conftest.c" >&5
9736         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9737           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9738         _lt_result=$?
9739         # If there is a non-empty error log, and "single_module"
9740         # appears in it, assume the flag caused a linker warning
9741         if test -s conftest.err && $GREP single_module conftest.err; then
9742           cat conftest.err >&5
9743         # Otherwise, if the output was created with a 0 exit code from
9744         # the compiler, it worked.
9745         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9746           lt_cv_apple_cc_single_mod=yes
9747         else
9748           cat conftest.err >&5
9749         fi
9750         rm -rf libconftest.dylib*
9751         rm -f conftest.*
9752       fi
9753 fi
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9755 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9756
9757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9758 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9759 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9760   $as_echo_n "(cached) " >&6
9761 else
9762   lt_cv_ld_exported_symbols_list=no
9763       save_LDFLAGS=$LDFLAGS
9764       echo "_main" > conftest.sym
9765       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h.  */
9768
9769 int
9770 main ()
9771 {
9772
9773   ;
9774   return 0;
9775 }
9776 _ACEOF
9777 if ac_fn_c_try_link "$LINENO"; then :
9778   lt_cv_ld_exported_symbols_list=yes
9779 else
9780   lt_cv_ld_exported_symbols_list=no
9781 fi
9782 rm -f core conftest.err conftest.$ac_objext \
9783     conftest$ac_exeext conftest.$ac_ext
9784         LDFLAGS="$save_LDFLAGS"
9785
9786 fi
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9788 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9789
9790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9791 $as_echo_n "checking for -force_load linker flag... " >&6; }
9792 if ${lt_cv_ld_force_load+:} false; then :
9793   $as_echo_n "(cached) " >&6
9794 else
9795   lt_cv_ld_force_load=no
9796       cat > conftest.c << _LT_EOF
9797 int forced_loaded() { return 2;}
9798 _LT_EOF
9799       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9800       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9801       echo "$AR cru libconftest.a conftest.o" >&5
9802       $AR cru libconftest.a conftest.o 2>&5
9803       echo "$RANLIB libconftest.a" >&5
9804       $RANLIB libconftest.a 2>&5
9805       cat > conftest.c << _LT_EOF
9806 int main() { return 0;}
9807 _LT_EOF
9808       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9809       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9810       _lt_result=$?
9811       if test -s conftest.err && $GREP force_load conftest.err; then
9812         cat conftest.err >&5
9813       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9814         lt_cv_ld_force_load=yes
9815       else
9816         cat conftest.err >&5
9817       fi
9818         rm -f conftest.err libconftest.a conftest conftest.c
9819         rm -rf conftest.dSYM
9820
9821 fi
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9823 $as_echo "$lt_cv_ld_force_load" >&6; }
9824     case $host_os in
9825     rhapsody* | darwin1.[012])
9826       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9827     darwin1.*)
9828       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9829     darwin*) # darwin 5.x on
9830       # if running on 10.5 or later, the deployment target defaults
9831       # to the OS version, if on x86, and 10.4, the deployment
9832       # target defaults to 10.4. Don't you love it?
9833       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9834         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9835           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9836         10.[012]*)
9837           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9838         10.*)
9839           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9840       esac
9841     ;;
9842   esac
9843     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9844       _lt_dar_single_mod='$single_module'
9845     fi
9846     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9847       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9848     else
9849       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9850     fi
9851     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9852       _lt_dsymutil='~$DSYMUTIL $lib || :'
9853     else
9854       _lt_dsymutil=
9855     fi
9856     ;;
9857   esac
9858
9859 for ac_header in dlfcn.h
9860 do :
9861   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9862 "
9863 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9864   cat >>confdefs.h <<_ACEOF
9865 #define HAVE_DLFCN_H 1
9866 _ACEOF
9867
9868 fi
9869
9870 done
9871
9872
9873
9874
9875 func_stripname_cnf ()
9876 {
9877   case ${2} in
9878   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9879   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9880   esac
9881 } # func_stripname_cnf
9882
9883
9884
9885
9886
9887 # Set options
9888
9889
9890
9891         enable_dlopen=no
9892
9893
9894   enable_win32_dll=no
9895
9896
9897             # Check whether --enable-shared was given.
9898 if test "${enable_shared+set}" = set; then :
9899   enableval=$enable_shared; p=${PACKAGE-default}
9900     case $enableval in
9901     yes) enable_shared=yes ;;
9902     no) enable_shared=no ;;
9903     *)
9904       enable_shared=no
9905       # Look at the argument we got.  We use all the common list separators.
9906       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9907       for pkg in $enableval; do
9908         IFS="$lt_save_ifs"
9909         if test "X$pkg" = "X$p"; then
9910           enable_shared=yes
9911         fi
9912       done
9913       IFS="$lt_save_ifs"
9914       ;;
9915     esac
9916 else
9917   enable_shared=yes
9918 fi
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928   # Check whether --enable-static was given.
9929 if test "${enable_static+set}" = set; then :
9930   enableval=$enable_static; p=${PACKAGE-default}
9931     case $enableval in
9932     yes) enable_static=yes ;;
9933     no) enable_static=no ;;
9934     *)
9935      enable_static=no
9936       # Look at the argument we got.  We use all the common list separators.
9937       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9938       for pkg in $enableval; do
9939         IFS="$lt_save_ifs"
9940         if test "X$pkg" = "X$p"; then
9941           enable_static=yes
9942         fi
9943       done
9944       IFS="$lt_save_ifs"
9945       ;;
9946     esac
9947 else
9948   enable_static=yes
9949 fi
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960 # Check whether --with-pic was given.
9961 if test "${with_pic+set}" = set; then :
9962   withval=$with_pic; lt_p=${PACKAGE-default}
9963     case $withval in
9964     yes|no) pic_mode=$withval ;;
9965     *)
9966       pic_mode=default
9967       # Look at the argument we got.  We use all the common list separators.
9968       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9969       for lt_pkg in $withval; do
9970         IFS="$lt_save_ifs"
9971         if test "X$lt_pkg" = "X$lt_p"; then
9972           pic_mode=yes
9973         fi
9974       done
9975       IFS="$lt_save_ifs"
9976       ;;
9977     esac
9978 else
9979   pic_mode=default
9980 fi
9981
9982
9983 test -z "$pic_mode" && pic_mode=default
9984
9985
9986
9987
9988
9989
9990
9991   # Check whether --enable-fast-install was given.
9992 if test "${enable_fast_install+set}" = set; then :
9993   enableval=$enable_fast_install; p=${PACKAGE-default}
9994     case $enableval in
9995     yes) enable_fast_install=yes ;;
9996     no) enable_fast_install=no ;;
9997     *)
9998       enable_fast_install=no
9999       # Look at the argument we got.  We use all the common list separators.
10000       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10001       for pkg in $enableval; do
10002         IFS="$lt_save_ifs"
10003         if test "X$pkg" = "X$p"; then
10004           enable_fast_install=yes
10005         fi
10006       done
10007       IFS="$lt_save_ifs"
10008       ;;
10009     esac
10010 else
10011   enable_fast_install=yes
10012 fi
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024 # This can be used to rebuild libtool when needed
10025 LIBTOOL_DEPS="$ltmain"
10026
10027 # Always use our own libtool.
10028 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059 test -z "$LN_S" && LN_S="ln -s"
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074 if test -n "${ZSH_VERSION+set}" ; then
10075    setopt NO_GLOB_SUBST
10076 fi
10077
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10079 $as_echo_n "checking for objdir... " >&6; }
10080 if ${lt_cv_objdir+:} false; then :
10081   $as_echo_n "(cached) " >&6
10082 else
10083   rm -f .libs 2>/dev/null
10084 mkdir .libs 2>/dev/null
10085 if test -d .libs; then
10086   lt_cv_objdir=.libs
10087 else
10088   # MS-DOS does not allow filenames that begin with a dot.
10089   lt_cv_objdir=_libs
10090 fi
10091 rmdir .libs 2>/dev/null
10092 fi
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10094 $as_echo "$lt_cv_objdir" >&6; }
10095 objdir=$lt_cv_objdir
10096
10097
10098
10099
10100
10101 cat >>confdefs.h <<_ACEOF
10102 #define LT_OBJDIR "$lt_cv_objdir/"
10103 _ACEOF
10104
10105
10106
10107
10108 case $host_os in
10109 aix3*)
10110   # AIX sometimes has problems with the GCC collect2 program.  For some
10111   # reason, if we set the COLLECT_NAMES environment variable, the problems
10112   # vanish in a puff of smoke.
10113   if test "X${COLLECT_NAMES+set}" != Xset; then
10114     COLLECT_NAMES=
10115     export COLLECT_NAMES
10116   fi
10117   ;;
10118 esac
10119
10120 # Global variables:
10121 ofile=libtool
10122 can_build_shared=yes
10123
10124 # All known linkers require a `.a' archive for static linking (except MSVC,
10125 # which needs '.lib').
10126 libext=a
10127
10128 with_gnu_ld="$lt_cv_prog_gnu_ld"
10129
10130 old_CC="$CC"
10131 old_CFLAGS="$CFLAGS"
10132
10133 # Set sane defaults for various variables
10134 test -z "$CC" && CC=cc
10135 test -z "$LTCC" && LTCC=$CC
10136 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10137 test -z "$LD" && LD=ld
10138 test -z "$ac_objext" && ac_objext=o
10139
10140 for cc_temp in $compiler""; do
10141   case $cc_temp in
10142     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10143     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10144     \-*) ;;
10145     *) break;;
10146   esac
10147 done
10148 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10149
10150
10151 # Only perform the check for file, if the check method requires it
10152 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10153 case $deplibs_check_method in
10154 file_magic*)
10155   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10157 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10158 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10159   $as_echo_n "(cached) " >&6
10160 else
10161   case $MAGIC_CMD in
10162 [\\/*] |  ?:[\\/]*)
10163   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10164   ;;
10165 *)
10166   lt_save_MAGIC_CMD="$MAGIC_CMD"
10167   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10168   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10169   for ac_dir in $ac_dummy; do
10170     IFS="$lt_save_ifs"
10171     test -z "$ac_dir" && ac_dir=.
10172     if test -f $ac_dir/${ac_tool_prefix}file; then
10173       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10174       if test -n "$file_magic_test_file"; then
10175         case $deplibs_check_method in
10176         "file_magic "*)
10177           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10178           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10179           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10180             $EGREP "$file_magic_regex" > /dev/null; then
10181             :
10182           else
10183             cat <<_LT_EOF 1>&2
10184
10185 *** Warning: the command libtool uses to detect shared libraries,
10186 *** $file_magic_cmd, produces output that libtool cannot recognize.
10187 *** The result is that libtool may fail to recognize shared libraries
10188 *** as such.  This will affect the creation of libtool libraries that
10189 *** depend on shared libraries, but programs linked with such libtool
10190 *** libraries will work regardless of this problem.  Nevertheless, you
10191 *** may want to report the problem to your system manager and/or to
10192 *** bug-libtool@gnu.org
10193
10194 _LT_EOF
10195           fi ;;
10196         esac
10197       fi
10198       break
10199     fi
10200   done
10201   IFS="$lt_save_ifs"
10202   MAGIC_CMD="$lt_save_MAGIC_CMD"
10203   ;;
10204 esac
10205 fi
10206
10207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10208 if test -n "$MAGIC_CMD"; then
10209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10210 $as_echo "$MAGIC_CMD" >&6; }
10211 else
10212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10214 fi
10215
10216
10217
10218
10219
10220 if test -z "$lt_cv_path_MAGIC_CMD"; then
10221   if test -n "$ac_tool_prefix"; then
10222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10223 $as_echo_n "checking for file... " >&6; }
10224 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10225   $as_echo_n "(cached) " >&6
10226 else
10227   case $MAGIC_CMD in
10228 [\\/*] |  ?:[\\/]*)
10229   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10230   ;;
10231 *)
10232   lt_save_MAGIC_CMD="$MAGIC_CMD"
10233   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10234   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10235   for ac_dir in $ac_dummy; do
10236     IFS="$lt_save_ifs"
10237     test -z "$ac_dir" && ac_dir=.
10238     if test -f $ac_dir/file; then
10239       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10240       if test -n "$file_magic_test_file"; then
10241         case $deplibs_check_method in
10242         "file_magic "*)
10243           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10244           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10245           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10246             $EGREP "$file_magic_regex" > /dev/null; then
10247             :
10248           else
10249             cat <<_LT_EOF 1>&2
10250
10251 *** Warning: the command libtool uses to detect shared libraries,
10252 *** $file_magic_cmd, produces output that libtool cannot recognize.
10253 *** The result is that libtool may fail to recognize shared libraries
10254 *** as such.  This will affect the creation of libtool libraries that
10255 *** depend on shared libraries, but programs linked with such libtool
10256 *** libraries will work regardless of this problem.  Nevertheless, you
10257 *** may want to report the problem to your system manager and/or to
10258 *** bug-libtool@gnu.org
10259
10260 _LT_EOF
10261           fi ;;
10262         esac
10263       fi
10264       break
10265     fi
10266   done
10267   IFS="$lt_save_ifs"
10268   MAGIC_CMD="$lt_save_MAGIC_CMD"
10269   ;;
10270 esac
10271 fi
10272
10273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10274 if test -n "$MAGIC_CMD"; then
10275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10276 $as_echo "$MAGIC_CMD" >&6; }
10277 else
10278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10280 fi
10281
10282
10283   else
10284     MAGIC_CMD=:
10285   fi
10286 fi
10287
10288   fi
10289   ;;
10290 esac
10291
10292 # Use C for the default configuration in the libtool script
10293
10294 lt_save_CC="$CC"
10295 ac_ext=c
10296 ac_cpp='$CPP $CPPFLAGS'
10297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10300
10301
10302 # Source file extension for C test sources.
10303 ac_ext=c
10304
10305 # Object file extension for compiled C test sources.
10306 objext=o
10307 objext=$objext
10308
10309 # Code to be used in simple compile tests
10310 lt_simple_compile_test_code="int some_variable = 0;"
10311
10312 # Code to be used in simple link tests
10313 lt_simple_link_test_code='int main(){return(0);}'
10314
10315
10316
10317
10318
10319
10320
10321 # If no C compiler was specified, use CC.
10322 LTCC=${LTCC-"$CC"}
10323
10324 # If no C compiler flags were specified, use CFLAGS.
10325 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10326
10327 # Allow CC to be a program name with arguments.
10328 compiler=$CC
10329
10330 # Save the default compiler, since it gets overwritten when the other
10331 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10332 compiler_DEFAULT=$CC
10333
10334 # save warnings/boilerplate of simple test code
10335 ac_outfile=conftest.$ac_objext
10336 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10337 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10338 _lt_compiler_boilerplate=`cat conftest.err`
10339 $RM conftest*
10340
10341 ac_outfile=conftest.$ac_objext
10342 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10343 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10344 _lt_linker_boilerplate=`cat conftest.err`
10345 $RM -r conftest*
10346
10347
10348 ## CAVEAT EMPTOR:
10349 ## There is no encapsulation within the following macros, do not change
10350 ## the running order or otherwise move them around unless you know exactly
10351 ## what you are doing...
10352 if test -n "$compiler"; then
10353
10354 lt_prog_compiler_no_builtin_flag=
10355
10356 if test "$GCC" = yes; then
10357   case $cc_basename in
10358   nvcc*)
10359     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10360   *)
10361     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10362   esac
10363
10364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10365 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10366 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10367   $as_echo_n "(cached) " >&6
10368 else
10369   lt_cv_prog_compiler_rtti_exceptions=no
10370    ac_outfile=conftest.$ac_objext
10371    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10372    lt_compiler_flag="-fno-rtti -fno-exceptions"
10373    # Insert the option either (1) after the last *FLAGS variable, or
10374    # (2) before a word containing "conftest.", or (3) at the end.
10375    # Note that $ac_compile itself does not contain backslashes and begins
10376    # with a dollar sign (not a hyphen), so the echo should work correctly.
10377    # The option is referenced via a variable to avoid confusing sed.
10378    lt_compile=`echo "$ac_compile" | $SED \
10379    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10380    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10381    -e 's:$: $lt_compiler_flag:'`
10382    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10383    (eval "$lt_compile" 2>conftest.err)
10384    ac_status=$?
10385    cat conftest.err >&5
10386    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387    if (exit $ac_status) && test -s "$ac_outfile"; then
10388      # The compiler can only warn and ignore the option if not recognized
10389      # So say no if there are warnings other than the usual output.
10390      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10391      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10392      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10393        lt_cv_prog_compiler_rtti_exceptions=yes
10394      fi
10395    fi
10396    $RM conftest*
10397
10398 fi
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10400 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10401
10402 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10403     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10404 else
10405     :
10406 fi
10407
10408 fi
10409
10410
10411
10412
10413
10414
10415   lt_prog_compiler_wl=
10416 lt_prog_compiler_pic=
10417 lt_prog_compiler_static=
10418
10419
10420   if test "$GCC" = yes; then
10421     lt_prog_compiler_wl='-Wl,'
10422     lt_prog_compiler_static='-static'
10423
10424     case $host_os in
10425       aix*)
10426       # All AIX code is PIC.
10427       if test "$host_cpu" = ia64; then
10428         # AIX 5 now supports IA64 processor
10429         lt_prog_compiler_static='-Bstatic'
10430       fi
10431       ;;
10432
10433     amigaos*)
10434       case $host_cpu in
10435       powerpc)
10436             # see comment about AmigaOS4 .so support
10437             lt_prog_compiler_pic='-fPIC'
10438         ;;
10439       m68k)
10440             # FIXME: we need at least 68020 code to build shared libraries, but
10441             # adding the `-m68020' flag to GCC prevents building anything better,
10442             # like `-m68040'.
10443             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10444         ;;
10445       esac
10446       ;;
10447
10448     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10449       # PIC is the default for these OSes.
10450       ;;
10451
10452     mingw* | cygwin* | pw32* | os2* | cegcc*)
10453       # This hack is so that the source file can tell whether it is being
10454       # built for inclusion in a dll (and should export symbols for example).
10455       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10456       # (--disable-auto-import) libraries
10457       lt_prog_compiler_pic='-DDLL_EXPORT'
10458       ;;
10459
10460     darwin* | rhapsody*)
10461       # PIC is the default on this platform
10462       # Common symbols not allowed in MH_DYLIB files
10463       lt_prog_compiler_pic='-fno-common'
10464       ;;
10465
10466     haiku*)
10467       # PIC is the default for Haiku.
10468       # The "-static" flag exists, but is broken.
10469       lt_prog_compiler_static=
10470       ;;
10471
10472     hpux*)
10473       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10474       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10475       # sets the default TLS model and affects inlining.
10476       case $host_cpu in
10477       hppa*64*)
10478         # +Z the default
10479         ;;
10480       *)
10481         lt_prog_compiler_pic='-fPIC'
10482         ;;
10483       esac
10484       ;;
10485
10486     interix[3-9]*)
10487       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10488       # Instead, we relocate shared libraries at runtime.
10489       ;;
10490
10491     msdosdjgpp*)
10492       # Just because we use GCC doesn't mean we suddenly get shared libraries
10493       # on systems that don't support them.
10494       lt_prog_compiler_can_build_shared=no
10495       enable_shared=no
10496       ;;
10497
10498     *nto* | *qnx*)
10499       # QNX uses GNU C++, but need to define -shared option too, otherwise
10500       # it will coredump.
10501       lt_prog_compiler_pic='-fPIC -shared'
10502       ;;
10503
10504     sysv4*MP*)
10505       if test -d /usr/nec; then
10506         lt_prog_compiler_pic=-Kconform_pic
10507       fi
10508       ;;
10509
10510     *)
10511       lt_prog_compiler_pic='-fPIC'
10512       ;;
10513     esac
10514
10515     case $cc_basename in
10516     nvcc*) # Cuda Compiler Driver 2.2
10517       lt_prog_compiler_wl='-Xlinker '
10518       if test -n "$lt_prog_compiler_pic"; then
10519         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10520       fi
10521       ;;
10522     esac
10523   else
10524     # PORTME Check for flag to pass linker flags through the system compiler.
10525     case $host_os in
10526     aix*)
10527       lt_prog_compiler_wl='-Wl,'
10528       if test "$host_cpu" = ia64; then
10529         # AIX 5 now supports IA64 processor
10530         lt_prog_compiler_static='-Bstatic'
10531       else
10532         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10533       fi
10534       ;;
10535
10536     mingw* | cygwin* | pw32* | os2* | cegcc*)
10537       # This hack is so that the source file can tell whether it is being
10538       # built for inclusion in a dll (and should export symbols for example).
10539       lt_prog_compiler_pic='-DDLL_EXPORT'
10540       ;;
10541
10542     hpux9* | hpux10* | hpux11*)
10543       lt_prog_compiler_wl='-Wl,'
10544       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10545       # not for PA HP-UX.
10546       case $host_cpu in
10547       hppa*64*|ia64*)
10548         # +Z the default
10549         ;;
10550       *)
10551         lt_prog_compiler_pic='+Z'
10552         ;;
10553       esac
10554       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10555       lt_prog_compiler_static='${wl}-a ${wl}archive'
10556       ;;
10557
10558     irix5* | irix6* | nonstopux*)
10559       lt_prog_compiler_wl='-Wl,'
10560       # PIC (with -KPIC) is the default.
10561       lt_prog_compiler_static='-non_shared'
10562       ;;
10563
10564     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10565       case $cc_basename in
10566       # old Intel for x86_64 which still supported -KPIC.
10567       ecc*)
10568         lt_prog_compiler_wl='-Wl,'
10569         lt_prog_compiler_pic='-KPIC'
10570         lt_prog_compiler_static='-static'
10571         ;;
10572       # icc used to be incompatible with GCC.
10573       # ICC 10 doesn't accept -KPIC any more.
10574       icc* | ifort*)
10575         lt_prog_compiler_wl='-Wl,'
10576         lt_prog_compiler_pic='-fPIC'
10577         lt_prog_compiler_static='-static'
10578         ;;
10579       # Lahey Fortran 8.1.
10580       lf95*)
10581         lt_prog_compiler_wl='-Wl,'
10582         lt_prog_compiler_pic='--shared'
10583         lt_prog_compiler_static='--static'
10584         ;;
10585       nagfor*)
10586         # NAG Fortran compiler
10587         lt_prog_compiler_wl='-Wl,-Wl,,'
10588         lt_prog_compiler_pic='-PIC'
10589         lt_prog_compiler_static='-Bstatic'
10590         ;;
10591       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10592         # Portland Group compilers (*not* the Pentium gcc compiler,
10593         # which looks to be a dead project)
10594         lt_prog_compiler_wl='-Wl,'
10595         lt_prog_compiler_pic='-fpic'
10596         lt_prog_compiler_static='-Bstatic'
10597         ;;
10598       ccc*)
10599         lt_prog_compiler_wl='-Wl,'
10600         # All Alpha code is PIC.
10601         lt_prog_compiler_static='-non_shared'
10602         ;;
10603       xl* | bgxl* | bgf* | mpixl*)
10604         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10605         lt_prog_compiler_wl='-Wl,'
10606         lt_prog_compiler_pic='-qpic'
10607         lt_prog_compiler_static='-qstaticlink'
10608         ;;
10609       *)
10610         case `$CC -V 2>&1 | sed 5q` in
10611         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10612           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10613           lt_prog_compiler_pic='-KPIC'
10614           lt_prog_compiler_static='-Bstatic'
10615           lt_prog_compiler_wl=''
10616           ;;
10617         *Sun\ F* | *Sun*Fortran*)
10618           lt_prog_compiler_pic='-KPIC'
10619           lt_prog_compiler_static='-Bstatic'
10620           lt_prog_compiler_wl='-Qoption ld '
10621           ;;
10622         *Sun\ C*)
10623           # Sun C 5.9
10624           lt_prog_compiler_pic='-KPIC'
10625           lt_prog_compiler_static='-Bstatic'
10626           lt_prog_compiler_wl='-Wl,'
10627           ;;
10628         *Intel*\ [CF]*Compiler*)
10629           lt_prog_compiler_wl='-Wl,'
10630           lt_prog_compiler_pic='-fPIC'
10631           lt_prog_compiler_static='-static'
10632           ;;
10633         *Portland\ Group*)
10634           lt_prog_compiler_wl='-Wl,'
10635           lt_prog_compiler_pic='-fpic'
10636           lt_prog_compiler_static='-Bstatic'
10637           ;;
10638         esac
10639         ;;
10640       esac
10641       ;;
10642
10643     newsos6)
10644       lt_prog_compiler_pic='-KPIC'
10645       lt_prog_compiler_static='-Bstatic'
10646       ;;
10647
10648     *nto* | *qnx*)
10649       # QNX uses GNU C++, but need to define -shared option too, otherwise
10650       # it will coredump.
10651       lt_prog_compiler_pic='-fPIC -shared'
10652       ;;
10653
10654     osf3* | osf4* | osf5*)
10655       lt_prog_compiler_wl='-Wl,'
10656       # All OSF/1 code is PIC.
10657       lt_prog_compiler_static='-non_shared'
10658       ;;
10659
10660     rdos*)
10661       lt_prog_compiler_static='-non_shared'
10662       ;;
10663
10664     solaris*)
10665       lt_prog_compiler_pic='-KPIC'
10666       lt_prog_compiler_static='-Bstatic'
10667       case $cc_basename in
10668       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10669         lt_prog_compiler_wl='-Qoption ld ';;
10670       *)
10671         lt_prog_compiler_wl='-Wl,';;
10672       esac
10673       ;;
10674
10675     sunos4*)
10676       lt_prog_compiler_wl='-Qoption ld '
10677       lt_prog_compiler_pic='-PIC'
10678       lt_prog_compiler_static='-Bstatic'
10679       ;;
10680
10681     sysv4 | sysv4.2uw2* | sysv4.3*)
10682       lt_prog_compiler_wl='-Wl,'
10683       lt_prog_compiler_pic='-KPIC'
10684       lt_prog_compiler_static='-Bstatic'
10685       ;;
10686
10687     sysv4*MP*)
10688       if test -d /usr/nec ;then
10689         lt_prog_compiler_pic='-Kconform_pic'
10690         lt_prog_compiler_static='-Bstatic'
10691       fi
10692       ;;
10693
10694     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10695       lt_prog_compiler_wl='-Wl,'
10696       lt_prog_compiler_pic='-KPIC'
10697       lt_prog_compiler_static='-Bstatic'
10698       ;;
10699
10700     unicos*)
10701       lt_prog_compiler_wl='-Wl,'
10702       lt_prog_compiler_can_build_shared=no
10703       ;;
10704
10705     uts4*)
10706       lt_prog_compiler_pic='-pic'
10707       lt_prog_compiler_static='-Bstatic'
10708       ;;
10709
10710     *)
10711       lt_prog_compiler_can_build_shared=no
10712       ;;
10713     esac
10714   fi
10715
10716 case $host_os in
10717   # For platforms which do not support PIC, -DPIC is meaningless:
10718   *djgpp*)
10719     lt_prog_compiler_pic=
10720     ;;
10721   *)
10722     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10723     ;;
10724 esac
10725
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10727 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10728 if ${lt_cv_prog_compiler_pic+:} false; then :
10729   $as_echo_n "(cached) " >&6
10730 else
10731   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10732 fi
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10734 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10735 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10736
10737 #
10738 # Check to make sure the PIC flag actually works.
10739 #
10740 if test -n "$lt_prog_compiler_pic"; then
10741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10742 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10743 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10744   $as_echo_n "(cached) " >&6
10745 else
10746   lt_cv_prog_compiler_pic_works=no
10747    ac_outfile=conftest.$ac_objext
10748    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10749    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10750    # Insert the option either (1) after the last *FLAGS variable, or
10751    # (2) before a word containing "conftest.", or (3) at the end.
10752    # Note that $ac_compile itself does not contain backslashes and begins
10753    # with a dollar sign (not a hyphen), so the echo should work correctly.
10754    # The option is referenced via a variable to avoid confusing sed.
10755    lt_compile=`echo "$ac_compile" | $SED \
10756    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10757    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10758    -e 's:$: $lt_compiler_flag:'`
10759    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10760    (eval "$lt_compile" 2>conftest.err)
10761    ac_status=$?
10762    cat conftest.err >&5
10763    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764    if (exit $ac_status) && test -s "$ac_outfile"; then
10765      # The compiler can only warn and ignore the option if not recognized
10766      # So say no if there are warnings other than the usual output.
10767      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10768      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10769      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10770        lt_cv_prog_compiler_pic_works=yes
10771      fi
10772    fi
10773    $RM conftest*
10774
10775 fi
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10777 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10778
10779 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10780     case $lt_prog_compiler_pic in
10781      "" | " "*) ;;
10782      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10783      esac
10784 else
10785     lt_prog_compiler_pic=
10786      lt_prog_compiler_can_build_shared=no
10787 fi
10788
10789 fi
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801 #
10802 # Check to make sure the static flag actually works.
10803 #
10804 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10806 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10807 if ${lt_cv_prog_compiler_static_works+:} false; then :
10808   $as_echo_n "(cached) " >&6
10809 else
10810   lt_cv_prog_compiler_static_works=no
10811    save_LDFLAGS="$LDFLAGS"
10812    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10813    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10814    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10815      # The linker can only warn and ignore the option if not recognized
10816      # So say no if there are warnings
10817      if test -s conftest.err; then
10818        # Append any errors to the config.log.
10819        cat conftest.err 1>&5
10820        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10821        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10822        if diff conftest.exp conftest.er2 >/dev/null; then
10823          lt_cv_prog_compiler_static_works=yes
10824        fi
10825      else
10826        lt_cv_prog_compiler_static_works=yes
10827      fi
10828    fi
10829    $RM -r conftest*
10830    LDFLAGS="$save_LDFLAGS"
10831
10832 fi
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10834 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10835
10836 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10837     :
10838 else
10839     lt_prog_compiler_static=
10840 fi
10841
10842
10843
10844
10845
10846
10847
10848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10849 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10850 if ${lt_cv_prog_compiler_c_o+:} false; then :
10851   $as_echo_n "(cached) " >&6
10852 else
10853   lt_cv_prog_compiler_c_o=no
10854    $RM -r conftest 2>/dev/null
10855    mkdir conftest
10856    cd conftest
10857    mkdir out
10858    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10859
10860    lt_compiler_flag="-o out/conftest2.$ac_objext"
10861    # Insert the option either (1) after the last *FLAGS variable, or
10862    # (2) before a word containing "conftest.", or (3) at the end.
10863    # Note that $ac_compile itself does not contain backslashes and begins
10864    # with a dollar sign (not a hyphen), so the echo should work correctly.
10865    lt_compile=`echo "$ac_compile" | $SED \
10866    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10868    -e 's:$: $lt_compiler_flag:'`
10869    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10870    (eval "$lt_compile" 2>out/conftest.err)
10871    ac_status=$?
10872    cat out/conftest.err >&5
10873    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10875    then
10876      # The compiler can only warn and ignore the option if not recognized
10877      # So say no if there are warnings
10878      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10879      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10880      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10881        lt_cv_prog_compiler_c_o=yes
10882      fi
10883    fi
10884    chmod u+w . 2>&5
10885    $RM conftest*
10886    # SGI C++ compiler will create directory out/ii_files/ for
10887    # template instantiation
10888    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10889    $RM out/* && rmdir out
10890    cd ..
10891    $RM -r conftest
10892    $RM conftest*
10893
10894 fi
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10896 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10897
10898
10899
10900
10901
10902
10903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10904 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10905 if ${lt_cv_prog_compiler_c_o+:} false; then :
10906   $as_echo_n "(cached) " >&6
10907 else
10908   lt_cv_prog_compiler_c_o=no
10909    $RM -r conftest 2>/dev/null
10910    mkdir conftest
10911    cd conftest
10912    mkdir out
10913    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10914
10915    lt_compiler_flag="-o out/conftest2.$ac_objext"
10916    # Insert the option either (1) after the last *FLAGS variable, or
10917    # (2) before a word containing "conftest.", or (3) at the end.
10918    # Note that $ac_compile itself does not contain backslashes and begins
10919    # with a dollar sign (not a hyphen), so the echo should work correctly.
10920    lt_compile=`echo "$ac_compile" | $SED \
10921    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10922    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10923    -e 's:$: $lt_compiler_flag:'`
10924    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10925    (eval "$lt_compile" 2>out/conftest.err)
10926    ac_status=$?
10927    cat out/conftest.err >&5
10928    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10930    then
10931      # The compiler can only warn and ignore the option if not recognized
10932      # So say no if there are warnings
10933      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10934      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10935      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10936        lt_cv_prog_compiler_c_o=yes
10937      fi
10938    fi
10939    chmod u+w . 2>&5
10940    $RM conftest*
10941    # SGI C++ compiler will create directory out/ii_files/ for
10942    # template instantiation
10943    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10944    $RM out/* && rmdir out
10945    cd ..
10946    $RM -r conftest
10947    $RM conftest*
10948
10949 fi
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10951 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10952
10953
10954
10955
10956 hard_links="nottested"
10957 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10958   # do not overwrite the value of need_locks provided by the user
10959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10960 $as_echo_n "checking if we can lock with hard links... " >&6; }
10961   hard_links=yes
10962   $RM conftest*
10963   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10964   touch conftest.a
10965   ln conftest.a conftest.b 2>&5 || hard_links=no
10966   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10968 $as_echo "$hard_links" >&6; }
10969   if test "$hard_links" = no; then
10970     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10971 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10972     need_locks=warn
10973   fi
10974 else
10975   need_locks=no
10976 fi
10977
10978
10979
10980
10981
10982
10983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10984 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10985
10986   runpath_var=
10987   allow_undefined_flag=
10988   always_export_symbols=no
10989   archive_cmds=
10990   archive_expsym_cmds=
10991   compiler_needs_object=no
10992   enable_shared_with_static_runtimes=no
10993   export_dynamic_flag_spec=
10994   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10995   hardcode_automatic=no
10996   hardcode_direct=no
10997   hardcode_direct_absolute=no
10998   hardcode_libdir_flag_spec=
10999   hardcode_libdir_separator=
11000   hardcode_minus_L=no
11001   hardcode_shlibpath_var=unsupported
11002   inherit_rpath=no
11003   link_all_deplibs=unknown
11004   module_cmds=
11005   module_expsym_cmds=
11006   old_archive_from_new_cmds=
11007   old_archive_from_expsyms_cmds=
11008   thread_safe_flag_spec=
11009   whole_archive_flag_spec=
11010   # include_expsyms should be a list of space-separated symbols to be *always*
11011   # included in the symbol list
11012   include_expsyms=
11013   # exclude_expsyms can be an extended regexp of symbols to exclude
11014   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11015   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11016   # as well as any symbol that contains `d'.
11017   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11018   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11019   # platforms (ab)use it in PIC code, but their linkers get confused if
11020   # the symbol is explicitly referenced.  Since portable code cannot
11021   # rely on this symbol name, it's probably fine to never include it in
11022   # preloaded symbol tables.
11023   # Exclude shared library initialization/finalization symbols.
11024   extract_expsyms_cmds=
11025
11026   case $host_os in
11027   cygwin* | mingw* | pw32* | cegcc*)
11028     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11029     # When not using gcc, we currently assume that we are using
11030     # Microsoft Visual C++.
11031     if test "$GCC" != yes; then
11032       with_gnu_ld=no
11033     fi
11034     ;;
11035   interix*)
11036     # we just hope/assume this is gcc and not c89 (= MSVC++)
11037     with_gnu_ld=yes
11038     ;;
11039   openbsd*)
11040     with_gnu_ld=no
11041     ;;
11042   esac
11043
11044   ld_shlibs=yes
11045
11046   # On some targets, GNU ld is compatible enough with the native linker
11047   # that we're better off using the native interface for both.
11048   lt_use_gnu_ld_interface=no
11049   if test "$with_gnu_ld" = yes; then
11050     case $host_os in
11051       aix*)
11052         # The AIX port of GNU ld has always aspired to compatibility
11053         # with the native linker.  However, as the warning in the GNU ld
11054         # block says, versions before 2.19.5* couldn't really create working
11055         # shared libraries, regardless of the interface used.
11056         case `$LD -v 2>&1` in
11057           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11058           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11059           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11060           *)
11061             lt_use_gnu_ld_interface=yes
11062             ;;
11063         esac
11064         ;;
11065       *)
11066         lt_use_gnu_ld_interface=yes
11067         ;;
11068     esac
11069   fi
11070
11071   if test "$lt_use_gnu_ld_interface" = yes; then
11072     # If archive_cmds runs LD, not CC, wlarc should be empty
11073     wlarc='${wl}'
11074
11075     # Set some defaults for GNU ld with shared library support. These
11076     # are reset later if shared libraries are not supported. Putting them
11077     # here allows them to be overridden if necessary.
11078     runpath_var=LD_RUN_PATH
11079     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11080     export_dynamic_flag_spec='${wl}--export-dynamic'
11081     # ancient GNU ld didn't support --whole-archive et. al.
11082     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11083       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11084     else
11085       whole_archive_flag_spec=
11086     fi
11087     supports_anon_versioning=no
11088     case `$LD -v 2>&1` in
11089       *GNU\ gold*) supports_anon_versioning=yes ;;
11090       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11091       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11092       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11093       *\ 2.11.*) ;; # other 2.11 versions
11094       *) supports_anon_versioning=yes ;;
11095     esac
11096
11097     # See if GNU ld supports shared libraries.
11098     case $host_os in
11099     aix[3-9]*)
11100       # On AIX/PPC, the GNU linker is very broken
11101       if test "$host_cpu" != ia64; then
11102         ld_shlibs=no
11103         cat <<_LT_EOF 1>&2
11104
11105 *** Warning: the GNU linker, at least up to release 2.19, is reported
11106 *** to be unable to reliably create shared libraries on AIX.
11107 *** Therefore, libtool is disabling shared libraries support.  If you
11108 *** really care for shared libraries, you may want to install binutils
11109 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11110 *** You will then need to restart the configuration process.
11111
11112 _LT_EOF
11113       fi
11114       ;;
11115
11116     amigaos*)
11117       case $host_cpu in
11118       powerpc)
11119             # see comment about AmigaOS4 .so support
11120             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11121             archive_expsym_cmds=''
11122         ;;
11123       m68k)
11124             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)'
11125             hardcode_libdir_flag_spec='-L$libdir'
11126             hardcode_minus_L=yes
11127         ;;
11128       esac
11129       ;;
11130
11131     beos*)
11132       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11133         allow_undefined_flag=unsupported
11134         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11135         # support --undefined.  This deserves some investigation.  FIXME
11136         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11137       else
11138         ld_shlibs=no
11139       fi
11140       ;;
11141
11142     cygwin* | mingw* | pw32* | cegcc*)
11143       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11144       # as there is no search path for DLLs.
11145       hardcode_libdir_flag_spec='-L$libdir'
11146       export_dynamic_flag_spec='${wl}--export-all-symbols'
11147       allow_undefined_flag=unsupported
11148       always_export_symbols=no
11149       enable_shared_with_static_runtimes=yes
11150       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'
11151       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11152
11153       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11154         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11155         # If the export-symbols file already is a .def file (1st line
11156         # is EXPORTS), use it as is; otherwise, prepend...
11157         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11158           cp $export_symbols $output_objdir/$soname.def;
11159         else
11160           echo EXPORTS > $output_objdir/$soname.def;
11161           cat $export_symbols >> $output_objdir/$soname.def;
11162         fi~
11163         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11164       else
11165         ld_shlibs=no
11166       fi
11167       ;;
11168
11169     haiku*)
11170       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11171       link_all_deplibs=yes
11172       ;;
11173
11174     interix[3-9]*)
11175       hardcode_direct=no
11176       hardcode_shlibpath_var=no
11177       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11178       export_dynamic_flag_spec='${wl}-E'
11179       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11180       # Instead, shared libraries are loaded at an image base (0x10000000 by
11181       # default) and relocated if they conflict, which is a slow very memory
11182       # consuming and fragmenting process.  To avoid this, we pick a random,
11183       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11184       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11185       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11186       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'
11187       ;;
11188
11189     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11190       tmp_diet=no
11191       if test "$host_os" = linux-dietlibc; then
11192         case $cc_basename in
11193           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11194         esac
11195       fi
11196       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11197          && test "$tmp_diet" = no
11198       then
11199         tmp_addflag=' $pic_flag'
11200         tmp_sharedflag='-shared'
11201         case $cc_basename,$host_cpu in
11202         pgcc*)                          # Portland Group C compiler
11203           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'
11204           tmp_addflag=' $pic_flag'
11205           ;;
11206         pgf77* | pgf90* | pgf95* | pgfortran*)
11207                                         # Portland Group f77 and f90 compilers
11208           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'
11209           tmp_addflag=' $pic_flag -Mnomain' ;;
11210         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11211           tmp_addflag=' -i_dynamic' ;;
11212         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11213           tmp_addflag=' -i_dynamic -nofor_main' ;;
11214         ifc* | ifort*)                  # Intel Fortran compiler
11215           tmp_addflag=' -nofor_main' ;;
11216         lf95*)                          # Lahey Fortran 8.1
11217           whole_archive_flag_spec=
11218           tmp_sharedflag='--shared' ;;
11219         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11220           tmp_sharedflag='-qmkshrobj'
11221           tmp_addflag= ;;
11222         nvcc*)  # Cuda Compiler Driver 2.2
11223           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'
11224           compiler_needs_object=yes
11225           ;;
11226         esac
11227         case `$CC -V 2>&1 | sed 5q` in
11228         *Sun\ C*)                       # Sun C 5.9
11229           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'
11230           compiler_needs_object=yes
11231           tmp_sharedflag='-G' ;;
11232         *Sun\ F*)                       # Sun Fortran 8.3
11233           tmp_sharedflag='-G' ;;
11234         esac
11235         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11236
11237         if test "x$supports_anon_versioning" = xyes; then
11238           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11239             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11240             echo "local: *; };" >> $output_objdir/$libname.ver~
11241             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11242         fi
11243
11244         case $cc_basename in
11245         xlf* | bgf* | bgxlf* | mpixlf*)
11246           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11247           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11248           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11249           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11250           if test "x$supports_anon_versioning" = xyes; then
11251             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11252               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11253               echo "local: *; };" >> $output_objdir/$libname.ver~
11254               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11255           fi
11256           ;;
11257         esac
11258       else
11259         ld_shlibs=no
11260       fi
11261       ;;
11262
11263     netbsd*)
11264       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11265         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11266         wlarc=
11267       else
11268         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11269         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11270       fi
11271       ;;
11272
11273     solaris*)
11274       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11275         ld_shlibs=no
11276         cat <<_LT_EOF 1>&2
11277
11278 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11279 *** create shared libraries on Solaris systems.  Therefore, libtool
11280 *** is disabling shared libraries support.  We urge you to upgrade GNU
11281 *** binutils to release 2.9.1 or newer.  Another option is to modify
11282 *** your PATH or compiler configuration so that the native linker is
11283 *** used, and then restart.
11284
11285 _LT_EOF
11286       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11287         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11288         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11289       else
11290         ld_shlibs=no
11291       fi
11292       ;;
11293
11294     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11295       case `$LD -v 2>&1` in
11296         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11297         ld_shlibs=no
11298         cat <<_LT_EOF 1>&2
11299
11300 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11301 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11302 *** is disabling shared libraries support.  We urge you to upgrade GNU
11303 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11304 *** your PATH or compiler configuration so that the native linker is
11305 *** used, and then restart.
11306
11307 _LT_EOF
11308         ;;
11309         *)
11310           # For security reasons, it is highly recommended that you always
11311           # use absolute paths for naming shared libraries, and exclude the
11312           # DT_RUNPATH tag from executables and libraries.  But doing so
11313           # requires that you compile everything twice, which is a pain.
11314           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11315             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11316             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11317             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11318           else
11319             ld_shlibs=no
11320           fi
11321         ;;
11322       esac
11323       ;;
11324
11325     sunos4*)
11326       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11327       wlarc=
11328       hardcode_direct=yes
11329       hardcode_shlibpath_var=no
11330       ;;
11331
11332     *)
11333       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11334         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11335         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11336       else
11337         ld_shlibs=no
11338       fi
11339       ;;
11340     esac
11341
11342     if test "$ld_shlibs" = no; then
11343       runpath_var=
11344       hardcode_libdir_flag_spec=
11345       export_dynamic_flag_spec=
11346       whole_archive_flag_spec=
11347     fi
11348   else
11349     # PORTME fill in a description of your system's linker (not GNU ld)
11350     case $host_os in
11351     aix3*)
11352       allow_undefined_flag=unsupported
11353       always_export_symbols=yes
11354       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'
11355       # Note: this linker hardcodes the directories in LIBPATH if there
11356       # are no directories specified by -L.
11357       hardcode_minus_L=yes
11358       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11359         # Neither direct hardcoding nor static linking is supported with a
11360         # broken collect2.
11361         hardcode_direct=unsupported
11362       fi
11363       ;;
11364
11365     aix[4-9]*)
11366       if test "$host_cpu" = ia64; then
11367         # On IA64, the linker does run time linking by default, so we don't
11368         # have to do anything special.
11369         aix_use_runtimelinking=no
11370         exp_sym_flag='-Bexport'
11371         no_entry_flag=""
11372       else
11373         # If we're using GNU nm, then we don't want the "-C" option.
11374         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11375         # Also, AIX nm treats weak defined symbols like other global
11376         # defined symbols, whereas GNU nm marks them as "W".
11377         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11378           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'
11379         else
11380           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'
11381         fi
11382         aix_use_runtimelinking=no
11383
11384         # Test if we are trying to use run time linking or normal
11385         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11386         # need to do runtime linking.
11387         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11388           for ld_flag in $LDFLAGS; do
11389           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11390             aix_use_runtimelinking=yes
11391             break
11392           fi
11393           done
11394           ;;
11395         esac
11396
11397         exp_sym_flag='-bexport'
11398         no_entry_flag='-bnoentry'
11399       fi
11400
11401       # When large executables or shared objects are built, AIX ld can
11402       # have problems creating the table of contents.  If linking a library
11403       # or program results in "error TOC overflow" add -mminimal-toc to
11404       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11405       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11406
11407       archive_cmds=''
11408       hardcode_direct=yes
11409       hardcode_direct_absolute=yes
11410       hardcode_libdir_separator=':'
11411       link_all_deplibs=yes
11412       file_list_spec='${wl}-f,'
11413
11414       if test "$GCC" = yes; then
11415         case $host_os in aix4.[012]|aix4.[012].*)
11416         # We only want to do this on AIX 4.2 and lower, the check
11417         # below for broken collect2 doesn't work under 4.3+
11418           collect2name=`${CC} -print-prog-name=collect2`
11419           if test -f "$collect2name" &&
11420            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11421           then
11422           # We have reworked collect2
11423           :
11424           else
11425           # We have old collect2
11426           hardcode_direct=unsupported
11427           # It fails to find uninstalled libraries when the uninstalled
11428           # path is not listed in the libpath.  Setting hardcode_minus_L
11429           # to unsupported forces relinking
11430           hardcode_minus_L=yes
11431           hardcode_libdir_flag_spec='-L$libdir'
11432           hardcode_libdir_separator=
11433           fi
11434           ;;
11435         esac
11436         shared_flag='-shared'
11437         if test "$aix_use_runtimelinking" = yes; then
11438           shared_flag="$shared_flag "'${wl}-G'
11439         fi
11440       else
11441         # not using gcc
11442         if test "$host_cpu" = ia64; then
11443         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11444         # chokes on -Wl,-G. The following line is correct:
11445           shared_flag='-G'
11446         else
11447           if test "$aix_use_runtimelinking" = yes; then
11448             shared_flag='${wl}-G'
11449           else
11450             shared_flag='${wl}-bM:SRE'
11451           fi
11452         fi
11453       fi
11454
11455       export_dynamic_flag_spec='${wl}-bexpall'
11456       # It seems that -bexpall does not export symbols beginning with
11457       # underscore (_), so it is better to generate a list of symbols to export.
11458       always_export_symbols=yes
11459       if test "$aix_use_runtimelinking" = yes; then
11460         # Warning - without using the other runtime loading flags (-brtl),
11461         # -berok will link without error, but may produce a broken library.
11462         allow_undefined_flag='-berok'
11463         # Determine the default libpath from the value encoded in an
11464         # empty executable.
11465         if test "${lt_cv_aix_libpath+set}" = set; then
11466   aix_libpath=$lt_cv_aix_libpath
11467 else
11468   if ${lt_cv_aix_libpath_+:} false; then :
11469   $as_echo_n "(cached) " >&6
11470 else
11471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h.  */
11473
11474 int
11475 main ()
11476 {
11477
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 if ac_fn_c_try_link "$LINENO"; then :
11483
11484   lt_aix_libpath_sed='
11485       /Import File Strings/,/^$/ {
11486           /^0/ {
11487               s/^0  *\([^ ]*\) *$/\1/
11488               p
11489           }
11490       }'
11491   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11492   # Check for a 64-bit object if we didn't find anything.
11493   if test -z "$lt_cv_aix_libpath_"; then
11494     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11495   fi
11496 fi
11497 rm -f core conftest.err conftest.$ac_objext \
11498     conftest$ac_exeext conftest.$ac_ext
11499   if test -z "$lt_cv_aix_libpath_"; then
11500     lt_cv_aix_libpath_="/usr/lib:/lib"
11501   fi
11502
11503 fi
11504
11505   aix_libpath=$lt_cv_aix_libpath_
11506 fi
11507
11508         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11509         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"
11510       else
11511         if test "$host_cpu" = ia64; then
11512           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11513           allow_undefined_flag="-z nodefs"
11514           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"
11515         else
11516          # Determine the default libpath from the value encoded in an
11517          # empty executable.
11518          if test "${lt_cv_aix_libpath+set}" = set; then
11519   aix_libpath=$lt_cv_aix_libpath
11520 else
11521   if ${lt_cv_aix_libpath_+:} false; then :
11522   $as_echo_n "(cached) " >&6
11523 else
11524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h.  */
11526
11527 int
11528 main ()
11529 {
11530
11531   ;
11532   return 0;
11533 }
11534 _ACEOF
11535 if ac_fn_c_try_link "$LINENO"; then :
11536
11537   lt_aix_libpath_sed='
11538       /Import File Strings/,/^$/ {
11539           /^0/ {
11540               s/^0  *\([^ ]*\) *$/\1/
11541               p
11542           }
11543       }'
11544   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11545   # Check for a 64-bit object if we didn't find anything.
11546   if test -z "$lt_cv_aix_libpath_"; then
11547     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11548   fi
11549 fi
11550 rm -f core conftest.err conftest.$ac_objext \
11551     conftest$ac_exeext conftest.$ac_ext
11552   if test -z "$lt_cv_aix_libpath_"; then
11553     lt_cv_aix_libpath_="/usr/lib:/lib"
11554   fi
11555
11556 fi
11557
11558   aix_libpath=$lt_cv_aix_libpath_
11559 fi
11560
11561          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11562           # Warning - without using the other run time loading flags,
11563           # -berok will link without error, but may produce a broken library.
11564           no_undefined_flag=' ${wl}-bernotok'
11565           allow_undefined_flag=' ${wl}-berok'
11566           if test "$with_gnu_ld" = yes; then
11567             # We only use this code for GNU lds that support --whole-archive.
11568             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11569           else
11570             # Exported symbols can be pulled into shared objects from archives
11571             whole_archive_flag_spec='$convenience'
11572           fi
11573           archive_cmds_need_lc=yes
11574           # This is similar to how AIX traditionally builds its shared libraries.
11575           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'
11576         fi
11577       fi
11578       ;;
11579
11580     amigaos*)
11581       case $host_cpu in
11582       powerpc)
11583             # see comment about AmigaOS4 .so support
11584             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11585             archive_expsym_cmds=''
11586         ;;
11587       m68k)
11588             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)'
11589             hardcode_libdir_flag_spec='-L$libdir'
11590             hardcode_minus_L=yes
11591         ;;
11592       esac
11593       ;;
11594
11595     bsdi[45]*)
11596       export_dynamic_flag_spec=-rdynamic
11597       ;;
11598
11599     cygwin* | mingw* | pw32* | cegcc*)
11600       # When not using gcc, we currently assume that we are using
11601       # Microsoft Visual C++.
11602       # hardcode_libdir_flag_spec is actually meaningless, as there is
11603       # no search path for DLLs.
11604       case $cc_basename in
11605       cl*)
11606         # Native MSVC
11607         hardcode_libdir_flag_spec=' '
11608         allow_undefined_flag=unsupported
11609         always_export_symbols=yes
11610         file_list_spec='@'
11611         # Tell ltmain to make .lib files, not .a files.
11612         libext=lib
11613         # Tell ltmain to make .dll files, not .so files.
11614         shrext_cmds=".dll"
11615         # FIXME: Setting linknames here is a bad hack.
11616         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11617         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11618             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11619           else
11620             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11621           fi~
11622           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11623           linknames='
11624         # The linker will not automatically build a static lib if we build a DLL.
11625         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11626         enable_shared_with_static_runtimes=yes
11627         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11628         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11629         # Don't use ranlib
11630         old_postinstall_cmds='chmod 644 $oldlib'
11631         postlink_cmds='lt_outputfile="@OUTPUT@"~
11632           lt_tool_outputfile="@TOOL_OUTPUT@"~
11633           case $lt_outputfile in
11634             *.exe|*.EXE) ;;
11635             *)
11636               lt_outputfile="$lt_outputfile.exe"
11637               lt_tool_outputfile="$lt_tool_outputfile.exe"
11638               ;;
11639           esac~
11640           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11641             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11642             $RM "$lt_outputfile.manifest";
11643           fi'
11644         ;;
11645       *)
11646         # Assume MSVC wrapper
11647         hardcode_libdir_flag_spec=' '
11648         allow_undefined_flag=unsupported
11649         # Tell ltmain to make .lib files, not .a files.
11650         libext=lib
11651         # Tell ltmain to make .dll files, not .so files.
11652         shrext_cmds=".dll"
11653         # FIXME: Setting linknames here is a bad hack.
11654         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11655         # The linker will automatically build a .lib file if we build a DLL.
11656         old_archive_from_new_cmds='true'
11657         # FIXME: Should let the user specify the lib program.
11658         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11659         enable_shared_with_static_runtimes=yes
11660         ;;
11661       esac
11662       ;;
11663
11664     darwin* | rhapsody*)
11665
11666
11667   archive_cmds_need_lc=no
11668   hardcode_direct=no
11669   hardcode_automatic=yes
11670   hardcode_shlibpath_var=unsupported
11671   if test "$lt_cv_ld_force_load" = "yes"; then
11672     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\"`'
11673
11674   else
11675     whole_archive_flag_spec=''
11676   fi
11677   link_all_deplibs=yes
11678   allow_undefined_flag="$_lt_dar_allow_undefined"
11679   case $cc_basename in
11680      ifort*) _lt_dar_can_shared=yes ;;
11681      *) _lt_dar_can_shared=$GCC ;;
11682   esac
11683   if test "$_lt_dar_can_shared" = "yes"; then
11684     output_verbose_link_cmd=func_echo_all
11685     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11686     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11687     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}"
11688     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}"
11689
11690   else
11691   ld_shlibs=no
11692   fi
11693
11694       ;;
11695
11696     dgux*)
11697       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11698       hardcode_libdir_flag_spec='-L$libdir'
11699       hardcode_shlibpath_var=no
11700       ;;
11701
11702     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11703     # support.  Future versions do this automatically, but an explicit c++rt0.o
11704     # does not break anything, and helps significantly (at the cost of a little
11705     # extra space).
11706     freebsd2.2*)
11707       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11708       hardcode_libdir_flag_spec='-R$libdir'
11709       hardcode_direct=yes
11710       hardcode_shlibpath_var=no
11711       ;;
11712
11713     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11714     freebsd2.*)
11715       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11716       hardcode_direct=yes
11717       hardcode_minus_L=yes
11718       hardcode_shlibpath_var=no
11719       ;;
11720
11721     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11722     freebsd* | dragonfly*)
11723       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11724       hardcode_libdir_flag_spec='-R$libdir'
11725       hardcode_direct=yes
11726       hardcode_shlibpath_var=no
11727       ;;
11728
11729     hpux9*)
11730       if test "$GCC" = yes; then
11731         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'
11732       else
11733         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'
11734       fi
11735       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11736       hardcode_libdir_separator=:
11737       hardcode_direct=yes
11738
11739       # hardcode_minus_L: Not really in the search PATH,
11740       # but as the default location of the library.
11741       hardcode_minus_L=yes
11742       export_dynamic_flag_spec='${wl}-E'
11743       ;;
11744
11745     hpux10*)
11746       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11747         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11748       else
11749         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11750       fi
11751       if test "$with_gnu_ld" = no; then
11752         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11753         hardcode_libdir_separator=:
11754         hardcode_direct=yes
11755         hardcode_direct_absolute=yes
11756         export_dynamic_flag_spec='${wl}-E'
11757         # hardcode_minus_L: Not really in the search PATH,
11758         # but as the default location of the library.
11759         hardcode_minus_L=yes
11760       fi
11761       ;;
11762
11763     hpux11*)
11764       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11765         case $host_cpu in
11766         hppa*64*)
11767           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11768           ;;
11769         ia64*)
11770           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11771           ;;
11772         *)
11773           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11774           ;;
11775         esac
11776       else
11777         case $host_cpu in
11778         hppa*64*)
11779           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11780           ;;
11781         ia64*)
11782           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11783           ;;
11784         *)
11785
11786           # Older versions of the 11.00 compiler do not understand -b yet
11787           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11788           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11789 $as_echo_n "checking if $CC understands -b... " >&6; }
11790 if ${lt_cv_prog_compiler__b+:} false; then :
11791   $as_echo_n "(cached) " >&6
11792 else
11793   lt_cv_prog_compiler__b=no
11794    save_LDFLAGS="$LDFLAGS"
11795    LDFLAGS="$LDFLAGS -b"
11796    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11797    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11798      # The linker can only warn and ignore the option if not recognized
11799      # So say no if there are warnings
11800      if test -s conftest.err; then
11801        # Append any errors to the config.log.
11802        cat conftest.err 1>&5
11803        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11804        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11805        if diff conftest.exp conftest.er2 >/dev/null; then
11806          lt_cv_prog_compiler__b=yes
11807        fi
11808      else
11809        lt_cv_prog_compiler__b=yes
11810      fi
11811    fi
11812    $RM -r conftest*
11813    LDFLAGS="$save_LDFLAGS"
11814
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11817 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11818
11819 if test x"$lt_cv_prog_compiler__b" = xyes; then
11820     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11821 else
11822     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11823 fi
11824
11825           ;;
11826         esac
11827       fi
11828       if test "$with_gnu_ld" = no; then
11829         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11830         hardcode_libdir_separator=:
11831
11832         case $host_cpu in
11833         hppa*64*|ia64*)
11834           hardcode_direct=no
11835           hardcode_shlibpath_var=no
11836           ;;
11837         *)
11838           hardcode_direct=yes
11839           hardcode_direct_absolute=yes
11840           export_dynamic_flag_spec='${wl}-E'
11841
11842           # hardcode_minus_L: Not really in the search PATH,
11843           # but as the default location of the library.
11844           hardcode_minus_L=yes
11845           ;;
11846         esac
11847       fi
11848       ;;
11849
11850     irix5* | irix6* | nonstopux*)
11851       if test "$GCC" = yes; then
11852         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'
11853         # Try to use the -exported_symbol ld option, if it does not
11854         # work, assume that -exports_file does not work either and
11855         # implicitly export all symbols.
11856         # This should be the same for all languages, so no per-tag cache variable.
11857         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11858 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11859 if ${lt_cv_irix_exported_symbol+:} false; then :
11860   $as_echo_n "(cached) " >&6
11861 else
11862   save_LDFLAGS="$LDFLAGS"
11863            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11864            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h.  */
11866 int foo (void) { return 0; }
11867 _ACEOF
11868 if ac_fn_c_try_link "$LINENO"; then :
11869   lt_cv_irix_exported_symbol=yes
11870 else
11871   lt_cv_irix_exported_symbol=no
11872 fi
11873 rm -f core conftest.err conftest.$ac_objext \
11874     conftest$ac_exeext conftest.$ac_ext
11875            LDFLAGS="$save_LDFLAGS"
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11878 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11879         if test "$lt_cv_irix_exported_symbol" = yes; then
11880           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'
11881         fi
11882       else
11883         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'
11884         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'
11885       fi
11886       archive_cmds_need_lc='no'
11887       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11888       hardcode_libdir_separator=:
11889       inherit_rpath=yes
11890       link_all_deplibs=yes
11891       ;;
11892
11893     netbsd*)
11894       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11895         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11896       else
11897         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11898       fi
11899       hardcode_libdir_flag_spec='-R$libdir'
11900       hardcode_direct=yes
11901       hardcode_shlibpath_var=no
11902       ;;
11903
11904     newsos6)
11905       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11906       hardcode_direct=yes
11907       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11908       hardcode_libdir_separator=:
11909       hardcode_shlibpath_var=no
11910       ;;
11911
11912     *nto* | *qnx*)
11913       ;;
11914
11915     openbsd*)
11916       if test -f /usr/libexec/ld.so; then
11917         hardcode_direct=yes
11918         hardcode_shlibpath_var=no
11919         hardcode_direct_absolute=yes
11920         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11921           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11922           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11923           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11924           export_dynamic_flag_spec='${wl}-E'
11925         else
11926           case $host_os in
11927            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11928              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11929              hardcode_libdir_flag_spec='-R$libdir'
11930              ;;
11931            *)
11932              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11933              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11934              ;;
11935           esac
11936         fi
11937       else
11938         ld_shlibs=no
11939       fi
11940       ;;
11941
11942     os2*)
11943       hardcode_libdir_flag_spec='-L$libdir'
11944       hardcode_minus_L=yes
11945       allow_undefined_flag=unsupported
11946       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'
11947       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11948       ;;
11949
11950     osf3*)
11951       if test "$GCC" = yes; then
11952         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11953         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'
11954       else
11955         allow_undefined_flag=' -expect_unresolved \*'
11956         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'
11957       fi
11958       archive_cmds_need_lc='no'
11959       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11960       hardcode_libdir_separator=:
11961       ;;
11962
11963     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11964       if test "$GCC" = yes; then
11965         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11966         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'
11967         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11968       else
11969         allow_undefined_flag=' -expect_unresolved \*'
11970         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'
11971         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~
11972         $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'
11973
11974         # Both c and cxx compiler support -rpath directly
11975         hardcode_libdir_flag_spec='-rpath $libdir'
11976       fi
11977       archive_cmds_need_lc='no'
11978       hardcode_libdir_separator=:
11979       ;;
11980
11981     solaris*)
11982       no_undefined_flag=' -z defs'
11983       if test "$GCC" = yes; then
11984         wlarc='${wl}'
11985         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11986         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11987           $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'
11988       else
11989         case `$CC -V 2>&1` in
11990         *"Compilers 5.0"*)
11991           wlarc=''
11992           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11993           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11994           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11995           ;;
11996         *)
11997           wlarc='${wl}'
11998           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11999           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12000           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12001           ;;
12002         esac
12003       fi
12004       hardcode_libdir_flag_spec='-R$libdir'
12005       hardcode_shlibpath_var=no
12006       case $host_os in
12007       solaris2.[0-5] | solaris2.[0-5].*) ;;
12008       *)
12009         # The compiler driver will combine and reorder linker options,
12010         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12011         # but is careful enough not to reorder.
12012         # Supported since Solaris 2.6 (maybe 2.5.1?)
12013         if test "$GCC" = yes; then
12014           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12015         else
12016           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12017         fi
12018         ;;
12019       esac
12020       link_all_deplibs=yes
12021       ;;
12022
12023     sunos4*)
12024       if test "x$host_vendor" = xsequent; then
12025         # Use $CC to link under sequent, because it throws in some extra .o
12026         # files that make .init and .fini sections work.
12027         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12028       else
12029         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12030       fi
12031       hardcode_libdir_flag_spec='-L$libdir'
12032       hardcode_direct=yes
12033       hardcode_minus_L=yes
12034       hardcode_shlibpath_var=no
12035       ;;
12036
12037     sysv4)
12038       case $host_vendor in
12039         sni)
12040           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12041           hardcode_direct=yes # is this really true???
12042         ;;
12043         siemens)
12044           ## LD is ld it makes a PLAMLIB
12045           ## CC just makes a GrossModule.
12046           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12047           reload_cmds='$CC -r -o $output$reload_objs'
12048           hardcode_direct=no
12049         ;;
12050         motorola)
12051           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12052           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12053         ;;
12054       esac
12055       runpath_var='LD_RUN_PATH'
12056       hardcode_shlibpath_var=no
12057       ;;
12058
12059     sysv4.3*)
12060       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12061       hardcode_shlibpath_var=no
12062       export_dynamic_flag_spec='-Bexport'
12063       ;;
12064
12065     sysv4*MP*)
12066       if test -d /usr/nec; then
12067         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12068         hardcode_shlibpath_var=no
12069         runpath_var=LD_RUN_PATH
12070         hardcode_runpath_var=yes
12071         ld_shlibs=yes
12072       fi
12073       ;;
12074
12075     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12076       no_undefined_flag='${wl}-z,text'
12077       archive_cmds_need_lc=no
12078       hardcode_shlibpath_var=no
12079       runpath_var='LD_RUN_PATH'
12080
12081       if test "$GCC" = yes; then
12082         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12083         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12084       else
12085         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12086         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12087       fi
12088       ;;
12089
12090     sysv5* | sco3.2v5* | sco5v6*)
12091       # Note: We can NOT use -z defs as we might desire, because we do not
12092       # link with -lc, and that would cause any symbols used from libc to
12093       # always be unresolved, which means just about no library would
12094       # ever link correctly.  If we're not using GNU ld we use -z text
12095       # though, which does catch some bad symbols but isn't as heavy-handed
12096       # as -z defs.
12097       no_undefined_flag='${wl}-z,text'
12098       allow_undefined_flag='${wl}-z,nodefs'
12099       archive_cmds_need_lc=no
12100       hardcode_shlibpath_var=no
12101       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12102       hardcode_libdir_separator=':'
12103       link_all_deplibs=yes
12104       export_dynamic_flag_spec='${wl}-Bexport'
12105       runpath_var='LD_RUN_PATH'
12106
12107       if test "$GCC" = yes; then
12108         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12109         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12110       else
12111         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12112         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12113       fi
12114       ;;
12115
12116     uts4*)
12117       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12118       hardcode_libdir_flag_spec='-L$libdir'
12119       hardcode_shlibpath_var=no
12120       ;;
12121
12122     *)
12123       ld_shlibs=no
12124       ;;
12125     esac
12126
12127     if test x$host_vendor = xsni; then
12128       case $host in
12129       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12130         export_dynamic_flag_spec='${wl}-Blargedynsym'
12131         ;;
12132       esac
12133     fi
12134   fi
12135
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12137 $as_echo "$ld_shlibs" >&6; }
12138 test "$ld_shlibs" = no && can_build_shared=no
12139
12140 with_gnu_ld=$with_gnu_ld
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156 #
12157 # Do we need to explicitly link libc?
12158 #
12159 case "x$archive_cmds_need_lc" in
12160 x|xyes)
12161   # Assume -lc should be added
12162   archive_cmds_need_lc=yes
12163
12164   if test "$enable_shared" = yes && test "$GCC" = yes; then
12165     case $archive_cmds in
12166     *'~'*)
12167       # FIXME: we may have to deal with multi-command sequences.
12168       ;;
12169     '$CC '*)
12170       # Test whether the compiler implicitly links with -lc since on some
12171       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12172       # to ld, don't add -lc before -lgcc.
12173       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12174 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12175 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12176   $as_echo_n "(cached) " >&6
12177 else
12178   $RM conftest*
12179         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12180
12181         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12182   (eval $ac_compile) 2>&5
12183   ac_status=$?
12184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12185   test $ac_status = 0; } 2>conftest.err; then
12186           soname=conftest
12187           lib=conftest
12188           libobjs=conftest.$ac_objext
12189           deplibs=
12190           wl=$lt_prog_compiler_wl
12191           pic_flag=$lt_prog_compiler_pic
12192           compiler_flags=-v
12193           linker_flags=-v
12194           verstring=
12195           output_objdir=.
12196           libname=conftest
12197           lt_save_allow_undefined_flag=$allow_undefined_flag
12198           allow_undefined_flag=
12199           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12200   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12201   ac_status=$?
12202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12203   test $ac_status = 0; }
12204           then
12205             lt_cv_archive_cmds_need_lc=no
12206           else
12207             lt_cv_archive_cmds_need_lc=yes
12208           fi
12209           allow_undefined_flag=$lt_save_allow_undefined_flag
12210         else
12211           cat conftest.err 1>&5
12212         fi
12213         $RM conftest*
12214
12215 fi
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12217 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12218       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12219       ;;
12220     esac
12221   fi
12222   ;;
12223 esac
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12377 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12378
12379 if test "$GCC" = yes; then
12380   case $host_os in
12381     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12382     *) lt_awk_arg="/^libraries:/" ;;
12383   esac
12384   case $host_os in
12385     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12386     *) lt_sed_strip_eq="s,=/,/,g" ;;
12387   esac
12388   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12389   case $lt_search_path_spec in
12390   *\;*)
12391     # if the path contains ";" then we assume it to be the separator
12392     # otherwise default to the standard path separator (i.e. ":") - it is
12393     # assumed that no part of a normal pathname contains ";" but that should
12394     # okay in the real world where ";" in dirpaths is itself problematic.
12395     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12396     ;;
12397   *)
12398     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12399     ;;
12400   esac
12401   # Ok, now we have the path, separated by spaces, we can step through it
12402   # and add multilib dir if necessary.
12403   lt_tmp_lt_search_path_spec=
12404   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12405   for lt_sys_path in $lt_search_path_spec; do
12406     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12407       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12408     else
12409       test -d "$lt_sys_path" && \
12410         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12411     fi
12412   done
12413   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12414 BEGIN {RS=" "; FS="/|\n";} {
12415   lt_foo="";
12416   lt_count=0;
12417   for (lt_i = NF; lt_i > 0; lt_i--) {
12418     if ($lt_i != "" && $lt_i != ".") {
12419       if ($lt_i == "..") {
12420         lt_count++;
12421       } else {
12422         if (lt_count == 0) {
12423           lt_foo="/" $lt_i lt_foo;
12424         } else {
12425           lt_count--;
12426         }
12427       }
12428     }
12429   }
12430   if (lt_foo != "") { lt_freq[lt_foo]++; }
12431   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12432 }'`
12433   # AWK program above erroneously prepends '/' to C:/dos/paths
12434   # for these hosts.
12435   case $host_os in
12436     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12437       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12438   esac
12439   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12440 else
12441   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12442 fi
12443 library_names_spec=
12444 libname_spec='lib$name'
12445 soname_spec=
12446 shrext_cmds=".so"
12447 postinstall_cmds=
12448 postuninstall_cmds=
12449 finish_cmds=
12450 finish_eval=
12451 shlibpath_var=
12452 shlibpath_overrides_runpath=unknown
12453 version_type=none
12454 dynamic_linker="$host_os ld.so"
12455 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12456 need_lib_prefix=unknown
12457 hardcode_into_libs=no
12458
12459 # when you set need_version to no, make sure it does not cause -set_version
12460 # flags to be left without arguments
12461 need_version=unknown
12462
12463 case $host_os in
12464 aix3*)
12465   version_type=linux # correct to gnu/linux during the next big refactor
12466   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12467   shlibpath_var=LIBPATH
12468
12469   # AIX 3 has no versioning support, so we append a major version to the name.
12470   soname_spec='${libname}${release}${shared_ext}$major'
12471   ;;
12472
12473 aix[4-9]*)
12474   version_type=linux # correct to gnu/linux during the next big refactor
12475   need_lib_prefix=no
12476   need_version=no
12477   hardcode_into_libs=yes
12478   if test "$host_cpu" = ia64; then
12479     # AIX 5 supports IA64
12480     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12481     shlibpath_var=LD_LIBRARY_PATH
12482   else
12483     # With GCC up to 2.95.x, collect2 would create an import file
12484     # for dependence libraries.  The import file would start with
12485     # the line `#! .'.  This would cause the generated library to
12486     # depend on `.', always an invalid library.  This was fixed in
12487     # development snapshots of GCC prior to 3.0.
12488     case $host_os in
12489       aix4 | aix4.[01] | aix4.[01].*)
12490       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12491            echo ' yes '
12492            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12493         :
12494       else
12495         can_build_shared=no
12496       fi
12497       ;;
12498     esac
12499     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12500     # soname into executable. Probably we can add versioning support to
12501     # collect2, so additional links can be useful in future.
12502     if test "$aix_use_runtimelinking" = yes; then
12503       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12504       # instead of lib<name>.a to let people know that these are not
12505       # typical AIX shared libraries.
12506       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12507     else
12508       # We preserve .a as extension for shared libraries through AIX4.2
12509       # and later when we are not doing run time linking.
12510       library_names_spec='${libname}${release}.a $libname.a'
12511       soname_spec='${libname}${release}${shared_ext}$major'
12512     fi
12513     shlibpath_var=LIBPATH
12514   fi
12515   ;;
12516
12517 amigaos*)
12518   case $host_cpu in
12519   powerpc)
12520     # Since July 2007 AmigaOS4 officially supports .so libraries.
12521     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12522     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12523     ;;
12524   m68k)
12525     library_names_spec='$libname.ixlibrary $libname.a'
12526     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12527     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'
12528     ;;
12529   esac
12530   ;;
12531
12532 beos*)
12533   library_names_spec='${libname}${shared_ext}'
12534   dynamic_linker="$host_os ld.so"
12535   shlibpath_var=LIBRARY_PATH
12536   ;;
12537
12538 bsdi[45]*)
12539   version_type=linux # correct to gnu/linux during the next big refactor
12540   need_version=no
12541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12542   soname_spec='${libname}${release}${shared_ext}$major'
12543   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12544   shlibpath_var=LD_LIBRARY_PATH
12545   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12546   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12547   # the default ld.so.conf also contains /usr/contrib/lib and
12548   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12549   # libtool to hard-code these into programs
12550   ;;
12551
12552 cygwin* | mingw* | pw32* | cegcc*)
12553   version_type=windows
12554   shrext_cmds=".dll"
12555   need_version=no
12556   need_lib_prefix=no
12557
12558   case $GCC,$cc_basename in
12559   yes,*)
12560     # gcc
12561     library_names_spec='$libname.dll.a'
12562     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12563     postinstall_cmds='base_file=`basename \${file}`~
12564       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12565       dldir=$destdir/`dirname \$dlpath`~
12566       test -d \$dldir || mkdir -p \$dldir~
12567       $install_prog $dir/$dlname \$dldir/$dlname~
12568       chmod a+x \$dldir/$dlname~
12569       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12570         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12571       fi'
12572     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12573       dlpath=$dir/\$dldll~
12574        $RM \$dlpath'
12575     shlibpath_overrides_runpath=yes
12576
12577     case $host_os in
12578     cygwin*)
12579       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12580       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12581
12582       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12583       ;;
12584     mingw* | cegcc*)
12585       # MinGW DLLs use traditional 'lib' prefix
12586       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12587       ;;
12588     pw32*)
12589       # pw32 DLLs use 'pw' prefix rather than 'lib'
12590       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12591       ;;
12592     esac
12593     dynamic_linker='Win32 ld.exe'
12594     ;;
12595
12596   *,cl*)
12597     # Native MSVC
12598     libname_spec='$name'
12599     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12600     library_names_spec='${libname}.dll.lib'
12601
12602     case $build_os in
12603     mingw*)
12604       sys_lib_search_path_spec=
12605       lt_save_ifs=$IFS
12606       IFS=';'
12607       for lt_path in $LIB
12608       do
12609         IFS=$lt_save_ifs
12610         # Let DOS variable expansion print the short 8.3 style file name.
12611         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12612         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12613       done
12614       IFS=$lt_save_ifs
12615       # Convert to MSYS style.
12616       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12617       ;;
12618     cygwin*)
12619       # Convert to unix form, then to dos form, then back to unix form
12620       # but this time dos style (no spaces!) so that the unix form looks
12621       # like /cygdrive/c/PROGRA~1:/cygdr...
12622       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12623       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12624       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12625       ;;
12626     *)
12627       sys_lib_search_path_spec="$LIB"
12628       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12629         # It is most probably a Windows format PATH.
12630         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12631       else
12632         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12633       fi
12634       # FIXME: find the short name or the path components, as spaces are
12635       # common. (e.g. "Program Files" -> "PROGRA~1")
12636       ;;
12637     esac
12638
12639     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12640     postinstall_cmds='base_file=`basename \${file}`~
12641       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12642       dldir=$destdir/`dirname \$dlpath`~
12643       test -d \$dldir || mkdir -p \$dldir~
12644       $install_prog $dir/$dlname \$dldir/$dlname'
12645     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12646       dlpath=$dir/\$dldll~
12647        $RM \$dlpath'
12648     shlibpath_overrides_runpath=yes
12649     dynamic_linker='Win32 link.exe'
12650     ;;
12651
12652   *)
12653     # Assume MSVC wrapper
12654     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12655     dynamic_linker='Win32 ld.exe'
12656     ;;
12657   esac
12658   # FIXME: first we should search . and the directory the executable is in
12659   shlibpath_var=PATH
12660   ;;
12661
12662 darwin* | rhapsody*)
12663   dynamic_linker="$host_os dyld"
12664   version_type=darwin
12665   need_lib_prefix=no
12666   need_version=no
12667   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12668   soname_spec='${libname}${release}${major}$shared_ext'
12669   shlibpath_overrides_runpath=yes
12670   shlibpath_var=DYLD_LIBRARY_PATH
12671   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12672
12673   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12674   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12675   ;;
12676
12677 dgux*)
12678   version_type=linux # correct to gnu/linux during the next big refactor
12679   need_lib_prefix=no
12680   need_version=no
12681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12682   soname_spec='${libname}${release}${shared_ext}$major'
12683   shlibpath_var=LD_LIBRARY_PATH
12684   ;;
12685
12686 freebsd* | dragonfly*)
12687   # DragonFly does not have aout.  When/if they implement a new
12688   # versioning mechanism, adjust this.
12689   if test -x /usr/bin/objformat; then
12690     objformat=`/usr/bin/objformat`
12691   else
12692     case $host_os in
12693     freebsd[23].*) objformat=aout ;;
12694     *) objformat=elf ;;
12695     esac
12696   fi
12697   version_type=freebsd-$objformat
12698   case $version_type in
12699     freebsd-elf*)
12700       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12701       need_version=no
12702       need_lib_prefix=no
12703       ;;
12704     freebsd-*)
12705       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12706       need_version=yes
12707       ;;
12708   esac
12709   shlibpath_var=LD_LIBRARY_PATH
12710   case $host_os in
12711   freebsd2.*)
12712     shlibpath_overrides_runpath=yes
12713     ;;
12714   freebsd3.[01]* | freebsdelf3.[01]*)
12715     shlibpath_overrides_runpath=yes
12716     hardcode_into_libs=yes
12717     ;;
12718   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12719   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12720     shlibpath_overrides_runpath=no
12721     hardcode_into_libs=yes
12722     ;;
12723   *) # from 4.6 on, and DragonFly
12724     shlibpath_overrides_runpath=yes
12725     hardcode_into_libs=yes
12726     ;;
12727   esac
12728   ;;
12729
12730 gnu*)
12731   version_type=linux # correct to gnu/linux during the next big refactor
12732   need_lib_prefix=no
12733   need_version=no
12734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12735   soname_spec='${libname}${release}${shared_ext}$major'
12736   shlibpath_var=LD_LIBRARY_PATH
12737   shlibpath_overrides_runpath=no
12738   hardcode_into_libs=yes
12739   ;;
12740
12741 haiku*)
12742   version_type=linux # correct to gnu/linux during the next big refactor
12743   need_lib_prefix=no
12744   need_version=no
12745   dynamic_linker="$host_os runtime_loader"
12746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12747   soname_spec='${libname}${release}${shared_ext}$major'
12748   shlibpath_var=LIBRARY_PATH
12749   shlibpath_overrides_runpath=yes
12750   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12751   hardcode_into_libs=yes
12752   ;;
12753
12754 hpux9* | hpux10* | hpux11*)
12755   # Give a soname corresponding to the major version so that dld.sl refuses to
12756   # link against other versions.
12757   version_type=sunos
12758   need_lib_prefix=no
12759   need_version=no
12760   case $host_cpu in
12761   ia64*)
12762     shrext_cmds='.so'
12763     hardcode_into_libs=yes
12764     dynamic_linker="$host_os dld.so"
12765     shlibpath_var=LD_LIBRARY_PATH
12766     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12768     soname_spec='${libname}${release}${shared_ext}$major'
12769     if test "X$HPUX_IA64_MODE" = X32; then
12770       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12771     else
12772       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12773     fi
12774     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12775     ;;
12776   hppa*64*)
12777     shrext_cmds='.sl'
12778     hardcode_into_libs=yes
12779     dynamic_linker="$host_os dld.sl"
12780     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12781     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12783     soname_spec='${libname}${release}${shared_ext}$major'
12784     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12785     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12786     ;;
12787   *)
12788     shrext_cmds='.sl'
12789     dynamic_linker="$host_os dld.sl"
12790     shlibpath_var=SHLIB_PATH
12791     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793     soname_spec='${libname}${release}${shared_ext}$major'
12794     ;;
12795   esac
12796   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12797   postinstall_cmds='chmod 555 $lib'
12798   # or fails outright, so override atomically:
12799   install_override_mode=555
12800   ;;
12801
12802 interix[3-9]*)
12803   version_type=linux # correct to gnu/linux during the next big refactor
12804   need_lib_prefix=no
12805   need_version=no
12806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12807   soname_spec='${libname}${release}${shared_ext}$major'
12808   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12809   shlibpath_var=LD_LIBRARY_PATH
12810   shlibpath_overrides_runpath=no
12811   hardcode_into_libs=yes
12812   ;;
12813
12814 irix5* | irix6* | nonstopux*)
12815   case $host_os in
12816     nonstopux*) version_type=nonstopux ;;
12817     *)
12818         if test "$lt_cv_prog_gnu_ld" = yes; then
12819                 version_type=linux # correct to gnu/linux during the next big refactor
12820         else
12821                 version_type=irix
12822         fi ;;
12823   esac
12824   need_lib_prefix=no
12825   need_version=no
12826   soname_spec='${libname}${release}${shared_ext}$major'
12827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12828   case $host_os in
12829   irix5* | nonstopux*)
12830     libsuff= shlibsuff=
12831     ;;
12832   *)
12833     case $LD in # libtool.m4 will add one of these switches to LD
12834     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12835       libsuff= shlibsuff= libmagic=32-bit;;
12836     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12837       libsuff=32 shlibsuff=N32 libmagic=N32;;
12838     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12839       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12840     *) libsuff= shlibsuff= libmagic=never-match;;
12841     esac
12842     ;;
12843   esac
12844   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12845   shlibpath_overrides_runpath=no
12846   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12847   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12848   hardcode_into_libs=yes
12849   ;;
12850
12851 # No shared lib support for Linux oldld, aout, or coff.
12852 linux*oldld* | linux*aout* | linux*coff*)
12853   dynamic_linker=no
12854   ;;
12855
12856 # This must be glibc/ELF.
12857 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12858   version_type=linux # correct to gnu/linux during the next big refactor
12859   need_lib_prefix=no
12860   need_version=no
12861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12862   soname_spec='${libname}${release}${shared_ext}$major'
12863   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12864   shlibpath_var=LD_LIBRARY_PATH
12865   shlibpath_overrides_runpath=no
12866
12867   # Some binutils ld are patched to set DT_RUNPATH
12868   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12869   $as_echo_n "(cached) " >&6
12870 else
12871   lt_cv_shlibpath_overrides_runpath=no
12872     save_LDFLAGS=$LDFLAGS
12873     save_libdir=$libdir
12874     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12875          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12876     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h.  */
12878
12879 int
12880 main ()
12881 {
12882
12883   ;
12884   return 0;
12885 }
12886 _ACEOF
12887 if ac_fn_c_try_link "$LINENO"; then :
12888   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12889   lt_cv_shlibpath_overrides_runpath=yes
12890 fi
12891 fi
12892 rm -f core conftest.err conftest.$ac_objext \
12893     conftest$ac_exeext conftest.$ac_ext
12894     LDFLAGS=$save_LDFLAGS
12895     libdir=$save_libdir
12896
12897 fi
12898
12899   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12900
12901   # This implies no fast_install, which is unacceptable.
12902   # Some rework will be needed to allow for fast_install
12903   # before this can be enabled.
12904   hardcode_into_libs=yes
12905
12906   # Add ABI-specific directories to the system library path.
12907   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12908
12909   # Append ld.so.conf contents to the search path
12910   if test -f /etc/ld.so.conf; then
12911     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' ' '`
12912     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12913
12914   fi
12915
12916   # We used to test for /lib/ld.so.1 and disable shared libraries on
12917   # powerpc, because MkLinux only supported shared libraries with the
12918   # GNU dynamic linker.  Since this was broken with cross compilers,
12919   # most powerpc-linux boxes support dynamic linking these days and
12920   # people can always --disable-shared, the test was removed, and we
12921   # assume the GNU/Linux dynamic linker is in use.
12922   dynamic_linker='GNU/Linux ld.so'
12923   ;;
12924
12925 netbsd*)
12926   version_type=sunos
12927   need_lib_prefix=no
12928   need_version=no
12929   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12930     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12931     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12932     dynamic_linker='NetBSD (a.out) ld.so'
12933   else
12934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12935     soname_spec='${libname}${release}${shared_ext}$major'
12936     dynamic_linker='NetBSD ld.elf_so'
12937   fi
12938   shlibpath_var=LD_LIBRARY_PATH
12939   shlibpath_overrides_runpath=yes
12940   hardcode_into_libs=yes
12941   ;;
12942
12943 newsos6)
12944   version_type=linux # correct to gnu/linux during the next big refactor
12945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946   shlibpath_var=LD_LIBRARY_PATH
12947   shlibpath_overrides_runpath=yes
12948   ;;
12949
12950 *nto* | *qnx*)
12951   version_type=qnx
12952   need_lib_prefix=no
12953   need_version=no
12954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955   soname_spec='${libname}${release}${shared_ext}$major'
12956   shlibpath_var=LD_LIBRARY_PATH
12957   shlibpath_overrides_runpath=no
12958   hardcode_into_libs=yes
12959   dynamic_linker='ldqnx.so'
12960   ;;
12961
12962 openbsd*)
12963   version_type=sunos
12964   sys_lib_dlsearch_path_spec="/usr/lib"
12965   need_lib_prefix=no
12966   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12967   case $host_os in
12968     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12969     *)                          need_version=no  ;;
12970   esac
12971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12972   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12973   shlibpath_var=LD_LIBRARY_PATH
12974   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12975     case $host_os in
12976       openbsd2.[89] | openbsd2.[89].*)
12977         shlibpath_overrides_runpath=no
12978         ;;
12979       *)
12980         shlibpath_overrides_runpath=yes
12981         ;;
12982       esac
12983   else
12984     shlibpath_overrides_runpath=yes
12985   fi
12986   ;;
12987
12988 os2*)
12989   libname_spec='$name'
12990   shrext_cmds=".dll"
12991   need_lib_prefix=no
12992   library_names_spec='$libname${shared_ext} $libname.a'
12993   dynamic_linker='OS/2 ld.exe'
12994   shlibpath_var=LIBPATH
12995   ;;
12996
12997 osf3* | osf4* | osf5*)
12998   version_type=osf
12999   need_lib_prefix=no
13000   need_version=no
13001   soname_spec='${libname}${release}${shared_ext}$major'
13002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13003   shlibpath_var=LD_LIBRARY_PATH
13004   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13005   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13006   ;;
13007
13008 rdos*)
13009   dynamic_linker=no
13010   ;;
13011
13012 solaris*)
13013   version_type=linux # correct to gnu/linux during the next big refactor
13014   need_lib_prefix=no
13015   need_version=no
13016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13017   soname_spec='${libname}${release}${shared_ext}$major'
13018   shlibpath_var=LD_LIBRARY_PATH
13019   shlibpath_overrides_runpath=yes
13020   hardcode_into_libs=yes
13021   # ldd complains unless libraries are executable
13022   postinstall_cmds='chmod +x $lib'
13023   ;;
13024
13025 sunos4*)
13026   version_type=sunos
13027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13028   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13029   shlibpath_var=LD_LIBRARY_PATH
13030   shlibpath_overrides_runpath=yes
13031   if test "$with_gnu_ld" = yes; then
13032     need_lib_prefix=no
13033   fi
13034   need_version=yes
13035   ;;
13036
13037 sysv4 | sysv4.3*)
13038   version_type=linux # correct to gnu/linux during the next big refactor
13039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040   soname_spec='${libname}${release}${shared_ext}$major'
13041   shlibpath_var=LD_LIBRARY_PATH
13042   case $host_vendor in
13043     sni)
13044       shlibpath_overrides_runpath=no
13045       need_lib_prefix=no
13046       runpath_var=LD_RUN_PATH
13047       ;;
13048     siemens)
13049       need_lib_prefix=no
13050       ;;
13051     motorola)
13052       need_lib_prefix=no
13053       need_version=no
13054       shlibpath_overrides_runpath=no
13055       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13056       ;;
13057   esac
13058   ;;
13059
13060 sysv4*MP*)
13061   if test -d /usr/nec ;then
13062     version_type=linux # correct to gnu/linux during the next big refactor
13063     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13064     soname_spec='$libname${shared_ext}.$major'
13065     shlibpath_var=LD_LIBRARY_PATH
13066   fi
13067   ;;
13068
13069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13070   version_type=freebsd-elf
13071   need_lib_prefix=no
13072   need_version=no
13073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13074   soname_spec='${libname}${release}${shared_ext}$major'
13075   shlibpath_var=LD_LIBRARY_PATH
13076   shlibpath_overrides_runpath=yes
13077   hardcode_into_libs=yes
13078   if test "$with_gnu_ld" = yes; then
13079     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13080   else
13081     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13082     case $host_os in
13083       sco3.2v5*)
13084         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13085         ;;
13086     esac
13087   fi
13088   sys_lib_dlsearch_path_spec='/usr/lib'
13089   ;;
13090
13091 tpf*)
13092   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13093   version_type=linux # correct to gnu/linux during the next big refactor
13094   need_lib_prefix=no
13095   need_version=no
13096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097   shlibpath_var=LD_LIBRARY_PATH
13098   shlibpath_overrides_runpath=no
13099   hardcode_into_libs=yes
13100   ;;
13101
13102 uts4*)
13103   version_type=linux # correct to gnu/linux during the next big refactor
13104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13105   soname_spec='${libname}${release}${shared_ext}$major'
13106   shlibpath_var=LD_LIBRARY_PATH
13107   ;;
13108
13109 *)
13110   dynamic_linker=no
13111   ;;
13112 esac
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13114 $as_echo "$dynamic_linker" >&6; }
13115 test "$dynamic_linker" = no && can_build_shared=no
13116
13117 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13118 if test "$GCC" = yes; then
13119   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13120 fi
13121
13122 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13123   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13124 fi
13125 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13126   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13127 fi
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13221 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13222 hardcode_action=
13223 if test -n "$hardcode_libdir_flag_spec" ||
13224    test -n "$runpath_var" ||
13225    test "X$hardcode_automatic" = "Xyes" ; then
13226
13227   # We can hardcode non-existent directories.
13228   if test "$hardcode_direct" != no &&
13229      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13230      # have to relink, otherwise we might link with an installed library
13231      # when we should be linking with a yet-to-be-installed one
13232      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13233      test "$hardcode_minus_L" != no; then
13234     # Linking always hardcodes the temporary library directory.
13235     hardcode_action=relink
13236   else
13237     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13238     hardcode_action=immediate
13239   fi
13240 else
13241   # We cannot hardcode anything, or else we can only hardcode existing
13242   # directories.
13243   hardcode_action=unsupported
13244 fi
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13246 $as_echo "$hardcode_action" >&6; }
13247
13248 if test "$hardcode_action" = relink ||
13249    test "$inherit_rpath" = yes; then
13250   # Fast installation is not supported
13251   enable_fast_install=no
13252 elif test "$shlibpath_overrides_runpath" = yes ||
13253      test "$enable_shared" = no; then
13254   # Fast installation is not necessary
13255   enable_fast_install=needless
13256 fi
13257
13258
13259
13260
13261
13262
13263   if test "x$enable_dlopen" != xyes; then
13264   enable_dlopen=unknown
13265   enable_dlopen_self=unknown
13266   enable_dlopen_self_static=unknown
13267 else
13268   lt_cv_dlopen=no
13269   lt_cv_dlopen_libs=
13270
13271   case $host_os in
13272   beos*)
13273     lt_cv_dlopen="load_add_on"
13274     lt_cv_dlopen_libs=
13275     lt_cv_dlopen_self=yes
13276     ;;
13277
13278   mingw* | pw32* | cegcc*)
13279     lt_cv_dlopen="LoadLibrary"
13280     lt_cv_dlopen_libs=
13281     ;;
13282
13283   cygwin*)
13284     lt_cv_dlopen="dlopen"
13285     lt_cv_dlopen_libs=
13286     ;;
13287
13288   darwin*)
13289   # if libdl is installed we need to link against it
13290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13291 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13292 if ${ac_cv_lib_dl_dlopen+:} false; then :
13293   $as_echo_n "(cached) " >&6
13294 else
13295   ac_check_lib_save_LIBS=$LIBS
13296 LIBS="-ldl  $LIBS"
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h.  */
13299
13300 /* Override any GCC internal prototype to avoid an error.
13301    Use char because int might match the return type of a GCC
13302    builtin and then its argument prototype would still apply.  */
13303 #ifdef __cplusplus
13304 extern "C"
13305 #endif
13306 char dlopen ();
13307 int
13308 main ()
13309 {
13310 return dlopen ();
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 if ac_fn_c_try_link "$LINENO"; then :
13316   ac_cv_lib_dl_dlopen=yes
13317 else
13318   ac_cv_lib_dl_dlopen=no
13319 fi
13320 rm -f core conftest.err conftest.$ac_objext \
13321     conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13323 fi
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13325 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13326 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13327   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13328 else
13329
13330     lt_cv_dlopen="dyld"
13331     lt_cv_dlopen_libs=
13332     lt_cv_dlopen_self=yes
13333
13334 fi
13335
13336     ;;
13337
13338   *)
13339     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13340 if test "x$ac_cv_func_shl_load" = xyes; then :
13341   lt_cv_dlopen="shl_load"
13342 else
13343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13344 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13345 if ${ac_cv_lib_dld_shl_load+:} false; then :
13346   $as_echo_n "(cached) " >&6
13347 else
13348   ac_check_lib_save_LIBS=$LIBS
13349 LIBS="-ldld  $LIBS"
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h.  */
13352
13353 /* Override any GCC internal prototype to avoid an error.
13354    Use char because int might match the return type of a GCC
13355    builtin and then its argument prototype would still apply.  */
13356 #ifdef __cplusplus
13357 extern "C"
13358 #endif
13359 char shl_load ();
13360 int
13361 main ()
13362 {
13363 return shl_load ();
13364   ;
13365   return 0;
13366 }
13367 _ACEOF
13368 if ac_fn_c_try_link "$LINENO"; then :
13369   ac_cv_lib_dld_shl_load=yes
13370 else
13371   ac_cv_lib_dld_shl_load=no
13372 fi
13373 rm -f core conftest.err conftest.$ac_objext \
13374     conftest$ac_exeext conftest.$ac_ext
13375 LIBS=$ac_check_lib_save_LIBS
13376 fi
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13378 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13379 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13380   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13381 else
13382   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13383 if test "x$ac_cv_func_dlopen" = xyes; then :
13384   lt_cv_dlopen="dlopen"
13385 else
13386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13387 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13388 if ${ac_cv_lib_dl_dlopen+:} false; then :
13389   $as_echo_n "(cached) " >&6
13390 else
13391   ac_check_lib_save_LIBS=$LIBS
13392 LIBS="-ldl  $LIBS"
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h.  */
13395
13396 /* Override any GCC internal prototype to avoid an error.
13397    Use char because int might match the return type of a GCC
13398    builtin and then its argument prototype would still apply.  */
13399 #ifdef __cplusplus
13400 extern "C"
13401 #endif
13402 char dlopen ();
13403 int
13404 main ()
13405 {
13406 return dlopen ();
13407   ;
13408   return 0;
13409 }
13410 _ACEOF
13411 if ac_fn_c_try_link "$LINENO"; then :
13412   ac_cv_lib_dl_dlopen=yes
13413 else
13414   ac_cv_lib_dl_dlopen=no
13415 fi
13416 rm -f core conftest.err conftest.$ac_objext \
13417     conftest$ac_exeext conftest.$ac_ext
13418 LIBS=$ac_check_lib_save_LIBS
13419 fi
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13421 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13422 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13423   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13424 else
13425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13426 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13427 if ${ac_cv_lib_svld_dlopen+:} false; then :
13428   $as_echo_n "(cached) " >&6
13429 else
13430   ac_check_lib_save_LIBS=$LIBS
13431 LIBS="-lsvld  $LIBS"
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h.  */
13434
13435 /* Override any GCC internal prototype to avoid an error.
13436    Use char because int might match the return type of a GCC
13437    builtin and then its argument prototype would still apply.  */
13438 #ifdef __cplusplus
13439 extern "C"
13440 #endif
13441 char dlopen ();
13442 int
13443 main ()
13444 {
13445 return dlopen ();
13446   ;
13447   return 0;
13448 }
13449 _ACEOF
13450 if ac_fn_c_try_link "$LINENO"; then :
13451   ac_cv_lib_svld_dlopen=yes
13452 else
13453   ac_cv_lib_svld_dlopen=no
13454 fi
13455 rm -f core conftest.err conftest.$ac_objext \
13456     conftest$ac_exeext conftest.$ac_ext
13457 LIBS=$ac_check_lib_save_LIBS
13458 fi
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13460 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13461 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13462   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13463 else
13464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13465 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13466 if ${ac_cv_lib_dld_dld_link+:} false; then :
13467   $as_echo_n "(cached) " >&6
13468 else
13469   ac_check_lib_save_LIBS=$LIBS
13470 LIBS="-ldld  $LIBS"
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h.  */
13473
13474 /* Override any GCC internal prototype to avoid an error.
13475    Use char because int might match the return type of a GCC
13476    builtin and then its argument prototype would still apply.  */
13477 #ifdef __cplusplus
13478 extern "C"
13479 #endif
13480 char dld_link ();
13481 int
13482 main ()
13483 {
13484 return dld_link ();
13485   ;
13486   return 0;
13487 }
13488 _ACEOF
13489 if ac_fn_c_try_link "$LINENO"; then :
13490   ac_cv_lib_dld_dld_link=yes
13491 else
13492   ac_cv_lib_dld_dld_link=no
13493 fi
13494 rm -f core conftest.err conftest.$ac_objext \
13495     conftest$ac_exeext conftest.$ac_ext
13496 LIBS=$ac_check_lib_save_LIBS
13497 fi
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13499 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13500 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13501   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13502 fi
13503
13504
13505 fi
13506
13507
13508 fi
13509
13510
13511 fi
13512
13513
13514 fi
13515
13516
13517 fi
13518
13519     ;;
13520   esac
13521
13522   if test "x$lt_cv_dlopen" != xno; then
13523     enable_dlopen=yes
13524   else
13525     enable_dlopen=no
13526   fi
13527
13528   case $lt_cv_dlopen in
13529   dlopen)
13530     save_CPPFLAGS="$CPPFLAGS"
13531     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13532
13533     save_LDFLAGS="$LDFLAGS"
13534     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13535
13536     save_LIBS="$LIBS"
13537     LIBS="$lt_cv_dlopen_libs $LIBS"
13538
13539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13540 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13541 if ${lt_cv_dlopen_self+:} false; then :
13542   $as_echo_n "(cached) " >&6
13543 else
13544           if test "$cross_compiling" = yes; then :
13545   lt_cv_dlopen_self=cross
13546 else
13547   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13548   lt_status=$lt_dlunknown
13549   cat > conftest.$ac_ext <<_LT_EOF
13550 #line $LINENO "configure"
13551 #include "confdefs.h"
13552
13553 #if HAVE_DLFCN_H
13554 #include <dlfcn.h>
13555 #endif
13556
13557 #include <stdio.h>
13558
13559 #ifdef RTLD_GLOBAL
13560 #  define LT_DLGLOBAL           RTLD_GLOBAL
13561 #else
13562 #  ifdef DL_GLOBAL
13563 #    define LT_DLGLOBAL         DL_GLOBAL
13564 #  else
13565 #    define LT_DLGLOBAL         0
13566 #  endif
13567 #endif
13568
13569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13570    find out it does not work in some platform. */
13571 #ifndef LT_DLLAZY_OR_NOW
13572 #  ifdef RTLD_LAZY
13573 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13574 #  else
13575 #    ifdef DL_LAZY
13576 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13577 #    else
13578 #      ifdef RTLD_NOW
13579 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13580 #      else
13581 #        ifdef DL_NOW
13582 #          define LT_DLLAZY_OR_NOW      DL_NOW
13583 #        else
13584 #          define LT_DLLAZY_OR_NOW      0
13585 #        endif
13586 #      endif
13587 #    endif
13588 #  endif
13589 #endif
13590
13591 /* When -fvisbility=hidden is used, assume the code has been annotated
13592    correspondingly for the symbols needed.  */
13593 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13594 int fnord () __attribute__((visibility("default")));
13595 #endif
13596
13597 int fnord () { return 42; }
13598 int main ()
13599 {
13600   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13601   int status = $lt_dlunknown;
13602
13603   if (self)
13604     {
13605       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13606       else
13607         {
13608           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13609           else puts (dlerror ());
13610         }
13611       /* dlclose (self); */
13612     }
13613   else
13614     puts (dlerror ());
13615
13616   return status;
13617 }
13618 _LT_EOF
13619   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13620   (eval $ac_link) 2>&5
13621   ac_status=$?
13622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13623   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13624     (./conftest; exit; ) >&5 2>/dev/null
13625     lt_status=$?
13626     case x$lt_status in
13627       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13628       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13629       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13630     esac
13631   else :
13632     # compilation failed
13633     lt_cv_dlopen_self=no
13634   fi
13635 fi
13636 rm -fr conftest*
13637
13638
13639 fi
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13641 $as_echo "$lt_cv_dlopen_self" >&6; }
13642
13643     if test "x$lt_cv_dlopen_self" = xyes; then
13644       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13645       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13646 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13647 if ${lt_cv_dlopen_self_static+:} false; then :
13648   $as_echo_n "(cached) " >&6
13649 else
13650           if test "$cross_compiling" = yes; then :
13651   lt_cv_dlopen_self_static=cross
13652 else
13653   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13654   lt_status=$lt_dlunknown
13655   cat > conftest.$ac_ext <<_LT_EOF
13656 #line $LINENO "configure"
13657 #include "confdefs.h"
13658
13659 #if HAVE_DLFCN_H
13660 #include <dlfcn.h>
13661 #endif
13662
13663 #include <stdio.h>
13664
13665 #ifdef RTLD_GLOBAL
13666 #  define LT_DLGLOBAL           RTLD_GLOBAL
13667 #else
13668 #  ifdef DL_GLOBAL
13669 #    define LT_DLGLOBAL         DL_GLOBAL
13670 #  else
13671 #    define LT_DLGLOBAL         0
13672 #  endif
13673 #endif
13674
13675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13676    find out it does not work in some platform. */
13677 #ifndef LT_DLLAZY_OR_NOW
13678 #  ifdef RTLD_LAZY
13679 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13680 #  else
13681 #    ifdef DL_LAZY
13682 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13683 #    else
13684 #      ifdef RTLD_NOW
13685 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13686 #      else
13687 #        ifdef DL_NOW
13688 #          define LT_DLLAZY_OR_NOW      DL_NOW
13689 #        else
13690 #          define LT_DLLAZY_OR_NOW      0
13691 #        endif
13692 #      endif
13693 #    endif
13694 #  endif
13695 #endif
13696
13697 /* When -fvisbility=hidden is used, assume the code has been annotated
13698    correspondingly for the symbols needed.  */
13699 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13700 int fnord () __attribute__((visibility("default")));
13701 #endif
13702
13703 int fnord () { return 42; }
13704 int main ()
13705 {
13706   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13707   int status = $lt_dlunknown;
13708
13709   if (self)
13710     {
13711       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13712       else
13713         {
13714           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13715           else puts (dlerror ());
13716         }
13717       /* dlclose (self); */
13718     }
13719   else
13720     puts (dlerror ());
13721
13722   return status;
13723 }
13724 _LT_EOF
13725   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13726   (eval $ac_link) 2>&5
13727   ac_status=$?
13728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13729   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13730     (./conftest; exit; ) >&5 2>/dev/null
13731     lt_status=$?
13732     case x$lt_status in
13733       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13734       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13735       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13736     esac
13737   else :
13738     # compilation failed
13739     lt_cv_dlopen_self_static=no
13740   fi
13741 fi
13742 rm -fr conftest*
13743
13744
13745 fi
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13747 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13748     fi
13749
13750     CPPFLAGS="$save_CPPFLAGS"
13751     LDFLAGS="$save_LDFLAGS"
13752     LIBS="$save_LIBS"
13753     ;;
13754   esac
13755
13756   case $lt_cv_dlopen_self in
13757   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13758   *) enable_dlopen_self=unknown ;;
13759   esac
13760
13761   case $lt_cv_dlopen_self_static in
13762   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13763   *) enable_dlopen_self_static=unknown ;;
13764   esac
13765 fi
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783 striplib=
13784 old_striplib=
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13786 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13787 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13788   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13789   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13791 $as_echo "yes" >&6; }
13792 else
13793 # FIXME - insert some real tests, host_os isn't really good enough
13794   case $host_os in
13795   darwin*)
13796     if test -n "$STRIP" ; then
13797       striplib="$STRIP -x"
13798       old_striplib="$STRIP -S"
13799       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13800 $as_echo "yes" >&6; }
13801     else
13802       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 $as_echo "no" >&6; }
13804     fi
13805     ;;
13806   *)
13807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13809     ;;
13810   esac
13811 fi
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824   # Report which library types will actually be built
13825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13826 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13828 $as_echo "$can_build_shared" >&6; }
13829
13830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13831 $as_echo_n "checking whether to build shared libraries... " >&6; }
13832   test "$can_build_shared" = "no" && enable_shared=no
13833
13834   # On AIX, shared libraries and static libraries use the same namespace, and
13835   # are all built from PIC.
13836   case $host_os in
13837   aix3*)
13838     test "$enable_shared" = yes && enable_static=no
13839     if test -n "$RANLIB"; then
13840       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13841       postinstall_cmds='$RANLIB $lib'
13842     fi
13843     ;;
13844
13845   aix[4-9]*)
13846     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13847       test "$enable_shared" = yes && enable_static=no
13848     fi
13849     ;;
13850   esac
13851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13852 $as_echo "$enable_shared" >&6; }
13853
13854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13855 $as_echo_n "checking whether to build static libraries... " >&6; }
13856   # Make sure either enable_shared or enable_static is yes.
13857   test "$enable_shared" = yes || enable_static=yes
13858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13859 $as_echo "$enable_static" >&6; }
13860
13861
13862
13863
13864 fi
13865 ac_ext=c
13866 ac_cpp='$CPP $CPPFLAGS'
13867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13870
13871 CC="$lt_save_CC"
13872
13873       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13874     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13875     (test "X$CXX" != "Xg++"))) ; then
13876   ac_ext=cpp
13877 ac_cpp='$CXXCPP $CPPFLAGS'
13878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13882 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13883 if test -z "$CXXCPP"; then
13884   if ${ac_cv_prog_CXXCPP+:} false; then :
13885   $as_echo_n "(cached) " >&6
13886 else
13887       # Double quotes because CXXCPP needs to be expanded
13888     for CXXCPP in "$CXX -E" "/lib/cpp"
13889     do
13890       ac_preproc_ok=false
13891 for ac_cxx_preproc_warn_flag in '' yes
13892 do
13893   # Use a header file that comes with gcc, so configuring glibc
13894   # with a fresh cross-compiler works.
13895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13896   # <limits.h> exists even on freestanding compilers.
13897   # On the NeXT, cc -E runs the code through the compiler's parser,
13898   # not just through cpp. "Syntax error" is here to catch this case.
13899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h.  */
13901 #ifdef __STDC__
13902 # include <limits.h>
13903 #else
13904 # include <assert.h>
13905 #endif
13906                      Syntax error
13907 _ACEOF
13908 if ac_fn_cxx_try_cpp "$LINENO"; then :
13909
13910 else
13911   # Broken: fails on valid input.
13912 continue
13913 fi
13914 rm -f conftest.err conftest.i conftest.$ac_ext
13915
13916   # OK, works on sane cases.  Now check whether nonexistent headers
13917   # can be detected and how.
13918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h.  */
13920 #include <ac_nonexistent.h>
13921 _ACEOF
13922 if ac_fn_cxx_try_cpp "$LINENO"; then :
13923   # Broken: success on invalid input.
13924 continue
13925 else
13926   # Passes both tests.
13927 ac_preproc_ok=:
13928 break
13929 fi
13930 rm -f conftest.err conftest.i conftest.$ac_ext
13931
13932 done
13933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13934 rm -f conftest.i conftest.err conftest.$ac_ext
13935 if $ac_preproc_ok; then :
13936   break
13937 fi
13938
13939     done
13940     ac_cv_prog_CXXCPP=$CXXCPP
13941
13942 fi
13943   CXXCPP=$ac_cv_prog_CXXCPP
13944 else
13945   ac_cv_prog_CXXCPP=$CXXCPP
13946 fi
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13948 $as_echo "$CXXCPP" >&6; }
13949 ac_preproc_ok=false
13950 for ac_cxx_preproc_warn_flag in '' yes
13951 do
13952   # Use a header file that comes with gcc, so configuring glibc
13953   # with a fresh cross-compiler works.
13954   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955   # <limits.h> exists even on freestanding compilers.
13956   # On the NeXT, cc -E runs the code through the compiler's parser,
13957   # not just through cpp. "Syntax error" is here to catch this case.
13958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h.  */
13960 #ifdef __STDC__
13961 # include <limits.h>
13962 #else
13963 # include <assert.h>
13964 #endif
13965                      Syntax error
13966 _ACEOF
13967 if ac_fn_cxx_try_cpp "$LINENO"; then :
13968
13969 else
13970   # Broken: fails on valid input.
13971 continue
13972 fi
13973 rm -f conftest.err conftest.i conftest.$ac_ext
13974
13975   # OK, works on sane cases.  Now check whether nonexistent headers
13976   # can be detected and how.
13977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h.  */
13979 #include <ac_nonexistent.h>
13980 _ACEOF
13981 if ac_fn_cxx_try_cpp "$LINENO"; then :
13982   # Broken: success on invalid input.
13983 continue
13984 else
13985   # Passes both tests.
13986 ac_preproc_ok=:
13987 break
13988 fi
13989 rm -f conftest.err conftest.i conftest.$ac_ext
13990
13991 done
13992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13993 rm -f conftest.i conftest.err conftest.$ac_ext
13994 if $ac_preproc_ok; then :
13995
13996 else
13997   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13999 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14000 See \`config.log' for more details" "$LINENO" 5; }
14001 fi
14002
14003 ac_ext=c
14004 ac_cpp='$CPP $CPPFLAGS'
14005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14008
14009 else
14010   _lt_caught_CXX_error=yes
14011 fi
14012
14013 ac_ext=cpp
14014 ac_cpp='$CXXCPP $CPPFLAGS'
14015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14018
14019 archive_cmds_need_lc_CXX=no
14020 allow_undefined_flag_CXX=
14021 always_export_symbols_CXX=no
14022 archive_expsym_cmds_CXX=
14023 compiler_needs_object_CXX=no
14024 export_dynamic_flag_spec_CXX=
14025 hardcode_direct_CXX=no
14026 hardcode_direct_absolute_CXX=no
14027 hardcode_libdir_flag_spec_CXX=
14028 hardcode_libdir_separator_CXX=
14029 hardcode_minus_L_CXX=no
14030 hardcode_shlibpath_var_CXX=unsupported
14031 hardcode_automatic_CXX=no
14032 inherit_rpath_CXX=no
14033 module_cmds_CXX=
14034 module_expsym_cmds_CXX=
14035 link_all_deplibs_CXX=unknown
14036 old_archive_cmds_CXX=$old_archive_cmds
14037 reload_flag_CXX=$reload_flag
14038 reload_cmds_CXX=$reload_cmds
14039 no_undefined_flag_CXX=
14040 whole_archive_flag_spec_CXX=
14041 enable_shared_with_static_runtimes_CXX=no
14042
14043 # Source file extension for C++ test sources.
14044 ac_ext=cpp
14045
14046 # Object file extension for compiled C++ test sources.
14047 objext=o
14048 objext_CXX=$objext
14049
14050 # No sense in running all these tests if we already determined that
14051 # the CXX compiler isn't working.  Some variables (like enable_shared)
14052 # are currently assumed to apply to all compilers on this platform,
14053 # and will be corrupted by setting them based on a non-working compiler.
14054 if test "$_lt_caught_CXX_error" != yes; then
14055   # Code to be used in simple compile tests
14056   lt_simple_compile_test_code="int some_variable = 0;"
14057
14058   # Code to be used in simple link tests
14059   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14060
14061   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14062
14063
14064
14065
14066
14067
14068 # If no C compiler was specified, use CC.
14069 LTCC=${LTCC-"$CC"}
14070
14071 # If no C compiler flags were specified, use CFLAGS.
14072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14073
14074 # Allow CC to be a program name with arguments.
14075 compiler=$CC
14076
14077
14078   # save warnings/boilerplate of simple test code
14079   ac_outfile=conftest.$ac_objext
14080 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14081 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14082 _lt_compiler_boilerplate=`cat conftest.err`
14083 $RM conftest*
14084
14085   ac_outfile=conftest.$ac_objext
14086 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14087 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14088 _lt_linker_boilerplate=`cat conftest.err`
14089 $RM -r conftest*
14090
14091
14092   # Allow CC to be a program name with arguments.
14093   lt_save_CC=$CC
14094   lt_save_CFLAGS=$CFLAGS
14095   lt_save_LD=$LD
14096   lt_save_GCC=$GCC
14097   GCC=$GXX
14098   lt_save_with_gnu_ld=$with_gnu_ld
14099   lt_save_path_LD=$lt_cv_path_LD
14100   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14101     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14102   else
14103     $as_unset lt_cv_prog_gnu_ld
14104   fi
14105   if test -n "${lt_cv_path_LDCXX+set}"; then
14106     lt_cv_path_LD=$lt_cv_path_LDCXX
14107   else
14108     $as_unset lt_cv_path_LD
14109   fi
14110   test -z "${LDCXX+set}" || LD=$LDCXX
14111   CC=${CXX-"c++"}
14112   CFLAGS=$CXXFLAGS
14113   compiler=$CC
14114   compiler_CXX=$CC
14115   for cc_temp in $compiler""; do
14116   case $cc_temp in
14117     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14118     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14119     \-*) ;;
14120     *) break;;
14121   esac
14122 done
14123 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14124
14125
14126   if test -n "$compiler"; then
14127     # We don't want -fno-exception when compiling C++ code, so set the
14128     # no_builtin_flag separately
14129     if test "$GXX" = yes; then
14130       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14131     else
14132       lt_prog_compiler_no_builtin_flag_CXX=
14133     fi
14134
14135     if test "$GXX" = yes; then
14136       # Set up default GNU C++ configuration
14137
14138
14139
14140 # Check whether --with-gnu-ld was given.
14141 if test "${with_gnu_ld+set}" = set; then :
14142   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14143 else
14144   with_gnu_ld=no
14145 fi
14146
14147 ac_prog=ld
14148 if test "$GCC" = yes; then
14149   # Check if gcc -print-prog-name=ld gives a path.
14150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14151 $as_echo_n "checking for ld used by $CC... " >&6; }
14152   case $host in
14153   *-*-mingw*)
14154     # gcc leaves a trailing carriage return which upsets mingw
14155     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14156   *)
14157     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14158   esac
14159   case $ac_prog in
14160     # Accept absolute paths.
14161     [\\/]* | ?:[\\/]*)
14162       re_direlt='/[^/][^/]*/\.\./'
14163       # Canonicalize the pathname of ld
14164       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14165       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14166         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14167       done
14168       test -z "$LD" && LD="$ac_prog"
14169       ;;
14170   "")
14171     # If it fails, then pretend we aren't using GCC.
14172     ac_prog=ld
14173     ;;
14174   *)
14175     # If it is relative, then search for the first ld in PATH.
14176     with_gnu_ld=unknown
14177     ;;
14178   esac
14179 elif test "$with_gnu_ld" = yes; then
14180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14181 $as_echo_n "checking for GNU ld... " >&6; }
14182 else
14183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14184 $as_echo_n "checking for non-GNU ld... " >&6; }
14185 fi
14186 if ${lt_cv_path_LD+:} false; then :
14187   $as_echo_n "(cached) " >&6
14188 else
14189   if test -z "$LD"; then
14190   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14191   for ac_dir in $PATH; do
14192     IFS="$lt_save_ifs"
14193     test -z "$ac_dir" && ac_dir=.
14194     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14195       lt_cv_path_LD="$ac_dir/$ac_prog"
14196       # Check to see if the program is GNU ld.  I'd rather use --version,
14197       # but apparently some variants of GNU ld only accept -v.
14198       # Break only if it was the GNU/non-GNU ld that we prefer.
14199       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14200       *GNU* | *'with BFD'*)
14201         test "$with_gnu_ld" != no && break
14202         ;;
14203       *)
14204         test "$with_gnu_ld" != yes && break
14205         ;;
14206       esac
14207     fi
14208   done
14209   IFS="$lt_save_ifs"
14210 else
14211   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14212 fi
14213 fi
14214
14215 LD="$lt_cv_path_LD"
14216 if test -n "$LD"; then
14217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14218 $as_echo "$LD" >&6; }
14219 else
14220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221 $as_echo "no" >&6; }
14222 fi
14223 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14225 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14226 if ${lt_cv_prog_gnu_ld+:} false; then :
14227   $as_echo_n "(cached) " >&6
14228 else
14229   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14230 case `$LD -v 2>&1 </dev/null` in
14231 *GNU* | *'with BFD'*)
14232   lt_cv_prog_gnu_ld=yes
14233   ;;
14234 *)
14235   lt_cv_prog_gnu_ld=no
14236   ;;
14237 esac
14238 fi
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14240 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14241 with_gnu_ld=$lt_cv_prog_gnu_ld
14242
14243
14244
14245
14246
14247
14248
14249       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14250       # archiving commands below assume that GNU ld is being used.
14251       if test "$with_gnu_ld" = yes; then
14252         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14253         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'
14254
14255         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14256         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14257
14258         # If archive_cmds runs LD, not CC, wlarc should be empty
14259         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14260         #     investigate it a little bit more. (MM)
14261         wlarc='${wl}'
14262
14263         # ancient GNU ld didn't support --whole-archive et. al.
14264         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14265           $GREP 'no-whole-archive' > /dev/null; then
14266           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14267         else
14268           whole_archive_flag_spec_CXX=
14269         fi
14270       else
14271         with_gnu_ld=no
14272         wlarc=
14273
14274         # A generic and very simple default shared library creation
14275         # command for GNU C++ for the case where it uses the native
14276         # linker, instead of GNU ld.  If possible, this setting should
14277         # overridden to take advantage of the native linker features on
14278         # the platform it is being used on.
14279         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14280       fi
14281
14282       # Commands to make compiler produce verbose output that lists
14283       # what "hidden" libraries, object files and flags are used when
14284       # linking a shared library.
14285       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14286
14287     else
14288       GXX=no
14289       with_gnu_ld=no
14290       wlarc=
14291     fi
14292
14293     # PORTME: fill in a description of your system's C++ link characteristics
14294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14295 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14296     ld_shlibs_CXX=yes
14297     case $host_os in
14298       aix3*)
14299         # FIXME: insert proper C++ library support
14300         ld_shlibs_CXX=no
14301         ;;
14302       aix[4-9]*)
14303         if test "$host_cpu" = ia64; then
14304           # On IA64, the linker does run time linking by default, so we don't
14305           # have to do anything special.
14306           aix_use_runtimelinking=no
14307           exp_sym_flag='-Bexport'
14308           no_entry_flag=""
14309         else
14310           aix_use_runtimelinking=no
14311
14312           # Test if we are trying to use run time linking or normal
14313           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14314           # need to do runtime linking.
14315           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14316             for ld_flag in $LDFLAGS; do
14317               case $ld_flag in
14318               *-brtl*)
14319                 aix_use_runtimelinking=yes
14320                 break
14321                 ;;
14322               esac
14323             done
14324             ;;
14325           esac
14326
14327           exp_sym_flag='-bexport'
14328           no_entry_flag='-bnoentry'
14329         fi
14330
14331         # When large executables or shared objects are built, AIX ld can
14332         # have problems creating the table of contents.  If linking a library
14333         # or program results in "error TOC overflow" add -mminimal-toc to
14334         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14335         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14336
14337         archive_cmds_CXX=''
14338         hardcode_direct_CXX=yes
14339         hardcode_direct_absolute_CXX=yes
14340         hardcode_libdir_separator_CXX=':'
14341         link_all_deplibs_CXX=yes
14342         file_list_spec_CXX='${wl}-f,'
14343
14344         if test "$GXX" = yes; then
14345           case $host_os in aix4.[012]|aix4.[012].*)
14346           # We only want to do this on AIX 4.2 and lower, the check
14347           # below for broken collect2 doesn't work under 4.3+
14348           collect2name=`${CC} -print-prog-name=collect2`
14349           if test -f "$collect2name" &&
14350              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14351           then
14352             # We have reworked collect2
14353             :
14354           else
14355             # We have old collect2
14356             hardcode_direct_CXX=unsupported
14357             # It fails to find uninstalled libraries when the uninstalled
14358             # path is not listed in the libpath.  Setting hardcode_minus_L
14359             # to unsupported forces relinking
14360             hardcode_minus_L_CXX=yes
14361             hardcode_libdir_flag_spec_CXX='-L$libdir'
14362             hardcode_libdir_separator_CXX=
14363           fi
14364           esac
14365           shared_flag='-shared'
14366           if test "$aix_use_runtimelinking" = yes; then
14367             shared_flag="$shared_flag "'${wl}-G'
14368           fi
14369         else
14370           # not using gcc
14371           if test "$host_cpu" = ia64; then
14372           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14373           # chokes on -Wl,-G. The following line is correct:
14374           shared_flag='-G'
14375           else
14376             if test "$aix_use_runtimelinking" = yes; then
14377               shared_flag='${wl}-G'
14378             else
14379               shared_flag='${wl}-bM:SRE'
14380             fi
14381           fi
14382         fi
14383
14384         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14385         # It seems that -bexpall does not export symbols beginning with
14386         # underscore (_), so it is better to generate a list of symbols to
14387         # export.
14388         always_export_symbols_CXX=yes
14389         if test "$aix_use_runtimelinking" = yes; then
14390           # Warning - without using the other runtime loading flags (-brtl),
14391           # -berok will link without error, but may produce a broken library.
14392           allow_undefined_flag_CXX='-berok'
14393           # Determine the default libpath from the value encoded in an empty
14394           # executable.
14395           if test "${lt_cv_aix_libpath+set}" = set; then
14396   aix_libpath=$lt_cv_aix_libpath
14397 else
14398   if ${lt_cv_aix_libpath__CXX+:} false; then :
14399   $as_echo_n "(cached) " >&6
14400 else
14401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h.  */
14403
14404 int
14405 main ()
14406 {
14407
14408   ;
14409   return 0;
14410 }
14411 _ACEOF
14412 if ac_fn_cxx_try_link "$LINENO"; then :
14413
14414   lt_aix_libpath_sed='
14415       /Import File Strings/,/^$/ {
14416           /^0/ {
14417               s/^0  *\([^ ]*\) *$/\1/
14418               p
14419           }
14420       }'
14421   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14422   # Check for a 64-bit object if we didn't find anything.
14423   if test -z "$lt_cv_aix_libpath__CXX"; then
14424     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14425   fi
14426 fi
14427 rm -f core conftest.err conftest.$ac_objext \
14428     conftest$ac_exeext conftest.$ac_ext
14429   if test -z "$lt_cv_aix_libpath__CXX"; then
14430     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14431   fi
14432
14433 fi
14434
14435   aix_libpath=$lt_cv_aix_libpath__CXX
14436 fi
14437
14438           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14439
14440           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"
14441         else
14442           if test "$host_cpu" = ia64; then
14443             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14444             allow_undefined_flag_CXX="-z nodefs"
14445             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"
14446           else
14447             # Determine the default libpath from the value encoded in an
14448             # empty executable.
14449             if test "${lt_cv_aix_libpath+set}" = set; then
14450   aix_libpath=$lt_cv_aix_libpath
14451 else
14452   if ${lt_cv_aix_libpath__CXX+:} false; then :
14453   $as_echo_n "(cached) " >&6
14454 else
14455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h.  */
14457
14458 int
14459 main ()
14460 {
14461
14462   ;
14463   return 0;
14464 }
14465 _ACEOF
14466 if ac_fn_cxx_try_link "$LINENO"; then :
14467
14468   lt_aix_libpath_sed='
14469       /Import File Strings/,/^$/ {
14470           /^0/ {
14471               s/^0  *\([^ ]*\) *$/\1/
14472               p
14473           }
14474       }'
14475   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14476   # Check for a 64-bit object if we didn't find anything.
14477   if test -z "$lt_cv_aix_libpath__CXX"; then
14478     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14479   fi
14480 fi
14481 rm -f core conftest.err conftest.$ac_objext \
14482     conftest$ac_exeext conftest.$ac_ext
14483   if test -z "$lt_cv_aix_libpath__CXX"; then
14484     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14485   fi
14486
14487 fi
14488
14489   aix_libpath=$lt_cv_aix_libpath__CXX
14490 fi
14491
14492             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14493             # Warning - without using the other run time loading flags,
14494             # -berok will link without error, but may produce a broken library.
14495             no_undefined_flag_CXX=' ${wl}-bernotok'
14496             allow_undefined_flag_CXX=' ${wl}-berok'
14497             if test "$with_gnu_ld" = yes; then
14498               # We only use this code for GNU lds that support --whole-archive.
14499               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14500             else
14501               # Exported symbols can be pulled into shared objects from archives
14502               whole_archive_flag_spec_CXX='$convenience'
14503             fi
14504             archive_cmds_need_lc_CXX=yes
14505             # This is similar to how AIX traditionally builds its shared
14506             # libraries.
14507             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'
14508           fi
14509         fi
14510         ;;
14511
14512       beos*)
14513         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14514           allow_undefined_flag_CXX=unsupported
14515           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14516           # support --undefined.  This deserves some investigation.  FIXME
14517           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14518         else
14519           ld_shlibs_CXX=no
14520         fi
14521         ;;
14522
14523       chorus*)
14524         case $cc_basename in
14525           *)
14526           # FIXME: insert proper C++ library support
14527           ld_shlibs_CXX=no
14528           ;;
14529         esac
14530         ;;
14531
14532       cygwin* | mingw* | pw32* | cegcc*)
14533         case $GXX,$cc_basename in
14534         ,cl* | no,cl*)
14535           # Native MSVC
14536           # hardcode_libdir_flag_spec is actually meaningless, as there is
14537           # no search path for DLLs.
14538           hardcode_libdir_flag_spec_CXX=' '
14539           allow_undefined_flag_CXX=unsupported
14540           always_export_symbols_CXX=yes
14541           file_list_spec_CXX='@'
14542           # Tell ltmain to make .lib files, not .a files.
14543           libext=lib
14544           # Tell ltmain to make .dll files, not .so files.
14545           shrext_cmds=".dll"
14546           # FIXME: Setting linknames here is a bad hack.
14547           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14548           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14549               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14550             else
14551               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14552             fi~
14553             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14554             linknames='
14555           # The linker will not automatically build a static lib if we build a DLL.
14556           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14557           enable_shared_with_static_runtimes_CXX=yes
14558           # Don't use ranlib
14559           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14560           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14561             lt_tool_outputfile="@TOOL_OUTPUT@"~
14562             case $lt_outputfile in
14563               *.exe|*.EXE) ;;
14564               *)
14565                 lt_outputfile="$lt_outputfile.exe"
14566                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14567                 ;;
14568             esac~
14569             func_to_tool_file "$lt_outputfile"~
14570             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14571               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14572               $RM "$lt_outputfile.manifest";
14573             fi'
14574           ;;
14575         *)
14576           # g++
14577           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14578           # as there is no search path for DLLs.
14579           hardcode_libdir_flag_spec_CXX='-L$libdir'
14580           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14581           allow_undefined_flag_CXX=unsupported
14582           always_export_symbols_CXX=no
14583           enable_shared_with_static_runtimes_CXX=yes
14584
14585           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14586             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'
14587             # If the export-symbols file already is a .def file (1st line
14588             # is EXPORTS), use it as is; otherwise, prepend...
14589             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14590               cp $export_symbols $output_objdir/$soname.def;
14591             else
14592               echo EXPORTS > $output_objdir/$soname.def;
14593               cat $export_symbols >> $output_objdir/$soname.def;
14594             fi~
14595             $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'
14596           else
14597             ld_shlibs_CXX=no
14598           fi
14599           ;;
14600         esac
14601         ;;
14602       darwin* | rhapsody*)
14603
14604
14605   archive_cmds_need_lc_CXX=no
14606   hardcode_direct_CXX=no
14607   hardcode_automatic_CXX=yes
14608   hardcode_shlibpath_var_CXX=unsupported
14609   if test "$lt_cv_ld_force_load" = "yes"; then
14610     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\"`'
14611
14612   else
14613     whole_archive_flag_spec_CXX=''
14614   fi
14615   link_all_deplibs_CXX=yes
14616   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14617   case $cc_basename in
14618      ifort*) _lt_dar_can_shared=yes ;;
14619      *) _lt_dar_can_shared=$GCC ;;
14620   esac
14621   if test "$_lt_dar_can_shared" = "yes"; then
14622     output_verbose_link_cmd=func_echo_all
14623     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}"
14624     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14625     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}"
14626     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}"
14627        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14628       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}"
14629       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}"
14630     fi
14631
14632   else
14633   ld_shlibs_CXX=no
14634   fi
14635
14636         ;;
14637
14638       dgux*)
14639         case $cc_basename in
14640           ec++*)
14641             # FIXME: insert proper C++ library support
14642             ld_shlibs_CXX=no
14643             ;;
14644           ghcx*)
14645             # Green Hills C++ Compiler
14646             # FIXME: insert proper C++ library support
14647             ld_shlibs_CXX=no
14648             ;;
14649           *)
14650             # FIXME: insert proper C++ library support
14651             ld_shlibs_CXX=no
14652             ;;
14653         esac
14654         ;;
14655
14656       freebsd2.*)
14657         # C++ shared libraries reported to be fairly broken before
14658         # switch to ELF
14659         ld_shlibs_CXX=no
14660         ;;
14661
14662       freebsd-elf*)
14663         archive_cmds_need_lc_CXX=no
14664         ;;
14665
14666       freebsd* | dragonfly*)
14667         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14668         # conventions
14669         ld_shlibs_CXX=yes
14670         ;;
14671
14672       gnu*)
14673         ;;
14674
14675       haiku*)
14676         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14677         link_all_deplibs_CXX=yes
14678         ;;
14679
14680       hpux9*)
14681         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14682         hardcode_libdir_separator_CXX=:
14683         export_dynamic_flag_spec_CXX='${wl}-E'
14684         hardcode_direct_CXX=yes
14685         hardcode_minus_L_CXX=yes # Not in the search PATH,
14686                                              # but as the default
14687                                              # location of the library.
14688
14689         case $cc_basename in
14690           CC*)
14691             # FIXME: insert proper C++ library support
14692             ld_shlibs_CXX=no
14693             ;;
14694           aCC*)
14695             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'
14696             # Commands to make compiler produce verbose output that lists
14697             # what "hidden" libraries, object files and flags are used when
14698             # linking a shared library.
14699             #
14700             # There doesn't appear to be a way to prevent this compiler from
14701             # explicitly linking system object files so we need to strip them
14702             # from the output so that they don't get included in the library
14703             # dependencies.
14704             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"'
14705             ;;
14706           *)
14707             if test "$GXX" = yes; then
14708               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'
14709             else
14710               # FIXME: insert proper C++ library support
14711               ld_shlibs_CXX=no
14712             fi
14713             ;;
14714         esac
14715         ;;
14716
14717       hpux10*|hpux11*)
14718         if test $with_gnu_ld = no; then
14719           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14720           hardcode_libdir_separator_CXX=:
14721
14722           case $host_cpu in
14723             hppa*64*|ia64*)
14724               ;;
14725             *)
14726               export_dynamic_flag_spec_CXX='${wl}-E'
14727               ;;
14728           esac
14729         fi
14730         case $host_cpu in
14731           hppa*64*|ia64*)
14732             hardcode_direct_CXX=no
14733             hardcode_shlibpath_var_CXX=no
14734             ;;
14735           *)
14736             hardcode_direct_CXX=yes
14737             hardcode_direct_absolute_CXX=yes
14738             hardcode_minus_L_CXX=yes # Not in the search PATH,
14739                                                  # but as the default
14740                                                  # location of the library.
14741             ;;
14742         esac
14743
14744         case $cc_basename in
14745           CC*)
14746             # FIXME: insert proper C++ library support
14747             ld_shlibs_CXX=no
14748             ;;
14749           aCC*)
14750             case $host_cpu in
14751               hppa*64*)
14752                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14753                 ;;
14754               ia64*)
14755                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14756                 ;;
14757               *)
14758                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14759                 ;;
14760             esac
14761             # Commands to make compiler produce verbose output that lists
14762             # what "hidden" libraries, object files and flags are used when
14763             # linking a shared library.
14764             #
14765             # There doesn't appear to be a way to prevent this compiler from
14766             # explicitly linking system object files so we need to strip them
14767             # from the output so that they don't get included in the library
14768             # dependencies.
14769             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"'
14770             ;;
14771           *)
14772             if test "$GXX" = yes; then
14773               if test $with_gnu_ld = no; then
14774                 case $host_cpu in
14775                   hppa*64*)
14776                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14777                     ;;
14778                   ia64*)
14779                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14780                     ;;
14781                   *)
14782                     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'
14783                     ;;
14784                 esac
14785               fi
14786             else
14787               # FIXME: insert proper C++ library support
14788               ld_shlibs_CXX=no
14789             fi
14790             ;;
14791         esac
14792         ;;
14793
14794       interix[3-9]*)
14795         hardcode_direct_CXX=no
14796         hardcode_shlibpath_var_CXX=no
14797         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14798         export_dynamic_flag_spec_CXX='${wl}-E'
14799         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14800         # Instead, shared libraries are loaded at an image base (0x10000000 by
14801         # default) and relocated if they conflict, which is a slow very memory
14802         # consuming and fragmenting process.  To avoid this, we pick a random,
14803         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14804         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14805         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'
14806         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'
14807         ;;
14808       irix5* | irix6*)
14809         case $cc_basename in
14810           CC*)
14811             # SGI C++
14812             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'
14813
14814             # Archives containing C++ object files must be created using
14815             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14816             # necessary to make sure instantiated templates are included
14817             # in the archive.
14818             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14819             ;;
14820           *)
14821             if test "$GXX" = yes; then
14822               if test "$with_gnu_ld" = no; then
14823                 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'
14824               else
14825                 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'
14826               fi
14827             fi
14828             link_all_deplibs_CXX=yes
14829             ;;
14830         esac
14831         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14832         hardcode_libdir_separator_CXX=:
14833         inherit_rpath_CXX=yes
14834         ;;
14835
14836       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14837         case $cc_basename in
14838           KCC*)
14839             # Kuck and Associates, Inc. (KAI) C++ Compiler
14840
14841             # KCC will only create a shared library if the output file
14842             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14843             # to its proper name (with version) after linking.
14844             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'
14845             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'
14846             # Commands to make compiler produce verbose output that lists
14847             # what "hidden" libraries, object files and flags are used when
14848             # linking a shared library.
14849             #
14850             # There doesn't appear to be a way to prevent this compiler from
14851             # explicitly linking system object files so we need to strip them
14852             # from the output so that they don't get included in the library
14853             # dependencies.
14854             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"'
14855
14856             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14857             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14858
14859             # Archives containing C++ object files must be created using
14860             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14861             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14862             ;;
14863           icpc* | ecpc* )
14864             # Intel C++
14865             with_gnu_ld=yes
14866             # version 8.0 and above of icpc choke on multiply defined symbols
14867             # if we add $predep_objects and $postdep_objects, however 7.1 and
14868             # earlier do not add the objects themselves.
14869             case `$CC -V 2>&1` in
14870               *"Version 7."*)
14871                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14872                 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'
14873                 ;;
14874               *)  # Version 8.0 or newer
14875                 tmp_idyn=
14876                 case $host_cpu in
14877                   ia64*) tmp_idyn=' -i_dynamic';;
14878                 esac
14879                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14880                 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'
14881                 ;;
14882             esac
14883             archive_cmds_need_lc_CXX=no
14884             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14885             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14886             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14887             ;;
14888           pgCC* | pgcpp*)
14889             # Portland Group C++ compiler
14890             case `$CC -V` in
14891             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14892               prelink_cmds_CXX='tpldir=Template.dir~
14893                 rm -rf $tpldir~
14894                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14895                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14896               old_archive_cmds_CXX='tpldir=Template.dir~
14897                 rm -rf $tpldir~
14898                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14899                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14900                 $RANLIB $oldlib'
14901               archive_cmds_CXX='tpldir=Template.dir~
14902                 rm -rf $tpldir~
14903                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14904                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14905               archive_expsym_cmds_CXX='tpldir=Template.dir~
14906                 rm -rf $tpldir~
14907                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14908                 $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'
14909               ;;
14910             *) # Version 6 and above use weak symbols
14911               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14912               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'
14913               ;;
14914             esac
14915
14916             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14917             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14918             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'
14919             ;;
14920           cxx*)
14921             # Compaq C++
14922             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14923             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'
14924
14925             runpath_var=LD_RUN_PATH
14926             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14927             hardcode_libdir_separator_CXX=:
14928
14929             # Commands to make compiler produce verbose output that lists
14930             # what "hidden" libraries, object files and flags are used when
14931             # linking a shared library.
14932             #
14933             # There doesn't appear to be a way to prevent this compiler from
14934             # explicitly linking system object files so we need to strip them
14935             # from the output so that they don't get included in the library
14936             # dependencies.
14937             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'
14938             ;;
14939           xl* | mpixl* | bgxl*)
14940             # IBM XL 8.0 on PPC, with GNU ld
14941             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14942             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14943             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14944             if test "x$supports_anon_versioning" = xyes; then
14945               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14946                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14947                 echo "local: *; };" >> $output_objdir/$libname.ver~
14948                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14949             fi
14950             ;;
14951           *)
14952             case `$CC -V 2>&1 | sed 5q` in
14953             *Sun\ C*)
14954               # Sun C++ 5.9
14955               no_undefined_flag_CXX=' -zdefs'
14956               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14957               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'
14958               hardcode_libdir_flag_spec_CXX='-R$libdir'
14959               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'
14960               compiler_needs_object_CXX=yes
14961
14962               # Not sure whether something based on
14963               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14964               # would be better.
14965               output_verbose_link_cmd='func_echo_all'
14966
14967               # Archives containing C++ object files must be created using
14968               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14969               # necessary to make sure instantiated templates are included
14970               # in the archive.
14971               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14972               ;;
14973             esac
14974             ;;
14975         esac
14976         ;;
14977
14978       lynxos*)
14979         # FIXME: insert proper C++ library support
14980         ld_shlibs_CXX=no
14981         ;;
14982
14983       m88k*)
14984         # FIXME: insert proper C++ library support
14985         ld_shlibs_CXX=no
14986         ;;
14987
14988       mvs*)
14989         case $cc_basename in
14990           cxx*)
14991             # FIXME: insert proper C++ library support
14992             ld_shlibs_CXX=no
14993             ;;
14994           *)
14995             # FIXME: insert proper C++ library support
14996             ld_shlibs_CXX=no
14997             ;;
14998         esac
14999         ;;
15000
15001       netbsd*)
15002         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15003           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15004           wlarc=
15005           hardcode_libdir_flag_spec_CXX='-R$libdir'
15006           hardcode_direct_CXX=yes
15007           hardcode_shlibpath_var_CXX=no
15008         fi
15009         # Workaround some broken pre-1.5 toolchains
15010         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15011         ;;
15012
15013       *nto* | *qnx*)
15014         ld_shlibs_CXX=yes
15015         ;;
15016
15017       openbsd2*)
15018         # C++ shared libraries are fairly broken
15019         ld_shlibs_CXX=no
15020         ;;
15021
15022       openbsd*)
15023         if test -f /usr/libexec/ld.so; then
15024           hardcode_direct_CXX=yes
15025           hardcode_shlibpath_var_CXX=no
15026           hardcode_direct_absolute_CXX=yes
15027           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15028           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15029           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15030             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15031             export_dynamic_flag_spec_CXX='${wl}-E'
15032             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15033           fi
15034           output_verbose_link_cmd=func_echo_all
15035         else
15036           ld_shlibs_CXX=no
15037         fi
15038         ;;
15039
15040       osf3* | osf4* | osf5*)
15041         case $cc_basename in
15042           KCC*)
15043             # Kuck and Associates, Inc. (KAI) C++ Compiler
15044
15045             # KCC will only create a shared library if the output file
15046             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15047             # to its proper name (with version) after linking.
15048             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'
15049
15050             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15051             hardcode_libdir_separator_CXX=:
15052
15053             # Archives containing C++ object files must be created using
15054             # the KAI C++ compiler.
15055             case $host in
15056               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15057               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15058             esac
15059             ;;
15060           RCC*)
15061             # Rational C++ 2.4.1
15062             # FIXME: insert proper C++ library support
15063             ld_shlibs_CXX=no
15064             ;;
15065           cxx*)
15066             case $host in
15067               osf3*)
15068                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15069                 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'
15070                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15071                 ;;
15072               *)
15073                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15074                 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'
15075                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15076                   echo "-hidden">> $lib.exp~
15077                   $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~
15078                   $RM $lib.exp'
15079                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15080                 ;;
15081             esac
15082
15083             hardcode_libdir_separator_CXX=:
15084
15085             # Commands to make compiler produce verbose output that lists
15086             # what "hidden" libraries, object files and flags are used when
15087             # linking a shared library.
15088             #
15089             # There doesn't appear to be a way to prevent this compiler from
15090             # explicitly linking system object files so we need to strip them
15091             # from the output so that they don't get included in the library
15092             # dependencies.
15093             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"'
15094             ;;
15095           *)
15096             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15097               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15098               case $host in
15099                 osf3*)
15100                   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'
15101                   ;;
15102                 *)
15103                   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'
15104                   ;;
15105               esac
15106
15107               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15108               hardcode_libdir_separator_CXX=:
15109
15110               # Commands to make compiler produce verbose output that lists
15111               # what "hidden" libraries, object files and flags are used when
15112               # linking a shared library.
15113               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15114
15115             else
15116               # FIXME: insert proper C++ library support
15117               ld_shlibs_CXX=no
15118             fi
15119             ;;
15120         esac
15121         ;;
15122
15123       psos*)
15124         # FIXME: insert proper C++ library support
15125         ld_shlibs_CXX=no
15126         ;;
15127
15128       sunos4*)
15129         case $cc_basename in
15130           CC*)
15131             # Sun C++ 4.x
15132             # FIXME: insert proper C++ library support
15133             ld_shlibs_CXX=no
15134             ;;
15135           lcc*)
15136             # Lucid
15137             # FIXME: insert proper C++ library support
15138             ld_shlibs_CXX=no
15139             ;;
15140           *)
15141             # FIXME: insert proper C++ library support
15142             ld_shlibs_CXX=no
15143             ;;
15144         esac
15145         ;;
15146
15147       solaris*)
15148         case $cc_basename in
15149           CC* | sunCC*)
15150             # Sun C++ 4.2, 5.x and Centerline C++
15151             archive_cmds_need_lc_CXX=yes
15152             no_undefined_flag_CXX=' -zdefs'
15153             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15154             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15155               $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'
15156
15157             hardcode_libdir_flag_spec_CXX='-R$libdir'
15158             hardcode_shlibpath_var_CXX=no
15159             case $host_os in
15160               solaris2.[0-5] | solaris2.[0-5].*) ;;
15161               *)
15162                 # The compiler driver will combine and reorder linker options,
15163                 # but understands `-z linker_flag'.
15164                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15165                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15166                 ;;
15167             esac
15168             link_all_deplibs_CXX=yes
15169
15170             output_verbose_link_cmd='func_echo_all'
15171
15172             # Archives containing C++ object files must be created using
15173             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15174             # necessary to make sure instantiated templates are included
15175             # in the archive.
15176             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15177             ;;
15178           gcx*)
15179             # Green Hills C++ Compiler
15180             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15181
15182             # The C++ compiler must be used to create the archive.
15183             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15184             ;;
15185           *)
15186             # GNU C++ compiler with Solaris linker
15187             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15188               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15189               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15190                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15191                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15192                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15193
15194                 # Commands to make compiler produce verbose output that lists
15195                 # what "hidden" libraries, object files and flags are used when
15196                 # linking a shared library.
15197                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15198               else
15199                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15200                 # platform.
15201                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15202                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15203                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15204
15205                 # Commands to make compiler produce verbose output that lists
15206                 # what "hidden" libraries, object files and flags are used when
15207                 # linking a shared library.
15208                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15209               fi
15210
15211               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15212               case $host_os in
15213                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15214                 *)
15215                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15216                   ;;
15217               esac
15218             fi
15219             ;;
15220         esac
15221         ;;
15222
15223     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15224       no_undefined_flag_CXX='${wl}-z,text'
15225       archive_cmds_need_lc_CXX=no
15226       hardcode_shlibpath_var_CXX=no
15227       runpath_var='LD_RUN_PATH'
15228
15229       case $cc_basename in
15230         CC*)
15231           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15232           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15233           ;;
15234         *)
15235           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15236           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15237           ;;
15238       esac
15239       ;;
15240
15241       sysv5* | sco3.2v5* | sco5v6*)
15242         # Note: We can NOT use -z defs as we might desire, because we do not
15243         # link with -lc, and that would cause any symbols used from libc to
15244         # always be unresolved, which means just about no library would
15245         # ever link correctly.  If we're not using GNU ld we use -z text
15246         # though, which does catch some bad symbols but isn't as heavy-handed
15247         # as -z defs.
15248         no_undefined_flag_CXX='${wl}-z,text'
15249         allow_undefined_flag_CXX='${wl}-z,nodefs'
15250         archive_cmds_need_lc_CXX=no
15251         hardcode_shlibpath_var_CXX=no
15252         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15253         hardcode_libdir_separator_CXX=':'
15254         link_all_deplibs_CXX=yes
15255         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15256         runpath_var='LD_RUN_PATH'
15257
15258         case $cc_basename in
15259           CC*)
15260             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15261             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15262             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15263               '"$old_archive_cmds_CXX"
15264             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15265               '"$reload_cmds_CXX"
15266             ;;
15267           *)
15268             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15269             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15270             ;;
15271         esac
15272       ;;
15273
15274       tandem*)
15275         case $cc_basename in
15276           NCC*)
15277             # NonStop-UX NCC 3.20
15278             # FIXME: insert proper C++ library support
15279             ld_shlibs_CXX=no
15280             ;;
15281           *)
15282             # FIXME: insert proper C++ library support
15283             ld_shlibs_CXX=no
15284             ;;
15285         esac
15286         ;;
15287
15288       vxworks*)
15289         # FIXME: insert proper C++ library support
15290         ld_shlibs_CXX=no
15291         ;;
15292
15293       *)
15294         # FIXME: insert proper C++ library support
15295         ld_shlibs_CXX=no
15296         ;;
15297     esac
15298
15299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15300 $as_echo "$ld_shlibs_CXX" >&6; }
15301     test "$ld_shlibs_CXX" = no && can_build_shared=no
15302
15303     GCC_CXX="$GXX"
15304     LD_CXX="$LD"
15305
15306     ## CAVEAT EMPTOR:
15307     ## There is no encapsulation within the following macros, do not change
15308     ## the running order or otherwise move them around unless you know exactly
15309     ## what you are doing...
15310     # Dependencies to place before and after the object being linked:
15311 predep_objects_CXX=
15312 postdep_objects_CXX=
15313 predeps_CXX=
15314 postdeps_CXX=
15315 compiler_lib_search_path_CXX=
15316
15317 cat > conftest.$ac_ext <<_LT_EOF
15318 class Foo
15319 {
15320 public:
15321   Foo (void) { a = 0; }
15322 private:
15323   int a;
15324 };
15325 _LT_EOF
15326
15327
15328 _lt_libdeps_save_CFLAGS=$CFLAGS
15329 case "$CC $CFLAGS " in #(
15330 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15331 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15332 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15333 esac
15334
15335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15336   (eval $ac_compile) 2>&5
15337   ac_status=$?
15338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15339   test $ac_status = 0; }; then
15340   # Parse the compiler output and extract the necessary
15341   # objects, libraries and library flags.
15342
15343   # Sentinel used to keep track of whether or not we are before
15344   # the conftest object file.
15345   pre_test_object_deps_done=no
15346
15347   for p in `eval "$output_verbose_link_cmd"`; do
15348     case ${prev}${p} in
15349
15350     -L* | -R* | -l*)
15351        # Some compilers place space between "-{L,R}" and the path.
15352        # Remove the space.
15353        if test $p = "-L" ||
15354           test $p = "-R"; then
15355          prev=$p
15356          continue
15357        fi
15358
15359        # Expand the sysroot to ease extracting the directories later.
15360        if test -z "$prev"; then
15361          case $p in
15362          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15363          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15364          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15365          esac
15366        fi
15367        case $p in
15368        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15369        esac
15370        if test "$pre_test_object_deps_done" = no; then
15371          case ${prev} in
15372          -L | -R)
15373            # Internal compiler library paths should come after those
15374            # provided the user.  The postdeps already come after the
15375            # user supplied libs so there is no need to process them.
15376            if test -z "$compiler_lib_search_path_CXX"; then
15377              compiler_lib_search_path_CXX="${prev}${p}"
15378            else
15379              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15380            fi
15381            ;;
15382          # The "-l" case would never come before the object being
15383          # linked, so don't bother handling this case.
15384          esac
15385        else
15386          if test -z "$postdeps_CXX"; then
15387            postdeps_CXX="${prev}${p}"
15388          else
15389            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15390          fi
15391        fi
15392        prev=
15393        ;;
15394
15395     *.lto.$objext) ;; # Ignore GCC LTO objects
15396     *.$objext)
15397        # This assumes that the test object file only shows up
15398        # once in the compiler output.
15399        if test "$p" = "conftest.$objext"; then
15400          pre_test_object_deps_done=yes
15401          continue
15402        fi
15403
15404        if test "$pre_test_object_deps_done" = no; then
15405          if test -z "$predep_objects_CXX"; then
15406            predep_objects_CXX="$p"
15407          else
15408            predep_objects_CXX="$predep_objects_CXX $p"
15409          fi
15410        else
15411          if test -z "$postdep_objects_CXX"; then
15412            postdep_objects_CXX="$p"
15413          else
15414            postdep_objects_CXX="$postdep_objects_CXX $p"
15415          fi
15416        fi
15417        ;;
15418
15419     *) ;; # Ignore the rest.
15420
15421     esac
15422   done
15423
15424   # Clean up.
15425   rm -f a.out a.exe
15426 else
15427   echo "libtool.m4: error: problem compiling CXX test program"
15428 fi
15429
15430 $RM -f confest.$objext
15431 CFLAGS=$_lt_libdeps_save_CFLAGS
15432
15433 # PORTME: override above test on systems where it is broken
15434 case $host_os in
15435 interix[3-9]*)
15436   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15437   # hack all around it, let's just trust "g++" to DTRT.
15438   predep_objects_CXX=
15439   postdep_objects_CXX=
15440   postdeps_CXX=
15441   ;;
15442
15443 linux*)
15444   case `$CC -V 2>&1 | sed 5q` in
15445   *Sun\ C*)
15446     # Sun C++ 5.9
15447
15448     # The more standards-conforming stlport4 library is
15449     # incompatible with the Cstd library. Avoid specifying
15450     # it if it's in CXXFLAGS. Ignore libCrun as
15451     # -library=stlport4 depends on it.
15452     case " $CXX $CXXFLAGS " in
15453     *" -library=stlport4 "*)
15454       solaris_use_stlport4=yes
15455       ;;
15456     esac
15457
15458     if test "$solaris_use_stlport4" != yes; then
15459       postdeps_CXX='-library=Cstd -library=Crun'
15460     fi
15461     ;;
15462   esac
15463   ;;
15464
15465 solaris*)
15466   case $cc_basename in
15467   CC* | sunCC*)
15468     # The more standards-conforming stlport4 library is
15469     # incompatible with the Cstd library. Avoid specifying
15470     # it if it's in CXXFLAGS. Ignore libCrun as
15471     # -library=stlport4 depends on it.
15472     case " $CXX $CXXFLAGS " in
15473     *" -library=stlport4 "*)
15474       solaris_use_stlport4=yes
15475       ;;
15476     esac
15477
15478     # Adding this requires a known-good setup of shared libraries for
15479     # Sun compiler versions before 5.6, else PIC objects from an old
15480     # archive will be linked into the output, leading to subtle bugs.
15481     if test "$solaris_use_stlport4" != yes; then
15482       postdeps_CXX='-library=Cstd -library=Crun'
15483     fi
15484     ;;
15485   esac
15486   ;;
15487 esac
15488
15489
15490 case " $postdeps_CXX " in
15491 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15492 esac
15493  compiler_lib_search_dirs_CXX=
15494 if test -n "${compiler_lib_search_path_CXX}"; then
15495  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15496 fi
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528     lt_prog_compiler_wl_CXX=
15529 lt_prog_compiler_pic_CXX=
15530 lt_prog_compiler_static_CXX=
15531
15532
15533   # C++ specific cases for pic, static, wl, etc.
15534   if test "$GXX" = yes; then
15535     lt_prog_compiler_wl_CXX='-Wl,'
15536     lt_prog_compiler_static_CXX='-static'
15537
15538     case $host_os in
15539     aix*)
15540       # All AIX code is PIC.
15541       if test "$host_cpu" = ia64; then
15542         # AIX 5 now supports IA64 processor
15543         lt_prog_compiler_static_CXX='-Bstatic'
15544       fi
15545       ;;
15546
15547     amigaos*)
15548       case $host_cpu in
15549       powerpc)
15550             # see comment about AmigaOS4 .so support
15551             lt_prog_compiler_pic_CXX='-fPIC'
15552         ;;
15553       m68k)
15554             # FIXME: we need at least 68020 code to build shared libraries, but
15555             # adding the `-m68020' flag to GCC prevents building anything better,
15556             # like `-m68040'.
15557             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15558         ;;
15559       esac
15560       ;;
15561
15562     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15563       # PIC is the default for these OSes.
15564       ;;
15565     mingw* | cygwin* | os2* | pw32* | cegcc*)
15566       # This hack is so that the source file can tell whether it is being
15567       # built for inclusion in a dll (and should export symbols for example).
15568       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15569       # (--disable-auto-import) libraries
15570       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15571       ;;
15572     darwin* | rhapsody*)
15573       # PIC is the default on this platform
15574       # Common symbols not allowed in MH_DYLIB files
15575       lt_prog_compiler_pic_CXX='-fno-common'
15576       ;;
15577     *djgpp*)
15578       # DJGPP does not support shared libraries at all
15579       lt_prog_compiler_pic_CXX=
15580       ;;
15581     haiku*)
15582       # PIC is the default for Haiku.
15583       # The "-static" flag exists, but is broken.
15584       lt_prog_compiler_static_CXX=
15585       ;;
15586     interix[3-9]*)
15587       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15588       # Instead, we relocate shared libraries at runtime.
15589       ;;
15590     sysv4*MP*)
15591       if test -d /usr/nec; then
15592         lt_prog_compiler_pic_CXX=-Kconform_pic
15593       fi
15594       ;;
15595     hpux*)
15596       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15597       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15598       # sets the default TLS model and affects inlining.
15599       case $host_cpu in
15600       hppa*64*)
15601         ;;
15602       *)
15603         lt_prog_compiler_pic_CXX='-fPIC'
15604         ;;
15605       esac
15606       ;;
15607     *qnx* | *nto*)
15608       # QNX uses GNU C++, but need to define -shared option too, otherwise
15609       # it will coredump.
15610       lt_prog_compiler_pic_CXX='-fPIC -shared'
15611       ;;
15612     *)
15613       lt_prog_compiler_pic_CXX='-fPIC'
15614       ;;
15615     esac
15616   else
15617     case $host_os in
15618       aix[4-9]*)
15619         # All AIX code is PIC.
15620         if test "$host_cpu" = ia64; then
15621           # AIX 5 now supports IA64 processor
15622           lt_prog_compiler_static_CXX='-Bstatic'
15623         else
15624           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15625         fi
15626         ;;
15627       chorus*)
15628         case $cc_basename in
15629         cxch68*)
15630           # Green Hills C++ Compiler
15631           # _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"
15632           ;;
15633         esac
15634         ;;
15635       mingw* | cygwin* | os2* | pw32* | cegcc*)
15636         # This hack is so that the source file can tell whether it is being
15637         # built for inclusion in a dll (and should export symbols for example).
15638         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15639         ;;
15640       dgux*)
15641         case $cc_basename in
15642           ec++*)
15643             lt_prog_compiler_pic_CXX='-KPIC'
15644             ;;
15645           ghcx*)
15646             # Green Hills C++ Compiler
15647             lt_prog_compiler_pic_CXX='-pic'
15648             ;;
15649           *)
15650             ;;
15651         esac
15652         ;;
15653       freebsd* | dragonfly*)
15654         # FreeBSD uses GNU C++
15655         ;;
15656       hpux9* | hpux10* | hpux11*)
15657         case $cc_basename in
15658           CC*)
15659             lt_prog_compiler_wl_CXX='-Wl,'
15660             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15661             if test "$host_cpu" != ia64; then
15662               lt_prog_compiler_pic_CXX='+Z'
15663             fi
15664             ;;
15665           aCC*)
15666             lt_prog_compiler_wl_CXX='-Wl,'
15667             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15668             case $host_cpu in
15669             hppa*64*|ia64*)
15670               # +Z the default
15671               ;;
15672             *)
15673               lt_prog_compiler_pic_CXX='+Z'
15674               ;;
15675             esac
15676             ;;
15677           *)
15678             ;;
15679         esac
15680         ;;
15681       interix*)
15682         # This is c89, which is MS Visual C++ (no shared libs)
15683         # Anyone wants to do a port?
15684         ;;
15685       irix5* | irix6* | nonstopux*)
15686         case $cc_basename in
15687           CC*)
15688             lt_prog_compiler_wl_CXX='-Wl,'
15689             lt_prog_compiler_static_CXX='-non_shared'
15690             # CC pic flag -KPIC is the default.
15691             ;;
15692           *)
15693             ;;
15694         esac
15695         ;;
15696       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15697         case $cc_basename in
15698           KCC*)
15699             # KAI C++ Compiler
15700             lt_prog_compiler_wl_CXX='--backend -Wl,'
15701             lt_prog_compiler_pic_CXX='-fPIC'
15702             ;;
15703           ecpc* )
15704             # old Intel C++ for x86_64 which still supported -KPIC.
15705             lt_prog_compiler_wl_CXX='-Wl,'
15706             lt_prog_compiler_pic_CXX='-KPIC'
15707             lt_prog_compiler_static_CXX='-static'
15708             ;;
15709           icpc* )
15710             # Intel C++, used to be incompatible with GCC.
15711             # ICC 10 doesn't accept -KPIC any more.
15712             lt_prog_compiler_wl_CXX='-Wl,'
15713             lt_prog_compiler_pic_CXX='-fPIC'
15714             lt_prog_compiler_static_CXX='-static'
15715             ;;
15716           pgCC* | pgcpp*)
15717             # Portland Group C++ compiler
15718             lt_prog_compiler_wl_CXX='-Wl,'
15719             lt_prog_compiler_pic_CXX='-fpic'
15720             lt_prog_compiler_static_CXX='-Bstatic'
15721             ;;
15722           cxx*)
15723             # Compaq C++
15724             # Make sure the PIC flag is empty.  It appears that all Alpha
15725             # Linux and Compaq Tru64 Unix objects are PIC.
15726             lt_prog_compiler_pic_CXX=
15727             lt_prog_compiler_static_CXX='-non_shared'
15728             ;;
15729           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15730             # IBM XL 8.0, 9.0 on PPC and BlueGene
15731             lt_prog_compiler_wl_CXX='-Wl,'
15732             lt_prog_compiler_pic_CXX='-qpic'
15733             lt_prog_compiler_static_CXX='-qstaticlink'
15734             ;;
15735           *)
15736             case `$CC -V 2>&1 | sed 5q` in
15737             *Sun\ C*)
15738               # Sun C++ 5.9
15739               lt_prog_compiler_pic_CXX='-KPIC'
15740               lt_prog_compiler_static_CXX='-Bstatic'
15741               lt_prog_compiler_wl_CXX='-Qoption ld '
15742               ;;
15743             esac
15744             ;;
15745         esac
15746         ;;
15747       lynxos*)
15748         ;;
15749       m88k*)
15750         ;;
15751       mvs*)
15752         case $cc_basename in
15753           cxx*)
15754             lt_prog_compiler_pic_CXX='-W c,exportall'
15755             ;;
15756           *)
15757             ;;
15758         esac
15759         ;;
15760       netbsd*)
15761         ;;
15762       *qnx* | *nto*)
15763         # QNX uses GNU C++, but need to define -shared option too, otherwise
15764         # it will coredump.
15765         lt_prog_compiler_pic_CXX='-fPIC -shared'
15766         ;;
15767       osf3* | osf4* | osf5*)
15768         case $cc_basename in
15769           KCC*)
15770             lt_prog_compiler_wl_CXX='--backend -Wl,'
15771             ;;
15772           RCC*)
15773             # Rational C++ 2.4.1
15774             lt_prog_compiler_pic_CXX='-pic'
15775             ;;
15776           cxx*)
15777             # Digital/Compaq C++
15778             lt_prog_compiler_wl_CXX='-Wl,'
15779             # Make sure the PIC flag is empty.  It appears that all Alpha
15780             # Linux and Compaq Tru64 Unix objects are PIC.
15781             lt_prog_compiler_pic_CXX=
15782             lt_prog_compiler_static_CXX='-non_shared'
15783             ;;
15784           *)
15785             ;;
15786         esac
15787         ;;
15788       psos*)
15789         ;;
15790       solaris*)
15791         case $cc_basename in
15792           CC* | sunCC*)
15793             # Sun C++ 4.2, 5.x and Centerline C++
15794             lt_prog_compiler_pic_CXX='-KPIC'
15795             lt_prog_compiler_static_CXX='-Bstatic'
15796             lt_prog_compiler_wl_CXX='-Qoption ld '
15797             ;;
15798           gcx*)
15799             # Green Hills C++ Compiler
15800             lt_prog_compiler_pic_CXX='-PIC'
15801             ;;
15802           *)
15803             ;;
15804         esac
15805         ;;
15806       sunos4*)
15807         case $cc_basename in
15808           CC*)
15809             # Sun C++ 4.x
15810             lt_prog_compiler_pic_CXX='-pic'
15811             lt_prog_compiler_static_CXX='-Bstatic'
15812             ;;
15813           lcc*)
15814             # Lucid
15815             lt_prog_compiler_pic_CXX='-pic'
15816             ;;
15817           *)
15818             ;;
15819         esac
15820         ;;
15821       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15822         case $cc_basename in
15823           CC*)
15824             lt_prog_compiler_wl_CXX='-Wl,'
15825             lt_prog_compiler_pic_CXX='-KPIC'
15826             lt_prog_compiler_static_CXX='-Bstatic'
15827             ;;
15828         esac
15829         ;;
15830       tandem*)
15831         case $cc_basename in
15832           NCC*)
15833             # NonStop-UX NCC 3.20
15834             lt_prog_compiler_pic_CXX='-KPIC'
15835             ;;
15836           *)
15837             ;;
15838         esac
15839         ;;
15840       vxworks*)
15841         ;;
15842       *)
15843         lt_prog_compiler_can_build_shared_CXX=no
15844         ;;
15845     esac
15846   fi
15847
15848 case $host_os in
15849   # For platforms which do not support PIC, -DPIC is meaningless:
15850   *djgpp*)
15851     lt_prog_compiler_pic_CXX=
15852     ;;
15853   *)
15854     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15855     ;;
15856 esac
15857
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15859 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15860 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15861   $as_echo_n "(cached) " >&6
15862 else
15863   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15864 fi
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15866 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15867 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15868
15869 #
15870 # Check to make sure the PIC flag actually works.
15871 #
15872 if test -n "$lt_prog_compiler_pic_CXX"; then
15873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15874 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15875 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15876   $as_echo_n "(cached) " >&6
15877 else
15878   lt_cv_prog_compiler_pic_works_CXX=no
15879    ac_outfile=conftest.$ac_objext
15880    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15881    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15882    # Insert the option either (1) after the last *FLAGS variable, or
15883    # (2) before a word containing "conftest.", or (3) at the end.
15884    # Note that $ac_compile itself does not contain backslashes and begins
15885    # with a dollar sign (not a hyphen), so the echo should work correctly.
15886    # The option is referenced via a variable to avoid confusing sed.
15887    lt_compile=`echo "$ac_compile" | $SED \
15888    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15890    -e 's:$: $lt_compiler_flag:'`
15891    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15892    (eval "$lt_compile" 2>conftest.err)
15893    ac_status=$?
15894    cat conftest.err >&5
15895    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896    if (exit $ac_status) && test -s "$ac_outfile"; then
15897      # The compiler can only warn and ignore the option if not recognized
15898      # So say no if there are warnings other than the usual output.
15899      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15900      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15901      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15902        lt_cv_prog_compiler_pic_works_CXX=yes
15903      fi
15904    fi
15905    $RM conftest*
15906
15907 fi
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15909 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15910
15911 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15912     case $lt_prog_compiler_pic_CXX in
15913      "" | " "*) ;;
15914      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15915      esac
15916 else
15917     lt_prog_compiler_pic_CXX=
15918      lt_prog_compiler_can_build_shared_CXX=no
15919 fi
15920
15921 fi
15922
15923
15924
15925
15926
15927 #
15928 # Check to make sure the static flag actually works.
15929 #
15930 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15932 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15933 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15934   $as_echo_n "(cached) " >&6
15935 else
15936   lt_cv_prog_compiler_static_works_CXX=no
15937    save_LDFLAGS="$LDFLAGS"
15938    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15939    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15940    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15941      # The linker can only warn and ignore the option if not recognized
15942      # So say no if there are warnings
15943      if test -s conftest.err; then
15944        # Append any errors to the config.log.
15945        cat conftest.err 1>&5
15946        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15947        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15948        if diff conftest.exp conftest.er2 >/dev/null; then
15949          lt_cv_prog_compiler_static_works_CXX=yes
15950        fi
15951      else
15952        lt_cv_prog_compiler_static_works_CXX=yes
15953      fi
15954    fi
15955    $RM -r conftest*
15956    LDFLAGS="$save_LDFLAGS"
15957
15958 fi
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15960 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15961
15962 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15963     :
15964 else
15965     lt_prog_compiler_static_CXX=
15966 fi
15967
15968
15969
15970
15971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15972 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15973 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15974   $as_echo_n "(cached) " >&6
15975 else
15976   lt_cv_prog_compiler_c_o_CXX=no
15977    $RM -r conftest 2>/dev/null
15978    mkdir conftest
15979    cd conftest
15980    mkdir out
15981    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15982
15983    lt_compiler_flag="-o out/conftest2.$ac_objext"
15984    # Insert the option either (1) after the last *FLAGS variable, or
15985    # (2) before a word containing "conftest.", or (3) at the end.
15986    # Note that $ac_compile itself does not contain backslashes and begins
15987    # with a dollar sign (not a hyphen), so the echo should work correctly.
15988    lt_compile=`echo "$ac_compile" | $SED \
15989    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15990    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15991    -e 's:$: $lt_compiler_flag:'`
15992    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15993    (eval "$lt_compile" 2>out/conftest.err)
15994    ac_status=$?
15995    cat out/conftest.err >&5
15996    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15998    then
15999      # The compiler can only warn and ignore the option if not recognized
16000      # So say no if there are warnings
16001      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16002      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16003      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16004        lt_cv_prog_compiler_c_o_CXX=yes
16005      fi
16006    fi
16007    chmod u+w . 2>&5
16008    $RM conftest*
16009    # SGI C++ compiler will create directory out/ii_files/ for
16010    # template instantiation
16011    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16012    $RM out/* && rmdir out
16013    cd ..
16014    $RM -r conftest
16015    $RM conftest*
16016
16017 fi
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16019 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16020
16021
16022
16023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16024 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16025 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16026   $as_echo_n "(cached) " >&6
16027 else
16028   lt_cv_prog_compiler_c_o_CXX=no
16029    $RM -r conftest 2>/dev/null
16030    mkdir conftest
16031    cd conftest
16032    mkdir out
16033    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16034
16035    lt_compiler_flag="-o out/conftest2.$ac_objext"
16036    # Insert the option either (1) after the last *FLAGS variable, or
16037    # (2) before a word containing "conftest.", or (3) at the end.
16038    # Note that $ac_compile itself does not contain backslashes and begins
16039    # with a dollar sign (not a hyphen), so the echo should work correctly.
16040    lt_compile=`echo "$ac_compile" | $SED \
16041    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16042    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16043    -e 's:$: $lt_compiler_flag:'`
16044    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16045    (eval "$lt_compile" 2>out/conftest.err)
16046    ac_status=$?
16047    cat out/conftest.err >&5
16048    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16050    then
16051      # The compiler can only warn and ignore the option if not recognized
16052      # So say no if there are warnings
16053      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16054      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16055      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16056        lt_cv_prog_compiler_c_o_CXX=yes
16057      fi
16058    fi
16059    chmod u+w . 2>&5
16060    $RM conftest*
16061    # SGI C++ compiler will create directory out/ii_files/ for
16062    # template instantiation
16063    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16064    $RM out/* && rmdir out
16065    cd ..
16066    $RM -r conftest
16067    $RM conftest*
16068
16069 fi
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16071 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16072
16073
16074
16075
16076 hard_links="nottested"
16077 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16078   # do not overwrite the value of need_locks provided by the user
16079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16080 $as_echo_n "checking if we can lock with hard links... " >&6; }
16081   hard_links=yes
16082   $RM conftest*
16083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16084   touch conftest.a
16085   ln conftest.a conftest.b 2>&5 || hard_links=no
16086   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16088 $as_echo "$hard_links" >&6; }
16089   if test "$hard_links" = no; then
16090     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16091 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16092     need_locks=warn
16093   fi
16094 else
16095   need_locks=no
16096 fi
16097
16098
16099
16100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16101 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16102
16103   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16104   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16105   case $host_os in
16106   aix[4-9]*)
16107     # If we're using GNU nm, then we don't want the "-C" option.
16108     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16109     # Also, AIX nm treats weak defined symbols like other global defined
16110     # symbols, whereas GNU nm marks them as "W".
16111     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16112       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'
16113     else
16114       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'
16115     fi
16116     ;;
16117   pw32*)
16118     export_symbols_cmds_CXX="$ltdll_cmds"
16119     ;;
16120   cygwin* | mingw* | cegcc*)
16121     case $cc_basename in
16122     cl*)
16123       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16124       ;;
16125     *)
16126       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'
16127       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16128       ;;
16129     esac
16130     ;;
16131   *)
16132     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16133     ;;
16134   esac
16135
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16137 $as_echo "$ld_shlibs_CXX" >&6; }
16138 test "$ld_shlibs_CXX" = no && can_build_shared=no
16139
16140 with_gnu_ld_CXX=$with_gnu_ld
16141
16142
16143
16144
16145
16146
16147 #
16148 # Do we need to explicitly link libc?
16149 #
16150 case "x$archive_cmds_need_lc_CXX" in
16151 x|xyes)
16152   # Assume -lc should be added
16153   archive_cmds_need_lc_CXX=yes
16154
16155   if test "$enable_shared" = yes && test "$GCC" = yes; then
16156     case $archive_cmds_CXX in
16157     *'~'*)
16158       # FIXME: we may have to deal with multi-command sequences.
16159       ;;
16160     '$CC '*)
16161       # Test whether the compiler implicitly links with -lc since on some
16162       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16163       # to ld, don't add -lc before -lgcc.
16164       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16165 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16166 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16167   $as_echo_n "(cached) " >&6
16168 else
16169   $RM conftest*
16170         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16171
16172         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16173   (eval $ac_compile) 2>&5
16174   ac_status=$?
16175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16176   test $ac_status = 0; } 2>conftest.err; then
16177           soname=conftest
16178           lib=conftest
16179           libobjs=conftest.$ac_objext
16180           deplibs=
16181           wl=$lt_prog_compiler_wl_CXX
16182           pic_flag=$lt_prog_compiler_pic_CXX
16183           compiler_flags=-v
16184           linker_flags=-v
16185           verstring=
16186           output_objdir=.
16187           libname=conftest
16188           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16189           allow_undefined_flag_CXX=
16190           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16191   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16192   ac_status=$?
16193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16194   test $ac_status = 0; }
16195           then
16196             lt_cv_archive_cmds_need_lc_CXX=no
16197           else
16198             lt_cv_archive_cmds_need_lc_CXX=yes
16199           fi
16200           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16201         else
16202           cat conftest.err 1>&5
16203         fi
16204         $RM conftest*
16205
16206 fi
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16208 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16209       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16210       ;;
16211     esac
16212   fi
16213   ;;
16214 esac
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16278 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16279
16280 library_names_spec=
16281 libname_spec='lib$name'
16282 soname_spec=
16283 shrext_cmds=".so"
16284 postinstall_cmds=
16285 postuninstall_cmds=
16286 finish_cmds=
16287 finish_eval=
16288 shlibpath_var=
16289 shlibpath_overrides_runpath=unknown
16290 version_type=none
16291 dynamic_linker="$host_os ld.so"
16292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16293 need_lib_prefix=unknown
16294 hardcode_into_libs=no
16295
16296 # when you set need_version to no, make sure it does not cause -set_version
16297 # flags to be left without arguments
16298 need_version=unknown
16299
16300 case $host_os in
16301 aix3*)
16302   version_type=linux # correct to gnu/linux during the next big refactor
16303   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16304   shlibpath_var=LIBPATH
16305
16306   # AIX 3 has no versioning support, so we append a major version to the name.
16307   soname_spec='${libname}${release}${shared_ext}$major'
16308   ;;
16309
16310 aix[4-9]*)
16311   version_type=linux # correct to gnu/linux during the next big refactor
16312   need_lib_prefix=no
16313   need_version=no
16314   hardcode_into_libs=yes
16315   if test "$host_cpu" = ia64; then
16316     # AIX 5 supports IA64
16317     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16318     shlibpath_var=LD_LIBRARY_PATH
16319   else
16320     # With GCC up to 2.95.x, collect2 would create an import file
16321     # for dependence libraries.  The import file would start with
16322     # the line `#! .'.  This would cause the generated library to
16323     # depend on `.', always an invalid library.  This was fixed in
16324     # development snapshots of GCC prior to 3.0.
16325     case $host_os in
16326       aix4 | aix4.[01] | aix4.[01].*)
16327       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16328            echo ' yes '
16329            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16330         :
16331       else
16332         can_build_shared=no
16333       fi
16334       ;;
16335     esac
16336     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16337     # soname into executable. Probably we can add versioning support to
16338     # collect2, so additional links can be useful in future.
16339     if test "$aix_use_runtimelinking" = yes; then
16340       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16341       # instead of lib<name>.a to let people know that these are not
16342       # typical AIX shared libraries.
16343       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16344     else
16345       # We preserve .a as extension for shared libraries through AIX4.2
16346       # and later when we are not doing run time linking.
16347       library_names_spec='${libname}${release}.a $libname.a'
16348       soname_spec='${libname}${release}${shared_ext}$major'
16349     fi
16350     shlibpath_var=LIBPATH
16351   fi
16352   ;;
16353
16354 amigaos*)
16355   case $host_cpu in
16356   powerpc)
16357     # Since July 2007 AmigaOS4 officially supports .so libraries.
16358     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16360     ;;
16361   m68k)
16362     library_names_spec='$libname.ixlibrary $libname.a'
16363     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16364     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'
16365     ;;
16366   esac
16367   ;;
16368
16369 beos*)
16370   library_names_spec='${libname}${shared_ext}'
16371   dynamic_linker="$host_os ld.so"
16372   shlibpath_var=LIBRARY_PATH
16373   ;;
16374
16375 bsdi[45]*)
16376   version_type=linux # correct to gnu/linux during the next big refactor
16377   need_version=no
16378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379   soname_spec='${libname}${release}${shared_ext}$major'
16380   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16381   shlibpath_var=LD_LIBRARY_PATH
16382   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16383   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16384   # the default ld.so.conf also contains /usr/contrib/lib and
16385   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16386   # libtool to hard-code these into programs
16387   ;;
16388
16389 cygwin* | mingw* | pw32* | cegcc*)
16390   version_type=windows
16391   shrext_cmds=".dll"
16392   need_version=no
16393   need_lib_prefix=no
16394
16395   case $GCC,$cc_basename in
16396   yes,*)
16397     # gcc
16398     library_names_spec='$libname.dll.a'
16399     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16400     postinstall_cmds='base_file=`basename \${file}`~
16401       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16402       dldir=$destdir/`dirname \$dlpath`~
16403       test -d \$dldir || mkdir -p \$dldir~
16404       $install_prog $dir/$dlname \$dldir/$dlname~
16405       chmod a+x \$dldir/$dlname~
16406       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16407         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16408       fi'
16409     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16410       dlpath=$dir/\$dldll~
16411        $RM \$dlpath'
16412     shlibpath_overrides_runpath=yes
16413
16414     case $host_os in
16415     cygwin*)
16416       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16417       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16418
16419       ;;
16420     mingw* | cegcc*)
16421       # MinGW DLLs use traditional 'lib' prefix
16422       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16423       ;;
16424     pw32*)
16425       # pw32 DLLs use 'pw' prefix rather than 'lib'
16426       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16427       ;;
16428     esac
16429     dynamic_linker='Win32 ld.exe'
16430     ;;
16431
16432   *,cl*)
16433     # Native MSVC
16434     libname_spec='$name'
16435     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16436     library_names_spec='${libname}.dll.lib'
16437
16438     case $build_os in
16439     mingw*)
16440       sys_lib_search_path_spec=
16441       lt_save_ifs=$IFS
16442       IFS=';'
16443       for lt_path in $LIB
16444       do
16445         IFS=$lt_save_ifs
16446         # Let DOS variable expansion print the short 8.3 style file name.
16447         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16448         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16449       done
16450       IFS=$lt_save_ifs
16451       # Convert to MSYS style.
16452       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16453       ;;
16454     cygwin*)
16455       # Convert to unix form, then to dos form, then back to unix form
16456       # but this time dos style (no spaces!) so that the unix form looks
16457       # like /cygdrive/c/PROGRA~1:/cygdr...
16458       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16459       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16460       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16461       ;;
16462     *)
16463       sys_lib_search_path_spec="$LIB"
16464       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16465         # It is most probably a Windows format PATH.
16466         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16467       else
16468         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16469       fi
16470       # FIXME: find the short name or the path components, as spaces are
16471       # common. (e.g. "Program Files" -> "PROGRA~1")
16472       ;;
16473     esac
16474
16475     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16476     postinstall_cmds='base_file=`basename \${file}`~
16477       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16478       dldir=$destdir/`dirname \$dlpath`~
16479       test -d \$dldir || mkdir -p \$dldir~
16480       $install_prog $dir/$dlname \$dldir/$dlname'
16481     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16482       dlpath=$dir/\$dldll~
16483        $RM \$dlpath'
16484     shlibpath_overrides_runpath=yes
16485     dynamic_linker='Win32 link.exe'
16486     ;;
16487
16488   *)
16489     # Assume MSVC wrapper
16490     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16491     dynamic_linker='Win32 ld.exe'
16492     ;;
16493   esac
16494   # FIXME: first we should search . and the directory the executable is in
16495   shlibpath_var=PATH
16496   ;;
16497
16498 darwin* | rhapsody*)
16499   dynamic_linker="$host_os dyld"
16500   version_type=darwin
16501   need_lib_prefix=no
16502   need_version=no
16503   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16504   soname_spec='${libname}${release}${major}$shared_ext'
16505   shlibpath_overrides_runpath=yes
16506   shlibpath_var=DYLD_LIBRARY_PATH
16507   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16508
16509   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16510   ;;
16511
16512 dgux*)
16513   version_type=linux # correct to gnu/linux during the next big refactor
16514   need_lib_prefix=no
16515   need_version=no
16516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16517   soname_spec='${libname}${release}${shared_ext}$major'
16518   shlibpath_var=LD_LIBRARY_PATH
16519   ;;
16520
16521 freebsd* | dragonfly*)
16522   # DragonFly does not have aout.  When/if they implement a new
16523   # versioning mechanism, adjust this.
16524   if test -x /usr/bin/objformat; then
16525     objformat=`/usr/bin/objformat`
16526   else
16527     case $host_os in
16528     freebsd[23].*) objformat=aout ;;
16529     *) objformat=elf ;;
16530     esac
16531   fi
16532   version_type=freebsd-$objformat
16533   case $version_type in
16534     freebsd-elf*)
16535       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16536       need_version=no
16537       need_lib_prefix=no
16538       ;;
16539     freebsd-*)
16540       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16541       need_version=yes
16542       ;;
16543   esac
16544   shlibpath_var=LD_LIBRARY_PATH
16545   case $host_os in
16546   freebsd2.*)
16547     shlibpath_overrides_runpath=yes
16548     ;;
16549   freebsd3.[01]* | freebsdelf3.[01]*)
16550     shlibpath_overrides_runpath=yes
16551     hardcode_into_libs=yes
16552     ;;
16553   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16554   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16555     shlibpath_overrides_runpath=no
16556     hardcode_into_libs=yes
16557     ;;
16558   *) # from 4.6 on, and DragonFly
16559     shlibpath_overrides_runpath=yes
16560     hardcode_into_libs=yes
16561     ;;
16562   esac
16563   ;;
16564
16565 gnu*)
16566   version_type=linux # correct to gnu/linux during the next big refactor
16567   need_lib_prefix=no
16568   need_version=no
16569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16570   soname_spec='${libname}${release}${shared_ext}$major'
16571   shlibpath_var=LD_LIBRARY_PATH
16572   shlibpath_overrides_runpath=no
16573   hardcode_into_libs=yes
16574   ;;
16575
16576 haiku*)
16577   version_type=linux # correct to gnu/linux during the next big refactor
16578   need_lib_prefix=no
16579   need_version=no
16580   dynamic_linker="$host_os runtime_loader"
16581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16582   soname_spec='${libname}${release}${shared_ext}$major'
16583   shlibpath_var=LIBRARY_PATH
16584   shlibpath_overrides_runpath=yes
16585   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16586   hardcode_into_libs=yes
16587   ;;
16588
16589 hpux9* | hpux10* | hpux11*)
16590   # Give a soname corresponding to the major version so that dld.sl refuses to
16591   # link against other versions.
16592   version_type=sunos
16593   need_lib_prefix=no
16594   need_version=no
16595   case $host_cpu in
16596   ia64*)
16597     shrext_cmds='.so'
16598     hardcode_into_libs=yes
16599     dynamic_linker="$host_os dld.so"
16600     shlibpath_var=LD_LIBRARY_PATH
16601     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603     soname_spec='${libname}${release}${shared_ext}$major'
16604     if test "X$HPUX_IA64_MODE" = X32; then
16605       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16606     else
16607       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16608     fi
16609     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16610     ;;
16611   hppa*64*)
16612     shrext_cmds='.sl'
16613     hardcode_into_libs=yes
16614     dynamic_linker="$host_os dld.sl"
16615     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16616     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16618     soname_spec='${libname}${release}${shared_ext}$major'
16619     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16620     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16621     ;;
16622   *)
16623     shrext_cmds='.sl'
16624     dynamic_linker="$host_os dld.sl"
16625     shlibpath_var=SHLIB_PATH
16626     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16628     soname_spec='${libname}${release}${shared_ext}$major'
16629     ;;
16630   esac
16631   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16632   postinstall_cmds='chmod 555 $lib'
16633   # or fails outright, so override atomically:
16634   install_override_mode=555
16635   ;;
16636
16637 interix[3-9]*)
16638   version_type=linux # correct to gnu/linux during the next big refactor
16639   need_lib_prefix=no
16640   need_version=no
16641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16642   soname_spec='${libname}${release}${shared_ext}$major'
16643   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16644   shlibpath_var=LD_LIBRARY_PATH
16645   shlibpath_overrides_runpath=no
16646   hardcode_into_libs=yes
16647   ;;
16648
16649 irix5* | irix6* | nonstopux*)
16650   case $host_os in
16651     nonstopux*) version_type=nonstopux ;;
16652     *)
16653         if test "$lt_cv_prog_gnu_ld" = yes; then
16654                 version_type=linux # correct to gnu/linux during the next big refactor
16655         else
16656                 version_type=irix
16657         fi ;;
16658   esac
16659   need_lib_prefix=no
16660   need_version=no
16661   soname_spec='${libname}${release}${shared_ext}$major'
16662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16663   case $host_os in
16664   irix5* | nonstopux*)
16665     libsuff= shlibsuff=
16666     ;;
16667   *)
16668     case $LD in # libtool.m4 will add one of these switches to LD
16669     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16670       libsuff= shlibsuff= libmagic=32-bit;;
16671     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16672       libsuff=32 shlibsuff=N32 libmagic=N32;;
16673     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16674       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16675     *) libsuff= shlibsuff= libmagic=never-match;;
16676     esac
16677     ;;
16678   esac
16679   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16680   shlibpath_overrides_runpath=no
16681   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16682   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16683   hardcode_into_libs=yes
16684   ;;
16685
16686 # No shared lib support for Linux oldld, aout, or coff.
16687 linux*oldld* | linux*aout* | linux*coff*)
16688   dynamic_linker=no
16689   ;;
16690
16691 # This must be glibc/ELF.
16692 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16693   version_type=linux # correct to gnu/linux during the next big refactor
16694   need_lib_prefix=no
16695   need_version=no
16696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697   soname_spec='${libname}${release}${shared_ext}$major'
16698   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16699   shlibpath_var=LD_LIBRARY_PATH
16700   shlibpath_overrides_runpath=no
16701
16702   # Some binutils ld are patched to set DT_RUNPATH
16703   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16704   $as_echo_n "(cached) " >&6
16705 else
16706   lt_cv_shlibpath_overrides_runpath=no
16707     save_LDFLAGS=$LDFLAGS
16708     save_libdir=$libdir
16709     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16710          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16711     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712 /* end confdefs.h.  */
16713
16714 int
16715 main ()
16716 {
16717
16718   ;
16719   return 0;
16720 }
16721 _ACEOF
16722 if ac_fn_cxx_try_link "$LINENO"; then :
16723   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16724   lt_cv_shlibpath_overrides_runpath=yes
16725 fi
16726 fi
16727 rm -f core conftest.err conftest.$ac_objext \
16728     conftest$ac_exeext conftest.$ac_ext
16729     LDFLAGS=$save_LDFLAGS
16730     libdir=$save_libdir
16731
16732 fi
16733
16734   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16735
16736   # This implies no fast_install, which is unacceptable.
16737   # Some rework will be needed to allow for fast_install
16738   # before this can be enabled.
16739   hardcode_into_libs=yes
16740
16741   # Add ABI-specific directories to the system library path.
16742   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16743
16744   # Append ld.so.conf contents to the search path
16745   if test -f /etc/ld.so.conf; then
16746     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' ' '`
16747     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16748
16749   fi
16750
16751   # We used to test for /lib/ld.so.1 and disable shared libraries on
16752   # powerpc, because MkLinux only supported shared libraries with the
16753   # GNU dynamic linker.  Since this was broken with cross compilers,
16754   # most powerpc-linux boxes support dynamic linking these days and
16755   # people can always --disable-shared, the test was removed, and we
16756   # assume the GNU/Linux dynamic linker is in use.
16757   dynamic_linker='GNU/Linux ld.so'
16758   ;;
16759
16760 netbsd*)
16761   version_type=sunos
16762   need_lib_prefix=no
16763   need_version=no
16764   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16765     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16766     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16767     dynamic_linker='NetBSD (a.out) ld.so'
16768   else
16769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16770     soname_spec='${libname}${release}${shared_ext}$major'
16771     dynamic_linker='NetBSD ld.elf_so'
16772   fi
16773   shlibpath_var=LD_LIBRARY_PATH
16774   shlibpath_overrides_runpath=yes
16775   hardcode_into_libs=yes
16776   ;;
16777
16778 newsos6)
16779   version_type=linux # correct to gnu/linux during the next big refactor
16780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781   shlibpath_var=LD_LIBRARY_PATH
16782   shlibpath_overrides_runpath=yes
16783   ;;
16784
16785 *nto* | *qnx*)
16786   version_type=qnx
16787   need_lib_prefix=no
16788   need_version=no
16789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790   soname_spec='${libname}${release}${shared_ext}$major'
16791   shlibpath_var=LD_LIBRARY_PATH
16792   shlibpath_overrides_runpath=no
16793   hardcode_into_libs=yes
16794   dynamic_linker='ldqnx.so'
16795   ;;
16796
16797 openbsd*)
16798   version_type=sunos
16799   sys_lib_dlsearch_path_spec="/usr/lib"
16800   need_lib_prefix=no
16801   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16802   case $host_os in
16803     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16804     *)                          need_version=no  ;;
16805   esac
16806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16807   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16808   shlibpath_var=LD_LIBRARY_PATH
16809   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16810     case $host_os in
16811       openbsd2.[89] | openbsd2.[89].*)
16812         shlibpath_overrides_runpath=no
16813         ;;
16814       *)
16815         shlibpath_overrides_runpath=yes
16816         ;;
16817       esac
16818   else
16819     shlibpath_overrides_runpath=yes
16820   fi
16821   ;;
16822
16823 os2*)
16824   libname_spec='$name'
16825   shrext_cmds=".dll"
16826   need_lib_prefix=no
16827   library_names_spec='$libname${shared_ext} $libname.a'
16828   dynamic_linker='OS/2 ld.exe'
16829   shlibpath_var=LIBPATH
16830   ;;
16831
16832 osf3* | osf4* | osf5*)
16833   version_type=osf
16834   need_lib_prefix=no
16835   need_version=no
16836   soname_spec='${libname}${release}${shared_ext}$major'
16837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838   shlibpath_var=LD_LIBRARY_PATH
16839   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16840   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16841   ;;
16842
16843 rdos*)
16844   dynamic_linker=no
16845   ;;
16846
16847 solaris*)
16848   version_type=linux # correct to gnu/linux during the next big refactor
16849   need_lib_prefix=no
16850   need_version=no
16851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852   soname_spec='${libname}${release}${shared_ext}$major'
16853   shlibpath_var=LD_LIBRARY_PATH
16854   shlibpath_overrides_runpath=yes
16855   hardcode_into_libs=yes
16856   # ldd complains unless libraries are executable
16857   postinstall_cmds='chmod +x $lib'
16858   ;;
16859
16860 sunos4*)
16861   version_type=sunos
16862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16863   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16864   shlibpath_var=LD_LIBRARY_PATH
16865   shlibpath_overrides_runpath=yes
16866   if test "$with_gnu_ld" = yes; then
16867     need_lib_prefix=no
16868   fi
16869   need_version=yes
16870   ;;
16871
16872 sysv4 | sysv4.3*)
16873   version_type=linux # correct to gnu/linux during the next big refactor
16874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16875   soname_spec='${libname}${release}${shared_ext}$major'
16876   shlibpath_var=LD_LIBRARY_PATH
16877   case $host_vendor in
16878     sni)
16879       shlibpath_overrides_runpath=no
16880       need_lib_prefix=no
16881       runpath_var=LD_RUN_PATH
16882       ;;
16883     siemens)
16884       need_lib_prefix=no
16885       ;;
16886     motorola)
16887       need_lib_prefix=no
16888       need_version=no
16889       shlibpath_overrides_runpath=no
16890       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16891       ;;
16892   esac
16893   ;;
16894
16895 sysv4*MP*)
16896   if test -d /usr/nec ;then
16897     version_type=linux # correct to gnu/linux during the next big refactor
16898     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16899     soname_spec='$libname${shared_ext}.$major'
16900     shlibpath_var=LD_LIBRARY_PATH
16901   fi
16902   ;;
16903
16904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16905   version_type=freebsd-elf
16906   need_lib_prefix=no
16907   need_version=no
16908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16909   soname_spec='${libname}${release}${shared_ext}$major'
16910   shlibpath_var=LD_LIBRARY_PATH
16911   shlibpath_overrides_runpath=yes
16912   hardcode_into_libs=yes
16913   if test "$with_gnu_ld" = yes; then
16914     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16915   else
16916     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16917     case $host_os in
16918       sco3.2v5*)
16919         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16920         ;;
16921     esac
16922   fi
16923   sys_lib_dlsearch_path_spec='/usr/lib'
16924   ;;
16925
16926 tpf*)
16927   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16928   version_type=linux # correct to gnu/linux during the next big refactor
16929   need_lib_prefix=no
16930   need_version=no
16931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932   shlibpath_var=LD_LIBRARY_PATH
16933   shlibpath_overrides_runpath=no
16934   hardcode_into_libs=yes
16935   ;;
16936
16937 uts4*)
16938   version_type=linux # correct to gnu/linux during the next big refactor
16939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940   soname_spec='${libname}${release}${shared_ext}$major'
16941   shlibpath_var=LD_LIBRARY_PATH
16942   ;;
16943
16944 *)
16945   dynamic_linker=no
16946   ;;
16947 esac
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16949 $as_echo "$dynamic_linker" >&6; }
16950 test "$dynamic_linker" = no && can_build_shared=no
16951
16952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16953 if test "$GCC" = yes; then
16954   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16955 fi
16956
16957 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16958   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16959 fi
16960 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16961   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16962 fi
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17002 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17003 hardcode_action_CXX=
17004 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17005    test -n "$runpath_var_CXX" ||
17006    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17007
17008   # We can hardcode non-existent directories.
17009   if test "$hardcode_direct_CXX" != no &&
17010      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17011      # have to relink, otherwise we might link with an installed library
17012      # when we should be linking with a yet-to-be-installed one
17013      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17014      test "$hardcode_minus_L_CXX" != no; then
17015     # Linking always hardcodes the temporary library directory.
17016     hardcode_action_CXX=relink
17017   else
17018     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17019     hardcode_action_CXX=immediate
17020   fi
17021 else
17022   # We cannot hardcode anything, or else we can only hardcode existing
17023   # directories.
17024   hardcode_action_CXX=unsupported
17025 fi
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17027 $as_echo "$hardcode_action_CXX" >&6; }
17028
17029 if test "$hardcode_action_CXX" = relink ||
17030    test "$inherit_rpath_CXX" = yes; then
17031   # Fast installation is not supported
17032   enable_fast_install=no
17033 elif test "$shlibpath_overrides_runpath" = yes ||
17034      test "$enable_shared" = no; then
17035   # Fast installation is not necessary
17036   enable_fast_install=needless
17037 fi
17038
17039
17040
17041
17042
17043
17044
17045   fi # test -n "$compiler"
17046
17047   CC=$lt_save_CC
17048   CFLAGS=$lt_save_CFLAGS
17049   LDCXX=$LD
17050   LD=$lt_save_LD
17051   GCC=$lt_save_GCC
17052   with_gnu_ld=$lt_save_with_gnu_ld
17053   lt_cv_path_LDCXX=$lt_cv_path_LD
17054   lt_cv_path_LD=$lt_save_path_LD
17055   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17056   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17057 fi # test "$_lt_caught_CXX_error" != yes
17058
17059 ac_ext=c
17060 ac_cpp='$CPP $CPPFLAGS'
17061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079         ac_config_commands="$ac_config_commands libtool"
17080
17081
17082
17083
17084 # Only expand once:
17085
17086
17087 if test "x$CC" != xcc; then
17088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
17089 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
17090 else
17091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
17092 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
17093 fi
17094 set dummy $CC; ac_cc=`$as_echo "$2" |
17095                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17096 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
17097   $as_echo_n "(cached) " >&6
17098 else
17099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h.  */
17101
17102 int
17103 main ()
17104 {
17105
17106   ;
17107   return 0;
17108 }
17109 _ACEOF
17110 # Make sure it works both with $CC and with simple cc.
17111 # We do the test twice because some compilers refuse to overwrite an
17112 # existing .o file with -o, though they will create one.
17113 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17114 rm -f conftest2.*
17115 if { { case "(($ac_try" in
17116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117   *) ac_try_echo=$ac_try;;
17118 esac
17119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17120 $as_echo "$ac_try_echo"; } >&5
17121   (eval "$ac_try") 2>&5
17122   ac_status=$?
17123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17124   test $ac_status = 0; } &&
17125    test -f conftest2.$ac_objext && { { case "(($ac_try" in
17126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127   *) ac_try_echo=$ac_try;;
17128 esac
17129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17130 $as_echo "$ac_try_echo"; } >&5
17131   (eval "$ac_try") 2>&5
17132   ac_status=$?
17133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17134   test $ac_status = 0; };
17135 then
17136   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17137   if test "x$CC" != xcc; then
17138     # Test first that cc exists at all.
17139     if { ac_try='cc -c conftest.$ac_ext >&5'
17140   { { case "(($ac_try" in
17141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17142   *) ac_try_echo=$ac_try;;
17143 esac
17144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17145 $as_echo "$ac_try_echo"; } >&5
17146   (eval "$ac_try") 2>&5
17147   ac_status=$?
17148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17149   test $ac_status = 0; }; }; then
17150       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17151       rm -f conftest2.*
17152       if { { case "(($ac_try" in
17153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154   *) ac_try_echo=$ac_try;;
17155 esac
17156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17157 $as_echo "$ac_try_echo"; } >&5
17158   (eval "$ac_try") 2>&5
17159   ac_status=$?
17160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17161   test $ac_status = 0; } &&
17162          test -f conftest2.$ac_objext && { { case "(($ac_try" in
17163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164   *) ac_try_echo=$ac_try;;
17165 esac
17166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17167 $as_echo "$ac_try_echo"; } >&5
17168   (eval "$ac_try") 2>&5
17169   ac_status=$?
17170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17171   test $ac_status = 0; };
17172       then
17173         # cc works too.
17174         :
17175       else
17176         # cc exists but doesn't like -o.
17177         eval ac_cv_prog_cc_${ac_cc}_c_o=no
17178       fi
17179     fi
17180   fi
17181 else
17182   eval ac_cv_prog_cc_${ac_cc}_c_o=no
17183 fi
17184 rm -f core conftest*
17185
17186 fi
17187 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17189 $as_echo "yes" >&6; }
17190 else
17191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17192 $as_echo "no" >&6; }
17193
17194 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
17195
17196 fi
17197
17198 # FIXME: we rely on the cache variable name because
17199 # there is no other way.
17200 set dummy $CC
17201 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17202 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
17203 if test "$am_t" != yes; then
17204    # Losing compiler, so override with the script.
17205    # FIXME: It is wrong to rewrite CC.
17206    # But if we don't then we get into trouble of one sort or another.
17207    # A longer-term fix would be to have automake use am__CC in this case,
17208    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17209    CC="$am_aux_dir/compile $CC"
17210 fi
17211
17212
17213
17214 if test "x$cross_compiling" = "xno"; then
17215         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
17216 else
17217         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
17218 fi
17219
17220
17221
17222 if test -n "$ac_tool_prefix"; then
17223   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17224 set dummy ${ac_tool_prefix}ar; ac_word=$2
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17226 $as_echo_n "checking for $ac_word... " >&6; }
17227 if ${ac_cv_prog_AR+:} false; then :
17228   $as_echo_n "(cached) " >&6
17229 else
17230   if test -n "$AR"; then
17231   ac_cv_prog_AR="$AR" # Let the user override the test.
17232 else
17233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17234 for as_dir in $PATH
17235 do
17236   IFS=$as_save_IFS
17237   test -z "$as_dir" && as_dir=.
17238     for ac_exec_ext in '' $ac_executable_extensions; do
17239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17240     ac_cv_prog_AR="${ac_tool_prefix}ar"
17241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17242     break 2
17243   fi
17244 done
17245   done
17246 IFS=$as_save_IFS
17247
17248 fi
17249 fi
17250 AR=$ac_cv_prog_AR
17251 if test -n "$AR"; then
17252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
17253 $as_echo "$AR" >&6; }
17254 else
17255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17256 $as_echo "no" >&6; }
17257 fi
17258
17259
17260 fi
17261 if test -z "$ac_cv_prog_AR"; then
17262   ac_ct_AR=$AR
17263   # Extract the first word of "ar", so it can be a program name with args.
17264 set dummy ar; ac_word=$2
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17266 $as_echo_n "checking for $ac_word... " >&6; }
17267 if ${ac_cv_prog_ac_ct_AR+:} false; then :
17268   $as_echo_n "(cached) " >&6
17269 else
17270   if test -n "$ac_ct_AR"; then
17271   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17272 else
17273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17274 for as_dir in $PATH
17275 do
17276   IFS=$as_save_IFS
17277   test -z "$as_dir" && as_dir=.
17278     for ac_exec_ext in '' $ac_executable_extensions; do
17279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17280     ac_cv_prog_ac_ct_AR="ar"
17281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17282     break 2
17283   fi
17284 done
17285   done
17286 IFS=$as_save_IFS
17287
17288 fi
17289 fi
17290 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17291 if test -n "$ac_ct_AR"; then
17292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
17293 $as_echo "$ac_ct_AR" >&6; }
17294 else
17295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17296 $as_echo "no" >&6; }
17297 fi
17298
17299   if test "x$ac_ct_AR" = x; then
17300     AR=""
17301   else
17302     case $cross_compiling:$ac_tool_warned in
17303 yes:)
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17306 ac_tool_warned=yes ;;
17307 esac
17308     AR=$ac_ct_AR
17309   fi
17310 else
17311   AR="$ac_cv_prog_AR"
17312 fi
17313
17314 if test -n "$ac_tool_prefix"; then
17315   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
17316 set dummy ${ac_tool_prefix}ld; ac_word=$2
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17318 $as_echo_n "checking for $ac_word... " >&6; }
17319 if ${ac_cv_prog_LD+:} false; then :
17320   $as_echo_n "(cached) " >&6
17321 else
17322   if test -n "$LD"; then
17323   ac_cv_prog_LD="$LD" # Let the user override the test.
17324 else
17325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17326 for as_dir in $PATH
17327 do
17328   IFS=$as_save_IFS
17329   test -z "$as_dir" && as_dir=.
17330     for ac_exec_ext in '' $ac_executable_extensions; do
17331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17332     ac_cv_prog_LD="${ac_tool_prefix}ld"
17333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17334     break 2
17335   fi
17336 done
17337   done
17338 IFS=$as_save_IFS
17339
17340 fi
17341 fi
17342 LD=$ac_cv_prog_LD
17343 if test -n "$LD"; then
17344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17345 $as_echo "$LD" >&6; }
17346 else
17347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17348 $as_echo "no" >&6; }
17349 fi
17350
17351
17352 fi
17353 if test -z "$ac_cv_prog_LD"; then
17354   ac_ct_LD=$LD
17355   # Extract the first word of "ld", so it can be a program name with args.
17356 set dummy ld; ac_word=$2
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17358 $as_echo_n "checking for $ac_word... " >&6; }
17359 if ${ac_cv_prog_ac_ct_LD+:} false; then :
17360   $as_echo_n "(cached) " >&6
17361 else
17362   if test -n "$ac_ct_LD"; then
17363   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
17364 else
17365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17366 for as_dir in $PATH
17367 do
17368   IFS=$as_save_IFS
17369   test -z "$as_dir" && as_dir=.
17370     for ac_exec_ext in '' $ac_executable_extensions; do
17371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17372     ac_cv_prog_ac_ct_LD="ld"
17373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17374     break 2
17375   fi
17376 done
17377   done
17378 IFS=$as_save_IFS
17379
17380 fi
17381 fi
17382 ac_ct_LD=$ac_cv_prog_ac_ct_LD
17383 if test -n "$ac_ct_LD"; then
17384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
17385 $as_echo "$ac_ct_LD" >&6; }
17386 else
17387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17388 $as_echo "no" >&6; }
17389 fi
17390
17391   if test "x$ac_ct_LD" = x; then
17392     LD=""
17393   else
17394     case $cross_compiling:$ac_tool_warned in
17395 yes:)
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17398 ac_tool_warned=yes ;;
17399 esac
17400     LD=$ac_ct_LD
17401   fi
17402 else
17403   LD="$ac_cv_prog_LD"
17404 fi
17405
17406
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17408 $as_echo_n "checking for ANSI C header files... " >&6; }
17409 if ${ac_cv_header_stdc+:} false; then :
17410   $as_echo_n "(cached) " >&6
17411 else
17412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h.  */
17414 #include <stdlib.h>
17415 #include <stdarg.h>
17416 #include <string.h>
17417 #include <float.h>
17418
17419 int
17420 main ()
17421 {
17422
17423   ;
17424   return 0;
17425 }
17426 _ACEOF
17427 if ac_fn_c_try_compile "$LINENO"; then :
17428   ac_cv_header_stdc=yes
17429 else
17430   ac_cv_header_stdc=no
17431 fi
17432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17433
17434 if test $ac_cv_header_stdc = yes; then
17435   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h.  */
17438 #include <string.h>
17439
17440 _ACEOF
17441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17442   $EGREP "memchr" >/dev/null 2>&1; then :
17443
17444 else
17445   ac_cv_header_stdc=no
17446 fi
17447 rm -f conftest*
17448
17449 fi
17450
17451 if test $ac_cv_header_stdc = yes; then
17452   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454 /* end confdefs.h.  */
17455 #include <stdlib.h>
17456
17457 _ACEOF
17458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17459   $EGREP "free" >/dev/null 2>&1; then :
17460
17461 else
17462   ac_cv_header_stdc=no
17463 fi
17464 rm -f conftest*
17465
17466 fi
17467
17468 if test $ac_cv_header_stdc = yes; then
17469   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17470   if test "$cross_compiling" = yes; then :
17471   :
17472 else
17473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474 /* end confdefs.h.  */
17475 #include <ctype.h>
17476 #include <stdlib.h>
17477 #if ((' ' & 0x0FF) == 0x020)
17478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17480 #else
17481 # define ISLOWER(c) \
17482                    (('a' <= (c) && (c) <= 'i') \
17483                      || ('j' <= (c) && (c) <= 'r') \
17484                      || ('s' <= (c) && (c) <= 'z'))
17485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17486 #endif
17487
17488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17489 int
17490 main ()
17491 {
17492   int i;
17493   for (i = 0; i < 256; i++)
17494     if (XOR (islower (i), ISLOWER (i))
17495         || toupper (i) != TOUPPER (i))
17496       return 2;
17497   return 0;
17498 }
17499 _ACEOF
17500 if ac_fn_c_try_run "$LINENO"; then :
17501
17502 else
17503   ac_cv_header_stdc=no
17504 fi
17505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17506   conftest.$ac_objext conftest.beam conftest.$ac_ext
17507 fi
17508
17509 fi
17510 fi
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17512 $as_echo "$ac_cv_header_stdc" >&6; }
17513 if test $ac_cv_header_stdc = yes; then
17514
17515 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17516
17517 fi
17518
17519
17520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc2" >&5
17521 $as_echo_n "checking for GNU libc2... " >&6; }
17522   if ${knfsd_cv_glibc2+:} false; then :
17523   $as_echo_n "(cached) " >&6
17524 else
17525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17526 /* end confdefs.h.  */
17527
17528       #include <features.h>
17529       #if !defined(__GLIBC__)
17530       # error Nope
17531       #endif
17532
17533 _ACEOF
17534 if ac_fn_c_try_cpp "$LINENO"; then :
17535   knfsd_cv_glibc2=yes
17536 else
17537   knfsd_cv_glibc2=no
17538 fi
17539 rm -f conftest.err conftest.i conftest.$ac_ext
17540 fi
17541
17542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_glibc2" >&5
17543 $as_echo "$knfsd_cv_glibc2" >&6; }
17544   if test $knfsd_cv_glibc2 = yes; then
17545     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17546     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
17547   fi
17548
17549
17550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD signal semantics" >&5
17551 $as_echo_n "checking for BSD signal semantics... " >&6; }
17552   if ${knfsd_cv_bsd_signals+:} false; then :
17553   $as_echo_n "(cached) " >&6
17554 else
17555   if test "$cross_compiling" = yes; then :
17556
17557       case "$host_os" in
17558         *linux*) knfsd_cv_bsd_signals=no;;
17559         *bsd*)   knfsd_cv_bsd_signals=yes;;
17560         *)       as_fn_error $? "unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" "$LINENO" 5;;
17561       esac
17562
17563 else
17564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h.  */
17566
17567         #include <signal.h>
17568         #include <unistd.h>
17569         #include <sys/wait.h>
17570
17571         static int counter = 0;
17572         static RETSIGTYPE handler(int num) { counter++; }
17573
17574         int main()
17575         {
17576                 int     s;
17577                 if ((s = fork()) < 0) return 1;
17578                 if (s != 0) {
17579                         if (wait(&s) < 0) return 1;
17580                         return WIFSIGNALED(s)? 1 : 0;
17581                 }
17582
17583                 signal(SIGHUP, handler);
17584                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
17585                 return (counter == 2)? 0 : 1;
17586         }
17587
17588 _ACEOF
17589 if ac_fn_c_try_run "$LINENO"; then :
17590   knfsd_cv_bsd_signals=yes
17591 else
17592   knfsd_cv_bsd_signals=no
17593 fi
17594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17595   conftest.$ac_objext conftest.beam conftest.$ac_ext
17596 fi
17597
17598 fi
17599      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_bsd_signals" >&5
17600 $as_echo "$knfsd_cv_bsd_signals" >&6; }
17601     test $knfsd_cv_bsd_signals = yes &&
17602 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
17603
17604
17605
17606
17607 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17608 if test "x$ac_cv_func_gethostbyname" = xyes; then :
17609
17610 else
17611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17612 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17613 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
17614   $as_echo_n "(cached) " >&6
17615 else
17616   ac_check_lib_save_LIBS=$LIBS
17617 LIBS="-lnsl  $LIBS"
17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h.  */
17620
17621 /* Override any GCC internal prototype to avoid an error.
17622    Use char because int might match the return type of a GCC
17623    builtin and then its argument prototype would still apply.  */
17624 #ifdef __cplusplus
17625 extern "C"
17626 #endif
17627 char gethostbyname ();
17628 int
17629 main ()
17630 {
17631 return gethostbyname ();
17632   ;
17633   return 0;
17634 }
17635 _ACEOF
17636 if ac_fn_c_try_link "$LINENO"; then :
17637   ac_cv_lib_nsl_gethostbyname=yes
17638 else
17639   ac_cv_lib_nsl_gethostbyname=no
17640 fi
17641 rm -f core conftest.err conftest.$ac_objext \
17642     conftest$ac_exeext conftest.$ac_ext
17643 LIBS=$ac_check_lib_save_LIBS
17644 fi
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17646 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17647 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
17648   LIBNSL="-lnsl"
17649 fi
17650
17651 fi
17652
17653
17654
17655 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
17656 if test "x$ac_cv_func_connect" = xyes; then :
17657
17658 else
17659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
17660 $as_echo_n "checking for connect in -lsocket... " >&6; }
17661 if ${ac_cv_lib_socket_connect+:} false; then :
17662   $as_echo_n "(cached) " >&6
17663 else
17664   ac_check_lib_save_LIBS=$LIBS
17665 LIBS="-lsocket $LIBNSL $LIBS"
17666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h.  */
17668
17669 /* Override any GCC internal prototype to avoid an error.
17670    Use char because int might match the return type of a GCC
17671    builtin and then its argument prototype would still apply.  */
17672 #ifdef __cplusplus
17673 extern "C"
17674 #endif
17675 char connect ();
17676 int
17677 main ()
17678 {
17679 return connect ();
17680   ;
17681   return 0;
17682 }
17683 _ACEOF
17684 if ac_fn_c_try_link "$LINENO"; then :
17685   ac_cv_lib_socket_connect=yes
17686 else
17687   ac_cv_lib_socket_connect=no
17688 fi
17689 rm -f core conftest.err conftest.$ac_objext \
17690     conftest$ac_exeext conftest.$ac_ext
17691 LIBS=$ac_check_lib_save_LIBS
17692 fi
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
17694 $as_echo "$ac_cv_lib_socket_connect" >&6; }
17695 if test "x$ac_cv_lib_socket_connect" = xyes; then :
17696   LIBSOCKET="-lsocket"
17697 else
17698   as_fn_error $? "Function 'socket' not found." "$LINENO" 5
17699 fi
17700
17701 fi
17702
17703
17704 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17705 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17706
17707 else
17708   as_fn_error $? "Function 'getaddrinfo' not found." "$LINENO" 5
17709 fi
17710
17711
17712 ac_fn_c_check_func "$LINENO" "getrpcbynumber" "ac_cv_func_getrpcbynumber"
17713 if test "x$ac_cv_func_getrpcbynumber" = xyes; then :
17714
17715 else
17716   as_fn_error $? "Function 'getrpcbynumber' not found." "$LINENO" 5
17717 fi
17718
17719
17720 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
17721 if test "x$ac_cv_func_getservbyname" = xyes; then :
17722
17723 else
17724   as_fn_error $? "Function 'getservbyname' not found." "$LINENO" 5
17725 fi
17726
17727
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
17729 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
17730 if ${ac_cv_lib_crypt_crypt+:} false; then :
17731   $as_echo_n "(cached) " >&6
17732 else
17733   ac_check_lib_save_LIBS=$LIBS
17734 LIBS="-lcrypt  $LIBS"
17735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736 /* end confdefs.h.  */
17737
17738 /* Override any GCC internal prototype to avoid an error.
17739    Use char because int might match the return type of a GCC
17740    builtin and then its argument prototype would still apply.  */
17741 #ifdef __cplusplus
17742 extern "C"
17743 #endif
17744 char crypt ();
17745 int
17746 main ()
17747 {
17748 return crypt ();
17749   ;
17750   return 0;
17751 }
17752 _ACEOF
17753 if ac_fn_c_try_link "$LINENO"; then :
17754   ac_cv_lib_crypt_crypt=yes
17755 else
17756   ac_cv_lib_crypt_crypt=no
17757 fi
17758 rm -f core conftest.err conftest.$ac_objext \
17759     conftest$ac_exeext conftest.$ac_ext
17760 LIBS=$ac_check_lib_save_LIBS
17761 fi
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
17763 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
17764 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
17765   LIBCRYPT="-lcrypt"
17766 fi
17767
17768
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlclose in -ldl" >&5
17770 $as_echo_n "checking for dlclose in -ldl... " >&6; }
17771 if ${ac_cv_lib_dl_dlclose+:} false; then :
17772   $as_echo_n "(cached) " >&6
17773 else
17774   ac_check_lib_save_LIBS=$LIBS
17775 LIBS="-ldl  $LIBS"
17776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777 /* end confdefs.h.  */
17778
17779 /* Override any GCC internal prototype to avoid an error.
17780    Use char because int might match the return type of a GCC
17781    builtin and then its argument prototype would still apply.  */
17782 #ifdef __cplusplus
17783 extern "C"
17784 #endif
17785 char dlclose ();
17786 int
17787 main ()
17788 {
17789 return dlclose ();
17790   ;
17791   return 0;
17792 }
17793 _ACEOF
17794 if ac_fn_c_try_link "$LINENO"; then :
17795   ac_cv_lib_dl_dlclose=yes
17796 else
17797   ac_cv_lib_dl_dlclose=no
17798 fi
17799 rm -f core conftest.err conftest.$ac_objext \
17800     conftest$ac_exeext conftest.$ac_ext
17801 LIBS=$ac_check_lib_save_LIBS
17802 fi
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlclose" >&5
17804 $as_echo "$ac_cv_lib_dl_dlclose" >&6; }
17805 if test "x$ac_cv_lib_dl_dlclose" = xyes; then :
17806   LIBDL="-ldl"
17807 fi
17808
17809
17810 if test "$enable_nfsv4" = yes; then
17811
17812
17813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for event_dispatch in -levent" >&5
17814 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
17815 if ${ac_cv_lib_event_event_dispatch+:} false; then :
17816   $as_echo_n "(cached) " >&6
17817 else
17818   ac_check_lib_save_LIBS=$LIBS
17819 LIBS="-levent  $LIBS"
17820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h.  */
17822
17823 /* Override any GCC internal prototype to avoid an error.
17824    Use char because int might match the return type of a GCC
17825    builtin and then its argument prototype would still apply.  */
17826 #ifdef __cplusplus
17827 extern "C"
17828 #endif
17829 char event_dispatch ();
17830 int
17831 main ()
17832 {
17833 return event_dispatch ();
17834   ;
17835   return 0;
17836 }
17837 _ACEOF
17838 if ac_fn_c_try_link "$LINENO"; then :
17839   ac_cv_lib_event_event_dispatch=yes
17840 else
17841   ac_cv_lib_event_event_dispatch=no
17842 fi
17843 rm -f core conftest.err conftest.$ac_objext \
17844     conftest$ac_exeext conftest.$ac_ext
17845 LIBS=$ac_check_lib_save_LIBS
17846 fi
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_event_dispatch" >&5
17848 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
17849 if test "x$ac_cv_lib_event_event_dispatch" = xyes; then :
17850   LIBEVENT=-levent
17851 else
17852   as_fn_error $? "libevent not found." "$LINENO" 5
17853 fi
17854
17855
17856
17857   for ac_header in event.h
17858 do :
17859   ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default"
17860 if test "x$ac_cv_header_event_h" = xyes; then :
17861   cat >>confdefs.h <<_ACEOF
17862 #define HAVE_EVENT_H 1
17863 _ACEOF
17864
17865 else
17866   as_fn_error $? "libevent headers not found." "$LINENO" 5
17867 fi
17868
17869 done
17870
17871
17872
17873
17874
17875
17876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
17877 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
17878 if ${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+:} false; then :
17879   $as_echo_n "(cached) " >&6
17880 else
17881   ac_check_lib_save_LIBS=$LIBS
17882 LIBS="-lnfsidmap  $LIBS"
17883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17884 /* end confdefs.h.  */
17885
17886 /* Override any GCC internal prototype to avoid an error.
17887    Use char because int might match the return type of a GCC
17888    builtin and then its argument prototype would still apply.  */
17889 #ifdef __cplusplus
17890 extern "C"
17891 #endif
17892 char nfs4_init_name_mapping ();
17893 int
17894 main ()
17895 {
17896 return nfs4_init_name_mapping ();
17897   ;
17898   return 0;
17899 }
17900 _ACEOF
17901 if ac_fn_c_try_link "$LINENO"; then :
17902   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
17903 else
17904   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
17905 fi
17906 rm -f core conftest.err conftest.$ac_objext \
17907     conftest$ac_exeext conftest.$ac_ext
17908 LIBS=$ac_check_lib_save_LIBS
17909 fi
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
17911 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
17912 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = xyes; then :
17913   LIBNFSIDMAP=-lnfsidmap
17914 else
17915   as_fn_error $? "libnfsidmap not found." "$LINENO" 5
17916 fi
17917
17918
17919   for ac_header in nfsidmap.h
17920 do :
17921   ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
17922 if test "x$ac_cv_header_nfsidmap_h" = xyes; then :
17923   cat >>confdefs.h <<_ACEOF
17924 #define HAVE_NFSIDMAP_H 1
17925 _ACEOF
17926
17927 else
17928   as_fn_error $? "libnfsidmap headers not found." "$LINENO" 5
17929 fi
17930
17931 done
17932
17933
17934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
17935 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
17936 if ${ac_cv_lib_nfsidmap_nfs4_set_debug+:} false; then :
17937   $as_echo_n "(cached) " >&6
17938 else
17939   ac_check_lib_save_LIBS=$LIBS
17940 LIBS="-lnfsidmap  $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 nfs4_set_debug ();
17951 int
17952 main ()
17953 {
17954 return nfs4_set_debug ();
17955   ;
17956   return 0;
17957 }
17958 _ACEOF
17959 if ac_fn_c_try_link "$LINENO"; then :
17960   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
17961 else
17962   ac_cv_lib_nfsidmap_nfs4_set_debug=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_nfsidmap_nfs4_set_debug" >&5
17969 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
17970 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = xyes; then :
17971
17972 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
17973
17974 fi
17975
17976
17977       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_owner_to_uid in -lnfsidmap" >&5
17978 $as_echo_n "checking for nfs4_owner_to_uid in -lnfsidmap... " >&6; }
17979 if ${ac_cv_lib_nfsidmap_nfs4_owner_to_uid+:} false; then :
17980   $as_echo_n "(cached) " >&6
17981 else
17982   ac_check_lib_save_LIBS=$LIBS
17983 LIBS="-lnfsidmap  $LIBS"
17984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17985 /* end confdefs.h.  */
17986
17987 /* Override any GCC internal prototype to avoid an error.
17988    Use char because int might match the return type of a GCC
17989    builtin and then its argument prototype would still apply.  */
17990 #ifdef __cplusplus
17991 extern "C"
17992 #endif
17993 char nfs4_owner_to_uid ();
17994 int
17995 main ()
17996 {
17997 return nfs4_owner_to_uid ();
17998   ;
17999   return 0;
18000 }
18001 _ACEOF
18002 if ac_fn_c_try_link "$LINENO"; then :
18003   ac_cv_lib_nfsidmap_nfs4_owner_to_uid=yes
18004 else
18005   ac_cv_lib_nfsidmap_nfs4_owner_to_uid=no
18006 fi
18007 rm -f core conftest.err conftest.$ac_objext \
18008     conftest$ac_exeext conftest.$ac_ext
18009 LIBS=$ac_check_lib_save_LIBS
18010 fi
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&5
18012 $as_echo "$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&6; }
18013 if test "x$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = xyes; then :
18014   :
18015 fi
18016
18017
18018
18019
18020
18021
18022
18023
18024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for keyctl_instantiate in -lkeyutils" >&5
18025 $as_echo_n "checking for keyctl_instantiate in -lkeyutils... " >&6; }
18026 if ${ac_cv_lib_keyutils_keyctl_instantiate+:} false; then :
18027   $as_echo_n "(cached) " >&6
18028 else
18029   ac_check_lib_save_LIBS=$LIBS
18030 LIBS="-lkeyutils  $LIBS"
18031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18032 /* end confdefs.h.  */
18033
18034 /* Override any GCC internal prototype to avoid an error.
18035    Use char because int might match the return type of a GCC
18036    builtin and then its argument prototype would still apply.  */
18037 #ifdef __cplusplus
18038 extern "C"
18039 #endif
18040 char keyctl_instantiate ();
18041 int
18042 main ()
18043 {
18044 return keyctl_instantiate ();
18045   ;
18046   return 0;
18047 }
18048 _ACEOF
18049 if ac_fn_c_try_link "$LINENO"; then :
18050   ac_cv_lib_keyutils_keyctl_instantiate=yes
18051 else
18052   ac_cv_lib_keyutils_keyctl_instantiate=no
18053 fi
18054 rm -f core conftest.err conftest.$ac_objext \
18055     conftest$ac_exeext conftest.$ac_ext
18056 LIBS=$ac_check_lib_save_LIBS
18057 fi
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_instantiate" >&5
18059 $as_echo "$ac_cv_lib_keyutils_keyctl_instantiate" >&6; }
18060 if test "x$ac_cv_lib_keyutils_keyctl_instantiate" = xyes; then :
18061   LIBKEYUTILS=-lkeyutils
18062 fi
18063
18064
18065
18066   for ac_header in keyutils.h
18067 do :
18068   ac_fn_c_check_header_mongrel "$LINENO" "keyutils.h" "ac_cv_header_keyutils_h" "$ac_includes_default"
18069 if test "x$ac_cv_header_keyutils_h" = xyes; then :
18070   cat >>confdefs.h <<_ACEOF
18071 #define HAVE_KEYUTILS_H 1
18072 _ACEOF
18073
18074 fi
18075
18076 done
18077
18078
18079
18080
18081
18082   for ac_header in sqlite3.h
18083 do :
18084   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
18085 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
18086   cat >>confdefs.h <<_ACEOF
18087 #define HAVE_SQLITE3_H 1
18088 _ACEOF
18089
18090 fi
18091
18092 done
18093
18094
18095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_libversion_number in -lsqlite3" >&5
18096 $as_echo_n "checking for sqlite3_libversion_number in -lsqlite3... " >&6; }
18097 if ${ac_cv_lib_sqlite3_sqlite3_libversion_number+:} false; then :
18098   $as_echo_n "(cached) " >&6
18099 else
18100   ac_check_lib_save_LIBS=$LIBS
18101 LIBS="-lsqlite3  $LIBS"
18102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h.  */
18104
18105 /* Override any GCC internal prototype to avoid an error.
18106    Use char because int might match the return type of a GCC
18107    builtin and then its argument prototype would still apply.  */
18108 #ifdef __cplusplus
18109 extern "C"
18110 #endif
18111 char sqlite3_libversion_number ();
18112 int
18113 main ()
18114 {
18115 return sqlite3_libversion_number ();
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 if ac_fn_c_try_link "$LINENO"; then :
18121   ac_cv_lib_sqlite3_sqlite3_libversion_number=yes
18122 else
18123   ac_cv_lib_sqlite3_sqlite3_libversion_number=no
18124 fi
18125 rm -f core conftest.err conftest.$ac_objext \
18126     conftest$ac_exeext conftest.$ac_ext
18127 LIBS=$ac_check_lib_save_LIBS
18128 fi
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_libversion_number" >&5
18130 $as_echo "$ac_cv_lib_sqlite3_sqlite3_libversion_number" >&6; }
18131 if test "x$ac_cv_lib_sqlite3_sqlite3_libversion_number" = xyes; then :
18132   LIBSQLITE=-lsqlite3
18133 fi
18134
18135
18136
18137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable sqlite3 version" >&5
18138 $as_echo_n "checking for suitable sqlite3 version... " >&6; }
18139
18140   if ${libsqlite3_cv_is_recent+:} false; then :
18141   $as_echo_n "(cached) " >&6
18142 else
18143
18144     saved_LIBS="$LIBS"
18145     LIBS=-lsqlite3
18146     if test "$cross_compiling" = yes; then :
18147   libsqlite3_cv_is_recent=unknown
18148 else
18149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h.  */
18151
18152         #include <stdio.h>
18153         #include <sqlite3.h>
18154         int main()
18155         {
18156                 int vers = sqlite3_libversion_number();
18157
18158                 return vers != SQLITE_VERSION_NUMBER ||
18159                         vers < 3003000;
18160         }
18161
18162 _ACEOF
18163 if ac_fn_c_try_run "$LINENO"; then :
18164   libsqlite3_cv_is_recent=yes
18165 else
18166   libsqlite3_cv_is_recent=no
18167 fi
18168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18169   conftest.$ac_objext conftest.beam conftest.$ac_ext
18170 fi
18171
18172     LIBS="$saved_LIBS"
18173 fi
18174
18175
18176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsqlite3_cv_is_recent" >&5
18177 $as_echo "$libsqlite3_cv_is_recent" >&6; }
18178
18179
18180   if test "$enable_nfsdcltrack" = "yes"; then
18181         for ac_header in libgen.h sys/inotify.h
18182 do :
18183   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18184 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18185 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18186   cat >>confdefs.h <<_ACEOF
18187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18188 _ACEOF
18189
18190 else
18191   as_fn_error $? "Cannot find header needed for nfsdcltrack" "$LINENO" 5
18192 fi
18193
18194 done
18195
18196
18197     case $libsqlite3_cv_is_recent in
18198     yes) ;;
18199     unknown)
18200             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: assuming sqlite is at least v3.3" >&5
18201 $as_echo "$as_me: WARNING: assuming sqlite is at least v3.3" >&2;} ;;
18202     *)
18203       as_fn_error $? "nfsdcltrack requires sqlite-devel" "$LINENO" 5 ;;
18204     esac
18205   fi
18206
18207 else
18208   enable_nfsdcltrack="no"
18209 fi
18210
18211 if test "$enable_nfsv41" = yes; then
18212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
18213 $as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
18214 if ${ac_cv_lib_devmapper_dm_task_create+:} false; then :
18215   $as_echo_n "(cached) " >&6
18216 else
18217   ac_check_lib_save_LIBS=$LIBS
18218 LIBS="-ldevmapper  $LIBS"
18219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220 /* end confdefs.h.  */
18221
18222 /* Override any GCC internal prototype to avoid an error.
18223    Use char because int might match the return type of a GCC
18224    builtin and then its argument prototype would still apply.  */
18225 #ifdef __cplusplus
18226 extern "C"
18227 #endif
18228 char dm_task_create ();
18229 int
18230 main ()
18231 {
18232 return dm_task_create ();
18233   ;
18234   return 0;
18235 }
18236 _ACEOF
18237 if ac_fn_c_try_link "$LINENO"; then :
18238   ac_cv_lib_devmapper_dm_task_create=yes
18239 else
18240   ac_cv_lib_devmapper_dm_task_create=no
18241 fi
18242 rm -f core conftest.err conftest.$ac_objext \
18243     conftest$ac_exeext conftest.$ac_ext
18244 LIBS=$ac_check_lib_save_LIBS
18245 fi
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
18247 $as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
18248 if test "x$ac_cv_lib_devmapper_dm_task_create" = xyes; then :
18249   LIBDEVMAPPER="-ldevmapper"
18250 else
18251   as_fn_error $? "libdevmapper needed" "$LINENO" 5
18252 fi
18253
18254   ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
18255 if test "x$ac_cv_header_libdevmapper_h" = xyes; then :
18256
18257 else
18258   as_fn_error $? "Cannot find devmapper header file libdevmapper.h" "$LINENO" 5
18259 fi
18260
18261
18262   ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
18263 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
18264
18265 else
18266   as_fn_error $? "Cannot find header file sys/inotify.h" "$LINENO" 5
18267 fi
18268
18269
18270 fi
18271
18272  if test "$enable_nfsdcltrack" = "yes" ; then
18273   CONFIG_NFSDCLTRACK_TRUE=
18274   CONFIG_NFSDCLTRACK_FALSE='#'
18275 else
18276   CONFIG_NFSDCLTRACK_TRUE='#'
18277   CONFIG_NFSDCLTRACK_FALSE=
18278 fi
18279
18280  if test "$ac_cv_header_keyutils_h$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = "yesyes"; then
18281   CONFIG_NFSIDMAP_TRUE=
18282   CONFIG_NFSIDMAP_FALSE='#'
18283 else
18284   CONFIG_NFSIDMAP_TRUE='#'
18285   CONFIG_NFSIDMAP_FALSE=
18286 fi
18287
18288
18289
18290 if test "$knfsd_cv_glibc2" = no; then
18291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
18292 $as_echo_n "checking for daemon in -lbsd... " >&6; }
18293 if ${ac_cv_lib_bsd_daemon+:} false; then :
18294   $as_echo_n "(cached) " >&6
18295 else
18296   ac_check_lib_save_LIBS=$LIBS
18297 LIBS="-lbsd  $LIBS"
18298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h.  */
18300
18301 /* Override any GCC internal prototype to avoid an error.
18302    Use char because int might match the return type of a GCC
18303    builtin and then its argument prototype would still apply.  */
18304 #ifdef __cplusplus
18305 extern "C"
18306 #endif
18307 char daemon ();
18308 int
18309 main ()
18310 {
18311 return daemon ();
18312   ;
18313   return 0;
18314 }
18315 _ACEOF
18316 if ac_fn_c_try_link "$LINENO"; then :
18317   ac_cv_lib_bsd_daemon=yes
18318 else
18319   ac_cv_lib_bsd_daemon=no
18320 fi
18321 rm -f core conftest.err conftest.$ac_objext \
18322     conftest$ac_exeext conftest.$ac_ext
18323 LIBS=$ac_check_lib_save_LIBS
18324 fi
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
18326 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
18327 if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
18328   LIBBSD="-lbsd"
18329 fi
18330
18331 fi
18332
18333 if test "$choose_blkid" != no; then
18334    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_library_version in -lblkid" >&5
18335 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
18336 if ${ac_cv_lib_blkid_blkid_get_library_version+:} false; then :
18337   $as_echo_n "(cached) " >&6
18338 else
18339   ac_check_lib_save_LIBS=$LIBS
18340 LIBS="-lblkid  $LIBS"
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h.  */
18343
18344 /* Override any GCC internal prototype to avoid an error.
18345    Use char because int might match the return type of a GCC
18346    builtin and then its argument prototype would still apply.  */
18347 #ifdef __cplusplus
18348 extern "C"
18349 #endif
18350 char blkid_get_library_version ();
18351 int
18352 main ()
18353 {
18354 return blkid_get_library_version ();
18355   ;
18356   return 0;
18357 }
18358 _ACEOF
18359 if ac_fn_c_try_link "$LINENO"; then :
18360   ac_cv_lib_blkid_blkid_get_library_version=yes
18361 else
18362   ac_cv_lib_blkid_blkid_get_library_version=no
18363 fi
18364 rm -f core conftest.err conftest.$ac_objext \
18365     conftest$ac_exeext conftest.$ac_ext
18366 LIBS=$ac_check_lib_save_LIBS
18367 fi
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
18369 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
18370 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = xyes; then :
18371   LIBBLKID="-lblkid"
18372 else
18373   as_fn_error $? "libblkid needed" "$LINENO" 5
18374 fi
18375
18376    ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
18377 if test "x$ac_cv_header_blkid_blkid_h" = xyes; then :
18378
18379 else
18380   as_fn_error $? "Cannot find libblkid header file blkid/blkid.h" "$LINENO" 5
18381 fi
18382
18383
18384
18385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable libblkid version" >&5
18386 $as_echo_n "checking for suitable libblkid version... " >&6; }
18387   if ${libblkid_cv_is_recent+:} false; then :
18388   $as_echo_n "(cached) " >&6
18389 else
18390
18391     saved_LIBS="$LIBS"
18392     LIBS=-lblkid
18393     if test "$cross_compiling" = yes; then :
18394   libblkid_cv_is_recent=unknown
18395 else
18396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h.  */
18398
18399         #include <blkid/blkid.h>
18400         int main()
18401         {
18402                 int vers = blkid_get_library_version(0, 0);
18403                 return vers >= 140 ? 0 : 1;
18404         }
18405
18406 _ACEOF
18407 if ac_fn_c_try_run "$LINENO"; then :
18408   libblkid_cv_is_recent=yes
18409 else
18410   libblkid_cv_is_recent=no
18411 fi
18412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18413   conftest.$ac_objext conftest.beam conftest.$ac_ext
18414 fi
18415
18416     LIBS="$saved_LIBS"
18417 fi
18418
18419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libblkid_cv_is_recent" >&5
18420 $as_echo "$libblkid_cv_is_recent" >&6; }
18421
18422    if test $choose_blkid = yes; then
18423       use_blkid=1
18424       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
18425 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
18426    else
18427       if test $libblkid_cv_is_recent = yes
18428       then use_blkid=1
18429       else use_blkid=0
18430            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uuid support disabled as libblkid is too old" >&5
18431 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
18432       fi
18433     fi
18434
18435 cat >>confdefs.h <<_ACEOF
18436 #define USE_BLKID $use_blkid
18437 _ACEOF
18438
18439 fi
18440
18441
18442
18443
18444
18445
18446 if test "$enable_libmount" != no; then
18447    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mnt_context_do_mount in -lmount" >&5
18448 $as_echo_n "checking for mnt_context_do_mount in -lmount... " >&6; }
18449 if ${ac_cv_lib_mount_mnt_context_do_mount+:} false; then :
18450   $as_echo_n "(cached) " >&6
18451 else
18452   ac_check_lib_save_LIBS=$LIBS
18453 LIBS="-lmount  $LIBS"
18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h.  */
18456
18457 /* Override any GCC internal prototype to avoid an error.
18458    Use char because int might match the return type of a GCC
18459    builtin and then its argument prototype would still apply.  */
18460 #ifdef __cplusplus
18461 extern "C"
18462 #endif
18463 char mnt_context_do_mount ();
18464 int
18465 main ()
18466 {
18467 return mnt_context_do_mount ();
18468   ;
18469   return 0;
18470 }
18471 _ACEOF
18472 if ac_fn_c_try_link "$LINENO"; then :
18473   ac_cv_lib_mount_mnt_context_do_mount=yes
18474 else
18475   ac_cv_lib_mount_mnt_context_do_mount=no
18476 fi
18477 rm -f core conftest.err conftest.$ac_objext \
18478     conftest$ac_exeext conftest.$ac_ext
18479 LIBS=$ac_check_lib_save_LIBS
18480 fi
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mount_mnt_context_do_mount" >&5
18482 $as_echo "$ac_cv_lib_mount_mnt_context_do_mount" >&6; }
18483 if test "x$ac_cv_lib_mount_mnt_context_do_mount" = xyes; then :
18484   LIBMOUNT="-lmount"
18485 else
18486   as_fn_error $? "libmount needed" "$LINENO" 5
18487 fi
18488
18489    ac_fn_c_check_header_mongrel "$LINENO" "libmount/libmount.h" "ac_cv_header_libmount_libmount_h" "$ac_includes_default"
18490 if test "x$ac_cv_header_libmount_libmount_h" = xyes; then :
18491
18492 else
18493   as_fn_error $? "Cannot find libmount header file libmount/libmount.h" "$LINENO" 5
18494 fi
18495
18496
18497 fi
18498  if test "$enable_libmount" = "yes"; then
18499   CONFIG_LIBMOUNT_TRUE=
18500   CONFIG_LIBMOUNT_FALSE='#'
18501 else
18502   CONFIG_LIBMOUNT_TRUE='#'
18503   CONFIG_LIBMOUNT_FALSE=
18504 fi
18505
18506
18507
18508 if test "$enable_gss" = yes; then
18509     ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
18510 if test "x$ac_cv_func_getnameinfo" = xyes; then :
18511
18512 else
18513   as_fn_error $? "GSSAPI support requires 'getnameinfo' function" "$LINENO" 5
18514 fi
18515
18516
18517
18518
18519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
18520 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
18521 if ${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+:} false; then :
18522   $as_echo_n "(cached) " >&6
18523 else
18524   ac_check_lib_save_LIBS=$LIBS
18525 LIBS="-lnfsidmap  $LIBS"
18526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18527 /* end confdefs.h.  */
18528
18529 /* Override any GCC internal prototype to avoid an error.
18530    Use char because int might match the return type of a GCC
18531    builtin and then its argument prototype would still apply.  */
18532 #ifdef __cplusplus
18533 extern "C"
18534 #endif
18535 char nfs4_init_name_mapping ();
18536 int
18537 main ()
18538 {
18539 return nfs4_init_name_mapping ();
18540   ;
18541   return 0;
18542 }
18543 _ACEOF
18544 if ac_fn_c_try_link "$LINENO"; then :
18545   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
18546 else
18547   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
18548 fi
18549 rm -f core conftest.err conftest.$ac_objext \
18550     conftest$ac_exeext conftest.$ac_ext
18551 LIBS=$ac_check_lib_save_LIBS
18552 fi
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
18554 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
18555 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = xyes; then :
18556   LIBNFSIDMAP=-lnfsidmap
18557 else
18558   as_fn_error $? "libnfsidmap not found." "$LINENO" 5
18559 fi
18560
18561
18562   for ac_header in nfsidmap.h
18563 do :
18564   ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
18565 if test "x$ac_cv_header_nfsidmap_h" = xyes; then :
18566   cat >>confdefs.h <<_ACEOF
18567 #define HAVE_NFSIDMAP_H 1
18568 _ACEOF
18569
18570 else
18571   as_fn_error $? "libnfsidmap headers not found." "$LINENO" 5
18572 fi
18573
18574 done
18575
18576
18577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
18578 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
18579 if ${ac_cv_lib_nfsidmap_nfs4_set_debug+:} false; then :
18580   $as_echo_n "(cached) " >&6
18581 else
18582   ac_check_lib_save_LIBS=$LIBS
18583 LIBS="-lnfsidmap  $LIBS"
18584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18585 /* end confdefs.h.  */
18586
18587 /* Override any GCC internal prototype to avoid an error.
18588    Use char because int might match the return type of a GCC
18589    builtin and then its argument prototype would still apply.  */
18590 #ifdef __cplusplus
18591 extern "C"
18592 #endif
18593 char nfs4_set_debug ();
18594 int
18595 main ()
18596 {
18597 return nfs4_set_debug ();
18598   ;
18599   return 0;
18600 }
18601 _ACEOF
18602 if ac_fn_c_try_link "$LINENO"; then :
18603   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
18604 else
18605   ac_cv_lib_nfsidmap_nfs4_set_debug=no
18606 fi
18607 rm -f core conftest.err conftest.$ac_objext \
18608     conftest$ac_exeext conftest.$ac_ext
18609 LIBS=$ac_check_lib_save_LIBS
18610 fi
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
18612 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
18613 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = xyes; then :
18614
18615 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
18616
18617 fi
18618
18619
18620       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_owner_to_uid in -lnfsidmap" >&5
18621 $as_echo_n "checking for nfs4_owner_to_uid in -lnfsidmap... " >&6; }
18622 if ${ac_cv_lib_nfsidmap_nfs4_owner_to_uid+:} false; then :
18623   $as_echo_n "(cached) " >&6
18624 else
18625   ac_check_lib_save_LIBS=$LIBS
18626 LIBS="-lnfsidmap  $LIBS"
18627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18628 /* end confdefs.h.  */
18629
18630 /* Override any GCC internal prototype to avoid an error.
18631    Use char because int might match the return type of a GCC
18632    builtin and then its argument prototype would still apply.  */
18633 #ifdef __cplusplus
18634 extern "C"
18635 #endif
18636 char nfs4_owner_to_uid ();
18637 int
18638 main ()
18639 {
18640 return nfs4_owner_to_uid ();
18641   ;
18642   return 0;
18643 }
18644 _ACEOF
18645 if ac_fn_c_try_link "$LINENO"; then :
18646   ac_cv_lib_nfsidmap_nfs4_owner_to_uid=yes
18647 else
18648   ac_cv_lib_nfsidmap_nfs4_owner_to_uid=no
18649 fi
18650 rm -f core conftest.err conftest.$ac_objext \
18651     conftest$ac_exeext conftest.$ac_ext
18652 LIBS=$ac_check_lib_save_LIBS
18653 fi
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&5
18655 $as_echo "$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&6; }
18656 if test "x$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = xyes; then :
18657   :
18658 fi
18659
18660
18661
18662
18663
18664
18665
18666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos v5" >&5
18667 $as_echo_n "checking for Kerberos v5... " >&6; }
18668
18669 # Check whether --with-krb5 was given.
18670 if test "${with_krb5+set}" = set; then :
18671   withval=$with_krb5;  case "$withval" in
18672     yes|no)
18673        krb5_with=""
18674        ;;
18675     *)
18676        krb5_with="$withval"
18677        ;;
18678     esac
18679
18680 fi
18681
18682
18683   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
18684              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
18685             K5CONFIG=""
18686     if test -f $dir/bin/krb5-config; then
18687       K5CONFIG=$dir/bin/krb5-config
18688     elif test -f "/usr/kerberos/bin/krb5-config"; then
18689       K5CONFIG="/usr/kerberos/bin/krb5-config"
18690     elif test -f "/usr/lib/mit/bin/krb5-config"; then
18691       K5CONFIG="/usr/lib/mit/bin/krb5-config"
18692     fi
18693     if test "$K5CONFIG" != ""; then
18694       KRBCFLAGS=`$K5CONFIG --cflags`
18695       KRBLIBS=`$K5CONFIG --libs`
18696       GSSKRB_CFLAGS=`$K5CONFIG --cflags gssapi`
18697       GSSKRB_LIBS=`$K5CONFIG --libs gssapi`
18698       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
18699
18700 cat >>confdefs.h <<_ACEOF
18701 #define KRB5_VERSION $K5VERS
18702 _ACEOF
18703
18704       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
18705                 \( -f $dir/lib/libgssapi_krb5.a -o \
18706                    -f $dir/lib64/libgssapi_krb5.a -o \
18707                    -f $dir/lib64/libgssapi_krb5.so -o \
18708                    -f $dir/lib/libgssapi_krb5.so \) ; then
18709
18710 $as_echo "#define HAVE_KRB5 1" >>confdefs.h
18711
18712          KRBDIR="$dir"
18713                      if test $K5VERS -le 131; then
18714
18715 $as_echo "#define USE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18716
18717          fi
18718          gssapi_lib=gssapi_krb5
18719          break
18720                   elif test \( -f $dir/include/heim_err.h -o\
18721                  -f $dir/include/heimdal/heim_err.h \) -a \
18722                 -f $dir/lib/libroken.a; then
18723
18724 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18725
18726          KRBDIR="$dir"
18727          gssapi_lib=gssapi
18728         break
18729       fi
18730     fi
18731   done
18732     if test "x$KRBDIR" = "x"; then
18733     if test "x$krb5_with" = "x"; then
18734       as_fn_error $? "Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" "$LINENO" 5
18735     else
18736       as_fn_error $? "Kerberos v5 with GSS support not found at $krb5_with" "$LINENO" 5
18737     fi
18738   fi
18739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRBDIR" >&5
18740 $as_echo "$KRBDIR" >&6; }
18741
18742     echo "The current KRBDIR is $KRBDIR"
18743   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
18744        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
18745     KRBLDFLAGS="";
18746   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
18747     KRBLDFLAGS="";
18748   else
18749     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
18750   fi
18751
18752     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
18754 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
18755 if eval \${$as_ac_Lib+:} false; then :
18756   $as_echo_n "(cached) " >&6
18757 else
18758   ac_check_lib_save_LIBS=$LIBS
18759 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h.  */
18762
18763 /* Override any GCC internal prototype to avoid an error.
18764    Use char because int might match the return type of a GCC
18765    builtin and then its argument prototype would still apply.  */
18766 #ifdef __cplusplus
18767 extern "C"
18768 #endif
18769 char gss_krb5_export_lucid_sec_context ();
18770 int
18771 main ()
18772 {
18773 return gss_krb5_export_lucid_sec_context ();
18774   ;
18775   return 0;
18776 }
18777 _ACEOF
18778 if ac_fn_c_try_link "$LINENO"; then :
18779   eval "$as_ac_Lib=yes"
18780 else
18781   eval "$as_ac_Lib=no"
18782 fi
18783 rm -f core conftest.err conftest.$ac_objext \
18784     conftest$ac_exeext conftest.$ac_ext
18785 LIBS=$ac_check_lib_save_LIBS
18786 fi
18787 eval ac_res=\$$as_ac_Lib
18788                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18789 $as_echo "$ac_res" >&6; }
18790 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18791
18792 $as_echo "#define HAVE_LUCID_CONTEXT_SUPPORT 1" >>confdefs.h
18793
18794 fi
18795
18796   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
18798 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
18799 if eval \${$as_ac_Lib+:} false; then :
18800   $as_echo_n "(cached) " >&6
18801 else
18802   ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h.  */
18806
18807 /* Override any GCC internal prototype to avoid an error.
18808    Use char because int might match the return type of a GCC
18809    builtin and then its argument prototype would still apply.  */
18810 #ifdef __cplusplus
18811 extern "C"
18812 #endif
18813 char gss_krb5_set_allowable_enctypes ();
18814 int
18815 main ()
18816 {
18817 return gss_krb5_set_allowable_enctypes ();
18818   ;
18819   return 0;
18820 }
18821 _ACEOF
18822 if ac_fn_c_try_link "$LINENO"; then :
18823   eval "$as_ac_Lib=yes"
18824 else
18825   eval "$as_ac_Lib=no"
18826 fi
18827 rm -f core conftest.err conftest.$ac_objext \
18828     conftest$ac_exeext conftest.$ac_ext
18829 LIBS=$ac_check_lib_save_LIBS
18830 fi
18831 eval ac_res=\$$as_ac_Lib
18832                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18833 $as_echo "$ac_res" >&6; }
18834 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18835
18836 $as_echo "#define HAVE_SET_ALLOWABLE_ENCTYPES 1" >>confdefs.h
18837
18838 fi
18839
18840   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
18842 $as_echo_n "checking for gss_krb5_ccache_name in -l$gssapi_lib... " >&6; }
18843 if eval \${$as_ac_Lib+:} false; then :
18844   $as_echo_n "(cached) " >&6
18845 else
18846   ac_check_lib_save_LIBS=$LIBS
18847 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18849 /* end confdefs.h.  */
18850
18851 /* Override any GCC internal prototype to avoid an error.
18852    Use char because int might match the return type of a GCC
18853    builtin and then its argument prototype would still apply.  */
18854 #ifdef __cplusplus
18855 extern "C"
18856 #endif
18857 char gss_krb5_ccache_name ();
18858 int
18859 main ()
18860 {
18861 return gss_krb5_ccache_name ();
18862   ;
18863   return 0;
18864 }
18865 _ACEOF
18866 if ac_fn_c_try_link "$LINENO"; then :
18867   eval "$as_ac_Lib=yes"
18868 else
18869   eval "$as_ac_Lib=no"
18870 fi
18871 rm -f core conftest.err conftest.$ac_objext \
18872     conftest$ac_exeext conftest.$ac_ext
18873 LIBS=$ac_check_lib_save_LIBS
18874 fi
18875 eval ac_res=\$$as_ac_Lib
18876                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18877 $as_echo "$ac_res" >&6; }
18878 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18879
18880 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18881
18882 fi
18883
18884   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_free_lucid_sec_context" | $as_tr_sh`
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_free_lucid_sec_context in -l$gssapi_lib" >&5
18886 $as_echo_n "checking for gss_krb5_free_lucid_sec_context in -l$gssapi_lib... " >&6; }
18887 if eval \${$as_ac_Lib+:} false; then :
18888   $as_echo_n "(cached) " >&6
18889 else
18890   ac_check_lib_save_LIBS=$LIBS
18891 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18893 /* end confdefs.h.  */
18894
18895 /* Override any GCC internal prototype to avoid an error.
18896    Use char because int might match the return type of a GCC
18897    builtin and then its argument prototype would still apply.  */
18898 #ifdef __cplusplus
18899 extern "C"
18900 #endif
18901 char gss_krb5_free_lucid_sec_context ();
18902 int
18903 main ()
18904 {
18905 return gss_krb5_free_lucid_sec_context ();
18906   ;
18907   return 0;
18908 }
18909 _ACEOF
18910 if ac_fn_c_try_link "$LINENO"; then :
18911   eval "$as_ac_Lib=yes"
18912 else
18913   eval "$as_ac_Lib=no"
18914 fi
18915 rm -f core conftest.err conftest.$ac_objext \
18916     conftest$ac_exeext conftest.$ac_ext
18917 LIBS=$ac_check_lib_save_LIBS
18918 fi
18919 eval ac_res=\$$as_ac_Lib
18920                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18921 $as_echo "$ac_res" >&6; }
18922 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18923
18924 $as_echo "#define HAVE_GSS_KRB5_FREE_LUCID_SEC_CONTEXT 1" >>confdefs.h
18925
18926 fi
18927
18928
18929     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_error_message in -l$gssapi_lib" >&5
18931 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
18932 if eval \${$as_ac_Lib+:} false; then :
18933   $as_echo_n "(cached) " >&6
18934 else
18935   ac_check_lib_save_LIBS=$LIBS
18936 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h.  */
18939
18940 /* Override any GCC internal prototype to avoid an error.
18941    Use char because int might match the return type of a GCC
18942    builtin and then its argument prototype would still apply.  */
18943 #ifdef __cplusplus
18944 extern "C"
18945 #endif
18946 char krb5_get_error_message ();
18947 int
18948 main ()
18949 {
18950 return krb5_get_error_message ();
18951   ;
18952   return 0;
18953 }
18954 _ACEOF
18955 if ac_fn_c_try_link "$LINENO"; then :
18956   eval "$as_ac_Lib=yes"
18957 else
18958   eval "$as_ac_Lib=no"
18959 fi
18960 rm -f core conftest.err conftest.$ac_objext \
18961     conftest$ac_exeext conftest.$ac_ext
18962 LIBS=$ac_check_lib_save_LIBS
18963 fi
18964 eval ac_res=\$$as_ac_Lib
18965                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18966 $as_echo "$ac_res" >&6; }
18967 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18968
18969 $as_echo "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
18970
18971 fi
18972
18973
18974     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
18976 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
18977 if eval \${$as_ac_Lib+:} false; then :
18978   $as_echo_n "(cached) " >&6
18979 else
18980   ac_check_lib_save_LIBS=$LIBS
18981 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h.  */
18984
18985 /* Override any GCC internal prototype to avoid an error.
18986    Use char because int might match the return type of a GCC
18987    builtin and then its argument prototype would still apply.  */
18988 #ifdef __cplusplus
18989 extern "C"
18990 #endif
18991 char krb5_get_init_creds_opt_set_addressless ();
18992 int
18993 main ()
18994 {
18995 return krb5_get_init_creds_opt_set_addressless ();
18996   ;
18997   return 0;
18998 }
18999 _ACEOF
19000 if ac_fn_c_try_link "$LINENO"; then :
19001   eval "$as_ac_Lib=yes"
19002 else
19003   eval "$as_ac_Lib=no"
19004 fi
19005 rm -f core conftest.err conftest.$ac_objext \
19006     conftest$ac_exeext conftest.$ac_ext
19007 LIBS=$ac_check_lib_save_LIBS
19008 fi
19009 eval ac_res=\$$as_ac_Lib
19010                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19011 $as_echo "$ac_res" >&6; }
19012 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19013
19014 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1" >>confdefs.h
19015
19016 fi
19017
19018
19019     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
19020     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
19021 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
19022   fi
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036     if test "$enable_tirpc" = no; then
19037
19038         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_create_default in -lrpcsecgss" >&5
19039 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
19040 if ${ac_cv_lib_rpcsecgss_authgss_create_default+:} false; then :
19041   $as_echo_n "(cached) " >&6
19042 else
19043   ac_check_lib_save_LIBS=$LIBS
19044 LIBS="-lrpcsecgss  $LIBS"
19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h.  */
19047
19048 /* Override any GCC internal prototype to avoid an error.
19049    Use char because int might match the return type of a GCC
19050    builtin and then its argument prototype would still apply.  */
19051 #ifdef __cplusplus
19052 extern "C"
19053 #endif
19054 char authgss_create_default ();
19055 int
19056 main ()
19057 {
19058 return authgss_create_default ();
19059   ;
19060   return 0;
19061 }
19062 _ACEOF
19063 if ac_fn_c_try_link "$LINENO"; then :
19064   ac_cv_lib_rpcsecgss_authgss_create_default=yes
19065 else
19066   ac_cv_lib_rpcsecgss_authgss_create_default=no
19067 fi
19068 rm -f core conftest.err conftest.$ac_objext \
19069     conftest$ac_exeext conftest.$ac_ext
19070 LIBS=$ac_check_lib_save_LIBS
19071 fi
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
19073 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
19074 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = xyes; then :
19075   librpcsecgss=1
19076 else
19077   as_fn_error $? "librpcsecgss not found." "$LINENO" 5
19078 fi
19079
19080
19081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_set_debug_level in -lrpcsecgss" >&5
19082 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
19083 if ${ac_cv_lib_rpcsecgss_authgss_set_debug_level+:} false; then :
19084   $as_echo_n "(cached) " >&6
19085 else
19086   ac_check_lib_save_LIBS=$LIBS
19087 LIBS="-lrpcsecgss  $LIBS"
19088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19089 /* end confdefs.h.  */
19090
19091 /* Override any GCC internal prototype to avoid an error.
19092    Use char because int might match the return type of a GCC
19093    builtin and then its argument prototype would still apply.  */
19094 #ifdef __cplusplus
19095 extern "C"
19096 #endif
19097 char authgss_set_debug_level ();
19098 int
19099 main ()
19100 {
19101 return authgss_set_debug_level ();
19102   ;
19103   return 0;
19104 }
19105 _ACEOF
19106 if ac_fn_c_try_link "$LINENO"; then :
19107   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
19108 else
19109   ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
19110 fi
19111 rm -f core conftest.err conftest.$ac_objext \
19112     conftest$ac_exeext conftest.$ac_ext
19113 LIBS=$ac_check_lib_save_LIBS
19114 fi
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
19116 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
19117 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = xyes; then :
19118
19119 $as_echo "#define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1" >>confdefs.h
19120
19121 fi
19122
19123
19124
19125 $as_echo "#define HAVE_AUTHGSS_FREE_PRIVATE_DATA 1" >>confdefs.h
19126
19127   fi
19128
19129
19130
19131       if test "$enable_gss" = yes; then
19132
19133
19134
19135
19136
19137
19138
19139 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19140         if test -n "$ac_tool_prefix"; then
19141   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19142 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19144 $as_echo_n "checking for $ac_word... " >&6; }
19145 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19146   $as_echo_n "(cached) " >&6
19147 else
19148   case $PKG_CONFIG in
19149   [\\/]* | ?:[\\/]*)
19150   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19151   ;;
19152   *)
19153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19154 for as_dir in $PATH
19155 do
19156   IFS=$as_save_IFS
19157   test -z "$as_dir" && as_dir=.
19158     for ac_exec_ext in '' $ac_executable_extensions; do
19159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19160     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19162     break 2
19163   fi
19164 done
19165   done
19166 IFS=$as_save_IFS
19167
19168   ;;
19169 esac
19170 fi
19171 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19172 if test -n "$PKG_CONFIG"; then
19173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19174 $as_echo "$PKG_CONFIG" >&6; }
19175 else
19176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19177 $as_echo "no" >&6; }
19178 fi
19179
19180
19181 fi
19182 if test -z "$ac_cv_path_PKG_CONFIG"; then
19183   ac_pt_PKG_CONFIG=$PKG_CONFIG
19184   # Extract the first word of "pkg-config", so it can be a program name with args.
19185 set dummy pkg-config; ac_word=$2
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19187 $as_echo_n "checking for $ac_word... " >&6; }
19188 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19189   $as_echo_n "(cached) " >&6
19190 else
19191   case $ac_pt_PKG_CONFIG in
19192   [\\/]* | ?:[\\/]*)
19193   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19194   ;;
19195   *)
19196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19197 for as_dir in $PATH
19198 do
19199   IFS=$as_save_IFS
19200   test -z "$as_dir" && as_dir=.
19201     for ac_exec_ext in '' $ac_executable_extensions; do
19202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19203     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19205     break 2
19206   fi
19207 done
19208   done
19209 IFS=$as_save_IFS
19210
19211   ;;
19212 esac
19213 fi
19214 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19215 if test -n "$ac_pt_PKG_CONFIG"; then
19216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19217 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19218 else
19219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19220 $as_echo "no" >&6; }
19221 fi
19222
19223   if test "x$ac_pt_PKG_CONFIG" = x; then
19224     PKG_CONFIG=""
19225   else
19226     case $cross_compiling:$ac_tool_warned in
19227 yes:)
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19230 ac_tool_warned=yes ;;
19231 esac
19232     PKG_CONFIG=$ac_pt_PKG_CONFIG
19233   fi
19234 else
19235   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19236 fi
19237
19238 fi
19239 if test -n "$PKG_CONFIG"; then
19240         _pkg_min_version=0.9.0
19241         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19242 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19243         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19244                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19245 $as_echo "yes" >&6; }
19246         else
19247                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19248 $as_echo "no" >&6; }
19249                 PKG_CONFIG=""
19250         fi
19251 fi
19252
19253
19254
19255 # Check whether --with-gssglue was given.
19256 if test "${with_gssglue+set}" = set; then :
19257   withval=$with_gssglue;
19258 fi
19259
19260   if test x"$with_gssglue" = x"yes"; then
19261
19262 pkg_failed=no
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSGLUE" >&5
19264 $as_echo_n "checking for GSSGLUE... " >&6; }
19265
19266 if test -n "$GSSGLUE_CFLAGS"; then
19267     pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
19268  elif test -n "$PKG_CONFIG"; then
19269     if test -n "$PKG_CONFIG" && \
19270     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.3\""; } >&5
19271   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.3") 2>&5
19272   ac_status=$?
19273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19274   test $ac_status = 0; }; then
19275   pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.3" 2>/dev/null`
19276                       test "x$?" != "x0" && pkg_failed=yes
19277 else
19278   pkg_failed=yes
19279 fi
19280  else
19281     pkg_failed=untried
19282 fi
19283 if test -n "$GSSGLUE_LIBS"; then
19284     pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
19285  elif test -n "$PKG_CONFIG"; then
19286     if test -n "$PKG_CONFIG" && \
19287     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.3\""; } >&5
19288   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.3") 2>&5
19289   ac_status=$?
19290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19291   test $ac_status = 0; }; then
19292   pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.3" 2>/dev/null`
19293                       test "x$?" != "x0" && pkg_failed=yes
19294 else
19295   pkg_failed=yes
19296 fi
19297  else
19298     pkg_failed=untried
19299 fi
19300
19301
19302
19303 if test $pkg_failed = yes; then
19304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305 $as_echo "no" >&6; }
19306
19307 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19308         _pkg_short_errors_supported=yes
19309 else
19310         _pkg_short_errors_supported=no
19311 fi
19312         if test $_pkg_short_errors_supported = yes; then
19313                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgssglue >= 0.3" 2>&1`
19314         else
19315                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgssglue >= 0.3" 2>&1`
19316         fi
19317         # Put the nasty error message in config.log where it belongs
19318         echo "$GSSGLUE_PKG_ERRORS" >&5
19319
19320         as_fn_error $? "Package requirements (libgssglue >= 0.3) were not met:
19321
19322 $GSSGLUE_PKG_ERRORS
19323
19324 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19325 installed software in a non-standard prefix.
19326
19327 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19328 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19329 See the pkg-config man page for more details." "$LINENO" 5
19330 elif test $pkg_failed = untried; then
19331         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19332 $as_echo "no" >&6; }
19333         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19335 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19336 is in your PATH or set the PKG_CONFIG environment variable to the full
19337 path to pkg-config.
19338
19339 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19340 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19341 See the pkg-config man page for more details.
19342
19343 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19344 See \`config.log' for more details" "$LINENO" 5; }
19345 else
19346         GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
19347         GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
19348         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19349 $as_echo "yes" >&6; }
19350
19351 fi
19352     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_set_allowable_enctypes in -lgssglue" >&5
19353 $as_echo_n "checking for gss_set_allowable_enctypes in -lgssglue... " >&6; }
19354 if ${ac_cv_lib_gssglue_gss_set_allowable_enctypes+:} false; then :
19355   $as_echo_n "(cached) " >&6
19356 else
19357   ac_check_lib_save_LIBS=$LIBS
19358 LIBS="-lgssglue  $LIBS"
19359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360 /* end confdefs.h.  */
19361
19362 /* Override any GCC internal prototype to avoid an error.
19363    Use char because int might match the return type of a GCC
19364    builtin and then its argument prototype would still apply.  */
19365 #ifdef __cplusplus
19366 extern "C"
19367 #endif
19368 char gss_set_allowable_enctypes ();
19369 int
19370 main ()
19371 {
19372 return gss_set_allowable_enctypes ();
19373   ;
19374   return 0;
19375 }
19376 _ACEOF
19377 if ac_fn_c_try_link "$LINENO"; then :
19378   ac_cv_lib_gssglue_gss_set_allowable_enctypes=yes
19379 else
19380   ac_cv_lib_gssglue_gss_set_allowable_enctypes=no
19381 fi
19382 rm -f core conftest.err conftest.$ac_objext \
19383     conftest$ac_exeext conftest.$ac_ext
19384 LIBS=$ac_check_lib_save_LIBS
19385 fi
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssglue_gss_set_allowable_enctypes" >&5
19387 $as_echo "$ac_cv_lib_gssglue_gss_set_allowable_enctypes" >&6; }
19388 if test "x$ac_cv_lib_gssglue_gss_set_allowable_enctypes" = xyes; then :
19389   cat >>confdefs.h <<_ACEOF
19390 #define HAVE_LIBGSSGLUE 1
19391 _ACEOF
19392
19393   LIBS="-lgssglue $LIBS"
19394
19395 fi
19396
19397   fi
19398
19399     if test "$enable_tirpc" = no; then
19400
19401 pkg_failed=no
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPCSECGSS" >&5
19403 $as_echo_n "checking for RPCSECGSS... " >&6; }
19404
19405 if test -n "$RPCSECGSS_CFLAGS"; then
19406     pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
19407  elif test -n "$PKG_CONFIG"; then
19408     if test -n "$PKG_CONFIG" && \
19409     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
19410   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
19411   ac_status=$?
19412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19413   test $ac_status = 0; }; then
19414   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
19415                       test "x$?" != "x0" && pkg_failed=yes
19416 else
19417   pkg_failed=yes
19418 fi
19419  else
19420     pkg_failed=untried
19421 fi
19422 if test -n "$RPCSECGSS_LIBS"; then
19423     pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
19424  elif test -n "$PKG_CONFIG"; then
19425     if test -n "$PKG_CONFIG" && \
19426     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
19427   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
19428   ac_status=$?
19429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19430   test $ac_status = 0; }; then
19431   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
19432                       test "x$?" != "x0" && pkg_failed=yes
19433 else
19434   pkg_failed=yes
19435 fi
19436  else
19437     pkg_failed=untried
19438 fi
19439
19440
19441
19442 if test $pkg_failed = yes; then
19443         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19444 $as_echo "no" >&6; }
19445
19446 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19447         _pkg_short_errors_supported=yes
19448 else
19449         _pkg_short_errors_supported=no
19450 fi
19451         if test $_pkg_short_errors_supported = yes; then
19452                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librpcsecgss >= 0.16" 2>&1`
19453         else
19454                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librpcsecgss >= 0.16" 2>&1`
19455         fi
19456         # Put the nasty error message in config.log where it belongs
19457         echo "$RPCSECGSS_PKG_ERRORS" >&5
19458
19459         as_fn_error $? "Package requirements (librpcsecgss >= 0.16) were not met:
19460
19461 $RPCSECGSS_PKG_ERRORS
19462
19463 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19464 installed software in a non-standard prefix.
19465
19466 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
19467 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
19468 See the pkg-config man page for more details." "$LINENO" 5
19469 elif test $pkg_failed = untried; then
19470         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19471 $as_echo "no" >&6; }
19472         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19474 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19475 is in your PATH or set the PKG_CONFIG environment variable to the full
19476 path to pkg-config.
19477
19478 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
19479 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
19480 See the pkg-config man page for more details.
19481
19482 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19483 See \`config.log' for more details" "$LINENO" 5; }
19484 else
19485         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
19486         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
19487         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19488 $as_echo "yes" >&6; }
19489
19490 fi
19491   fi
19492
19493
19494     if test x"$GSSGLUE_LIBS" != x""; then
19495       GSSAPI_CFLAGS=$GSSGLUE_CFLAGS
19496       GSSAPI_LIBS=$GSSGLUE_LIBS
19497     else
19498       GSSAPI_CFLAGS=$GSSKRB_CFLAGS
19499       GSSAPI_LIBS=$GSSKRB_LIBS
19500     fi
19501
19502
19503   fi
19504 fi
19505
19506
19507
19508   if test "$enable_ipv6" = yes; then
19509
19510         if test "$enable_tirpc" = no; then
19511       as_fn_error $? "'--enable-ipv6' requires TIRPC support." "$LINENO" 5
19512     fi
19513
19514         for ac_func in getifaddrs getnameinfo
19515 do :
19516   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19517 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19518 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19519   cat >>confdefs.h <<_ACEOF
19520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19521 _ACEOF
19522
19523 else
19524   as_fn_error $? "Missing library functions needed for IPv6." "$LINENO" 5
19525 fi
19526 done
19527
19528
19529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindresvport_sa in -ltirpc" >&5
19530 $as_echo_n "checking for bindresvport_sa in -ltirpc... " >&6; }
19531 if ${ac_cv_lib_tirpc_bindresvport_sa+:} false; then :
19532   $as_echo_n "(cached) " >&6
19533 else
19534   ac_check_lib_save_LIBS=$LIBS
19535 LIBS="-ltirpc  $LIBS"
19536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19537 /* end confdefs.h.  */
19538
19539 /* Override any GCC internal prototype to avoid an error.
19540    Use char because int might match the return type of a GCC
19541    builtin and then its argument prototype would still apply.  */
19542 #ifdef __cplusplus
19543 extern "C"
19544 #endif
19545 char bindresvport_sa ();
19546 int
19547 main ()
19548 {
19549 return bindresvport_sa ();
19550   ;
19551   return 0;
19552 }
19553 _ACEOF
19554 if ac_fn_c_try_link "$LINENO"; then :
19555   ac_cv_lib_tirpc_bindresvport_sa=yes
19556 else
19557   ac_cv_lib_tirpc_bindresvport_sa=no
19558 fi
19559 rm -f core conftest.err conftest.$ac_objext \
19560     conftest$ac_exeext conftest.$ac_ext
19561 LIBS=$ac_check_lib_save_LIBS
19562 fi
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_bindresvport_sa" >&5
19564 $as_echo "$ac_cv_lib_tirpc_bindresvport_sa" >&6; }
19565 if test "x$ac_cv_lib_tirpc_bindresvport_sa" = xyes; then :
19566   :
19567 else
19568   as_fn_error $? "Missing library functions needed for IPv6." "$LINENO" 5
19569 fi
19570
19571   fi
19572
19573
19574
19575 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
19576                  malloc.h memory.h netdb.h netinet/in.h paths.h \
19577                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
19578                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
19579                  syslog.h unistd.h com_err.h et/com_err.h \
19580                  ifaddrs.h nfs-plugin.h libio.h
19581 do :
19582   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19583 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19584 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19585   cat >>confdefs.h <<_ACEOF
19586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19587 _ACEOF
19588
19589 fi
19590
19591 done
19592
19593
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19595 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19596 if ${ac_cv_c_const+:} false; then :
19597   $as_echo_n "(cached) " >&6
19598 else
19599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19600 /* end confdefs.h.  */
19601
19602 int
19603 main ()
19604 {
19605
19606 #ifndef __cplusplus
19607   /* Ultrix mips cc rejects this sort of thing.  */
19608   typedef int charset[2];
19609   const charset cs = { 0, 0 };
19610   /* SunOS 4.1.1 cc rejects this.  */
19611   char const *const *pcpcc;
19612   char **ppc;
19613   /* NEC SVR4.0.2 mips cc rejects this.  */
19614   struct point {int x, y;};
19615   static struct point const zero = {0,0};
19616   /* AIX XL C 1.02.0.0 rejects this.
19617      It does not let you subtract one const X* pointer from another in
19618      an arm of an if-expression whose if-part is not a constant
19619      expression */
19620   const char *g = "string";
19621   pcpcc = &g + (g ? g-g : 0);
19622   /* HPUX 7.0 cc rejects these. */
19623   ++pcpcc;
19624   ppc = (char**) pcpcc;
19625   pcpcc = (char const *const *) ppc;
19626   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19627     char tx;
19628     char *t = &tx;
19629     char const *s = 0 ? (char *) 0 : (char const *) 0;
19630
19631     *t++ = 0;
19632     if (s) return 0;
19633   }
19634   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19635     int x[] = {25, 17};
19636     const int *foo = &x[0];
19637     ++foo;
19638   }
19639   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19640     typedef const int *iptr;
19641     iptr p = 0;
19642     ++p;
19643   }
19644   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19645        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19646     struct s { int j; const int *ap[3]; } bx;
19647     struct s *b = &bx; b->j = 5;
19648   }
19649   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19650     const int foo = 10;
19651     if (!foo) return 0;
19652   }
19653   return !cs[0] && !zero.x;
19654 #endif
19655
19656   ;
19657   return 0;
19658 }
19659 _ACEOF
19660 if ac_fn_c_try_compile "$LINENO"; then :
19661   ac_cv_c_const=yes
19662 else
19663   ac_cv_c_const=no
19664 fi
19665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19666 fi
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19668 $as_echo "$ac_cv_c_const" >&6; }
19669 if test $ac_cv_c_const = no; then
19670
19671 $as_echo "#define const /**/" >>confdefs.h
19672
19673 fi
19674
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19676 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19677 if ${ac_cv_type_uid_t+:} false; then :
19678   $as_echo_n "(cached) " >&6
19679 else
19680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h.  */
19682 #include <sys/types.h>
19683
19684 _ACEOF
19685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19686   $EGREP "uid_t" >/dev/null 2>&1; then :
19687   ac_cv_type_uid_t=yes
19688 else
19689   ac_cv_type_uid_t=no
19690 fi
19691 rm -f conftest*
19692
19693 fi
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19695 $as_echo "$ac_cv_type_uid_t" >&6; }
19696 if test $ac_cv_type_uid_t = no; then
19697
19698 $as_echo "#define uid_t int" >>confdefs.h
19699
19700
19701 $as_echo "#define gid_t int" >>confdefs.h
19702
19703 fi
19704
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19706 $as_echo_n "checking for inline... " >&6; }
19707 if ${ac_cv_c_inline+:} false; then :
19708   $as_echo_n "(cached) " >&6
19709 else
19710   ac_cv_c_inline=no
19711 for ac_kw in inline __inline__ __inline; do
19712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713 /* end confdefs.h.  */
19714 #ifndef __cplusplus
19715 typedef int foo_t;
19716 static $ac_kw foo_t static_foo () {return 0; }
19717 $ac_kw foo_t foo () {return 0; }
19718 #endif
19719
19720 _ACEOF
19721 if ac_fn_c_try_compile "$LINENO"; then :
19722   ac_cv_c_inline=$ac_kw
19723 fi
19724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19725   test "$ac_cv_c_inline" != no && break
19726 done
19727
19728 fi
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19730 $as_echo "$ac_cv_c_inline" >&6; }
19731
19732 case $ac_cv_c_inline in
19733   inline | yes) ;;
19734   *)
19735     case $ac_cv_c_inline in
19736       no) ac_val=;;
19737       *) ac_val=$ac_cv_c_inline;;
19738     esac
19739     cat >>confdefs.h <<_ACEOF
19740 #ifndef __cplusplus
19741 #define inline $ac_val
19742 #endif
19743 _ACEOF
19744     ;;
19745 esac
19746
19747 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19748 if test "x$ac_cv_type_off_t" = xyes; then :
19749
19750 else
19751
19752 cat >>confdefs.h <<_ACEOF
19753 #define off_t long int
19754 _ACEOF
19755
19756 fi
19757
19758 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19759 if test "x$ac_cv_type_pid_t" = xyes; then :
19760
19761 else
19762
19763 cat >>confdefs.h <<_ACEOF
19764 #define pid_t int
19765 _ACEOF
19766
19767 fi
19768
19769 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19770 if test "x$ac_cv_type_size_t" = xyes; then :
19771
19772 else
19773
19774 cat >>confdefs.h <<_ACEOF
19775 #define size_t unsigned int
19776 _ACEOF
19777
19778 fi
19779
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19781 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19782 if ${ac_cv_header_time+:} false; then :
19783   $as_echo_n "(cached) " >&6
19784 else
19785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19786 /* end confdefs.h.  */
19787 #include <sys/types.h>
19788 #include <sys/time.h>
19789 #include <time.h>
19790
19791 int
19792 main ()
19793 {
19794 if ((struct tm *) 0)
19795 return 0;
19796   ;
19797   return 0;
19798 }
19799 _ACEOF
19800 if ac_fn_c_try_compile "$LINENO"; then :
19801   ac_cv_header_time=yes
19802 else
19803   ac_cv_header_time=no
19804 fi
19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806 fi
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19808 $as_echo "$ac_cv_header_time" >&6; }
19809 if test $ac_cv_header_time = yes; then
19810
19811 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19812
19813 fi
19814
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19816 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19817 if ${ac_cv_struct_tm+:} false; then :
19818   $as_echo_n "(cached) " >&6
19819 else
19820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19821 /* end confdefs.h.  */
19822 #include <sys/types.h>
19823 #include <time.h>
19824
19825 int
19826 main ()
19827 {
19828 struct tm tm;
19829                                      int *p = &tm.tm_sec;
19830                                      return !p;
19831   ;
19832   return 0;
19833 }
19834 _ACEOF
19835 if ac_fn_c_try_compile "$LINENO"; then :
19836   ac_cv_struct_tm=time.h
19837 else
19838   ac_cv_struct_tm=sys/time.h
19839 fi
19840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19841 fi
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19843 $as_echo "$ac_cv_struct_tm" >&6; }
19844 if test $ac_cv_struct_tm = sys/time.h; then
19845
19846 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19847
19848 fi
19849
19850
19851 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19852 # for constant arguments.  Useless!
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19854 $as_echo_n "checking for working alloca.h... " >&6; }
19855 if ${ac_cv_working_alloca_h+:} false; then :
19856   $as_echo_n "(cached) " >&6
19857 else
19858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19859 /* end confdefs.h.  */
19860 #include <alloca.h>
19861 int
19862 main ()
19863 {
19864 char *p = (char *) alloca (2 * sizeof (int));
19865                           if (p) return 0;
19866   ;
19867   return 0;
19868 }
19869 _ACEOF
19870 if ac_fn_c_try_link "$LINENO"; then :
19871   ac_cv_working_alloca_h=yes
19872 else
19873   ac_cv_working_alloca_h=no
19874 fi
19875 rm -f core conftest.err conftest.$ac_objext \
19876     conftest$ac_exeext conftest.$ac_ext
19877 fi
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19879 $as_echo "$ac_cv_working_alloca_h" >&6; }
19880 if test $ac_cv_working_alloca_h = yes; then
19881
19882 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19883
19884 fi
19885
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19887 $as_echo_n "checking for alloca... " >&6; }
19888 if ${ac_cv_func_alloca_works+:} false; then :
19889   $as_echo_n "(cached) " >&6
19890 else
19891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h.  */
19893 #ifdef __GNUC__
19894 # define alloca __builtin_alloca
19895 #else
19896 # ifdef _MSC_VER
19897 #  include <malloc.h>
19898 #  define alloca _alloca
19899 # else
19900 #  ifdef HAVE_ALLOCA_H
19901 #   include <alloca.h>
19902 #  else
19903 #   ifdef _AIX
19904  #pragma alloca
19905 #   else
19906 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19907 void *alloca (size_t);
19908 #    endif
19909 #   endif
19910 #  endif
19911 # endif
19912 #endif
19913
19914 int
19915 main ()
19916 {
19917 char *p = (char *) alloca (1);
19918                                     if (p) return 0;
19919   ;
19920   return 0;
19921 }
19922 _ACEOF
19923 if ac_fn_c_try_link "$LINENO"; then :
19924   ac_cv_func_alloca_works=yes
19925 else
19926   ac_cv_func_alloca_works=no
19927 fi
19928 rm -f core conftest.err conftest.$ac_objext \
19929     conftest$ac_exeext conftest.$ac_ext
19930 fi
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19932 $as_echo "$ac_cv_func_alloca_works" >&6; }
19933
19934 if test $ac_cv_func_alloca_works = yes; then
19935
19936 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19937
19938 else
19939   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19940 # that cause trouble.  Some versions do not even contain alloca or
19941 # contain a buggy version.  If you still want to use their alloca,
19942 # use ar to extract alloca.o from them instead of compiling alloca.c.
19943
19944 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19945
19946 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19947
19948
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19950 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19951 if ${ac_cv_os_cray+:} false; then :
19952   $as_echo_n "(cached) " >&6
19953 else
19954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19955 /* end confdefs.h.  */
19956 #if defined CRAY && ! defined CRAY2
19957 webecray
19958 #else
19959 wenotbecray
19960 #endif
19961
19962 _ACEOF
19963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19964   $EGREP "webecray" >/dev/null 2>&1; then :
19965   ac_cv_os_cray=yes
19966 else
19967   ac_cv_os_cray=no
19968 fi
19969 rm -f conftest*
19970
19971 fi
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19973 $as_echo "$ac_cv_os_cray" >&6; }
19974 if test $ac_cv_os_cray = yes; then
19975   for ac_func in _getb67 GETB67 getb67; do
19976     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19978 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19979
19980 cat >>confdefs.h <<_ACEOF
19981 #define CRAY_STACKSEG_END $ac_func
19982 _ACEOF
19983
19984     break
19985 fi
19986
19987   done
19988 fi
19989
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19991 $as_echo_n "checking stack direction for C alloca... " >&6; }
19992 if ${ac_cv_c_stack_direction+:} false; then :
19993   $as_echo_n "(cached) " >&6
19994 else
19995   if test "$cross_compiling" = yes; then :
19996   ac_cv_c_stack_direction=0
19997 else
19998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19999 /* end confdefs.h.  */
20000 $ac_includes_default
20001 int
20002 find_stack_direction (int *addr, int depth)
20003 {
20004   int dir, dummy = 0;
20005   if (! addr)
20006     addr = &dummy;
20007   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
20008   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
20009   return dir + dummy;
20010 }
20011
20012 int
20013 main (int argc, char **argv)
20014 {
20015   return find_stack_direction (0, argc + !argv + 20) < 0;
20016 }
20017 _ACEOF
20018 if ac_fn_c_try_run "$LINENO"; then :
20019   ac_cv_c_stack_direction=1
20020 else
20021   ac_cv_c_stack_direction=-1
20022 fi
20023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20024   conftest.$ac_objext conftest.beam conftest.$ac_ext
20025 fi
20026
20027 fi
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20029 $as_echo "$ac_cv_c_stack_direction" >&6; }
20030 cat >>confdefs.h <<_ACEOF
20031 #define STACK_DIRECTION $ac_cv_c_stack_direction
20032 _ACEOF
20033
20034
20035 fi
20036
20037 ac_header_dirent=no
20038 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20039   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20041 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20042 if eval \${$as_ac_Header+:} false; then :
20043   $as_echo_n "(cached) " >&6
20044 else
20045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20046 /* end confdefs.h.  */
20047 #include <sys/types.h>
20048 #include <$ac_hdr>
20049
20050 int
20051 main ()
20052 {
20053 if ((DIR *) 0)
20054 return 0;
20055   ;
20056   return 0;
20057 }
20058 _ACEOF
20059 if ac_fn_c_try_compile "$LINENO"; then :
20060   eval "$as_ac_Header=yes"
20061 else
20062   eval "$as_ac_Header=no"
20063 fi
20064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20065 fi
20066 eval ac_res=\$$as_ac_Header
20067                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20068 $as_echo "$ac_res" >&6; }
20069 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20070   cat >>confdefs.h <<_ACEOF
20071 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20072 _ACEOF
20073
20074 ac_header_dirent=$ac_hdr; break
20075 fi
20076
20077 done
20078 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20079 if test $ac_header_dirent = dirent.h; then
20080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20081 $as_echo_n "checking for library containing opendir... " >&6; }
20082 if ${ac_cv_search_opendir+:} false; then :
20083   $as_echo_n "(cached) " >&6
20084 else
20085   ac_func_search_save_LIBS=$LIBS
20086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20087 /* end confdefs.h.  */
20088
20089 /* Override any GCC internal prototype to avoid an error.
20090    Use char because int might match the return type of a GCC
20091    builtin and then its argument prototype would still apply.  */
20092 #ifdef __cplusplus
20093 extern "C"
20094 #endif
20095 char opendir ();
20096 int
20097 main ()
20098 {
20099 return opendir ();
20100   ;
20101   return 0;
20102 }
20103 _ACEOF
20104 for ac_lib in '' dir; do
20105   if test -z "$ac_lib"; then
20106     ac_res="none required"
20107   else
20108     ac_res=-l$ac_lib
20109     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20110   fi
20111   if ac_fn_c_try_link "$LINENO"; then :
20112   ac_cv_search_opendir=$ac_res
20113 fi
20114 rm -f core conftest.err conftest.$ac_objext \
20115     conftest$ac_exeext
20116   if ${ac_cv_search_opendir+:} false; then :
20117   break
20118 fi
20119 done
20120 if ${ac_cv_search_opendir+:} false; then :
20121
20122 else
20123   ac_cv_search_opendir=no
20124 fi
20125 rm conftest.$ac_ext
20126 LIBS=$ac_func_search_save_LIBS
20127 fi
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20129 $as_echo "$ac_cv_search_opendir" >&6; }
20130 ac_res=$ac_cv_search_opendir
20131 if test "$ac_res" != no; then :
20132   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20133
20134 fi
20135
20136 else
20137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20138 $as_echo_n "checking for library containing opendir... " >&6; }
20139 if ${ac_cv_search_opendir+:} false; then :
20140   $as_echo_n "(cached) " >&6
20141 else
20142   ac_func_search_save_LIBS=$LIBS
20143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h.  */
20145
20146 /* Override any GCC internal prototype to avoid an error.
20147    Use char because int might match the return type of a GCC
20148    builtin and then its argument prototype would still apply.  */
20149 #ifdef __cplusplus
20150 extern "C"
20151 #endif
20152 char opendir ();
20153 int
20154 main ()
20155 {
20156 return opendir ();
20157   ;
20158   return 0;
20159 }
20160 _ACEOF
20161 for ac_lib in '' x; do
20162   if test -z "$ac_lib"; then
20163     ac_res="none required"
20164   else
20165     ac_res=-l$ac_lib
20166     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20167   fi
20168   if ac_fn_c_try_link "$LINENO"; then :
20169   ac_cv_search_opendir=$ac_res
20170 fi
20171 rm -f core conftest.err conftest.$ac_objext \
20172     conftest$ac_exeext
20173   if ${ac_cv_search_opendir+:} false; then :
20174   break
20175 fi
20176 done
20177 if ${ac_cv_search_opendir+:} false; then :
20178
20179 else
20180   ac_cv_search_opendir=no
20181 fi
20182 rm conftest.$ac_ext
20183 LIBS=$ac_func_search_save_LIBS
20184 fi
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20186 $as_echo "$ac_cv_search_opendir" >&6; }
20187 ac_res=$ac_cv_search_opendir
20188 if test "$ac_res" != no; then :
20189   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20190
20191 fi
20192
20193 fi
20194
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
20196 $as_echo_n "checking whether closedir returns void... " >&6; }
20197 if ${ac_cv_func_closedir_void+:} false; then :
20198   $as_echo_n "(cached) " >&6
20199 else
20200   if test "$cross_compiling" = yes; then :
20201   ac_cv_func_closedir_void=yes
20202 else
20203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20204 /* end confdefs.h.  */
20205 $ac_includes_default
20206 #include <$ac_header_dirent>
20207 #ifndef __cplusplus
20208 int closedir ();
20209 #endif
20210
20211 int
20212 main ()
20213 {
20214 return closedir (opendir (".")) != 0;
20215   ;
20216   return 0;
20217 }
20218 _ACEOF
20219 if ac_fn_c_try_run "$LINENO"; then :
20220   ac_cv_func_closedir_void=no
20221 else
20222   ac_cv_func_closedir_void=yes
20223 fi
20224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20225   conftest.$ac_objext conftest.beam conftest.$ac_ext
20226 fi
20227
20228 fi
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
20230 $as_echo "$ac_cv_func_closedir_void" >&6; }
20231 if test $ac_cv_func_closedir_void = yes; then
20232
20233 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
20234
20235 fi
20236
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
20238 $as_echo_n "checking for error_at_line... " >&6; }
20239 if ${ac_cv_lib_error_at_line+:} false; then :
20240   $as_echo_n "(cached) " >&6
20241 else
20242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20243 /* end confdefs.h.  */
20244 #include <error.h>
20245 int
20246 main ()
20247 {
20248 error_at_line (0, 0, "", 0, "an error occurred");
20249   ;
20250   return 0;
20251 }
20252 _ACEOF
20253 if ac_fn_c_try_link "$LINENO"; then :
20254   ac_cv_lib_error_at_line=yes
20255 else
20256   ac_cv_lib_error_at_line=no
20257 fi
20258 rm -f core conftest.err conftest.$ac_objext \
20259     conftest$ac_exeext conftest.$ac_ext
20260 fi
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
20262 $as_echo "$ac_cv_lib_error_at_line" >&6; }
20263 if test $ac_cv_lib_error_at_line = no; then
20264   case " $LIBOBJS " in
20265   *" error.$ac_objext "* ) ;;
20266   *) LIBOBJS="$LIBOBJS error.$ac_objext"
20267  ;;
20268 esac
20269
20270 fi
20271
20272 for ac_header in vfork.h
20273 do :
20274   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20275 if test "x$ac_cv_header_vfork_h" = xyes; then :
20276   cat >>confdefs.h <<_ACEOF
20277 #define HAVE_VFORK_H 1
20278 _ACEOF
20279
20280 fi
20281
20282 done
20283
20284 for ac_func in fork vfork
20285 do :
20286   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20287 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20288 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20289   cat >>confdefs.h <<_ACEOF
20290 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20291 _ACEOF
20292
20293 fi
20294 done
20295
20296 if test "x$ac_cv_func_fork" = xyes; then
20297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20298 $as_echo_n "checking for working fork... " >&6; }
20299 if ${ac_cv_func_fork_works+:} false; then :
20300   $as_echo_n "(cached) " >&6
20301 else
20302   if test "$cross_compiling" = yes; then :
20303   ac_cv_func_fork_works=cross
20304 else
20305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20306 /* end confdefs.h.  */
20307 $ac_includes_default
20308 int
20309 main ()
20310 {
20311
20312           /* By Ruediger Kuhlmann. */
20313           return fork () < 0;
20314
20315   ;
20316   return 0;
20317 }
20318 _ACEOF
20319 if ac_fn_c_try_run "$LINENO"; then :
20320   ac_cv_func_fork_works=yes
20321 else
20322   ac_cv_func_fork_works=no
20323 fi
20324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20325   conftest.$ac_objext conftest.beam conftest.$ac_ext
20326 fi
20327
20328 fi
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20330 $as_echo "$ac_cv_func_fork_works" >&6; }
20331
20332 else
20333   ac_cv_func_fork_works=$ac_cv_func_fork
20334 fi
20335 if test "x$ac_cv_func_fork_works" = xcross; then
20336   case $host in
20337     *-*-amigaos* | *-*-msdosdjgpp*)
20338       # Override, as these systems have only a dummy fork() stub
20339       ac_cv_func_fork_works=no
20340       ;;
20341     *)
20342       ac_cv_func_fork_works=yes
20343       ;;
20344   esac
20345   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20346 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20347 fi
20348 ac_cv_func_vfork_works=$ac_cv_func_vfork
20349 if test "x$ac_cv_func_vfork" = xyes; then
20350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20351 $as_echo_n "checking for working vfork... " >&6; }
20352 if ${ac_cv_func_vfork_works+:} false; then :
20353   $as_echo_n "(cached) " >&6
20354 else
20355   if test "$cross_compiling" = yes; then :
20356   ac_cv_func_vfork_works=cross
20357 else
20358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20359 /* end confdefs.h.  */
20360 /* Thanks to Paul Eggert for this test.  */
20361 $ac_includes_default
20362 #include <sys/wait.h>
20363 #ifdef HAVE_VFORK_H
20364 # include <vfork.h>
20365 #endif
20366 /* On some sparc systems, changes by the child to local and incoming
20367    argument registers are propagated back to the parent.  The compiler
20368    is told about this with #include <vfork.h>, but some compilers
20369    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
20370    static variable whose address is put into a register that is
20371    clobbered by the vfork.  */
20372 static void
20373 #ifdef __cplusplus
20374 sparc_address_test (int arg)
20375 # else
20376 sparc_address_test (arg) int arg;
20377 #endif
20378 {
20379   static pid_t child;
20380   if (!child) {
20381     child = vfork ();
20382     if (child < 0) {
20383       perror ("vfork");
20384       _exit(2);
20385     }
20386     if (!child) {
20387       arg = getpid();
20388       write(-1, "", 0);
20389       _exit (arg);
20390     }
20391   }
20392 }
20393
20394 int
20395 main ()
20396 {
20397   pid_t parent = getpid ();
20398   pid_t child;
20399
20400   sparc_address_test (0);
20401
20402   child = vfork ();
20403
20404   if (child == 0) {
20405     /* Here is another test for sparc vfork register problems.  This
20406        test uses lots of local variables, at least as many local
20407        variables as main has allocated so far including compiler
20408        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
20409        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
20410        reuse the register of parent for one of the local variables,
20411        since it will think that parent can't possibly be used any more
20412        in this routine.  Assigning to the local variable will thus
20413        munge parent in the parent process.  */
20414     pid_t
20415       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20416       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20417     /* Convince the compiler that p..p7 are live; otherwise, it might
20418        use the same hardware register for all 8 local variables.  */
20419     if (p != p1 || p != p2 || p != p3 || p != p4
20420         || p != p5 || p != p6 || p != p7)
20421       _exit(1);
20422
20423     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20424        from child file descriptors.  If the child closes a descriptor
20425        before it execs or exits, this munges the parent's descriptor
20426        as well.  Test for this by closing stdout in the child.  */
20427     _exit(close(fileno(stdout)) != 0);
20428   } else {
20429     int status;
20430     struct stat st;
20431
20432     while (wait(&status) != child)
20433       ;
20434     return (
20435          /* Was there some problem with vforking?  */
20436          child < 0
20437
20438          /* Did the child fail?  (This shouldn't happen.)  */
20439          || status
20440
20441          /* Did the vfork/compiler bug occur?  */
20442          || parent != getpid()
20443
20444          /* Did the file descriptor bug occur?  */
20445          || fstat(fileno(stdout), &st) != 0
20446          );
20447   }
20448 }
20449 _ACEOF
20450 if ac_fn_c_try_run "$LINENO"; then :
20451   ac_cv_func_vfork_works=yes
20452 else
20453   ac_cv_func_vfork_works=no
20454 fi
20455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20456   conftest.$ac_objext conftest.beam conftest.$ac_ext
20457 fi
20458
20459 fi
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20461 $as_echo "$ac_cv_func_vfork_works" >&6; }
20462
20463 fi;
20464 if test "x$ac_cv_func_fork_works" = xcross; then
20465   ac_cv_func_vfork_works=$ac_cv_func_vfork
20466   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20467 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20468 fi
20469
20470 if test "x$ac_cv_func_vfork_works" = xyes; then
20471
20472 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20473
20474 else
20475
20476 $as_echo "#define vfork fork" >>confdefs.h
20477
20478 fi
20479 if test "x$ac_cv_func_fork_works" = xyes; then
20480
20481 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20482
20483 fi
20484
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20486 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20487 if ${ac_cv_type_getgroups+:} false; then :
20488   $as_echo_n "(cached) " >&6
20489 else
20490   if test "$cross_compiling" = yes; then :
20491   ac_cv_type_getgroups=cross
20492 else
20493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20494 /* end confdefs.h.  */
20495 /* Thanks to Mike Rendell for this test.  */
20496 $ac_includes_default
20497 #define NGID 256
20498 #undef MAX
20499 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20500
20501 int
20502 main ()
20503 {
20504   gid_t gidset[NGID];
20505   int i, n;
20506   union { gid_t gval; long int lval; }  val;
20507
20508   val.lval = -1;
20509   for (i = 0; i < NGID; i++)
20510     gidset[i] = val.gval;
20511   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20512                  gidset);
20513   /* Exit non-zero if getgroups seems to require an array of ints.  This
20514      happens when gid_t is short int but getgroups modifies an array
20515      of ints.  */
20516   return n > 0 && gidset[n] != val.gval;
20517 }
20518 _ACEOF
20519 if ac_fn_c_try_run "$LINENO"; then :
20520   ac_cv_type_getgroups=gid_t
20521 else
20522   ac_cv_type_getgroups=int
20523 fi
20524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20525   conftest.$ac_objext conftest.beam conftest.$ac_ext
20526 fi
20527
20528 if test $ac_cv_type_getgroups = cross; then
20529         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20530 /* end confdefs.h.  */
20531 #include <unistd.h>
20532
20533 _ACEOF
20534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20535   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20536   ac_cv_type_getgroups=gid_t
20537 else
20538   ac_cv_type_getgroups=int
20539 fi
20540 rm -f conftest*
20541
20542 fi
20543 fi
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20545 $as_echo "$ac_cv_type_getgroups" >&6; }
20546
20547 cat >>confdefs.h <<_ACEOF
20548 #define GETGROUPS_T $ac_cv_type_getgroups
20549 _ACEOF
20550
20551
20552 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
20553 if test "x$ac_cv_func_getgroups" = xyes; then :
20554
20555 fi
20556
20557
20558 # If we don't yet have getgroups, see if it's in -lbsd.
20559 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
20560 ac_save_LIBS=$LIBS
20561 if test $ac_cv_func_getgroups = no; then
20562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
20563 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
20564 if ${ac_cv_lib_bsd_getgroups+:} false; then :
20565   $as_echo_n "(cached) " >&6
20566 else
20567   ac_check_lib_save_LIBS=$LIBS
20568 LIBS="-lbsd  $LIBS"
20569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20570 /* end confdefs.h.  */
20571
20572 /* Override any GCC internal prototype to avoid an error.
20573    Use char because int might match the return type of a GCC
20574    builtin and then its argument prototype would still apply.  */
20575 #ifdef __cplusplus
20576 extern "C"
20577 #endif
20578 char getgroups ();
20579 int
20580 main ()
20581 {
20582 return getgroups ();
20583   ;
20584   return 0;
20585 }
20586 _ACEOF
20587 if ac_fn_c_try_link "$LINENO"; then :
20588   ac_cv_lib_bsd_getgroups=yes
20589 else
20590   ac_cv_lib_bsd_getgroups=no
20591 fi
20592 rm -f core conftest.err conftest.$ac_objext \
20593     conftest$ac_exeext conftest.$ac_ext
20594 LIBS=$ac_check_lib_save_LIBS
20595 fi
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
20597 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
20598 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
20599   GETGROUPS_LIB=-lbsd
20600 fi
20601
20602 fi
20603
20604 # Run the program to test the functionality of the system-supplied
20605 # getgroups function only if there is such a function.
20606 if test $ac_cv_func_getgroups = yes; then
20607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
20608 $as_echo_n "checking for working getgroups... " >&6; }
20609 if ${ac_cv_func_getgroups_works+:} false; then :
20610   $as_echo_n "(cached) " >&6
20611 else
20612   if test "$cross_compiling" = yes; then :
20613   ac_cv_func_getgroups_works=no
20614 else
20615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20616 /* end confdefs.h.  */
20617 $ac_includes_default
20618 int
20619 main ()
20620 {
20621 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
20622        return getgroups (0, 0) == -1;
20623   ;
20624   return 0;
20625 }
20626 _ACEOF
20627 if ac_fn_c_try_run "$LINENO"; then :
20628   ac_cv_func_getgroups_works=yes
20629 else
20630   ac_cv_func_getgroups_works=no
20631 fi
20632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20633   conftest.$ac_objext conftest.beam conftest.$ac_ext
20634 fi
20635
20636
20637 fi
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
20639 $as_echo "$ac_cv_func_getgroups_works" >&6; }
20640 else
20641   ac_cv_func_getgroups_works=no
20642 fi
20643 if test $ac_cv_func_getgroups_works = yes; then
20644
20645 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
20646
20647 fi
20648 LIBS=$ac_save_LIBS
20649
20650 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
20651 # -lseq on Dynix/PTX, -lgen on Unixware.
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
20653 $as_echo_n "checking for library containing getmntent... " >&6; }
20654 if ${ac_cv_search_getmntent+:} false; then :
20655   $as_echo_n "(cached) " >&6
20656 else
20657   ac_func_search_save_LIBS=$LIBS
20658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h.  */
20660
20661 /* Override any GCC internal prototype to avoid an error.
20662    Use char because int might match the return type of a GCC
20663    builtin and then its argument prototype would still apply.  */
20664 #ifdef __cplusplus
20665 extern "C"
20666 #endif
20667 char getmntent ();
20668 int
20669 main ()
20670 {
20671 return getmntent ();
20672   ;
20673   return 0;
20674 }
20675 _ACEOF
20676 for ac_lib in '' sun seq gen; do
20677   if test -z "$ac_lib"; then
20678     ac_res="none required"
20679   else
20680     ac_res=-l$ac_lib
20681     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20682   fi
20683   if ac_fn_c_try_link "$LINENO"; then :
20684   ac_cv_search_getmntent=$ac_res
20685 fi
20686 rm -f core conftest.err conftest.$ac_objext \
20687     conftest$ac_exeext
20688   if ${ac_cv_search_getmntent+:} false; then :
20689   break
20690 fi
20691 done
20692 if ${ac_cv_search_getmntent+:} false; then :
20693
20694 else
20695   ac_cv_search_getmntent=no
20696 fi
20697 rm conftest.$ac_ext
20698 LIBS=$ac_func_search_save_LIBS
20699 fi
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
20701 $as_echo "$ac_cv_search_getmntent" >&6; }
20702 ac_res=$ac_cv_search_getmntent
20703 if test "$ac_res" != no; then :
20704   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20705   ac_cv_func_getmntent=yes
20706
20707 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
20708
20709 else
20710   ac_cv_func_getmntent=no
20711 fi
20712
20713
20714 if test $ac_cv_c_compiler_gnu = yes; then
20715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20716 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20717 if ${ac_cv_prog_gcc_traditional+:} false; then :
20718   $as_echo_n "(cached) " >&6
20719 else
20720     ac_pattern="Autoconf.*'x'"
20721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20722 /* end confdefs.h.  */
20723 #include <sgtty.h>
20724 Autoconf TIOCGETP
20725 _ACEOF
20726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20727   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20728   ac_cv_prog_gcc_traditional=yes
20729 else
20730   ac_cv_prog_gcc_traditional=no
20731 fi
20732 rm -f conftest*
20733
20734
20735   if test $ac_cv_prog_gcc_traditional = no; then
20736     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20737 /* end confdefs.h.  */
20738 #include <termio.h>
20739 Autoconf TCGETA
20740 _ACEOF
20741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20742   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20743   ac_cv_prog_gcc_traditional=yes
20744 fi
20745 rm -f conftest*
20746
20747   fi
20748 fi
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20750 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20751   if test $ac_cv_prog_gcc_traditional = yes; then
20752     CC="$CC -traditional"
20753   fi
20754 fi
20755
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
20757 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
20758 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
20759   $as_echo_n "(cached) " >&6
20760 else
20761   rm -f conftest.sym conftest.file
20762 echo >conftest.file
20763 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20764   if test "$cross_compiling" = yes; then :
20765   ac_cv_func_lstat_dereferences_slashed_symlink=no
20766 else
20767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20768 /* end confdefs.h.  */
20769 $ac_includes_default
20770 int
20771 main ()
20772 {
20773 struct stat sbuf;
20774      /* Linux will dereference the symlink and fail, as required by POSIX.
20775         That is better in the sense that it means we will not
20776         have to compile and use the lstat wrapper.  */
20777      return lstat ("conftest.sym/", &sbuf) == 0;
20778   ;
20779   return 0;
20780 }
20781 _ACEOF
20782 if ac_fn_c_try_run "$LINENO"; then :
20783   ac_cv_func_lstat_dereferences_slashed_symlink=yes
20784 else
20785   ac_cv_func_lstat_dereferences_slashed_symlink=no
20786 fi
20787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20788   conftest.$ac_objext conftest.beam conftest.$ac_ext
20789 fi
20790
20791 else
20792   # If the `ln -s' command failed, then we probably don't even
20793   # have an lstat function.
20794   ac_cv_func_lstat_dereferences_slashed_symlink=no
20795 fi
20796 rm -f conftest.sym conftest.file
20797
20798 fi
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20800 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20801
20802 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20803
20804 cat >>confdefs.h <<_ACEOF
20805 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20806 _ACEOF
20807
20808
20809 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
20810   case " $LIBOBJS " in
20811   *" lstat.$ac_objext "* ) ;;
20812   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20813  ;;
20814 esac
20815
20816 fi
20817
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
20819 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
20820 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
20821   $as_echo_n "(cached) " >&6
20822 else
20823   if test "$cross_compiling" = yes; then :
20824   ac_cv_func_lstat_empty_string_bug=yes
20825 else
20826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20827 /* end confdefs.h.  */
20828 $ac_includes_default
20829 int
20830 main ()
20831 {
20832 struct stat sbuf;
20833   return lstat ("", &sbuf) == 0;
20834   ;
20835   return 0;
20836 }
20837 _ACEOF
20838 if ac_fn_c_try_run "$LINENO"; then :
20839   ac_cv_func_lstat_empty_string_bug=no
20840 else
20841   ac_cv_func_lstat_empty_string_bug=yes
20842 fi
20843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20844   conftest.$ac_objext conftest.beam conftest.$ac_ext
20845 fi
20846
20847 fi
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
20849 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
20850 if test $ac_cv_func_lstat_empty_string_bug = yes; then
20851   case " $LIBOBJS " in
20852   *" lstat.$ac_objext "* ) ;;
20853   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20854  ;;
20855 esac
20856
20857
20858 cat >>confdefs.h <<_ACEOF
20859 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20860 _ACEOF
20861
20862 fi
20863
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
20865 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
20866 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
20867   $as_echo_n "(cached) " >&6
20868 else
20869   rm -f conftest.sym conftest.file
20870 echo >conftest.file
20871 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20872   if test "$cross_compiling" = yes; then :
20873   ac_cv_func_lstat_dereferences_slashed_symlink=no
20874 else
20875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20876 /* end confdefs.h.  */
20877 $ac_includes_default
20878 int
20879 main ()
20880 {
20881 struct stat sbuf;
20882      /* Linux will dereference the symlink and fail, as required by POSIX.
20883         That is better in the sense that it means we will not
20884         have to compile and use the lstat wrapper.  */
20885      return lstat ("conftest.sym/", &sbuf) == 0;
20886   ;
20887   return 0;
20888 }
20889 _ACEOF
20890 if ac_fn_c_try_run "$LINENO"; then :
20891   ac_cv_func_lstat_dereferences_slashed_symlink=yes
20892 else
20893   ac_cv_func_lstat_dereferences_slashed_symlink=no
20894 fi
20895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20896   conftest.$ac_objext conftest.beam conftest.$ac_ext
20897 fi
20898
20899 else
20900   # If the `ln -s' command failed, then we probably don't even
20901   # have an lstat function.
20902   ac_cv_func_lstat_dereferences_slashed_symlink=no
20903 fi
20904 rm -f conftest.sym conftest.file
20905
20906 fi
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20908 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20909
20910 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20911
20912 cat >>confdefs.h <<_ACEOF
20913 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20914 _ACEOF
20915
20916
20917 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
20918   case " $LIBOBJS " in
20919   *" lstat.$ac_objext "* ) ;;
20920   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20921  ;;
20922 esac
20923
20924 fi
20925
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
20927 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
20928 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
20929   $as_echo_n "(cached) " >&6
20930 else
20931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20932 /* end confdefs.h.  */
20933 #include <sys/types.h>
20934 int
20935 main ()
20936 {
20937 return makedev(0, 0);
20938   ;
20939   return 0;
20940 }
20941 _ACEOF
20942 if ac_fn_c_try_link "$LINENO"; then :
20943   ac_cv_header_sys_types_h_makedev=yes
20944 else
20945   ac_cv_header_sys_types_h_makedev=no
20946 fi
20947 rm -f core conftest.err conftest.$ac_objext \
20948     conftest$ac_exeext conftest.$ac_ext
20949
20950 fi
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
20952 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
20953
20954 if test $ac_cv_header_sys_types_h_makedev = no; then
20955 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
20956 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
20957
20958 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
20959
20960 fi
20961
20962
20963
20964   if test $ac_cv_header_sys_mkdev_h = no; then
20965     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
20966 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
20967
20968 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
20969
20970 fi
20971
20972
20973   fi
20974 fi
20975
20976 #AC_FUNC_MALLOC
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
20978 $as_echo_n "checking for working memcmp... " >&6; }
20979 if ${ac_cv_func_memcmp_working+:} false; then :
20980   $as_echo_n "(cached) " >&6
20981 else
20982   if test "$cross_compiling" = yes; then :
20983   ac_cv_func_memcmp_working=no
20984 else
20985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20986 /* end confdefs.h.  */
20987 $ac_includes_default
20988 int
20989 main ()
20990 {
20991
20992   /* Some versions of memcmp are not 8-bit clean.  */
20993   char c0 = '\100', c1 = '\200', c2 = '\201';
20994   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20995     return 1;
20996
20997   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20998      or more and with at least one buffer not starting on a 4-byte boundary.
20999      William Lewis provided this test program.   */
21000   {
21001     char foo[21];
21002     char bar[21];
21003     int i;
21004     for (i = 0; i < 4; i++)
21005       {
21006         char *a = foo + i;
21007         char *b = bar + i;
21008         strcpy (a, "--------01111111");
21009         strcpy (b, "--------10000000");
21010         if (memcmp (a, b, 16) >= 0)
21011           return 1;
21012       }
21013     return 0;
21014   }
21015
21016   ;
21017   return 0;
21018 }
21019 _ACEOF
21020 if ac_fn_c_try_run "$LINENO"; then :
21021   ac_cv_func_memcmp_working=yes
21022 else
21023   ac_cv_func_memcmp_working=no
21024 fi
21025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21026   conftest.$ac_objext conftest.beam conftest.$ac_ext
21027 fi
21028
21029 fi
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
21031 $as_echo "$ac_cv_func_memcmp_working" >&6; }
21032 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21033   *" memcmp.$ac_objext "* ) ;;
21034   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21035  ;;
21036 esac
21037
21038
21039 #AC_FUNC_REALLOC
21040 for ac_header in sys/select.h sys/socket.h
21041 do :
21042   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21043 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21044 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21045   cat >>confdefs.h <<_ACEOF
21046 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21047 _ACEOF
21048
21049 fi
21050
21051 done
21052
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
21054 $as_echo_n "checking types of arguments for select... " >&6; }
21055 if ${ac_cv_func_select_args+:} false; then :
21056   $as_echo_n "(cached) " >&6
21057 else
21058   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21059  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21060   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21061    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21062 /* end confdefs.h.  */
21063 $ac_includes_default
21064 #ifdef HAVE_SYS_SELECT_H
21065 # include <sys/select.h>
21066 #endif
21067 #ifdef HAVE_SYS_SOCKET_H
21068 # include <sys/socket.h>
21069 #endif
21070
21071 int
21072 main ()
21073 {
21074 extern int select ($ac_arg1,
21075                                             $ac_arg234, $ac_arg234, $ac_arg234,
21076                                             $ac_arg5);
21077   ;
21078   return 0;
21079 }
21080 _ACEOF
21081 if ac_fn_c_try_compile "$LINENO"; then :
21082   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21083 fi
21084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21085   done
21086  done
21087 done
21088 # Provide a safe default value.
21089 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
21090
21091 fi
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
21093 $as_echo "$ac_cv_func_select_args" >&6; }
21094 ac_save_IFS=$IFS; IFS=','
21095 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21096 IFS=$ac_save_IFS
21097 shift
21098
21099 cat >>confdefs.h <<_ACEOF
21100 #define SELECT_TYPE_ARG1 $1
21101 _ACEOF
21102
21103
21104 cat >>confdefs.h <<_ACEOF
21105 #define SELECT_TYPE_ARG234 ($2)
21106 _ACEOF
21107
21108
21109 cat >>confdefs.h <<_ACEOF
21110 #define SELECT_TYPE_ARG5 ($3)
21111 _ACEOF
21112
21113 rm -f conftest*
21114
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21116 $as_echo_n "checking return type of signal handlers... " >&6; }
21117 if ${ac_cv_type_signal+:} false; then :
21118   $as_echo_n "(cached) " >&6
21119 else
21120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21121 /* end confdefs.h.  */
21122 #include <sys/types.h>
21123 #include <signal.h>
21124
21125 int
21126 main ()
21127 {
21128 return *(signal (0, 0)) (0) == 1;
21129   ;
21130   return 0;
21131 }
21132 _ACEOF
21133 if ac_fn_c_try_compile "$LINENO"; then :
21134   ac_cv_type_signal=int
21135 else
21136   ac_cv_type_signal=void
21137 fi
21138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21139 fi
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21141 $as_echo "$ac_cv_type_signal" >&6; }
21142
21143 cat >>confdefs.h <<_ACEOF
21144 #define RETSIGTYPE $ac_cv_type_signal
21145 _ACEOF
21146
21147
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
21149 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
21150 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
21151   $as_echo_n "(cached) " >&6
21152 else
21153   if test "$cross_compiling" = yes; then :
21154   ac_cv_func_stat_empty_string_bug=yes
21155 else
21156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21157 /* end confdefs.h.  */
21158 $ac_includes_default
21159 int
21160 main ()
21161 {
21162 struct stat sbuf;
21163   return stat ("", &sbuf) == 0;
21164   ;
21165   return 0;
21166 }
21167 _ACEOF
21168 if ac_fn_c_try_run "$LINENO"; then :
21169   ac_cv_func_stat_empty_string_bug=no
21170 else
21171   ac_cv_func_stat_empty_string_bug=yes
21172 fi
21173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21174   conftest.$ac_objext conftest.beam conftest.$ac_ext
21175 fi
21176
21177 fi
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
21179 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
21180 if test $ac_cv_func_stat_empty_string_bug = yes; then
21181   case " $LIBOBJS " in
21182   *" stat.$ac_objext "* ) ;;
21183   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
21184  ;;
21185 esac
21186
21187
21188 cat >>confdefs.h <<_ACEOF
21189 #define HAVE_STAT_EMPTY_STRING_BUG 1
21190 _ACEOF
21191
21192 fi
21193
21194 for ac_func in vprintf
21195 do :
21196   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21197 if test "x$ac_cv_func_vprintf" = xyes; then :
21198   cat >>confdefs.h <<_ACEOF
21199 #define HAVE_VPRINTF 1
21200 _ACEOF
21201
21202 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21203 if test "x$ac_cv_func__doprnt" = xyes; then :
21204
21205 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21206
21207 fi
21208
21209 fi
21210 done
21211
21212
21213 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
21214                gethostbyaddr gethostbyname gethostname getmntent \
21215                getnameinfo getrpcbyname getifaddrs \
21216                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
21217                ppoll realpath rmdir select socket strcasecmp strchr strdup \
21218                strerror strrchr strtol strtoul sigprocmask
21219 do :
21220   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21221 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21222 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21223   cat >>confdefs.h <<_ACEOF
21224 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21225 _ACEOF
21226
21227 fi
21228 done
21229
21230
21231
21232 # The cast to long int works around a bug in the HP C Compiler
21233 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21234 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21235 # This bug is HP SR number 8606223364.
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
21237 $as_echo_n "checking size of short... " >&6; }
21238 if ${ac_cv_sizeof_short+:} false; then :
21239   $as_echo_n "(cached) " >&6
21240 else
21241   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
21242
21243 else
21244   if test "$ac_cv_type_short" = yes; then
21245      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21247 as_fn_error 77 "cannot compute sizeof (short)
21248 See \`config.log' for more details" "$LINENO" 5; }
21249    else
21250      ac_cv_sizeof_short=0
21251    fi
21252 fi
21253
21254 fi
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
21256 $as_echo "$ac_cv_sizeof_short" >&6; }
21257
21258
21259
21260 cat >>confdefs.h <<_ACEOF
21261 #define SIZEOF_SHORT $ac_cv_sizeof_short
21262 _ACEOF
21263
21264
21265 # The cast to long int works around a bug in the HP C Compiler
21266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21268 # This bug is HP SR number 8606223364.
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21270 $as_echo_n "checking size of int... " >&6; }
21271 if ${ac_cv_sizeof_int+:} false; then :
21272   $as_echo_n "(cached) " >&6
21273 else
21274   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
21275
21276 else
21277   if test "$ac_cv_type_int" = yes; then
21278      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21280 as_fn_error 77 "cannot compute sizeof (int)
21281 See \`config.log' for more details" "$LINENO" 5; }
21282    else
21283      ac_cv_sizeof_int=0
21284    fi
21285 fi
21286
21287 fi
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21289 $as_echo "$ac_cv_sizeof_int" >&6; }
21290
21291
21292
21293 cat >>confdefs.h <<_ACEOF
21294 #define SIZEOF_INT $ac_cv_sizeof_int
21295 _ACEOF
21296
21297
21298 # The cast to long int works around a bug in the HP C Compiler
21299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21301 # This bug is HP SR number 8606223364.
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21303 $as_echo_n "checking size of long... " >&6; }
21304 if ${ac_cv_sizeof_long+:} false; then :
21305   $as_echo_n "(cached) " >&6
21306 else
21307   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
21308
21309 else
21310   if test "$ac_cv_type_long" = yes; then
21311      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21313 as_fn_error 77 "cannot compute sizeof (long)
21314 See \`config.log' for more details" "$LINENO" 5; }
21315    else
21316      ac_cv_sizeof_long=0
21317    fi
21318 fi
21319
21320 fi
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21322 $as_echo "$ac_cv_sizeof_long" >&6; }
21323
21324
21325
21326 cat >>confdefs.h <<_ACEOF
21327 #define SIZEOF_LONG $ac_cv_sizeof_long
21328 _ACEOF
21329
21330
21331 # The cast to long int works around a bug in the HP C Compiler
21332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21334 # This bug is HP SR number 8606223364.
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
21336 $as_echo_n "checking size of size_t... " >&6; }
21337 if ${ac_cv_sizeof_size_t+:} false; then :
21338   $as_echo_n "(cached) " >&6
21339 else
21340   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
21341
21342 else
21343   if test "$ac_cv_type_size_t" = yes; then
21344      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21346 as_fn_error 77 "cannot compute sizeof (size_t)
21347 See \`config.log' for more details" "$LINENO" 5; }
21348    else
21349      ac_cv_sizeof_size_t=0
21350    fi
21351 fi
21352
21353 fi
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
21355 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21356
21357
21358
21359 cat >>confdefs.h <<_ACEOF
21360 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21361 _ACEOF
21362
21363
21364 # The cast to long int works around a bug in the HP C Compiler
21365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21367 # This bug is HP SR number 8606223364.
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of socklen_t" >&5
21369 $as_echo_n "checking size of socklen_t... " >&6; }
21370 if ${ac_cv_sizeof_socklen_t+:} false; then :
21371   $as_echo_n "(cached) " >&6
21372 else
21373   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (socklen_t))" "ac_cv_sizeof_socklen_t"        "$ac_includes_default"; then :
21374
21375 else
21376   if test "$ac_cv_type_socklen_t" = yes; then
21377      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21379 as_fn_error 77 "cannot compute sizeof (socklen_t)
21380 See \`config.log' for more details" "$LINENO" 5; }
21381    else
21382      ac_cv_sizeof_socklen_t=0
21383    fi
21384 fi
21385
21386 fi
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_socklen_t" >&5
21388 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
21389
21390
21391
21392 cat >>confdefs.h <<_ACEOF
21393 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
21394 _ACEOF
21395
21396
21397
21398
21399
21400 cat >>confdefs.h <<_ACEOF
21401 #define NFS_STATEDIR "$statedir"
21402 _ACEOF
21403
21404
21405 cat >>confdefs.h <<_ACEOF
21406 #define NSM_DEFAULT_STATEDIR "$statdpath"
21407 _ACEOF
21408
21409
21410 if test "x$cross_compiling" = "xno"; then
21411         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
21412         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
21413         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
21414         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
21415 else
21416         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
21417         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
21418         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
21419         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
21420 fi
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432 case $host in
21433   *)
21434     ARCHFLAGS="" ;;
21435 esac
21436
21437 my_am_cflags="-Wall -Wextra -Wstrict-prototypes $ARCHFLAGS -pipe"
21438
21439 AM_CFLAGS="$my_am_cflags"
21440
21441
21442 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
21443 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
21444
21445
21446 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/nfsdcltrack/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"
21447
21448 cat >confcache <<\_ACEOF
21449 # This file is a shell script that caches the results of configure
21450 # tests run on this system so they can be shared between configure
21451 # scripts and configure runs, see configure's option --config-cache.
21452 # It is not useful on other systems.  If it contains results you don't
21453 # want to keep, you may remove or edit it.
21454 #
21455 # config.status only pays attention to the cache file if you give it
21456 # the --recheck option to rerun configure.
21457 #
21458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21460 # following values.
21461
21462 _ACEOF
21463
21464 # The following way of writing the cache mishandles newlines in values,
21465 # but we know of no workaround that is simple, portable, and efficient.
21466 # So, we kill variables containing newlines.
21467 # Ultrix sh set writes to stderr and can't be redirected directly,
21468 # and sets the high bit in the cache file unless we assign to the vars.
21469 (
21470   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21471     eval ac_val=\$$ac_var
21472     case $ac_val in #(
21473     *${as_nl}*)
21474       case $ac_var in #(
21475       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21476 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21477       esac
21478       case $ac_var in #(
21479       _ | IFS | as_nl) ;; #(
21480       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21481       *) { eval $ac_var=; unset $ac_var;} ;;
21482       esac ;;
21483     esac
21484   done
21485
21486   (set) 2>&1 |
21487     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21488     *${as_nl}ac_space=\ *)
21489       # `set' does not quote correctly, so add quotes: double-quote
21490       # substitution turns \\\\ into \\, and sed turns \\ into \.
21491       sed -n \
21492         "s/'/'\\\\''/g;
21493           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21494       ;; #(
21495     *)
21496       # `set' quotes correctly as required by POSIX, so do not add quotes.
21497       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21498       ;;
21499     esac |
21500     sort
21501 ) |
21502   sed '
21503      /^ac_cv_env_/b end
21504      t clear
21505      :clear
21506      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21507      t end
21508      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21509      :end' >>confcache
21510 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21511   if test -w "$cache_file"; then
21512     if test "x$cache_file" != "x/dev/null"; then
21513       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21514 $as_echo "$as_me: updating cache $cache_file" >&6;}
21515       if test ! -f "$cache_file" || test -h "$cache_file"; then
21516         cat confcache >"$cache_file"
21517       else
21518         case $cache_file in #(
21519         */* | ?:*)
21520           mv -f confcache "$cache_file"$$ &&
21521           mv -f "$cache_file"$$ "$cache_file" ;; #(
21522         *)
21523           mv -f confcache "$cache_file" ;;
21524         esac
21525       fi
21526     fi
21527   else
21528     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21529 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21530   fi
21531 fi
21532 rm -f confcache
21533
21534 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21535 # Let make expand exec_prefix.
21536 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21537
21538 DEFS=-DHAVE_CONFIG_H
21539
21540 ac_libobjs=
21541 ac_ltlibobjs=
21542 U=
21543 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21544   # 1. Remove the extension, and $U if already installed.
21545   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21546   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21547   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21548   #    will be set to the directory where LIBOBJS objects are built.
21549   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21550   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21551 done
21552 LIBOBJS=$ac_libobjs
21553
21554 LTLIBOBJS=$ac_ltlibobjs
21555
21556
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21558 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21559    if test -n "$am_sleep_pid"; then
21560      # Hide warnings about reused PIDs.
21561      wait $am_sleep_pid 2>/dev/null
21562    fi
21563    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21564 $as_echo "done" >&6; }
21565  if test -n "$EXEEXT"; then
21566   am__EXEEXT_TRUE=
21567   am__EXEEXT_FALSE='#'
21568 else
21569   am__EXEEXT_TRUE='#'
21570   am__EXEEXT_FALSE=
21571 fi
21572
21573 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21574   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21576 fi
21577 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
21578   as_fn_error $? "conditional \"CONFIG_NFSV4\" was never defined.
21579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21580 fi
21581 if test -z "${CONFIG_NFSV41_TRUE}" && test -z "${CONFIG_NFSV41_FALSE}"; then
21582   as_fn_error $? "conditional \"CONFIG_NFSV41\" was never defined.
21583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21584 fi
21585 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
21586   as_fn_error $? "conditional \"CONFIG_GSS\" was never defined.
21587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21588 fi
21589 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
21590   as_fn_error $? "conditional \"CONFIG_RPCGEN\" was never defined.
21591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21592 fi
21593 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
21594   as_fn_error $? "conditional \"CONFIG_MOUNT\" was never defined.
21595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21596 fi
21597 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
21598   as_fn_error $? "conditional \"CONFIG_IPV6\" was never defined.
21599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21600 fi
21601 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
21602   as_fn_error $? "conditional \"MOUNT_CONFIG\" was never defined.
21603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21604 fi
21605 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
21606   as_fn_error $? "conditional \"MOUNT_CONFIG\" was never defined.
21607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21608 fi
21609 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21610   as_fn_error $? "conditional \"AMDEP\" was never defined.
21611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21612 fi
21613 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21614   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21616 fi
21617 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21618   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21620 fi
21621 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21622   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21624 fi
21625 if test -z "${CONFIG_NFSDCLTRACK_TRUE}" && test -z "${CONFIG_NFSDCLTRACK_FALSE}"; then
21626   as_fn_error $? "conditional \"CONFIG_NFSDCLTRACK\" was never defined.
21627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21628 fi
21629 if test -z "${CONFIG_NFSIDMAP_TRUE}" && test -z "${CONFIG_NFSIDMAP_FALSE}"; then
21630   as_fn_error $? "conditional \"CONFIG_NFSIDMAP\" was never defined.
21631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21632 fi
21633 if test -z "${CONFIG_LIBMOUNT_TRUE}" && test -z "${CONFIG_LIBMOUNT_FALSE}"; then
21634   as_fn_error $? "conditional \"CONFIG_LIBMOUNT\" was never defined.
21635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21636 fi
21637
21638 : "${CONFIG_STATUS=./config.status}"
21639 ac_write_fail=0
21640 ac_clean_files_save=$ac_clean_files
21641 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21643 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21644 as_write_fail=0
21645 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21646 #! $SHELL
21647 # Generated by $as_me.
21648 # Run this file to recreate the current configuration.
21649 # Compiler output produced by configure, useful for debugging
21650 # configure, is in config.log if it exists.
21651
21652 debug=false
21653 ac_cs_recheck=false
21654 ac_cs_silent=false
21655
21656 SHELL=\${CONFIG_SHELL-$SHELL}
21657 export SHELL
21658 _ASEOF
21659 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21660 ## -------------------- ##
21661 ## M4sh Initialization. ##
21662 ## -------------------- ##
21663
21664 # Be more Bourne compatible
21665 DUALCASE=1; export DUALCASE # for MKS sh
21666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21667   emulate sh
21668   NULLCMD=:
21669   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21670   # is contrary to our usage.  Disable this feature.
21671   alias -g '${1+"$@"}'='"$@"'
21672   setopt NO_GLOB_SUBST
21673 else
21674   case `(set -o) 2>/dev/null` in #(
21675   *posix*) :
21676     set -o posix ;; #(
21677   *) :
21678      ;;
21679 esac
21680 fi
21681
21682
21683 as_nl='
21684 '
21685 export as_nl
21686 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21687 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21690 # Prefer a ksh shell builtin over an external printf program on Solaris,
21691 # but without wasting forks for bash or zsh.
21692 if test -z "$BASH_VERSION$ZSH_VERSION" \
21693     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21694   as_echo='print -r --'
21695   as_echo_n='print -rn --'
21696 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21697   as_echo='printf %s\n'
21698   as_echo_n='printf %s'
21699 else
21700   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21701     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21702     as_echo_n='/usr/ucb/echo -n'
21703   else
21704     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21705     as_echo_n_body='eval
21706       arg=$1;
21707       case $arg in #(
21708       *"$as_nl"*)
21709         expr "X$arg" : "X\\(.*\\)$as_nl";
21710         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21711       esac;
21712       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21713     '
21714     export as_echo_n_body
21715     as_echo_n='sh -c $as_echo_n_body as_echo'
21716   fi
21717   export as_echo_body
21718   as_echo='sh -c $as_echo_body as_echo'
21719 fi
21720
21721 # The user is always right.
21722 if test "${PATH_SEPARATOR+set}" != set; then
21723   PATH_SEPARATOR=:
21724   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21725     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21726       PATH_SEPARATOR=';'
21727   }
21728 fi
21729
21730
21731 # IFS
21732 # We need space, tab and new line, in precisely that order.  Quoting is
21733 # there to prevent editors from complaining about space-tab.
21734 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21735 # splitting by setting IFS to empty value.)
21736 IFS=" ""        $as_nl"
21737
21738 # Find who we are.  Look in the path if we contain no directory separator.
21739 as_myself=
21740 case $0 in #((
21741   *[\\/]* ) as_myself=$0 ;;
21742   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21743 for as_dir in $PATH
21744 do
21745   IFS=$as_save_IFS
21746   test -z "$as_dir" && as_dir=.
21747     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21748   done
21749 IFS=$as_save_IFS
21750
21751      ;;
21752 esac
21753 # We did not find ourselves, most probably we were run as `sh COMMAND'
21754 # in which case we are not to be found in the path.
21755 if test "x$as_myself" = x; then
21756   as_myself=$0
21757 fi
21758 if test ! -f "$as_myself"; then
21759   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21760   exit 1
21761 fi
21762
21763 # Unset variables that we do not need and which cause bugs (e.g. in
21764 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21765 # suppresses any "Segmentation fault" message there.  '((' could
21766 # trigger a bug in pdksh 5.2.14.
21767 for as_var in BASH_ENV ENV MAIL MAILPATH
21768 do eval test x\${$as_var+set} = xset \
21769   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21770 done
21771 PS1='$ '
21772 PS2='> '
21773 PS4='+ '
21774
21775 # NLS nuisances.
21776 LC_ALL=C
21777 export LC_ALL
21778 LANGUAGE=C
21779 export LANGUAGE
21780
21781 # CDPATH.
21782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21783
21784
21785 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21786 # ----------------------------------------
21787 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21788 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21789 # script with STATUS, using 1 if that was 0.
21790 as_fn_error ()
21791 {
21792   as_status=$1; test $as_status -eq 0 && as_status=1
21793   if test "$4"; then
21794     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21795     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21796   fi
21797   $as_echo "$as_me: error: $2" >&2
21798   as_fn_exit $as_status
21799 } # as_fn_error
21800
21801
21802 # as_fn_set_status STATUS
21803 # -----------------------
21804 # Set $? to STATUS, without forking.
21805 as_fn_set_status ()
21806 {
21807   return $1
21808 } # as_fn_set_status
21809
21810 # as_fn_exit STATUS
21811 # -----------------
21812 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21813 as_fn_exit ()
21814 {
21815   set +e
21816   as_fn_set_status $1
21817   exit $1
21818 } # as_fn_exit
21819
21820 # as_fn_unset VAR
21821 # ---------------
21822 # Portably unset VAR.
21823 as_fn_unset ()
21824 {
21825   { eval $1=; unset $1;}
21826 }
21827 as_unset=as_fn_unset
21828 # as_fn_append VAR VALUE
21829 # ----------------------
21830 # Append the text in VALUE to the end of the definition contained in VAR. Take
21831 # advantage of any shell optimizations that allow amortized linear growth over
21832 # repeated appends, instead of the typical quadratic growth present in naive
21833 # implementations.
21834 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21835   eval 'as_fn_append ()
21836   {
21837     eval $1+=\$2
21838   }'
21839 else
21840   as_fn_append ()
21841   {
21842     eval $1=\$$1\$2
21843   }
21844 fi # as_fn_append
21845
21846 # as_fn_arith ARG...
21847 # ------------------
21848 # Perform arithmetic evaluation on the ARGs, and store the result in the
21849 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21850 # must be portable across $(()) and expr.
21851 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21852   eval 'as_fn_arith ()
21853   {
21854     as_val=$(( $* ))
21855   }'
21856 else
21857   as_fn_arith ()
21858   {
21859     as_val=`expr "$@" || test $? -eq 1`
21860   }
21861 fi # as_fn_arith
21862
21863
21864 if expr a : '\(a\)' >/dev/null 2>&1 &&
21865    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21866   as_expr=expr
21867 else
21868   as_expr=false
21869 fi
21870
21871 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21872   as_basename=basename
21873 else
21874   as_basename=false
21875 fi
21876
21877 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21878   as_dirname=dirname
21879 else
21880   as_dirname=false
21881 fi
21882
21883 as_me=`$as_basename -- "$0" ||
21884 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21885          X"$0" : 'X\(//\)$' \| \
21886          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21887 $as_echo X/"$0" |
21888     sed '/^.*\/\([^/][^/]*\)\/*$/{
21889             s//\1/
21890             q
21891           }
21892           /^X\/\(\/\/\)$/{
21893             s//\1/
21894             q
21895           }
21896           /^X\/\(\/\).*/{
21897             s//\1/
21898             q
21899           }
21900           s/.*/./; q'`
21901
21902 # Avoid depending upon Character Ranges.
21903 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21904 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21905 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21906 as_cr_digits='0123456789'
21907 as_cr_alnum=$as_cr_Letters$as_cr_digits
21908
21909 ECHO_C= ECHO_N= ECHO_T=
21910 case `echo -n x` in #(((((
21911 -n*)
21912   case `echo 'xy\c'` in
21913   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21914   xy)  ECHO_C='\c';;
21915   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21916        ECHO_T=' ';;
21917   esac;;
21918 *)
21919   ECHO_N='-n';;
21920 esac
21921
21922 rm -f conf$$ conf$$.exe conf$$.file
21923 if test -d conf$$.dir; then
21924   rm -f conf$$.dir/conf$$.file
21925 else
21926   rm -f conf$$.dir
21927   mkdir conf$$.dir 2>/dev/null
21928 fi
21929 if (echo >conf$$.file) 2>/dev/null; then
21930   if ln -s conf$$.file conf$$ 2>/dev/null; then
21931     as_ln_s='ln -s'
21932     # ... but there are two gotchas:
21933     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21934     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21935     # In both cases, we have to default to `cp -pR'.
21936     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21937       as_ln_s='cp -pR'
21938   elif ln conf$$.file conf$$ 2>/dev/null; then
21939     as_ln_s=ln
21940   else
21941     as_ln_s='cp -pR'
21942   fi
21943 else
21944   as_ln_s='cp -pR'
21945 fi
21946 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21947 rmdir conf$$.dir 2>/dev/null
21948
21949
21950 # as_fn_mkdir_p
21951 # -------------
21952 # Create "$as_dir" as a directory, including parents if necessary.
21953 as_fn_mkdir_p ()
21954 {
21955
21956   case $as_dir in #(
21957   -*) as_dir=./$as_dir;;
21958   esac
21959   test -d "$as_dir" || eval $as_mkdir_p || {
21960     as_dirs=
21961     while :; do
21962       case $as_dir in #(
21963       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21964       *) as_qdir=$as_dir;;
21965       esac
21966       as_dirs="'$as_qdir' $as_dirs"
21967       as_dir=`$as_dirname -- "$as_dir" ||
21968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21969          X"$as_dir" : 'X\(//\)[^/]' \| \
21970          X"$as_dir" : 'X\(//\)$' \| \
21971          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21972 $as_echo X"$as_dir" |
21973     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21974             s//\1/
21975             q
21976           }
21977           /^X\(\/\/\)[^/].*/{
21978             s//\1/
21979             q
21980           }
21981           /^X\(\/\/\)$/{
21982             s//\1/
21983             q
21984           }
21985           /^X\(\/\).*/{
21986             s//\1/
21987             q
21988           }
21989           s/.*/./; q'`
21990       test -d "$as_dir" && break
21991     done
21992     test -z "$as_dirs" || eval "mkdir $as_dirs"
21993   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21994
21995
21996 } # as_fn_mkdir_p
21997 if mkdir -p . 2>/dev/null; then
21998   as_mkdir_p='mkdir -p "$as_dir"'
21999 else
22000   test -d ./-p && rmdir ./-p
22001   as_mkdir_p=false
22002 fi
22003
22004
22005 # as_fn_executable_p FILE
22006 # -----------------------
22007 # Test if FILE is an executable regular file.
22008 as_fn_executable_p ()
22009 {
22010   test -f "$1" && test -x "$1"
22011 } # as_fn_executable_p
22012 as_test_x='test -x'
22013 as_executable_p=as_fn_executable_p
22014
22015 # Sed expression to map a string onto a valid CPP name.
22016 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22017
22018 # Sed expression to map a string onto a valid variable name.
22019 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22020
22021
22022 exec 6>&1
22023 ## ----------------------------------- ##
22024 ## Main body of $CONFIG_STATUS script. ##
22025 ## ----------------------------------- ##
22026 _ASEOF
22027 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22028
22029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22030 # Save the log message, to keep $0 and so on meaningful, and to
22031 # report actual input values of CONFIG_FILES etc. instead of their
22032 # values after options handling.
22033 ac_log="
22034 This file was extended by linux nfs-utils $as_me 1.2.8, which was
22035 generated by GNU Autoconf 2.69.  Invocation command line was
22036
22037   CONFIG_FILES    = $CONFIG_FILES
22038   CONFIG_HEADERS  = $CONFIG_HEADERS
22039   CONFIG_LINKS    = $CONFIG_LINKS
22040   CONFIG_COMMANDS = $CONFIG_COMMANDS
22041   $ $0 $@
22042
22043 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22044 "
22045
22046 _ACEOF
22047
22048 case $ac_config_files in *"
22049 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22050 esac
22051
22052 case $ac_config_headers in *"
22053 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22054 esac
22055
22056
22057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22058 # Files that config.status was made for.
22059 config_files="$ac_config_files"
22060 config_headers="$ac_config_headers"
22061 config_commands="$ac_config_commands"
22062
22063 _ACEOF
22064
22065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22066 ac_cs_usage="\
22067 \`$as_me' instantiates files and other configuration actions
22068 from templates according to the current configuration.  Unless the files
22069 and actions are specified as TAGs, all are instantiated by default.
22070
22071 Usage: $0 [OPTION]... [TAG]...
22072
22073   -h, --help       print this help, then exit
22074   -V, --version    print version number and configuration settings, then exit
22075       --config     print configuration, then exit
22076   -q, --quiet, --silent
22077                    do not print progress messages
22078   -d, --debug      don't remove temporary files
22079       --recheck    update $as_me by reconfiguring in the same conditions
22080       --file=FILE[:TEMPLATE]
22081                    instantiate the configuration file FILE
22082       --header=FILE[:TEMPLATE]
22083                    instantiate the configuration header FILE
22084
22085 Configuration files:
22086 $config_files
22087
22088 Configuration headers:
22089 $config_headers
22090
22091 Configuration commands:
22092 $config_commands
22093
22094 Report bugs to <linux-nfs@vger.kernel.org>."
22095
22096 _ACEOF
22097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22098 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22099 ac_cs_version="\\
22100 linux nfs-utils config.status 1.2.8
22101 configured by $0, generated by GNU Autoconf 2.69,
22102   with options \\"\$ac_cs_config\\"
22103
22104 Copyright (C) 2012 Free Software Foundation, Inc.
22105 This config.status script is free software; the Free Software Foundation
22106 gives unlimited permission to copy, distribute and modify it."
22107
22108 ac_pwd='$ac_pwd'
22109 srcdir='$srcdir'
22110 INSTALL='$INSTALL'
22111 MKDIR_P='$MKDIR_P'
22112 AWK='$AWK'
22113 test -n "\$AWK" || AWK=awk
22114 _ACEOF
22115
22116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22117 # The default lists apply if the user does not specify any file.
22118 ac_need_defaults=:
22119 while test $# != 0
22120 do
22121   case $1 in
22122   --*=?*)
22123     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22124     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22125     ac_shift=:
22126     ;;
22127   --*=)
22128     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22129     ac_optarg=
22130     ac_shift=:
22131     ;;
22132   *)
22133     ac_option=$1
22134     ac_optarg=$2
22135     ac_shift=shift
22136     ;;
22137   esac
22138
22139   case $ac_option in
22140   # Handling of the options.
22141   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22142     ac_cs_recheck=: ;;
22143   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22144     $as_echo "$ac_cs_version"; exit ;;
22145   --config | --confi | --conf | --con | --co | --c )
22146     $as_echo "$ac_cs_config"; exit ;;
22147   --debug | --debu | --deb | --de | --d | -d )
22148     debug=: ;;
22149   --file | --fil | --fi | --f )
22150     $ac_shift
22151     case $ac_optarg in
22152     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22153     '') as_fn_error $? "missing file argument" ;;
22154     esac
22155     as_fn_append CONFIG_FILES " '$ac_optarg'"
22156     ac_need_defaults=false;;
22157   --header | --heade | --head | --hea )
22158     $ac_shift
22159     case $ac_optarg in
22160     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22161     esac
22162     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22163     ac_need_defaults=false;;
22164   --he | --h)
22165     # Conflict between --help and --header
22166     as_fn_error $? "ambiguous option: \`$1'
22167 Try \`$0 --help' for more information.";;
22168   --help | --hel | -h )
22169     $as_echo "$ac_cs_usage"; exit ;;
22170   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22171   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22172     ac_cs_silent=: ;;
22173
22174   # This is an error.
22175   -*) as_fn_error $? "unrecognized option: \`$1'
22176 Try \`$0 --help' for more information." ;;
22177
22178   *) as_fn_append ac_config_targets " $1"
22179      ac_need_defaults=false ;;
22180
22181   esac
22182   shift
22183 done
22184
22185 ac_configure_extra_args=
22186
22187 if $ac_cs_silent; then
22188   exec 6>/dev/null
22189   ac_configure_extra_args="$ac_configure_extra_args --silent"
22190 fi
22191
22192 _ACEOF
22193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22194 if \$ac_cs_recheck; then
22195   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22196   shift
22197   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22198   CONFIG_SHELL='$SHELL'
22199   export CONFIG_SHELL
22200   exec "\$@"
22201 fi
22202
22203 _ACEOF
22204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22205 exec 5>>config.log
22206 {
22207   echo
22208   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22209 ## Running $as_me. ##
22210 _ASBOX
22211   $as_echo "$ac_log"
22212 } >&5
22213
22214 _ACEOF
22215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22216 #
22217 # INIT-COMMANDS
22218 #
22219 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22220
22221
22222 # The HP-UX ksh and POSIX shell print the target directory to stdout
22223 # if CDPATH is set.
22224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22225
22226 sed_quote_subst='$sed_quote_subst'
22227 double_quote_subst='$double_quote_subst'
22228 delay_variable_subst='$delay_variable_subst'
22229 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22230 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22231 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22232 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22233 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22234 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22235 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22236 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22237 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22238 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22239 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22240 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22241 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22242 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22243 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22244 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22245 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22246 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22247 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22248 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22249 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22250 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22251 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22252 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22253 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22254 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22255 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22256 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22257 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22258 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22259 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22260 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22261 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22262 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22263 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22264 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22265 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22266 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22267 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22268 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22269 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22270 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22271 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22272 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22273 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22274 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22275 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22276 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22277 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22278 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22279 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22280 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22281 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22282 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22283 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22284 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22285 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"`'
22286 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22287 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22288 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22289 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22290 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22291 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22292 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22293 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22294 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22295 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22296 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22297 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22298 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22299 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22300 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22301 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22302 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22303 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22304 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22305 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22306 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22307 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22308 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22309 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22310 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22311 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22312 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22313 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22314 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22315 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22316 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22317 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22318 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22319 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22320 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22321 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22322 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22323 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22324 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22325 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22326 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22327 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22328 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22329 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22330 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22331 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22332 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22333 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22334 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22335 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22336 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22337 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22338 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22339 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22340 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22341 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22342 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22343 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22344 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22345 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22346 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22347 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22348 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22349 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22350 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22351 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22352 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22353 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22354 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22355 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22356 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22357 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22358 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22359 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22360 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22361 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22362 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22363 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22364 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22365 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22366 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22367 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22368 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22369 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22370 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22371 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22372 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22373 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22374 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22375 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22376 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22377 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22378 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22379 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22380 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22381 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22382 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22383 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22384 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22385 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22386 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22387 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22388 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22389 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22390 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22391 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22392 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22393 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22394 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22395 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22396 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22397 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22398 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22399 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22400 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22401 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22402 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22403 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22404 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22405 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22406 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22407 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22408 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22409 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22410 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22411 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22412 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22413
22414 LTCC='$LTCC'
22415 LTCFLAGS='$LTCFLAGS'
22416 compiler='$compiler_DEFAULT'
22417
22418 # A function that is used when there is no print builtin or printf.
22419 func_fallback_echo ()
22420 {
22421   eval 'cat <<_LTECHO_EOF
22422 \$1
22423 _LTECHO_EOF'
22424 }
22425
22426 # Quote evaled strings.
22427 for var in SHELL \
22428 ECHO \
22429 PATH_SEPARATOR \
22430 SED \
22431 GREP \
22432 EGREP \
22433 FGREP \
22434 LD \
22435 NM \
22436 LN_S \
22437 lt_SP2NL \
22438 lt_NL2SP \
22439 reload_flag \
22440 OBJDUMP \
22441 deplibs_check_method \
22442 file_magic_cmd \
22443 file_magic_glob \
22444 want_nocaseglob \
22445 DLLTOOL \
22446 sharedlib_from_linklib_cmd \
22447 AR \
22448 AR_FLAGS \
22449 archiver_list_spec \
22450 STRIP \
22451 RANLIB \
22452 CC \
22453 CFLAGS \
22454 compiler \
22455 lt_cv_sys_global_symbol_pipe \
22456 lt_cv_sys_global_symbol_to_cdecl \
22457 lt_cv_sys_global_symbol_to_c_name_address \
22458 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22459 nm_file_list_spec \
22460 lt_prog_compiler_no_builtin_flag \
22461 lt_prog_compiler_pic \
22462 lt_prog_compiler_wl \
22463 lt_prog_compiler_static \
22464 lt_cv_prog_compiler_c_o \
22465 need_locks \
22466 MANIFEST_TOOL \
22467 DSYMUTIL \
22468 NMEDIT \
22469 LIPO \
22470 OTOOL \
22471 OTOOL64 \
22472 shrext_cmds \
22473 export_dynamic_flag_spec \
22474 whole_archive_flag_spec \
22475 compiler_needs_object \
22476 with_gnu_ld \
22477 allow_undefined_flag \
22478 no_undefined_flag \
22479 hardcode_libdir_flag_spec \
22480 hardcode_libdir_separator \
22481 exclude_expsyms \
22482 include_expsyms \
22483 file_list_spec \
22484 variables_saved_for_relink \
22485 libname_spec \
22486 library_names_spec \
22487 soname_spec \
22488 install_override_mode \
22489 finish_eval \
22490 old_striplib \
22491 striplib \
22492 compiler_lib_search_dirs \
22493 predep_objects \
22494 postdep_objects \
22495 predeps \
22496 postdeps \
22497 compiler_lib_search_path \
22498 LD_CXX \
22499 reload_flag_CXX \
22500 compiler_CXX \
22501 lt_prog_compiler_no_builtin_flag_CXX \
22502 lt_prog_compiler_pic_CXX \
22503 lt_prog_compiler_wl_CXX \
22504 lt_prog_compiler_static_CXX \
22505 lt_cv_prog_compiler_c_o_CXX \
22506 export_dynamic_flag_spec_CXX \
22507 whole_archive_flag_spec_CXX \
22508 compiler_needs_object_CXX \
22509 with_gnu_ld_CXX \
22510 allow_undefined_flag_CXX \
22511 no_undefined_flag_CXX \
22512 hardcode_libdir_flag_spec_CXX \
22513 hardcode_libdir_separator_CXX \
22514 exclude_expsyms_CXX \
22515 include_expsyms_CXX \
22516 file_list_spec_CXX \
22517 compiler_lib_search_dirs_CXX \
22518 predep_objects_CXX \
22519 postdep_objects_CXX \
22520 predeps_CXX \
22521 postdeps_CXX \
22522 compiler_lib_search_path_CXX; do
22523     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22524     *[\\\\\\\`\\"\\\$]*)
22525       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22526       ;;
22527     *)
22528       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22529       ;;
22530     esac
22531 done
22532
22533 # Double-quote double-evaled strings.
22534 for var in reload_cmds \
22535 old_postinstall_cmds \
22536 old_postuninstall_cmds \
22537 old_archive_cmds \
22538 extract_expsyms_cmds \
22539 old_archive_from_new_cmds \
22540 old_archive_from_expsyms_cmds \
22541 archive_cmds \
22542 archive_expsym_cmds \
22543 module_cmds \
22544 module_expsym_cmds \
22545 export_symbols_cmds \
22546 prelink_cmds \
22547 postlink_cmds \
22548 postinstall_cmds \
22549 postuninstall_cmds \
22550 finish_cmds \
22551 sys_lib_search_path_spec \
22552 sys_lib_dlsearch_path_spec \
22553 reload_cmds_CXX \
22554 old_archive_cmds_CXX \
22555 old_archive_from_new_cmds_CXX \
22556 old_archive_from_expsyms_cmds_CXX \
22557 archive_cmds_CXX \
22558 archive_expsym_cmds_CXX \
22559 module_cmds_CXX \
22560 module_expsym_cmds_CXX \
22561 export_symbols_cmds_CXX \
22562 prelink_cmds_CXX \
22563 postlink_cmds_CXX; do
22564     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22565     *[\\\\\\\`\\"\\\$]*)
22566       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22567       ;;
22568     *)
22569       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22570       ;;
22571     esac
22572 done
22573
22574 ac_aux_dir='$ac_aux_dir'
22575 xsi_shell='$xsi_shell'
22576 lt_shell_append='$lt_shell_append'
22577
22578 # See if we are running on zsh, and set the options which allow our
22579 # commands through without removal of \ escapes INIT.
22580 if test -n "\${ZSH_VERSION+set}" ; then
22581    setopt NO_GLOB_SUBST
22582 fi
22583
22584
22585     PACKAGE='$PACKAGE'
22586     VERSION='$VERSION'
22587     TIMESTAMP='$TIMESTAMP'
22588     RM='$RM'
22589     ofile='$ofile'
22590
22591
22592
22593
22594
22595
22596 _ACEOF
22597
22598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22599
22600 # Handling of arguments.
22601 for ac_config_target in $ac_config_targets
22602 do
22603   case $ac_config_target in
22604     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22605     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
22606     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22607     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22608     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
22609     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
22610     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
22611     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
22612     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
22613     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
22614     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
22615     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
22616     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
22617     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
22618     "support/nsm/Makefile") CONFIG_FILES="$CONFIG_FILES support/nsm/Makefile" ;;
22619     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22620     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
22621     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
22622     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
22623     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
22624     "tools/mountstats/Makefile") CONFIG_FILES="$CONFIG_FILES tools/mountstats/Makefile" ;;
22625     "tools/nfs-iostat/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nfs-iostat/Makefile" ;;
22626     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
22627     "utils/blkmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/blkmapd/Makefile" ;;
22628     "utils/nfsdcltrack/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsdcltrack/Makefile" ;;
22629     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
22630     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
22631     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
22632     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
22633     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
22634     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
22635     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
22636     "utils/nfsidmap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsidmap/Makefile" ;;
22637     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
22638     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
22639     "utils/osd_login/Makefile") CONFIG_FILES="$CONFIG_FILES utils/osd_login/Makefile" ;;
22640     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22641     "tests/nsm_client/Makefile") CONFIG_FILES="$CONFIG_FILES tests/nsm_client/Makefile" ;;
22642
22643   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22644   esac
22645 done
22646
22647
22648 # If the user did not use the arguments to specify the items to instantiate,
22649 # then the envvar interface is used.  Set only those that are not.
22650 # We use the long form for the default assignment because of an extremely
22651 # bizarre bug on SunOS 4.1.3.
22652 if $ac_need_defaults; then
22653   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22654   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22655   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22656 fi
22657
22658 # Have a temporary directory for convenience.  Make it in the build tree
22659 # simply because there is no reason against having it here, and in addition,
22660 # creating and moving files from /tmp can sometimes cause problems.
22661 # Hook for its removal unless debugging.
22662 # Note that there is a small window in which the directory will not be cleaned:
22663 # after its creation but before its name has been assigned to `$tmp'.
22664 $debug ||
22665 {
22666   tmp= ac_tmp=
22667   trap 'exit_status=$?
22668   : "${ac_tmp:=$tmp}"
22669   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22670 ' 0
22671   trap 'as_fn_exit 1' 1 2 13 15
22672 }
22673 # Create a (secure) tmp directory for tmp files.
22674
22675 {
22676   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22677   test -d "$tmp"
22678 }  ||
22679 {
22680   tmp=./conf$$-$RANDOM
22681   (umask 077 && mkdir "$tmp")
22682 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22683 ac_tmp=$tmp
22684
22685 # Set up the scripts for CONFIG_FILES section.
22686 # No need to generate them if there are no CONFIG_FILES.
22687 # This happens for instance with `./config.status config.h'.
22688 if test -n "$CONFIG_FILES"; then
22689
22690
22691 ac_cr=`echo X | tr X '\015'`
22692 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22693 # But we know of no other shell where ac_cr would be empty at this
22694 # point, so we can use a bashism as a fallback.
22695 if test "x$ac_cr" = x; then
22696   eval ac_cr=\$\'\\r\'
22697 fi
22698 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22699 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22700   ac_cs_awk_cr='\\r'
22701 else
22702   ac_cs_awk_cr=$ac_cr
22703 fi
22704
22705 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22706 _ACEOF
22707
22708
22709 {
22710   echo "cat >conf$$subs.awk <<_ACEOF" &&
22711   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22712   echo "_ACEOF"
22713 } >conf$$subs.sh ||
22714   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22715 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22716 ac_delim='%!_!# '
22717 for ac_last_try in false false false false false :; do
22718   . ./conf$$subs.sh ||
22719     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22720
22721   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22722   if test $ac_delim_n = $ac_delim_num; then
22723     break
22724   elif $ac_last_try; then
22725     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22726   else
22727     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22728   fi
22729 done
22730 rm -f conf$$subs.sh
22731
22732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22733 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22734 _ACEOF
22735 sed -n '
22736 h
22737 s/^/S["/; s/!.*/"]=/
22738 p
22739 g
22740 s/^[^!]*!//
22741 :repl
22742 t repl
22743 s/'"$ac_delim"'$//
22744 t delim
22745 :nl
22746 h
22747 s/\(.\{148\}\)..*/\1/
22748 t more1
22749 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22750 p
22751 n
22752 b repl
22753 :more1
22754 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22755 p
22756 g
22757 s/.\{148\}//
22758 t nl
22759 :delim
22760 h
22761 s/\(.\{148\}\)..*/\1/
22762 t more2
22763 s/["\\]/\\&/g; s/^/"/; s/$/"/
22764 p
22765 b
22766 :more2
22767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22768 p
22769 g
22770 s/.\{148\}//
22771 t delim
22772 ' <conf$$subs.awk | sed '
22773 /^[^""]/{
22774   N
22775   s/\n//
22776 }
22777 ' >>$CONFIG_STATUS || ac_write_fail=1
22778 rm -f conf$$subs.awk
22779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22780 _ACAWK
22781 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22782   for (key in S) S_is_set[key] = 1
22783   FS = "\a"
22784
22785 }
22786 {
22787   line = $ 0
22788   nfields = split(line, field, "@")
22789   substed = 0
22790   len = length(field[1])
22791   for (i = 2; i < nfields; i++) {
22792     key = field[i]
22793     keylen = length(key)
22794     if (S_is_set[key]) {
22795       value = S[key]
22796       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22797       len += length(value) + length(field[++i])
22798       substed = 1
22799     } else
22800       len += 1 + keylen
22801   }
22802
22803   print line
22804 }
22805
22806 _ACAWK
22807 _ACEOF
22808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22809 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22810   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22811 else
22812   cat
22813 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22814   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22815 _ACEOF
22816
22817 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22818 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22819 # trailing colons and then remove the whole line if VPATH becomes empty
22820 # (actually we leave an empty line to preserve line numbers).
22821 if test "x$srcdir" = x.; then
22822   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22823 h
22824 s///
22825 s/^/:/
22826 s/[      ]*$/:/
22827 s/:\$(srcdir):/:/g
22828 s/:\${srcdir}:/:/g
22829 s/:@srcdir@:/:/g
22830 s/^:*//
22831 s/:*$//
22832 x
22833 s/\(=[   ]*\).*/\1/
22834 G
22835 s/\n//
22836 s/^[^=]*=[       ]*$//
22837 }'
22838 fi
22839
22840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22841 fi # test -n "$CONFIG_FILES"
22842
22843 # Set up the scripts for CONFIG_HEADERS section.
22844 # No need to generate them if there are no CONFIG_HEADERS.
22845 # This happens for instance with `./config.status Makefile'.
22846 if test -n "$CONFIG_HEADERS"; then
22847 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22848 BEGIN {
22849 _ACEOF
22850
22851 # Transform confdefs.h into an awk script `defines.awk', embedded as
22852 # here-document in config.status, that substitutes the proper values into
22853 # config.h.in to produce config.h.
22854
22855 # Create a delimiter string that does not exist in confdefs.h, to ease
22856 # handling of long lines.
22857 ac_delim='%!_!# '
22858 for ac_last_try in false false :; do
22859   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22860   if test -z "$ac_tt"; then
22861     break
22862   elif $ac_last_try; then
22863     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22864   else
22865     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22866   fi
22867 done
22868
22869 # For the awk script, D is an array of macro values keyed by name,
22870 # likewise P contains macro parameters if any.  Preserve backslash
22871 # newline sequences.
22872
22873 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22874 sed -n '
22875 s/.\{148\}/&'"$ac_delim"'/g
22876 t rset
22877 :rset
22878 s/^[     ]*#[    ]*define[       ][      ]*/ /
22879 t def
22880 d
22881 :def
22882 s/\\$//
22883 t bsnl
22884 s/["\\]/\\&/g
22885 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22886 D["\1"]=" \3"/p
22887 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22888 d
22889 :bsnl
22890 s/["\\]/\\&/g
22891 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22892 D["\1"]=" \3\\\\\\n"\\/p
22893 t cont
22894 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22895 t cont
22896 d
22897 :cont
22898 n
22899 s/.\{148\}/&'"$ac_delim"'/g
22900 t clear
22901 :clear
22902 s/\\$//
22903 t bsnlc
22904 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22905 d
22906 :bsnlc
22907 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22908 b cont
22909 ' <confdefs.h | sed '
22910 s/'"$ac_delim"'/"\\\
22911 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22912
22913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22914   for (key in D) D_is_set[key] = 1
22915   FS = "\a"
22916 }
22917 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22918   line = \$ 0
22919   split(line, arg, " ")
22920   if (arg[1] == "#") {
22921     defundef = arg[2]
22922     mac1 = arg[3]
22923   } else {
22924     defundef = substr(arg[1], 2)
22925     mac1 = arg[2]
22926   }
22927   split(mac1, mac2, "(") #)
22928   macro = mac2[1]
22929   prefix = substr(line, 1, index(line, defundef) - 1)
22930   if (D_is_set[macro]) {
22931     # Preserve the white space surrounding the "#".
22932     print prefix "define", macro P[macro] D[macro]
22933     next
22934   } else {
22935     # Replace #undef with comments.  This is necessary, for example,
22936     # in the case of _POSIX_SOURCE, which is predefined and required
22937     # on some systems where configure will not decide to define it.
22938     if (defundef == "undef") {
22939       print "/*", prefix defundef, macro, "*/"
22940       next
22941     }
22942   }
22943 }
22944 { print }
22945 _ACAWK
22946 _ACEOF
22947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22948   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22949 fi # test -n "$CONFIG_HEADERS"
22950
22951
22952 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22953 shift
22954 for ac_tag
22955 do
22956   case $ac_tag in
22957   :[FHLC]) ac_mode=$ac_tag; continue;;
22958   esac
22959   case $ac_mode$ac_tag in
22960   :[FHL]*:*);;
22961   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22962   :[FH]-) ac_tag=-:-;;
22963   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22964   esac
22965   ac_save_IFS=$IFS
22966   IFS=:
22967   set x $ac_tag
22968   IFS=$ac_save_IFS
22969   shift
22970   ac_file=$1
22971   shift
22972
22973   case $ac_mode in
22974   :L) ac_source=$1;;
22975   :[FH])
22976     ac_file_inputs=
22977     for ac_f
22978     do
22979       case $ac_f in
22980       -) ac_f="$ac_tmp/stdin";;
22981       *) # Look for the file first in the build tree, then in the source tree
22982          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22983          # because $ac_f cannot contain `:'.
22984          test -f "$ac_f" ||
22985            case $ac_f in
22986            [\\/$]*) false;;
22987            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22988            esac ||
22989            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22990       esac
22991       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22992       as_fn_append ac_file_inputs " '$ac_f'"
22993     done
22994
22995     # Let's still pretend it is `configure' which instantiates (i.e., don't
22996     # use $as_me), people would be surprised to read:
22997     #    /* config.h.  Generated by config.status.  */
22998     configure_input='Generated from '`
22999           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23000         `' by configure.'
23001     if test x"$ac_file" != x-; then
23002       configure_input="$ac_file.  $configure_input"
23003       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23004 $as_echo "$as_me: creating $ac_file" >&6;}
23005     fi
23006     # Neutralize special characters interpreted by sed in replacement strings.
23007     case $configure_input in #(
23008     *\&* | *\|* | *\\* )
23009        ac_sed_conf_input=`$as_echo "$configure_input" |
23010        sed 's/[\\\\&|]/\\\\&/g'`;; #(
23011     *) ac_sed_conf_input=$configure_input;;
23012     esac
23013
23014     case $ac_tag in
23015     *:-:* | *:-) cat >"$ac_tmp/stdin" \
23016       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23017     esac
23018     ;;
23019   esac
23020
23021   ac_dir=`$as_dirname -- "$ac_file" ||
23022 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23023          X"$ac_file" : 'X\(//\)[^/]' \| \
23024          X"$ac_file" : 'X\(//\)$' \| \
23025          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23026 $as_echo X"$ac_file" |
23027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23028             s//\1/
23029             q
23030           }
23031           /^X\(\/\/\)[^/].*/{
23032             s//\1/
23033             q
23034           }
23035           /^X\(\/\/\)$/{
23036             s//\1/
23037             q
23038           }
23039           /^X\(\/\).*/{
23040             s//\1/
23041             q
23042           }
23043           s/.*/./; q'`
23044   as_dir="$ac_dir"; as_fn_mkdir_p
23045   ac_builddir=.
23046
23047 case "$ac_dir" in
23048 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23049 *)
23050   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23051   # A ".." for each directory in $ac_dir_suffix.
23052   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23053   case $ac_top_builddir_sub in
23054   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23055   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23056   esac ;;
23057 esac
23058 ac_abs_top_builddir=$ac_pwd
23059 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23060 # for backward compatibility:
23061 ac_top_builddir=$ac_top_build_prefix
23062
23063 case $srcdir in
23064   .)  # We are building in place.
23065     ac_srcdir=.
23066     ac_top_srcdir=$ac_top_builddir_sub
23067     ac_abs_top_srcdir=$ac_pwd ;;
23068   [\\/]* | ?:[\\/]* )  # Absolute name.
23069     ac_srcdir=$srcdir$ac_dir_suffix;
23070     ac_top_srcdir=$srcdir
23071     ac_abs_top_srcdir=$srcdir ;;
23072   *) # Relative name.
23073     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23074     ac_top_srcdir=$ac_top_build_prefix$srcdir
23075     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23076 esac
23077 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23078
23079
23080   case $ac_mode in
23081   :F)
23082   #
23083   # CONFIG_FILE
23084   #
23085
23086   case $INSTALL in
23087   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23088   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23089   esac
23090   ac_MKDIR_P=$MKDIR_P
23091   case $MKDIR_P in
23092   [\\/$]* | ?:[\\/]* ) ;;
23093   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23094   esac
23095 _ACEOF
23096
23097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23098 # If the template does not know about datarootdir, expand it.
23099 # FIXME: This hack should be removed a few years after 2.60.
23100 ac_datarootdir_hack=; ac_datarootdir_seen=
23101 ac_sed_dataroot='
23102 /datarootdir/ {
23103   p
23104   q
23105 }
23106 /@datadir@/p
23107 /@docdir@/p
23108 /@infodir@/p
23109 /@localedir@/p
23110 /@mandir@/p'
23111 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23112 *datarootdir*) ac_datarootdir_seen=yes;;
23113 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23114   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23115 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23116 _ACEOF
23117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23118   ac_datarootdir_hack='
23119   s&@datadir@&$datadir&g
23120   s&@docdir@&$docdir&g
23121   s&@infodir@&$infodir&g
23122   s&@localedir@&$localedir&g
23123   s&@mandir@&$mandir&g
23124   s&\\\${datarootdir}&$datarootdir&g' ;;
23125 esac
23126 _ACEOF
23127
23128 # Neutralize VPATH when `$srcdir' = `.'.
23129 # Shell code in configure.ac might set extrasub.
23130 # FIXME: do we really want to maintain this feature?
23131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23132 ac_sed_extra="$ac_vpsub
23133 $extrasub
23134 _ACEOF
23135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23136 :t
23137 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23138 s|@configure_input@|$ac_sed_conf_input|;t t
23139 s&@top_builddir@&$ac_top_builddir_sub&;t t
23140 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23141 s&@srcdir@&$ac_srcdir&;t t
23142 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23143 s&@top_srcdir@&$ac_top_srcdir&;t t
23144 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23145 s&@builddir@&$ac_builddir&;t t
23146 s&@abs_builddir@&$ac_abs_builddir&;t t
23147 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23148 s&@INSTALL@&$ac_INSTALL&;t t
23149 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23150 $ac_datarootdir_hack
23151 "
23152 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23153   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23154
23155 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23156   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23157   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
23158       "$ac_tmp/out"`; test -z "$ac_out"; } &&
23159   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23160 which seems to be undefined.  Please make sure it is defined" >&5
23161 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23162 which seems to be undefined.  Please make sure it is defined" >&2;}
23163
23164   rm -f "$ac_tmp/stdin"
23165   case $ac_file in
23166   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23167   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23168   esac \
23169   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23170  ;;
23171   :H)
23172   #
23173   # CONFIG_HEADER
23174   #
23175   if test x"$ac_file" != x-; then
23176     {
23177       $as_echo "/* $configure_input  */" \
23178       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23179     } >"$ac_tmp/config.h" \
23180       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23181     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23182       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23183 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23184     else
23185       rm -f "$ac_file"
23186       mv "$ac_tmp/config.h" "$ac_file" \
23187         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23188     fi
23189   else
23190     $as_echo "/* $configure_input  */" \
23191       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23192       || as_fn_error $? "could not create -" "$LINENO" 5
23193   fi
23194 # Compute "$ac_file"'s index in $config_headers.
23195 _am_arg="$ac_file"
23196 _am_stamp_count=1
23197 for _am_header in $config_headers :; do
23198   case $_am_header in
23199     $_am_arg | $_am_arg:* )
23200       break ;;
23201     * )
23202       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23203   esac
23204 done
23205 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23206 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23207          X"$_am_arg" : 'X\(//\)[^/]' \| \
23208          X"$_am_arg" : 'X\(//\)$' \| \
23209          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23210 $as_echo X"$_am_arg" |
23211     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23212             s//\1/
23213             q
23214           }
23215           /^X\(\/\/\)[^/].*/{
23216             s//\1/
23217             q
23218           }
23219           /^X\(\/\/\)$/{
23220             s//\1/
23221             q
23222           }
23223           /^X\(\/\).*/{
23224             s//\1/
23225             q
23226           }
23227           s/.*/./; q'`/stamp-h$_am_stamp_count
23228  ;;
23229
23230   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23231 $as_echo "$as_me: executing $ac_file commands" >&6;}
23232  ;;
23233   esac
23234
23235
23236   case $ac_file$ac_mode in
23237     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23238   # Autoconf 2.62 quotes --file arguments for eval, but not when files
23239   # are listed without --file.  Let's play safe and only enable the eval
23240   # if we detect the quoting.
23241   case $CONFIG_FILES in
23242   *\'*) eval set x "$CONFIG_FILES" ;;
23243   *)   set x $CONFIG_FILES ;;
23244   esac
23245   shift
23246   for mf
23247   do
23248     # Strip MF so we end up with the name of the file.
23249     mf=`echo "$mf" | sed -e 's/:.*$//'`
23250     # Check whether this is an Automake generated Makefile or not.
23251     # We used to match only the files named 'Makefile.in', but
23252     # some people rename them; so instead we look at the file content.
23253     # Grep'ing the first line is not enough: some people post-process
23254     # each Makefile.in and add a new line on top of each file to say so.
23255     # Grep'ing the whole file is not good either: AIX grep has a line
23256     # limit of 2048, but all sed's we know have understand at least 4000.
23257     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23258       dirpart=`$as_dirname -- "$mf" ||
23259 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23260          X"$mf" : 'X\(//\)[^/]' \| \
23261          X"$mf" : 'X\(//\)$' \| \
23262          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23263 $as_echo X"$mf" |
23264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23265             s//\1/
23266             q
23267           }
23268           /^X\(\/\/\)[^/].*/{
23269             s//\1/
23270             q
23271           }
23272           /^X\(\/\/\)$/{
23273             s//\1/
23274             q
23275           }
23276           /^X\(\/\).*/{
23277             s//\1/
23278             q
23279           }
23280           s/.*/./; q'`
23281     else
23282       continue
23283     fi
23284     # Extract the definition of DEPDIR, am__include, and am__quote
23285     # from the Makefile without running 'make'.
23286     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23287     test -z "$DEPDIR" && continue
23288     am__include=`sed -n 's/^am__include = //p' < "$mf"`
23289     test -z "am__include" && continue
23290     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23291     # Find all dependency output files, they are included files with
23292     # $(DEPDIR) in their names.  We invoke sed twice because it is the
23293     # simplest approach to changing $(DEPDIR) to its actual value in the
23294     # expansion.
23295     for file in `sed -n "
23296       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23297          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23298       # Make sure the directory exists.
23299       test -f "$dirpart/$file" && continue
23300       fdir=`$as_dirname -- "$file" ||
23301 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23302          X"$file" : 'X\(//\)[^/]' \| \
23303          X"$file" : 'X\(//\)$' \| \
23304          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23305 $as_echo X"$file" |
23306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23307             s//\1/
23308             q
23309           }
23310           /^X\(\/\/\)[^/].*/{
23311             s//\1/
23312             q
23313           }
23314           /^X\(\/\/\)$/{
23315             s//\1/
23316             q
23317           }
23318           /^X\(\/\).*/{
23319             s//\1/
23320             q
23321           }
23322           s/.*/./; q'`
23323       as_dir=$dirpart/$fdir; as_fn_mkdir_p
23324       # echo "creating $dirpart/$file"
23325       echo '# dummy' > "$dirpart/$file"
23326     done
23327   done
23328 }
23329  ;;
23330     "libtool":C)
23331
23332     # See if we are running on zsh, and set the options which allow our
23333     # commands through without removal of \ escapes.
23334     if test -n "${ZSH_VERSION+set}" ; then
23335       setopt NO_GLOB_SUBST
23336     fi
23337
23338     cfgfile="${ofile}T"
23339     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23340     $RM "$cfgfile"
23341
23342     cat <<_LT_EOF >> "$cfgfile"
23343 #! $SHELL
23344
23345 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23346 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23347 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23348 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23349 #
23350 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23351 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23352 #                 Foundation, Inc.
23353 #   Written by Gordon Matzigkeit, 1996
23354 #
23355 #   This file is part of GNU Libtool.
23356 #
23357 # GNU Libtool is free software; you can redistribute it and/or
23358 # modify it under the terms of the GNU General Public License as
23359 # published by the Free Software Foundation; either version 2 of
23360 # the License, or (at your option) any later version.
23361 #
23362 # As a special exception to the GNU General Public License,
23363 # if you distribute this file as part of a program or library that
23364 # is built using GNU Libtool, you may include this file under the
23365 # same distribution terms that you use for the rest of that program.
23366 #
23367 # GNU Libtool is distributed in the hope that it will be useful,
23368 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23369 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23370 # GNU General Public License for more details.
23371 #
23372 # You should have received a copy of the GNU General Public License
23373 # along with GNU Libtool; see the file COPYING.  If not, a copy
23374 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23375 # obtained by writing to the Free Software Foundation, Inc.,
23376 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23377
23378
23379 # The names of the tagged configurations supported by this script.
23380 available_tags="CXX "
23381
23382 # ### BEGIN LIBTOOL CONFIG
23383
23384 # Which release of libtool.m4 was used?
23385 macro_version=$macro_version
23386 macro_revision=$macro_revision
23387
23388 # Whether or not to build shared libraries.
23389 build_libtool_libs=$enable_shared
23390
23391 # Whether or not to build static libraries.
23392 build_old_libs=$enable_static
23393
23394 # What type of objects to build.
23395 pic_mode=$pic_mode
23396
23397 # Whether or not to optimize for fast installation.
23398 fast_install=$enable_fast_install
23399
23400 # Shell to use when invoking shell scripts.
23401 SHELL=$lt_SHELL
23402
23403 # An echo program that protects backslashes.
23404 ECHO=$lt_ECHO
23405
23406 # The PATH separator for the build system.
23407 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23408
23409 # The host system.
23410 host_alias=$host_alias
23411 host=$host
23412 host_os=$host_os
23413
23414 # The build system.
23415 build_alias=$build_alias
23416 build=$build
23417 build_os=$build_os
23418
23419 # A sed program that does not truncate output.
23420 SED=$lt_SED
23421
23422 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23423 Xsed="\$SED -e 1s/^X//"
23424
23425 # A grep program that handles long lines.
23426 GREP=$lt_GREP
23427
23428 # An ERE matcher.
23429 EGREP=$lt_EGREP
23430
23431 # A literal string matcher.
23432 FGREP=$lt_FGREP
23433
23434 # A BSD- or MS-compatible name lister.
23435 NM=$lt_NM
23436
23437 # Whether we need soft or hard links.
23438 LN_S=$lt_LN_S
23439
23440 # What is the maximum length of a command?
23441 max_cmd_len=$max_cmd_len
23442
23443 # Object file suffix (normally "o").
23444 objext=$ac_objext
23445
23446 # Executable file suffix (normally "").
23447 exeext=$exeext
23448
23449 # whether the shell understands "unset".
23450 lt_unset=$lt_unset
23451
23452 # turn spaces into newlines.
23453 SP2NL=$lt_lt_SP2NL
23454
23455 # turn newlines into spaces.
23456 NL2SP=$lt_lt_NL2SP
23457
23458 # convert \$build file names to \$host format.
23459 to_host_file_cmd=$lt_cv_to_host_file_cmd
23460
23461 # convert \$build files to toolchain format.
23462 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23463
23464 # An object symbol dumper.
23465 OBJDUMP=$lt_OBJDUMP
23466
23467 # Method to check whether dependent libraries are shared objects.
23468 deplibs_check_method=$lt_deplibs_check_method
23469
23470 # Command to use when deplibs_check_method = "file_magic".
23471 file_magic_cmd=$lt_file_magic_cmd
23472
23473 # How to find potential files when deplibs_check_method = "file_magic".
23474 file_magic_glob=$lt_file_magic_glob
23475
23476 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23477 want_nocaseglob=$lt_want_nocaseglob
23478
23479 # DLL creation program.
23480 DLLTOOL=$lt_DLLTOOL
23481
23482 # Command to associate shared and link libraries.
23483 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23484
23485 # The archiver.
23486 AR=$lt_AR
23487
23488 # Flags to create an archive.
23489 AR_FLAGS=$lt_AR_FLAGS
23490
23491 # How to feed a file listing to the archiver.
23492 archiver_list_spec=$lt_archiver_list_spec
23493
23494 # A symbol stripping program.
23495 STRIP=$lt_STRIP
23496
23497 # Commands used to install an old-style archive.
23498 RANLIB=$lt_RANLIB
23499 old_postinstall_cmds=$lt_old_postinstall_cmds
23500 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23501
23502 # Whether to use a lock for old archive extraction.
23503 lock_old_archive_extraction=$lock_old_archive_extraction
23504
23505 # A C compiler.
23506 LTCC=$lt_CC
23507
23508 # LTCC compiler flags.
23509 LTCFLAGS=$lt_CFLAGS
23510
23511 # Take the output of nm and produce a listing of raw symbols and C names.
23512 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23513
23514 # Transform the output of nm in a proper C declaration.
23515 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23516
23517 # Transform the output of nm in a C name address pair.
23518 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23519
23520 # Transform the output of nm in a C name address pair when lib prefix is needed.
23521 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23522
23523 # Specify filename containing input files for \$NM.
23524 nm_file_list_spec=$lt_nm_file_list_spec
23525
23526 # The root where to search for dependent libraries,and in which our libraries should be installed.
23527 lt_sysroot=$lt_sysroot
23528
23529 # The name of the directory that contains temporary libtool files.
23530 objdir=$objdir
23531
23532 # Used to examine libraries when file_magic_cmd begins with "file".
23533 MAGIC_CMD=$MAGIC_CMD
23534
23535 # Must we lock files when doing compilation?
23536 need_locks=$lt_need_locks
23537
23538 # Manifest tool.
23539 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23540
23541 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23542 DSYMUTIL=$lt_DSYMUTIL
23543
23544 # Tool to change global to local symbols on Mac OS X.
23545 NMEDIT=$lt_NMEDIT
23546
23547 # Tool to manipulate fat objects and archives on Mac OS X.
23548 LIPO=$lt_LIPO
23549
23550 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23551 OTOOL=$lt_OTOOL
23552
23553 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23554 OTOOL64=$lt_OTOOL64
23555
23556 # Old archive suffix (normally "a").
23557 libext=$libext
23558
23559 # Shared library suffix (normally ".so").
23560 shrext_cmds=$lt_shrext_cmds
23561
23562 # The commands to extract the exported symbol list from a shared archive.
23563 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23564
23565 # Variables whose values should be saved in libtool wrapper scripts and
23566 # restored at link time.
23567 variables_saved_for_relink=$lt_variables_saved_for_relink
23568
23569 # Do we need the "lib" prefix for modules?
23570 need_lib_prefix=$need_lib_prefix
23571
23572 # Do we need a version for libraries?
23573 need_version=$need_version
23574
23575 # Library versioning type.
23576 version_type=$version_type
23577
23578 # Shared library runtime path variable.
23579 runpath_var=$runpath_var
23580
23581 # Shared library path variable.
23582 shlibpath_var=$shlibpath_var
23583
23584 # Is shlibpath searched before the hard-coded library search path?
23585 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23586
23587 # Format of library name prefix.
23588 libname_spec=$lt_libname_spec
23589
23590 # List of archive names.  First name is the real one, the rest are links.
23591 # The last name is the one that the linker finds with -lNAME
23592 library_names_spec=$lt_library_names_spec
23593
23594 # The coded name of the library, if different from the real name.
23595 soname_spec=$lt_soname_spec
23596
23597 # Permission mode override for installation of shared libraries.
23598 install_override_mode=$lt_install_override_mode
23599
23600 # Command to use after installation of a shared archive.
23601 postinstall_cmds=$lt_postinstall_cmds
23602
23603 # Command to use after uninstallation of a shared archive.
23604 postuninstall_cmds=$lt_postuninstall_cmds
23605
23606 # Commands used to finish a libtool library installation in a directory.
23607 finish_cmds=$lt_finish_cmds
23608
23609 # As "finish_cmds", except a single script fragment to be evaled but
23610 # not shown.
23611 finish_eval=$lt_finish_eval
23612
23613 # Whether we should hardcode library paths into libraries.
23614 hardcode_into_libs=$hardcode_into_libs
23615
23616 # Compile-time system search path for libraries.
23617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23618
23619 # Run-time system search path for libraries.
23620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23621
23622 # Whether dlopen is supported.
23623 dlopen_support=$enable_dlopen
23624
23625 # Whether dlopen of programs is supported.
23626 dlopen_self=$enable_dlopen_self
23627
23628 # Whether dlopen of statically linked programs is supported.
23629 dlopen_self_static=$enable_dlopen_self_static
23630
23631 # Commands to strip libraries.
23632 old_striplib=$lt_old_striplib
23633 striplib=$lt_striplib
23634
23635
23636 # The linker used to build libraries.
23637 LD=$lt_LD
23638
23639 # How to create reloadable object files.
23640 reload_flag=$lt_reload_flag
23641 reload_cmds=$lt_reload_cmds
23642
23643 # Commands used to build an old-style archive.
23644 old_archive_cmds=$lt_old_archive_cmds
23645
23646 # A language specific compiler.
23647 CC=$lt_compiler
23648
23649 # Is the compiler the GNU compiler?
23650 with_gcc=$GCC
23651
23652 # Compiler flag to turn off builtin functions.
23653 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23654
23655 # Additional compiler flags for building library objects.
23656 pic_flag=$lt_lt_prog_compiler_pic
23657
23658 # How to pass a linker flag through the compiler.
23659 wl=$lt_lt_prog_compiler_wl
23660
23661 # Compiler flag to prevent dynamic linking.
23662 link_static_flag=$lt_lt_prog_compiler_static
23663
23664 # Does compiler simultaneously support -c and -o options?
23665 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23666
23667 # Whether or not to add -lc for building shared libraries.
23668 build_libtool_need_lc=$archive_cmds_need_lc
23669
23670 # Whether or not to disallow shared libs when runtime libs are static.
23671 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23672
23673 # Compiler flag to allow reflexive dlopens.
23674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23675
23676 # Compiler flag to generate shared objects directly from archives.
23677 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23678
23679 # Whether the compiler copes with passing no objects directly.
23680 compiler_needs_object=$lt_compiler_needs_object
23681
23682 # Create an old-style archive from a shared archive.
23683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23684
23685 # Create a temporary old-style archive to link instead of a shared archive.
23686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23687
23688 # Commands used to build a shared archive.
23689 archive_cmds=$lt_archive_cmds
23690 archive_expsym_cmds=$lt_archive_expsym_cmds
23691
23692 # Commands used to build a loadable module if different from building
23693 # a shared archive.
23694 module_cmds=$lt_module_cmds
23695 module_expsym_cmds=$lt_module_expsym_cmds
23696
23697 # Whether we are building with GNU ld or not.
23698 with_gnu_ld=$lt_with_gnu_ld
23699
23700 # Flag that allows shared libraries with undefined symbols to be built.
23701 allow_undefined_flag=$lt_allow_undefined_flag
23702
23703 # Flag that enforces no undefined symbols.
23704 no_undefined_flag=$lt_no_undefined_flag
23705
23706 # Flag to hardcode \$libdir into a binary during linking.
23707 # This must work even if \$libdir does not exist
23708 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23709
23710 # Whether we need a single "-rpath" flag with a separated argument.
23711 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23712
23713 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23714 # DIR into the resulting binary.
23715 hardcode_direct=$hardcode_direct
23716
23717 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23718 # DIR into the resulting binary and the resulting library dependency is
23719 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23720 # library is relocated.
23721 hardcode_direct_absolute=$hardcode_direct_absolute
23722
23723 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23724 # into the resulting binary.
23725 hardcode_minus_L=$hardcode_minus_L
23726
23727 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23728 # into the resulting binary.
23729 hardcode_shlibpath_var=$hardcode_shlibpath_var
23730
23731 # Set to "yes" if building a shared library automatically hardcodes DIR
23732 # into the library and all subsequent libraries and executables linked
23733 # against it.
23734 hardcode_automatic=$hardcode_automatic
23735
23736 # Set to yes if linker adds runtime paths of dependent libraries
23737 # to runtime path list.
23738 inherit_rpath=$inherit_rpath
23739
23740 # Whether libtool must link a program against all its dependency libraries.
23741 link_all_deplibs=$link_all_deplibs
23742
23743 # Set to "yes" if exported symbols are required.
23744 always_export_symbols=$always_export_symbols
23745
23746 # The commands to list exported symbols.
23747 export_symbols_cmds=$lt_export_symbols_cmds
23748
23749 # Symbols that should not be listed in the preloaded symbols.
23750 exclude_expsyms=$lt_exclude_expsyms
23751
23752 # Symbols that must always be exported.
23753 include_expsyms=$lt_include_expsyms
23754
23755 # Commands necessary for linking programs (against libraries) with templates.
23756 prelink_cmds=$lt_prelink_cmds
23757
23758 # Commands necessary for finishing linking programs.
23759 postlink_cmds=$lt_postlink_cmds
23760
23761 # Specify filename containing input files.
23762 file_list_spec=$lt_file_list_spec
23763
23764 # How to hardcode a shared library path into an executable.
23765 hardcode_action=$hardcode_action
23766
23767 # The directories searched by this compiler when creating a shared library.
23768 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23769
23770 # Dependencies to place before and after the objects being linked to
23771 # create a shared library.
23772 predep_objects=$lt_predep_objects
23773 postdep_objects=$lt_postdep_objects
23774 predeps=$lt_predeps
23775 postdeps=$lt_postdeps
23776
23777 # The library search path used internally by the compiler when linking
23778 # a shared library.
23779 compiler_lib_search_path=$lt_compiler_lib_search_path
23780
23781 # ### END LIBTOOL CONFIG
23782
23783 _LT_EOF
23784
23785   case $host_os in
23786   aix3*)
23787     cat <<\_LT_EOF >> "$cfgfile"
23788 # AIX sometimes has problems with the GCC collect2 program.  For some
23789 # reason, if we set the COLLECT_NAMES environment variable, the problems
23790 # vanish in a puff of smoke.
23791 if test "X${COLLECT_NAMES+set}" != Xset; then
23792   COLLECT_NAMES=
23793   export COLLECT_NAMES
23794 fi
23795 _LT_EOF
23796     ;;
23797   esac
23798
23799
23800 ltmain="$ac_aux_dir/ltmain.sh"
23801
23802
23803   # We use sed instead of cat because bash on DJGPP gets confused if
23804   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23805   # text mode, it properly converts lines to CR/LF.  This bash problem
23806   # is reportedly fixed, but why not run on old versions too?
23807   sed '$q' "$ltmain" >> "$cfgfile" \
23808      || (rm -f "$cfgfile"; exit 1)
23809
23810   if test x"$xsi_shell" = xyes; then
23811   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23812 func_dirname ()\
23813 {\
23814 \    case ${1} in\
23815 \      */*) func_dirname_result="${1%/*}${2}" ;;\
23816 \      *  ) func_dirname_result="${3}" ;;\
23817 \    esac\
23818 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23819   && mv -f "$cfgfile.tmp" "$cfgfile" \
23820     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23821 test 0 -eq $? || _lt_function_replace_fail=:
23822
23823
23824   sed -e '/^func_basename ()$/,/^} # func_basename /c\
23825 func_basename ()\
23826 {\
23827 \    func_basename_result="${1##*/}"\
23828 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23829   && mv -f "$cfgfile.tmp" "$cfgfile" \
23830     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23831 test 0 -eq $? || _lt_function_replace_fail=:
23832
23833
23834   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23835 func_dirname_and_basename ()\
23836 {\
23837 \    case ${1} in\
23838 \      */*) func_dirname_result="${1%/*}${2}" ;;\
23839 \      *  ) func_dirname_result="${3}" ;;\
23840 \    esac\
23841 \    func_basename_result="${1##*/}"\
23842 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23843   && mv -f "$cfgfile.tmp" "$cfgfile" \
23844     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23845 test 0 -eq $? || _lt_function_replace_fail=:
23846
23847
23848   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23849 func_stripname ()\
23850 {\
23851 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23852 \    # positional parameters, so assign one to ordinary parameter first.\
23853 \    func_stripname_result=${3}\
23854 \    func_stripname_result=${func_stripname_result#"${1}"}\
23855 \    func_stripname_result=${func_stripname_result%"${2}"}\
23856 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23857   && mv -f "$cfgfile.tmp" "$cfgfile" \
23858     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23859 test 0 -eq $? || _lt_function_replace_fail=:
23860
23861
23862   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23863 func_split_long_opt ()\
23864 {\
23865 \    func_split_long_opt_name=${1%%=*}\
23866 \    func_split_long_opt_arg=${1#*=}\
23867 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23868   && mv -f "$cfgfile.tmp" "$cfgfile" \
23869     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23870 test 0 -eq $? || _lt_function_replace_fail=:
23871
23872
23873   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23874 func_split_short_opt ()\
23875 {\
23876 \    func_split_short_opt_arg=${1#??}\
23877 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23878 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23879   && mv -f "$cfgfile.tmp" "$cfgfile" \
23880     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23881 test 0 -eq $? || _lt_function_replace_fail=:
23882
23883
23884   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23885 func_lo2o ()\
23886 {\
23887 \    case ${1} in\
23888 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23889 \      *)    func_lo2o_result=${1} ;;\
23890 \    esac\
23891 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23892   && mv -f "$cfgfile.tmp" "$cfgfile" \
23893     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23894 test 0 -eq $? || _lt_function_replace_fail=:
23895
23896
23897   sed -e '/^func_xform ()$/,/^} # func_xform /c\
23898 func_xform ()\
23899 {\
23900     func_xform_result=${1%.*}.lo\
23901 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23902   && mv -f "$cfgfile.tmp" "$cfgfile" \
23903     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23904 test 0 -eq $? || _lt_function_replace_fail=:
23905
23906
23907   sed -e '/^func_arith ()$/,/^} # func_arith /c\
23908 func_arith ()\
23909 {\
23910     func_arith_result=$(( $* ))\
23911 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23912   && mv -f "$cfgfile.tmp" "$cfgfile" \
23913     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23914 test 0 -eq $? || _lt_function_replace_fail=:
23915
23916
23917   sed -e '/^func_len ()$/,/^} # func_len /c\
23918 func_len ()\
23919 {\
23920     func_len_result=${#1}\
23921 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23922   && mv -f "$cfgfile.tmp" "$cfgfile" \
23923     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23924 test 0 -eq $? || _lt_function_replace_fail=:
23925
23926 fi
23927
23928 if test x"$lt_shell_append" = xyes; then
23929   sed -e '/^func_append ()$/,/^} # func_append /c\
23930 func_append ()\
23931 {\
23932     eval "${1}+=\\${2}"\
23933 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23934   && mv -f "$cfgfile.tmp" "$cfgfile" \
23935     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23936 test 0 -eq $? || _lt_function_replace_fail=:
23937
23938
23939   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23940 func_append_quoted ()\
23941 {\
23942 \    func_quote_for_eval "${2}"\
23943 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23944 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23945   && mv -f "$cfgfile.tmp" "$cfgfile" \
23946     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23947 test 0 -eq $? || _lt_function_replace_fail=:
23948
23949
23950   # Save a `func_append' function call where possible by direct use of '+='
23951   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23952     && mv -f "$cfgfile.tmp" "$cfgfile" \
23953       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23954   test 0 -eq $? || _lt_function_replace_fail=:
23955 else
23956   # Save a `func_append' function call even when '+=' is not available
23957   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23958     && mv -f "$cfgfile.tmp" "$cfgfile" \
23959       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23960   test 0 -eq $? || _lt_function_replace_fail=:
23961 fi
23962
23963 if test x"$_lt_function_replace_fail" = x":"; then
23964   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23965 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23966 fi
23967
23968
23969    mv -f "$cfgfile" "$ofile" ||
23970     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23971   chmod +x "$ofile"
23972
23973
23974     cat <<_LT_EOF >> "$ofile"
23975
23976 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23977
23978 # The linker used to build libraries.
23979 LD=$lt_LD_CXX
23980
23981 # How to create reloadable object files.
23982 reload_flag=$lt_reload_flag_CXX
23983 reload_cmds=$lt_reload_cmds_CXX
23984
23985 # Commands used to build an old-style archive.
23986 old_archive_cmds=$lt_old_archive_cmds_CXX
23987
23988 # A language specific compiler.
23989 CC=$lt_compiler_CXX
23990
23991 # Is the compiler the GNU compiler?
23992 with_gcc=$GCC_CXX
23993
23994 # Compiler flag to turn off builtin functions.
23995 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23996
23997 # Additional compiler flags for building library objects.
23998 pic_flag=$lt_lt_prog_compiler_pic_CXX
23999
24000 # How to pass a linker flag through the compiler.
24001 wl=$lt_lt_prog_compiler_wl_CXX
24002
24003 # Compiler flag to prevent dynamic linking.
24004 link_static_flag=$lt_lt_prog_compiler_static_CXX
24005
24006 # Does compiler simultaneously support -c and -o options?
24007 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24008
24009 # Whether or not to add -lc for building shared libraries.
24010 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24011
24012 # Whether or not to disallow shared libs when runtime libs are static.
24013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24014
24015 # Compiler flag to allow reflexive dlopens.
24016 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24017
24018 # Compiler flag to generate shared objects directly from archives.
24019 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24020
24021 # Whether the compiler copes with passing no objects directly.
24022 compiler_needs_object=$lt_compiler_needs_object_CXX
24023
24024 # Create an old-style archive from a shared archive.
24025 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24026
24027 # Create a temporary old-style archive to link instead of a shared archive.
24028 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24029
24030 # Commands used to build a shared archive.
24031 archive_cmds=$lt_archive_cmds_CXX
24032 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24033
24034 # Commands used to build a loadable module if different from building
24035 # a shared archive.
24036 module_cmds=$lt_module_cmds_CXX
24037 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24038
24039 # Whether we are building with GNU ld or not.
24040 with_gnu_ld=$lt_with_gnu_ld_CXX
24041
24042 # Flag that allows shared libraries with undefined symbols to be built.
24043 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24044
24045 # Flag that enforces no undefined symbols.
24046 no_undefined_flag=$lt_no_undefined_flag_CXX
24047
24048 # Flag to hardcode \$libdir into a binary during linking.
24049 # This must work even if \$libdir does not exist
24050 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24051
24052 # Whether we need a single "-rpath" flag with a separated argument.
24053 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24054
24055 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24056 # DIR into the resulting binary.
24057 hardcode_direct=$hardcode_direct_CXX
24058
24059 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24060 # DIR into the resulting binary and the resulting library dependency is
24061 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24062 # library is relocated.
24063 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24064
24065 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24066 # into the resulting binary.
24067 hardcode_minus_L=$hardcode_minus_L_CXX
24068
24069 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24070 # into the resulting binary.
24071 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24072
24073 # Set to "yes" if building a shared library automatically hardcodes DIR
24074 # into the library and all subsequent libraries and executables linked
24075 # against it.
24076 hardcode_automatic=$hardcode_automatic_CXX
24077
24078 # Set to yes if linker adds runtime paths of dependent libraries
24079 # to runtime path list.
24080 inherit_rpath=$inherit_rpath_CXX
24081
24082 # Whether libtool must link a program against all its dependency libraries.
24083 link_all_deplibs=$link_all_deplibs_CXX
24084
24085 # Set to "yes" if exported symbols are required.
24086 always_export_symbols=$always_export_symbols_CXX
24087
24088 # The commands to list exported symbols.
24089 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24090
24091 # Symbols that should not be listed in the preloaded symbols.
24092 exclude_expsyms=$lt_exclude_expsyms_CXX
24093
24094 # Symbols that must always be exported.
24095 include_expsyms=$lt_include_expsyms_CXX
24096
24097 # Commands necessary for linking programs (against libraries) with templates.
24098 prelink_cmds=$lt_prelink_cmds_CXX
24099
24100 # Commands necessary for finishing linking programs.
24101 postlink_cmds=$lt_postlink_cmds_CXX
24102
24103 # Specify filename containing input files.
24104 file_list_spec=$lt_file_list_spec_CXX
24105
24106 # How to hardcode a shared library path into an executable.
24107 hardcode_action=$hardcode_action_CXX
24108
24109 # The directories searched by this compiler when creating a shared library.
24110 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24111
24112 # Dependencies to place before and after the objects being linked to
24113 # create a shared library.
24114 predep_objects=$lt_predep_objects_CXX
24115 postdep_objects=$lt_postdep_objects_CXX
24116 predeps=$lt_predeps_CXX
24117 postdeps=$lt_postdeps_CXX
24118
24119 # The library search path used internally by the compiler when linking
24120 # a shared library.
24121 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24122
24123 # ### END LIBTOOL TAG CONFIG: CXX
24124 _LT_EOF
24125
24126  ;;
24127
24128   esac
24129 done # for ac_tag
24130
24131
24132 as_fn_exit 0
24133 _ACEOF
24134 ac_clean_files=$ac_clean_files_save
24135
24136 test $ac_write_fail = 0 ||
24137   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24138
24139
24140 # configure is writing to config.log, and then calls config.status.
24141 # config.status does its own redirection, appending to config.log.
24142 # Unfortunately, on DOS this fails, as config.log is still kept open
24143 # by configure, so config.status won't be able to write to it; its
24144 # output is simply discarded.  So we exec the FD to /dev/null,
24145 # effectively closing config.log, so it can be properly (re)opened and
24146 # appended to by config.status.  When coming back to configure, we
24147 # need to make the FD available again.
24148 if test "$no_create" != yes; then
24149   ac_cs_success=:
24150   ac_config_status_args=
24151   test "$silent" = yes &&
24152     ac_config_status_args="$ac_config_status_args --quiet"
24153   exec 5>/dev/null
24154   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24155   exec 5>>config.log
24156   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24157   # would make configure fail if this is the last instruction.
24158   $ac_cs_success || as_fn_exit 1
24159 fi
24160 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24161   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24162 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24163 fi
24164
24165