]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Merge branch 'upstream'
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.0.
4 #
5 # Report bugs to <nfs@lists.sf.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.1.0'
732 PACKAGE_STRING='linux nfs-utils 1.1.0'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
734
735 ac_default_prefix=/usr
736 ac_unique_file="support/include/config.h.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 INSTALL_PROGRAM
819 INSTALL_SCRIPT
820 INSTALL_DATA
821 am__isrc
822 CYGPATH_W
823 PACKAGE
824 VERSION
825 ACLOCAL
826 AUTOCONF
827 AUTOMAKE
828 AUTOHEADER
829 MAKEINFO
830 install_sh
831 STRIP
832 INSTALL_STRIP_PROGRAM
833 mkdir_p
834 AWK
835 SET_MAKE
836 am__leading_dot
837 AMTAR
838 am__tar
839 am__untar
840 MAINTAINER_MODE_TRUE
841 MAINTAINER_MODE_FALSE
842 MAINT
843 RELEASE
844 statedir
845 statduser
846 startstatd
847 enable_nfsv3
848 IDMAPD
849 enable_nfsv4
850 CONFIG_NFSV4_TRUE
851 CONFIG_NFSV4_FALSE
852 GSSD
853 SVCGSSD
854 enable_gss
855 CONFIG_GSS_TRUE
856 CONFIG_GSS_FALSE
857 kprefix
858 secure_statd
859 RPCGEN_PATH
860 CONFIG_RPCGEN_TRUE
861 CONFIG_RPCGEN_FALSE
862 CONFIG_MOUNT_TRUE
863 CONFIG_MOUNT_FALSE
864 CC
865 CFLAGS
866 LDFLAGS
867 CPPFLAGS
868 ac_ct_CC
869 EXEEXT
870 OBJEXT
871 DEPDIR
872 am__include
873 am__quote
874 AMDEP_TRUE
875 AMDEP_FALSE
876 AMDEPBACKSLASH
877 CCDEPMODE
878 am__fastdepCC_TRUE
879 am__fastdepCC_FALSE
880 LIBWRAP
881 HAVE_LIBWRAP
882 HAVE_TCP_WRAPPER
883 CXX
884 CXXFLAGS
885 ac_ct_CXX
886 CXXDEPMODE
887 am__fastdepCXX_TRUE
888 am__fastdepCXX_FALSE
889 CPP
890 LN_S
891 GREP
892 EGREP
893 ECHO
894 AR
895 RANLIB
896 CXXCPP
897 F77
898 FFLAGS
899 ac_ct_F77
900 LIBTOOL
901 CC_FOR_BUILD
902 LD
903 LIBNSL
904 PKG_CONFIG
905 RPCSECGSS_CFLAGS
906 RPCSECGSS_LIBS
907 GSSAPI_CFLAGS
908 GSSAPI_LIBS
909 LIBSOCKET
910 LIBCRYPT
911 LIBBSD
912 LIBBLKID
913 KRBDIR
914 KRBLIBS
915 KRBCFLAGS
916 KRBLDFLAGS
917 K5VERS
918 ALLOCA
919 LIBOBJS
920 CFLAGS_FOR_BUILD
921 CXXFLAGS_FOR_BUILD
922 CPPFLAGS_FOR_BUILD
923 LDFLAGS_FOR_BUILD
924 AM_CPPFLAGS
925 AM_CFLAGS
926 ACLOCAL_AMFLAGS
927 LTLIBOBJS'
928 ac_subst_files=''
929       ac_precious_vars='build_alias
930 host_alias
931 target_alias
932 CC
933 CFLAGS
934 LDFLAGS
935 LIBS
936 CPPFLAGS
937 CXX
938 CXXFLAGS
939 CCC
940 CPP
941 CXXCPP
942 F77
943 FFLAGS
944 PKG_CONFIG
945 RPCSECGSS_CFLAGS
946 RPCSECGSS_LIBS
947 GSSAPI_CFLAGS
948 GSSAPI_LIBS'
949
950
951 # Initialize some variables set by options.
952 ac_init_help=
953 ac_init_version=false
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
970
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
996
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1000 do
1001   # If the previous option needs an argument, assign it.
1002   if test -n "$ac_prev"; then
1003     eval $ac_prev=\$ac_option
1004     ac_prev=
1005     continue
1006   fi
1007
1008   case $ac_option in
1009   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010   *)    ac_optarg=yes ;;
1011   esac
1012
1013   # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015   case $ac_dashdash$ac_option in
1016   --)
1017     ac_dashdash=yes ;;
1018
1019   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020     ac_prev=bindir ;;
1021   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022     bindir=$ac_optarg ;;
1023
1024   -build | --build | --buil | --bui | --bu)
1025     ac_prev=build_alias ;;
1026   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027     build_alias=$ac_optarg ;;
1028
1029   -cache-file | --cache-file | --cache-fil | --cache-fi \
1030   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031     ac_prev=cache_file ;;
1032   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034     cache_file=$ac_optarg ;;
1035
1036   --config-cache | -C)
1037     cache_file=config.cache ;;
1038
1039   -datadir | --datadir | --datadi | --datad)
1040     ac_prev=datadir ;;
1041   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042     datadir=$ac_optarg ;;
1043
1044   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045   | --dataroo | --dataro | --datar)
1046     ac_prev=datarootdir ;;
1047   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049     datarootdir=$ac_optarg ;;
1050
1051   -disable-* | --disable-*)
1052     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056    { (exit 1); exit 1; }; }
1057     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1058     eval enable_$ac_feature=no ;;
1059
1060   -docdir | --docdir | --docdi | --doc | --do)
1061     ac_prev=docdir ;;
1062   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063     docdir=$ac_optarg ;;
1064
1065   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066     ac_prev=dvidir ;;
1067   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068     dvidir=$ac_optarg ;;
1069
1070   -enable-* | --enable-*)
1071     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1075    { (exit 1); exit 1; }; }
1076     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1077     eval enable_$ac_feature=\$ac_optarg ;;
1078
1079   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081   | --exec | --exe | --ex)
1082     ac_prev=exec_prefix ;;
1083   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085   | --exec=* | --exe=* | --ex=*)
1086     exec_prefix=$ac_optarg ;;
1087
1088   -gas | --gas | --ga | --g)
1089     # Obsolete; use --with-gas.
1090     with_gas=yes ;;
1091
1092   -help | --help | --hel | --he | -h)
1093     ac_init_help=long ;;
1094   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095     ac_init_help=recursive ;;
1096   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097     ac_init_help=short ;;
1098
1099   -host | --host | --hos | --ho)
1100     ac_prev=host_alias ;;
1101   -host=* | --host=* | --hos=* | --ho=*)
1102     host_alias=$ac_optarg ;;
1103
1104   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105     ac_prev=htmldir ;;
1106   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107   | --ht=*)
1108     htmldir=$ac_optarg ;;
1109
1110   -includedir | --includedir | --includedi | --included | --include \
1111   | --includ | --inclu | --incl | --inc)
1112     ac_prev=includedir ;;
1113   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114   | --includ=* | --inclu=* | --incl=* | --inc=*)
1115     includedir=$ac_optarg ;;
1116
1117   -infodir | --infodir | --infodi | --infod | --info | --inf)
1118     ac_prev=infodir ;;
1119   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120     infodir=$ac_optarg ;;
1121
1122   -libdir | --libdir | --libdi | --libd)
1123     ac_prev=libdir ;;
1124   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125     libdir=$ac_optarg ;;
1126
1127   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128   | --libexe | --libex | --libe)
1129     ac_prev=libexecdir ;;
1130   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131   | --libexe=* | --libex=* | --libe=*)
1132     libexecdir=$ac_optarg ;;
1133
1134   -localedir | --localedir | --localedi | --localed | --locale)
1135     ac_prev=localedir ;;
1136   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137     localedir=$ac_optarg ;;
1138
1139   -localstatedir | --localstatedir | --localstatedi | --localstated \
1140   | --localstate | --localstat | --localsta | --localst | --locals)
1141     ac_prev=localstatedir ;;
1142   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144     localstatedir=$ac_optarg ;;
1145
1146   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147     ac_prev=mandir ;;
1148   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149     mandir=$ac_optarg ;;
1150
1151   -nfp | --nfp | --nf)
1152     # Obsolete; use --without-fp.
1153     with_fp=no ;;
1154
1155   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156   | --no-cr | --no-c | -n)
1157     no_create=yes ;;
1158
1159   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161     no_recursion=yes ;;
1162
1163   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165   | --oldin | --oldi | --old | --ol | --o)
1166     ac_prev=oldincludedir ;;
1167   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170     oldincludedir=$ac_optarg ;;
1171
1172   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173     ac_prev=prefix ;;
1174   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175     prefix=$ac_optarg ;;
1176
1177   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178   | --program-pre | --program-pr | --program-p)
1179     ac_prev=program_prefix ;;
1180   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182     program_prefix=$ac_optarg ;;
1183
1184   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185   | --program-suf | --program-su | --program-s)
1186     ac_prev=program_suffix ;;
1187   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189     program_suffix=$ac_optarg ;;
1190
1191   -program-transform-name | --program-transform-name \
1192   | --program-transform-nam | --program-transform-na \
1193   | --program-transform-n | --program-transform- \
1194   | --program-transform | --program-transfor \
1195   | --program-transfo | --program-transf \
1196   | --program-trans | --program-tran \
1197   | --progr-tra | --program-tr | --program-t)
1198     ac_prev=program_transform_name ;;
1199   -program-transform-name=* | --program-transform-name=* \
1200   | --program-transform-nam=* | --program-transform-na=* \
1201   | --program-transform-n=* | --program-transform-=* \
1202   | --program-transform=* | --program-transfor=* \
1203   | --program-transfo=* | --program-transf=* \
1204   | --program-trans=* | --program-tran=* \
1205   | --progr-tra=* | --program-tr=* | --program-t=*)
1206     program_transform_name=$ac_optarg ;;
1207
1208   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209     ac_prev=pdfdir ;;
1210   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211     pdfdir=$ac_optarg ;;
1212
1213   -psdir | --psdir | --psdi | --psd | --ps)
1214     ac_prev=psdir ;;
1215   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216     psdir=$ac_optarg ;;
1217
1218   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219   | -silent | --silent | --silen | --sile | --sil)
1220     silent=yes ;;
1221
1222   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223     ac_prev=sbindir ;;
1224   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225   | --sbi=* | --sb=*)
1226     sbindir=$ac_optarg ;;
1227
1228   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230   | --sharedst | --shareds | --shared | --share | --shar \
1231   | --sha | --sh)
1232     ac_prev=sharedstatedir ;;
1233   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236   | --sha=* | --sh=*)
1237     sharedstatedir=$ac_optarg ;;
1238
1239   -site | --site | --sit)
1240     ac_prev=site ;;
1241   -site=* | --site=* | --sit=*)
1242     site=$ac_optarg ;;
1243
1244   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245     ac_prev=srcdir ;;
1246   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247     srcdir=$ac_optarg ;;
1248
1249   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250   | --syscon | --sysco | --sysc | --sys | --sy)
1251     ac_prev=sysconfdir ;;
1252   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254     sysconfdir=$ac_optarg ;;
1255
1256   -target | --target | --targe | --targ | --tar | --ta | --t)
1257     ac_prev=target_alias ;;
1258   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259     target_alias=$ac_optarg ;;
1260
1261   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262     verbose=yes ;;
1263
1264   -version | --version | --versio | --versi | --vers | -V)
1265     ac_init_version=: ;;
1266
1267   -with-* | --with-*)
1268     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269     # Reject names that are not valid shell variable names.
1270     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271       { echo "$as_me: error: invalid package name: $ac_package" >&2
1272    { (exit 1); exit 1; }; }
1273     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1274     eval with_$ac_package=\$ac_optarg ;;
1275
1276   -without-* | --without-*)
1277     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280       { echo "$as_me: error: invalid package name: $ac_package" >&2
1281    { (exit 1); exit 1; }; }
1282     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1283     eval with_$ac_package=no ;;
1284
1285   --x)
1286     # Obsolete; use --with-x.
1287     with_x=yes ;;
1288
1289   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290   | --x-incl | --x-inc | --x-in | --x-i)
1291     ac_prev=x_includes ;;
1292   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294     x_includes=$ac_optarg ;;
1295
1296   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298     ac_prev=x_libraries ;;
1299   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301     x_libraries=$ac_optarg ;;
1302
1303   -*) { echo "$as_me: error: unrecognized option: $ac_option
1304 Try \`$0 --help' for more information." >&2
1305    { (exit 1); exit 1; }; }
1306     ;;
1307
1308   *=*)
1309     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310     # Reject names that are not valid shell variable names.
1311     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1312       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1313    { (exit 1); exit 1; }; }
1314     eval $ac_envvar=\$ac_optarg
1315     export $ac_envvar ;;
1316
1317   *)
1318     # FIXME: should be removed in autoconf 3.0.
1319     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1323     ;;
1324
1325   esac
1326 done
1327
1328 if test -n "$ac_prev"; then
1329   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330   { echo "$as_me: error: missing argument to $ac_option" >&2
1331    { (exit 1); exit 1; }; }
1332 fi
1333
1334 # Be sure to have absolute directory names.
1335 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336                 datadir sysconfdir sharedstatedir localstatedir includedir \
1337                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338                 libdir localedir mandir
1339 do
1340   eval ac_val=\$$ac_var
1341   case $ac_val in
1342     [\\/$]* | ?:[\\/]* )  continue;;
1343     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344   esac
1345   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1346    { (exit 1); exit 1; }; }
1347 done
1348
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1352 build=$build_alias
1353 host=$host_alias
1354 target=$target_alias
1355
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x; then
1358   if test "x$build_alias" = x; then
1359     cross_compiling=maybe
1360     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1361     If a cross compiler is detected then cross compile mode will be used." >&2
1362   elif test "x$build_alias" != "x$host_alias"; then
1363     cross_compiling=yes
1364   fi
1365 fi
1366
1367 ac_tool_prefix=
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370 test "$silent" = yes && exec 6>/dev/null
1371
1372
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376   { echo "$as_me: error: Working directory cannot be determined" >&2
1377    { (exit 1); exit 1; }; }
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379   { echo "$as_me: error: pwd does not report name of working directory" >&2
1380    { (exit 1); exit 1; }; }
1381
1382
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385   ac_srcdir_defaulted=yes
1386   # Try the directory containing this script, then the parent directory.
1387   ac_confdir=`$as_dirname -- "$0" ||
1388 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389          X"$0" : 'X\(//\)[^/]' \| \
1390          X"$0" : 'X\(//\)$' \| \
1391          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1392 echo X"$0" |
1393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394             s//\1/
1395             q
1396           }
1397           /^X\(\/\/\)[^/].*/{
1398             s//\1/
1399             q
1400           }
1401           /^X\(\/\/\)$/{
1402             s//\1/
1403             q
1404           }
1405           /^X\(\/\).*/{
1406             s//\1/
1407             q
1408           }
1409           s/.*/./; q'`
1410   srcdir=$ac_confdir
1411   if test ! -r "$srcdir/$ac_unique_file"; then
1412     srcdir=..
1413   fi
1414 else
1415   ac_srcdir_defaulted=no
1416 fi
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1420    { (exit 1); exit 1; }; }
1421 fi
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 ac_abs_confdir=`(
1424         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1425    { (exit 1); exit 1; }; }
1426         pwd)`
1427 # When building in place, set srcdir=.
1428 if test "$ac_abs_confdir" = "$ac_pwd"; then
1429   srcdir=.
1430 fi
1431 # Remove unnecessary trailing slashes from srcdir.
1432 # Double slashes in file names in object file debugging info
1433 # mess up M-x gdb in Emacs.
1434 case $srcdir in
1435 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 esac
1437 for ac_var in $ac_precious_vars; do
1438   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439   eval ac_env_${ac_var}_value=\$${ac_var}
1440   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442 done
1443
1444 #
1445 # Report the --help message.
1446 #
1447 if test "$ac_init_help" = "long"; then
1448   # Omit some internal or obsolete options to make the list less imposing.
1449   # This message is too long to be a string in the A/UX 3.1 sh.
1450   cat <<_ACEOF
1451 \`configure' configures linux nfs-utils 1.1.0 to adapt to many kinds of systems.
1452
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1454
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE.  See below for descriptions of some of the useful variables.
1457
1458 Defaults for the options are specified in brackets.
1459
1460 Configuration:
1461   -h, --help              display this help and exit
1462       --help=short        display options specific to this package
1463       --help=recursive    display the short help of all the included packages
1464   -V, --version           display version information and exit
1465   -q, --quiet, --silent   do not print \`checking...' messages
1466       --cache-file=FILE   cache test results in FILE [disabled]
1467   -C, --config-cache      alias for \`--cache-file=config.cache'
1468   -n, --no-create         do not create output files
1469       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1470
1471 Installation directories:
1472   --prefix=PREFIX         install architecture-independent files in PREFIX
1473                           [$ac_default_prefix]
1474   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1475                           [PREFIX]
1476
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1481
1482 For better control, use the options below.
1483
1484 Fine tuning of the installation directories:
1485   --bindir=DIR           user executables [EPREFIX/bin]
1486   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1487   --libexecdir=DIR       program executables [EPREFIX/libexec]
1488   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1489   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1490   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1491   --libdir=DIR           object code libraries [EPREFIX/lib]
1492   --includedir=DIR       C header files [PREFIX/include]
1493   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1494   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1495   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1496   --infodir=DIR          info documentation [DATAROOTDIR/info]
1497   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1498   --mandir=DIR           man documentation [DATAROOTDIR/man]
1499   --docdir=DIR           documentation root [DATAROOTDIR/doc/nfs-utils]
1500   --htmldir=DIR          html documentation [DOCDIR]
1501   --dvidir=DIR           dvi documentation [DOCDIR]
1502   --pdfdir=DIR           pdf documentation [DOCDIR]
1503   --psdir=DIR            ps documentation [DOCDIR]
1504 _ACEOF
1505
1506   cat <<\_ACEOF
1507
1508 Program names:
1509   --program-prefix=PREFIX            prepend PREFIX to installed program names
1510   --program-suffix=SUFFIX            append SUFFIX to installed program names
1511   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1512
1513 System types:
1514   --build=BUILD     configure for building on BUILD [guessed]
1515   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1516 _ACEOF
1517 fi
1518
1519 if test -n "$ac_init_help"; then
1520   case $ac_init_help in
1521      short | recursive ) echo "Configuration of linux nfs-utils 1.1.0:";;
1522    esac
1523   cat <<\_ACEOF
1524
1525 Optional Features:
1526   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1527   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1528   --enable-maintainer-mode  enable make rules and dependencies not useful
1529                           (and sometimes confusing) to the casual installer
1530   --enable-nfsv3          enable support for NFSv3 [default=yes]
1531   --enable-nfsv4          enable support for NFSv4 [default=yes]
1532   --enable-gss            enable support for rpcsec_gss [default=yes]
1533   --enable-kprefix        install progs as rpc.knfsd etc
1534   --enable-secure-statd   Only lockd can use statd (security)
1535   --without-uuid          Exclude uuid support and so avoid possibly buggy
1536                           libblkid
1537   --enable-mount          Create mount.nfs and don't use the util-linux
1538                           mount(8) functionality. [default=no]
1539   --disable-dependency-tracking  speeds up one-time build
1540   --enable-dependency-tracking   do not reject slow dependency extractors
1541   --disable-largefile     omit support for large files
1542   --enable-shared[=PKGS]  build shared libraries [default=yes]
1543   --enable-static[=PKGS]  build static libraries [default=yes]
1544   --enable-fast-install[=PKGS]
1545                           optimize for fast installation [default=yes]
1546   --disable-libtool-lock  avoid locking (might break parallel builds)
1547
1548 Optional Packages:
1549   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1550   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1551   --with-release=XXX      set release to XXX [1]
1552   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1553   --with-statduser=rpcuser
1554                           statd to run under [rpcuser or nobody]
1555   --with-start-statd=scriptname
1556                           When an nfs filesystems is mounted with locking, run
1557                           this script
1558   --with-rpcgen=internal  use internal rpcgen instead of system one
1559   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1560                  (optionally in PATH)
1561   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1562   --with-pic              try to use only PIC/non-PIC objects [default=use
1563                           both]
1564   --with-tags[=TAGS]      include additional configurations [automatic]
1565   --with-krb5=DIR         use Kerberos v5 installation in DIR
1566
1567 Some influential environment variables:
1568   CC          C compiler command
1569   CFLAGS      C compiler flags
1570   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571               nonstandard directory <lib dir>
1572   LIBS        libraries to pass to the linker, e.g. -l<library>
1573   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574               you have headers in a nonstandard directory <include dir>
1575   CXX         C++ compiler command
1576   CXXFLAGS    C++ compiler flags
1577   CPP         C preprocessor
1578   CXXCPP      C++ preprocessor
1579   F77         Fortran 77 compiler command
1580   FFLAGS      Fortran 77 compiler flags
1581   PKG_CONFIG  path to pkg-config utility
1582   RPCSECGSS_CFLAGS
1583               C compiler flags for RPCSECGSS, overriding pkg-config
1584   RPCSECGSS_LIBS
1585               linker flags for RPCSECGSS, overriding pkg-config
1586   GSSAPI_CFLAGS
1587               C compiler flags for GSSAPI, overriding pkg-config
1588   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1589
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1592
1593 Report bugs to <nfs@lists.sf.net>.
1594 _ACEOF
1595 ac_status=$?
1596 fi
1597
1598 if test "$ac_init_help" = "recursive"; then
1599   # If there are subdirs, report their specific --help.
1600   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1601     test -d "$ac_dir" || continue
1602     ac_builddir=.
1603
1604 case "$ac_dir" in
1605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 *)
1607   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1608   # A ".." for each directory in $ac_dir_suffix.
1609   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1610   case $ac_top_builddir_sub in
1611   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613   esac ;;
1614 esac
1615 ac_abs_top_builddir=$ac_pwd
1616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir=$ac_top_build_prefix
1619
1620 case $srcdir in
1621   .)  # We are building in place.
1622     ac_srcdir=.
1623     ac_top_srcdir=$ac_top_builddir_sub
1624     ac_abs_top_srcdir=$ac_pwd ;;
1625   [\\/]* | ?:[\\/]* )  # Absolute name.
1626     ac_srcdir=$srcdir$ac_dir_suffix;
1627     ac_top_srcdir=$srcdir
1628     ac_abs_top_srcdir=$srcdir ;;
1629   *) # Relative name.
1630     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631     ac_top_srcdir=$ac_top_build_prefix$srcdir
1632     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633 esac
1634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
1636     cd "$ac_dir" || { ac_status=$?; continue; }
1637     # Check for guested configure.
1638     if test -f "$ac_srcdir/configure.gnu"; then
1639       echo &&
1640       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641     elif test -f "$ac_srcdir/configure"; then
1642       echo &&
1643       $SHELL "$ac_srcdir/configure" --help=recursive
1644     else
1645       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646     fi || ac_status=$?
1647     cd "$ac_pwd" || { ac_status=$?; break; }
1648   done
1649 fi
1650
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1653   cat <<\_ACEOF
1654 linux nfs-utils configure 1.1.0
1655 generated by GNU Autoconf 2.61
1656
1657 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1658 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1661 _ACEOF
1662   exit
1663 fi
1664 cat >config.log <<_ACEOF
1665 This file contains any messages produced by compilers while
1666 running configure, to aid debugging if configure makes a mistake.
1667
1668 It was created by linux nfs-utils $as_me 1.1.0, which was
1669 generated by GNU Autoconf 2.61.  Invocation command line was
1670
1671   $ $0 $@
1672
1673 _ACEOF
1674 exec 5>>config.log
1675 {
1676 cat <<_ASUNAME
1677 ## --------- ##
1678 ## Platform. ##
1679 ## --------- ##
1680
1681 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1682 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1683 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1684 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1685 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1686
1687 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1688 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1689
1690 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1691 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1692 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1693 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1694 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1695 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1696 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1697
1698 _ASUNAME
1699
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   echo "PATH: $as_dir"
1706 done
1707 IFS=$as_save_IFS
1708
1709 } >&5
1710
1711 cat >&5 <<_ACEOF
1712
1713
1714 ## ----------- ##
1715 ## Core tests. ##
1716 ## ----------- ##
1717
1718 _ACEOF
1719
1720
1721 # Keep a trace of the command line.
1722 # Strip out --no-create and --no-recursion so they do not pile up.
1723 # Strip out --silent because we don't want to record it for future runs.
1724 # Also quote any args containing shell meta-characters.
1725 # Make two passes to allow for proper duplicate-argument suppression.
1726 ac_configure_args=
1727 ac_configure_args0=
1728 ac_configure_args1=
1729 ac_must_keep_next=false
1730 for ac_pass in 1 2
1731 do
1732   for ac_arg
1733   do
1734     case $ac_arg in
1735     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1736     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1737     | -silent | --silent | --silen | --sile | --sil)
1738       continue ;;
1739     *\'*)
1740       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1741     esac
1742     case $ac_pass in
1743     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1744     2)
1745       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1746       if test $ac_must_keep_next = true; then
1747         ac_must_keep_next=false # Got value, back to normal.
1748       else
1749         case $ac_arg in
1750           *=* | --config-cache | -C | -disable-* | --disable-* \
1751           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1752           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1753           | -with-* | --with-* | -without-* | --without-* | --x)
1754             case "$ac_configure_args0 " in
1755               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1756             esac
1757             ;;
1758           -* ) ac_must_keep_next=true ;;
1759         esac
1760       fi
1761       ac_configure_args="$ac_configure_args '$ac_arg'"
1762       ;;
1763     esac
1764   done
1765 done
1766 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1767 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1768
1769 # When interrupted or exit'd, cleanup temporary files, and complete
1770 # config.log.  We remove comments because anyway the quotes in there
1771 # would cause problems or look ugly.
1772 # WARNING: Use '\'' to represent an apostrophe within the trap.
1773 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1774 trap 'exit_status=$?
1775   # Save into config.log some information that might help in debugging.
1776   {
1777     echo
1778
1779     cat <<\_ASBOX
1780 ## ---------------- ##
1781 ## Cache variables. ##
1782 ## ---------------- ##
1783 _ASBOX
1784     echo
1785     # The following way of writing the cache mishandles newlines in values,
1786 (
1787   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1788     eval ac_val=\$$ac_var
1789     case $ac_val in #(
1790     *${as_nl}*)
1791       case $ac_var in #(
1792       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1793 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1794       esac
1795       case $ac_var in #(
1796       _ | IFS | as_nl) ;; #(
1797       *) $as_unset $ac_var ;;
1798       esac ;;
1799     esac
1800   done
1801   (set) 2>&1 |
1802     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1803     *${as_nl}ac_space=\ *)
1804       sed -n \
1805         "s/'\''/'\''\\\\'\'''\''/g;
1806           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1807       ;; #(
1808     *)
1809       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1810       ;;
1811     esac |
1812     sort
1813 )
1814     echo
1815
1816     cat <<\_ASBOX
1817 ## ----------------- ##
1818 ## Output variables. ##
1819 ## ----------------- ##
1820 _ASBOX
1821     echo
1822     for ac_var in $ac_subst_vars
1823     do
1824       eval ac_val=\$$ac_var
1825       case $ac_val in
1826       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827       esac
1828       echo "$ac_var='\''$ac_val'\''"
1829     done | sort
1830     echo
1831
1832     if test -n "$ac_subst_files"; then
1833       cat <<\_ASBOX
1834 ## ------------------- ##
1835 ## File substitutions. ##
1836 ## ------------------- ##
1837 _ASBOX
1838       echo
1839       for ac_var in $ac_subst_files
1840       do
1841         eval ac_val=\$$ac_var
1842         case $ac_val in
1843         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844         esac
1845         echo "$ac_var='\''$ac_val'\''"
1846       done | sort
1847       echo
1848     fi
1849
1850     if test -s confdefs.h; then
1851       cat <<\_ASBOX
1852 ## ----------- ##
1853 ## confdefs.h. ##
1854 ## ----------- ##
1855 _ASBOX
1856       echo
1857       cat confdefs.h
1858       echo
1859     fi
1860     test "$ac_signal" != 0 &&
1861       echo "$as_me: caught signal $ac_signal"
1862     echo "$as_me: exit $exit_status"
1863   } >&5
1864   rm -f core *.core core.conftest.* &&
1865     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1866     exit $exit_status
1867 ' 0
1868 for ac_signal in 1 2 13 15; do
1869   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1870 done
1871 ac_signal=0
1872
1873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1874 rm -f -r conftest* confdefs.h
1875
1876 # Predefined preprocessor variables.
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_NAME "$PACKAGE_NAME"
1880 _ACEOF
1881
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1885 _ACEOF
1886
1887
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1890 _ACEOF
1891
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_STRING "$PACKAGE_STRING"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1900 _ACEOF
1901
1902
1903 # Let the site file select an alternate cache file if it wants to.
1904 # Prefer explicitly selected file to automatically selected ones.
1905 if test -n "$CONFIG_SITE"; then
1906   set x "$CONFIG_SITE"
1907 elif test "x$prefix" != xNONE; then
1908   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1909 else
1910   set x "$ac_default_prefix/share/config.site" \
1911         "$ac_default_prefix/etc/config.site"
1912 fi
1913 shift
1914 for ac_site_file
1915 do
1916   if test -r "$ac_site_file"; then
1917     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1918 echo "$as_me: loading site script $ac_site_file" >&6;}
1919     sed 's/^/| /' "$ac_site_file" >&5
1920     . "$ac_site_file"
1921   fi
1922 done
1923
1924 if test -r "$cache_file"; then
1925   # Some versions of bash will fail to source /dev/null (special
1926   # files actually), so we avoid doing that.
1927   if test -f "$cache_file"; then
1928     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1929 echo "$as_me: loading cache $cache_file" >&6;}
1930     case $cache_file in
1931       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1932       *)                      . "./$cache_file";;
1933     esac
1934   fi
1935 else
1936   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1937 echo "$as_me: creating cache $cache_file" >&6;}
1938   >$cache_file
1939 fi
1940
1941 # Check that the precious variables saved in the cache have kept the same
1942 # value.
1943 ac_cache_corrupted=false
1944 for ac_var in $ac_precious_vars; do
1945   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1946   eval ac_new_set=\$ac_env_${ac_var}_set
1947   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1948   eval ac_new_val=\$ac_env_${ac_var}_value
1949   case $ac_old_set,$ac_new_set in
1950     set,)
1951       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1952 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1953       ac_cache_corrupted=: ;;
1954     ,set)
1955       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1956 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1957       ac_cache_corrupted=: ;;
1958     ,);;
1959     *)
1960       if test "x$ac_old_val" != "x$ac_new_val"; then
1961         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1962 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1963         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1964 echo "$as_me:   former value:  $ac_old_val" >&2;}
1965         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1966 echo "$as_me:   current value: $ac_new_val" >&2;}
1967         ac_cache_corrupted=:
1968       fi;;
1969   esac
1970   # Pass precious variables to config.status.
1971   if test "$ac_new_set" = set; then
1972     case $ac_new_val in
1973     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1974     *) ac_arg=$ac_var=$ac_new_val ;;
1975     esac
1976     case " $ac_configure_args " in
1977       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1978       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1979     esac
1980   fi
1981 done
1982 if $ac_cache_corrupted; then
1983   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1984 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1985   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1986 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1987    { (exit 1); exit 1; }; }
1988 fi
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014 ac_ext=c
2015 ac_cpp='$CPP $CPPFLAGS'
2016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019
2020
2021 ac_aux_dir=
2022 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2023   if test -f "$ac_dir/install-sh"; then
2024     ac_aux_dir=$ac_dir
2025     ac_install_sh="$ac_aux_dir/install-sh -c"
2026     break
2027   elif test -f "$ac_dir/install.sh"; then
2028     ac_aux_dir=$ac_dir
2029     ac_install_sh="$ac_aux_dir/install.sh -c"
2030     break
2031   elif test -f "$ac_dir/shtool"; then
2032     ac_aux_dir=$ac_dir
2033     ac_install_sh="$ac_aux_dir/shtool install -c"
2034     break
2035   fi
2036 done
2037 if test -z "$ac_aux_dir"; then
2038   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2039 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2040    { (exit 1); exit 1; }; }
2041 fi
2042
2043 # These three variables are undocumented and unsupported,
2044 # and are intended to be withdrawn in a future Autoconf release.
2045 # They can cause serious problems if a builder's source tree is in a directory
2046 # whose full name contains unusual characters.
2047 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2048 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2049 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2050
2051
2052 # Make sure we can run config.sub.
2053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2054   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2055 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2056    { (exit 1); exit 1; }; }
2057
2058 { echo "$as_me:$LINENO: checking build system type" >&5
2059 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2060 if test "${ac_cv_build+set}" = set; then
2061   echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063   ac_build_alias=$build_alias
2064 test "x$ac_build_alias" = x &&
2065   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2066 test "x$ac_build_alias" = x &&
2067   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2068 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2069    { (exit 1); exit 1; }; }
2070 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2071   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2073    { (exit 1); exit 1; }; }
2074
2075 fi
2076 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2077 echo "${ECHO_T}$ac_cv_build" >&6; }
2078 case $ac_cv_build in
2079 *-*-*) ;;
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2081 echo "$as_me: error: invalid value of canonical build" >&2;}
2082    { (exit 1); exit 1; }; };;
2083 esac
2084 build=$ac_cv_build
2085 ac_save_IFS=$IFS; IFS='-'
2086 set x $ac_cv_build
2087 shift
2088 build_cpu=$1
2089 build_vendor=$2
2090 shift; shift
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2093 build_os=$*
2094 IFS=$ac_save_IFS
2095 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2096
2097
2098 { echo "$as_me:$LINENO: checking host system type" >&5
2099 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_host+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   if test "x$host_alias" = x; then
2104   ac_cv_host=$ac_cv_build
2105 else
2106   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2107     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2109    { (exit 1); exit 1; }; }
2110 fi
2111
2112 fi
2113 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2114 echo "${ECHO_T}$ac_cv_host" >&6; }
2115 case $ac_cv_host in
2116 *-*-*) ;;
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2118 echo "$as_me: error: invalid value of canonical host" >&2;}
2119    { (exit 1); exit 1; }; };;
2120 esac
2121 host=$ac_cv_host
2122 ac_save_IFS=$IFS; IFS='-'
2123 set x $ac_cv_host
2124 shift
2125 host_cpu=$1
2126 host_vendor=$2
2127 shift; shift
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2130 host_os=$*
2131 IFS=$ac_save_IFS
2132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2133
2134
2135
2136 am__api_version='1.10'
2137
2138 # Find a good install program.  We prefer a C program (faster),
2139 # so one script is as good as another.  But avoid the broken or
2140 # incompatible versions:
2141 # SysV /etc/install, /usr/sbin/install
2142 # SunOS /usr/etc/install
2143 # IRIX /sbin/install
2144 # AIX /bin/install
2145 # AmigaOS /C/install, which installs bootblocks on floppy discs
2146 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2147 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2148 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2149 # OS/2's system install, which has a completely different semantic
2150 # ./install, which can be erroneously created by make from ./install.sh.
2151 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2152 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2153 if test -z "$INSTALL"; then
2154 if test "${ac_cv_path_install+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160   IFS=$as_save_IFS
2161   test -z "$as_dir" && as_dir=.
2162   # Account for people who put trailing slashes in PATH elements.
2163 case $as_dir/ in
2164   ./ | .// | /cC/* | \
2165   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2166   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2167   /usr/ucb/* ) ;;
2168   *)
2169     # OSF1 and SCO ODT 3.0 have their own names for install.
2170     # Don't use installbsd from OSF since it installs stuff as root
2171     # by default.
2172     for ac_prog in ginstall scoinst install; do
2173       for ac_exec_ext in '' $ac_executable_extensions; do
2174         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2175           if test $ac_prog = install &&
2176             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2177             # AIX install.  It has an incompatible calling convention.
2178             :
2179           elif test $ac_prog = install &&
2180             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2181             # program-specific install script used by HP pwplus--don't use.
2182             :
2183           else
2184             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2185             break 3
2186           fi
2187         fi
2188       done
2189     done
2190     ;;
2191 esac
2192 done
2193 IFS=$as_save_IFS
2194
2195
2196 fi
2197   if test "${ac_cv_path_install+set}" = set; then
2198     INSTALL=$ac_cv_path_install
2199   else
2200     # As a last resort, use the slow shell script.  Don't cache a
2201     # value for INSTALL within a source directory, because that will
2202     # break other packages using the cache if that directory is
2203     # removed, or if the value is a relative name.
2204     INSTALL=$ac_install_sh
2205   fi
2206 fi
2207 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2208 echo "${ECHO_T}$INSTALL" >&6; }
2209
2210 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2211 # It thinks the first close brace ends the variable substitution.
2212 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2213
2214 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2215
2216 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2217
2218 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2219 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2220 # Just in case
2221 sleep 1
2222 echo timestamp > conftest.file
2223 # Do `set' in a subshell so we don't clobber the current shell's
2224 # arguments.  Must try -L first in case configure is actually a
2225 # symlink; some systems play weird games with the mod time of symlinks
2226 # (eg FreeBSD returns the mod time of the symlink's containing
2227 # directory).
2228 if (
2229    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2230    if test "$*" = "X"; then
2231       # -L didn't work.
2232       set X `ls -t $srcdir/configure conftest.file`
2233    fi
2234    rm -f conftest.file
2235    if test "$*" != "X $srcdir/configure conftest.file" \
2236       && test "$*" != "X conftest.file $srcdir/configure"; then
2237
2238       # If neither matched, then we have a broken ls.  This can happen
2239       # if, for instance, CONFIG_SHELL is bash and it inherits a
2240       # broken ls alias from the environment.  This has actually
2241       # happened.  Such a system could not be considered "sane".
2242       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2243 alias in your environment" >&5
2244 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2245 alias in your environment" >&2;}
2246    { (exit 1); exit 1; }; }
2247    fi
2248
2249    test "$2" = conftest.file
2250    )
2251 then
2252    # Ok.
2253    :
2254 else
2255    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2256 Check your system clock" >&5
2257 echo "$as_me: error: newly created file is older than distributed files!
2258 Check your system clock" >&2;}
2259    { (exit 1); exit 1; }; }
2260 fi
2261 { echo "$as_me:$LINENO: result: yes" >&5
2262 echo "${ECHO_T}yes" >&6; }
2263 test "$program_prefix" != NONE &&
2264   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2265 # Use a double $ so make ignores it.
2266 test "$program_suffix" != NONE &&
2267   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2268 # Double any \ or $.  echo might interpret backslashes.
2269 # By default was `s,x,x', remove it if useless.
2270 cat <<\_ACEOF >conftest.sed
2271 s/[\\$]/&&/g;s/;s,x,x,$//
2272 _ACEOF
2273 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2274 rm -f conftest.sed
2275
2276 # expand $ac_aux_dir to an absolute path
2277 am_aux_dir=`cd $ac_aux_dir && pwd`
2278
2279 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2280 # Use eval to expand $SHELL
2281 if eval "$MISSING --run true"; then
2282   am_missing_run="$MISSING --run "
2283 else
2284   am_missing_run=
2285   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2286 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2287 fi
2288
2289 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2290 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2291 if test -z "$MKDIR_P"; then
2292   if test "${ac_cv_path_mkdir+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2297 do
2298   IFS=$as_save_IFS
2299   test -z "$as_dir" && as_dir=.
2300   for ac_prog in mkdir gmkdir; do
2301          for ac_exec_ext in '' $ac_executable_extensions; do
2302            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2303            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2304              'mkdir (GNU coreutils) '* | \
2305              'mkdir (coreutils) '* | \
2306              'mkdir (fileutils) '4.1*)
2307                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2308                break 3;;
2309            esac
2310          done
2311        done
2312 done
2313 IFS=$as_save_IFS
2314
2315 fi
2316
2317   if test "${ac_cv_path_mkdir+set}" = set; then
2318     MKDIR_P="$ac_cv_path_mkdir -p"
2319   else
2320     # As a last resort, use the slow shell script.  Don't cache a
2321     # value for MKDIR_P within a source directory, because that will
2322     # break other packages using the cache if that directory is
2323     # removed, or if the value is a relative name.
2324     test -d ./--version && rmdir ./--version
2325     MKDIR_P="$ac_install_sh -d"
2326   fi
2327 fi
2328 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2329 echo "${ECHO_T}$MKDIR_P" >&6; }
2330
2331 mkdir_p="$MKDIR_P"
2332 case $mkdir_p in
2333   [\\/$]* | ?:[\\/]*) ;;
2334   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2335 esac
2336
2337 for ac_prog in gawk mawk nawk awk
2338 do
2339   # Extract the first word of "$ac_prog", so it can be a program name with args.
2340 set dummy $ac_prog; ac_word=$2
2341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343 if test "${ac_cv_prog_AWK+set}" = set; then
2344   echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346   if test -n "$AWK"; then
2347   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352   IFS=$as_save_IFS
2353   test -z "$as_dir" && as_dir=.
2354   for ac_exec_ext in '' $ac_executable_extensions; do
2355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356     ac_cv_prog_AWK="$ac_prog"
2357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358     break 2
2359   fi
2360 done
2361 done
2362 IFS=$as_save_IFS
2363
2364 fi
2365 fi
2366 AWK=$ac_cv_prog_AWK
2367 if test -n "$AWK"; then
2368   { echo "$as_me:$LINENO: result: $AWK" >&5
2369 echo "${ECHO_T}$AWK" >&6; }
2370 else
2371   { echo "$as_me:$LINENO: result: no" >&5
2372 echo "${ECHO_T}no" >&6; }
2373 fi
2374
2375
2376   test -n "$AWK" && break
2377 done
2378
2379 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2380 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2381 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2382 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   cat >conftest.make <<\_ACEOF
2386 SHELL = /bin/sh
2387 all:
2388         @echo '@@@%%%=$(MAKE)=@@@%%%'
2389 _ACEOF
2390 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2391 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2392   *@@@%%%=?*=@@@%%%*)
2393     eval ac_cv_prog_make_${ac_make}_set=yes;;
2394   *)
2395     eval ac_cv_prog_make_${ac_make}_set=no;;
2396 esac
2397 rm -f conftest.make
2398 fi
2399 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2400   { echo "$as_me:$LINENO: result: yes" >&5
2401 echo "${ECHO_T}yes" >&6; }
2402   SET_MAKE=
2403 else
2404   { echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6; }
2406   SET_MAKE="MAKE=${MAKE-make}"
2407 fi
2408
2409 rm -rf .tst 2>/dev/null
2410 mkdir .tst 2>/dev/null
2411 if test -d .tst; then
2412   am__leading_dot=.
2413 else
2414   am__leading_dot=_
2415 fi
2416 rmdir .tst 2>/dev/null
2417
2418 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2419   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2420   # is not polluted with repeated "-I."
2421   am__isrc=' -I$(srcdir)'
2422   # test to see if srcdir already configured
2423   if test -f $srcdir/config.status; then
2424     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2425 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2426    { (exit 1); exit 1; }; }
2427   fi
2428 fi
2429
2430 # test whether we have cygpath
2431 if test -z "$CYGPATH_W"; then
2432   if (cygpath --version) >/dev/null 2>/dev/null; then
2433     CYGPATH_W='cygpath -w'
2434   else
2435     CYGPATH_W=echo
2436   fi
2437 fi
2438
2439
2440 # Define the identity of the package.
2441  PACKAGE='nfs-utils'
2442  VERSION='1.1.0'
2443
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE "$PACKAGE"
2447 _ACEOF
2448
2449
2450 cat >>confdefs.h <<_ACEOF
2451 #define VERSION "$VERSION"
2452 _ACEOF
2453
2454 # Some tools Automake needs.
2455
2456 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2457
2458
2459 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2460
2461
2462 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2463
2464
2465 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2466
2467
2468 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2469
2470 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2471
2472 # Installed binaries are usually stripped using `strip' when the user
2473 # run `make install-strip'.  However `strip' might not be the right
2474 # tool to use in cross-compilation environments, therefore Automake
2475 # will honor the `STRIP' environment variable to overrule this program.
2476 if test "$cross_compiling" != no; then
2477   if test -n "$ac_tool_prefix"; then
2478   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2479 set dummy ${ac_tool_prefix}strip; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_STRIP+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$STRIP"; then
2486   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493   for ac_exec_ext in '' $ac_executable_extensions; do
2494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 STRIP=$ac_cv_prog_STRIP
2506 if test -n "$STRIP"; then
2507   { echo "$as_me:$LINENO: result: $STRIP" >&5
2508 echo "${ECHO_T}$STRIP" >&6; }
2509 else
2510   { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2512 fi
2513
2514
2515 fi
2516 if test -z "$ac_cv_prog_STRIP"; then
2517   ac_ct_STRIP=$STRIP
2518   # Extract the first word of "strip", so it can be a program name with args.
2519 set dummy strip; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2523   echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525   if test -n "$ac_ct_STRIP"; then
2526   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531   IFS=$as_save_IFS
2532   test -z "$as_dir" && as_dir=.
2533   for ac_exec_ext in '' $ac_executable_extensions; do
2534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535     ac_cv_prog_ac_ct_STRIP="strip"
2536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537     break 2
2538   fi
2539 done
2540 done
2541 IFS=$as_save_IFS
2542
2543 fi
2544 fi
2545 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2546 if test -n "$ac_ct_STRIP"; then
2547   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2548 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2549 else
2550   { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2552 fi
2553
2554   if test "x$ac_ct_STRIP" = x; then
2555     STRIP=":"
2556   else
2557     case $cross_compiling:$ac_tool_warned in
2558 yes:)
2559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2560 whose name does not start with the host triplet.  If you think this
2561 configuration is useful to you, please write to autoconf@gnu.org." >&5
2562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2563 whose name does not start with the host triplet.  If you think this
2564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2565 ac_tool_warned=yes ;;
2566 esac
2567     STRIP=$ac_ct_STRIP
2568   fi
2569 else
2570   STRIP="$ac_cv_prog_STRIP"
2571 fi
2572
2573 fi
2574 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2575
2576 # We need awk for the "check" target.  The system "awk" is bad on
2577 # some platforms.
2578 # Always define AMTAR for backward compatibility.
2579
2580 AMTAR=${AMTAR-"${am_missing_run}tar"}
2581
2582 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2583
2584
2585
2586
2587
2588
2589
2590 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2591 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2592     # Check whether --enable-maintainer-mode was given.
2593 if test "${enable_maintainer_mode+set}" = set; then
2594   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2595 else
2596   USE_MAINTAINER_MODE=no
2597 fi
2598
2599   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2600 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2601    if test $USE_MAINTAINER_MODE = yes; then
2602   MAINTAINER_MODE_TRUE=
2603   MAINTAINER_MODE_FALSE='#'
2604 else
2605   MAINTAINER_MODE_TRUE='#'
2606   MAINTAINER_MODE_FALSE=
2607 fi
2608
2609   MAINT=$MAINTAINER_MODE_TRUE
2610
2611
2612
2613
2614 # Check whether --with-release was given.
2615 if test "${with_release+set}" = set; then
2616   withval=$with_release; RELEASE=$withval
2617 else
2618   RELEASE=1
2619 fi
2620
2621
2622
2623 # Check whether --with-statedir was given.
2624 if test "${with_statedir+set}" = set; then
2625   withval=$with_statedir; statedir=$withval
2626 else
2627   statedir=/var/lib/nfs
2628 fi
2629
2630
2631
2632 # Check whether --with-statduser was given.
2633 if test "${with_statduser+set}" = set; then
2634   withval=$with_statduser; statduser=$withval
2635 else
2636   if test "x$cross_compiling" = "xno"; then
2637                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2638                         statduser=rpcuser
2639                 else
2640                         statduser=nobody
2641                 fi
2642         else
2643                 statduser=nobody
2644         fi
2645 fi
2646
2647
2648
2649 # Check whether --with-start-statd was given.
2650 if test "${with_start_statd+set}" = set; then
2651   withval=$with_start_statd; startstatd=$withval
2652 else
2653   startstatd=/usr/sbin/start-statd
2654
2655 fi
2656
2657
2658
2659 cat >>confdefs.h <<_ACEOF
2660 #define START_STATD "$startstatd"
2661 _ACEOF
2662
2663 # Check whether --enable-nfsv3 was given.
2664 if test "${enable_nfsv3+set}" = set; then
2665   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2666 else
2667   enable_nfsv3=yes
2668 fi
2669
2670         if test "$enable_nfsv3" = yes; then
2671
2672 cat >>confdefs.h <<\_ACEOF
2673 #define NFS3_SUPPORTED 1
2674 _ACEOF
2675
2676         else
2677                 enable_nfsv3=
2678         fi
2679
2680 # Check whether --enable-nfsv4 was given.
2681 if test "${enable_nfsv4+set}" = set; then
2682   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2683 else
2684   enable_nfsv4=yes
2685 fi
2686
2687         if test "$enable_nfsv4" = yes; then
2688
2689 cat >>confdefs.h <<\_ACEOF
2690 #define NFS4_SUPPORTED 1
2691 _ACEOF
2692
2693                 IDMAPD=idmapd
2694         else
2695                 enable_nfsv4=
2696                 IDMAPD=
2697         fi
2698
2699
2700          if test "$enable_nfsv4" = "yes"; then
2701   CONFIG_NFSV4_TRUE=
2702   CONFIG_NFSV4_FALSE='#'
2703 else
2704   CONFIG_NFSV4_TRUE='#'
2705   CONFIG_NFSV4_FALSE=
2706 fi
2707
2708 # Check whether --enable-gss was given.
2709 if test "${enable_gss+set}" = set; then
2710   enableval=$enable_gss; enable_gss=$enableval
2711 else
2712   enable_gss=yes
2713 fi
2714
2715         if test "$enable_gss" = yes; then
2716
2717 cat >>confdefs.h <<\_ACEOF
2718 #define GSS_SUPPORTED 1
2719 _ACEOF
2720
2721                 GSSD=gssd
2722                 SVCGSSD=svcgssd
2723         else
2724                 enable_gss=
2725                 GSSD=
2726                 SVCGSSD=
2727         fi
2728
2729
2730
2731          if test "$enable_gss" = "yes"; then
2732   CONFIG_GSS_TRUE=
2733   CONFIG_GSS_FALSE='#'
2734 else
2735   CONFIG_GSS_TRUE='#'
2736   CONFIG_GSS_FALSE=
2737 fi
2738
2739 # Check whether --enable-kprefix was given.
2740 if test "${enable_kprefix+set}" = set; then
2741   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2742 else
2743   kprefix=
2744 fi
2745
2746
2747 # Check whether --enable-secure-statd was given.
2748 if test "${enable_secure_statd+set}" = set; then
2749   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2750 else
2751   secure_statd=yes
2752 fi
2753
2754         if test "$secure_statd" = yes; then
2755
2756 cat >>confdefs.h <<\_ACEOF
2757 #define RESTRICTED_STATD 1
2758 _ACEOF
2759
2760         fi
2761
2762
2763 # Check whether --with-rpcgen was given.
2764 if test "${with_rpcgen+set}" = set; then
2765   withval=$with_rpcgen; rpcgen_path=$withval
2766 else
2767   rpcgen_path=yes
2768 fi
2769
2770         RPCGEN_PATH=
2771         if test "$rpcgen_path" == "yes"; then
2772             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2773             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2774         elif test "$rpcgen_path" != "internal"; then
2775             RPCGEN_PATH=$rpcgen_path
2776         fi
2777
2778          if test "$RPCGEN_PATH" == ""; then
2779   CONFIG_RPCGEN_TRUE=
2780   CONFIG_RPCGEN_FALSE='#'
2781 else
2782   CONFIG_RPCGEN_TRUE='#'
2783   CONFIG_RPCGEN_FALSE=
2784 fi
2785
2786 # Check whether --enable-uuid was given.
2787 if test "${enable_uuid+set}" = set; then
2788   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2789 else
2790   choose_blkid=default
2791 fi
2792
2793 # Check whether --enable-mount was given.
2794 if test "${enable_mount+set}" = set; then
2795   enableval=$enable_mount; enable_mount=$enableval
2796 else
2797   enable_mount=yes
2798 fi
2799
2800          if test "$enable_mount" = "yes"; then
2801   CONFIG_MOUNT_TRUE=
2802   CONFIG_MOUNT_FALSE='#'
2803 else
2804   CONFIG_MOUNT_TRUE='#'
2805   CONFIG_MOUNT_FALSE=
2806 fi
2807
2808
2809 # Check whether user wants TCP wrappers support
2810 DEPDIR="${am__leading_dot}deps"
2811
2812 ac_config_commands="$ac_config_commands depfiles"
2813
2814
2815 am_make=${MAKE-make}
2816 cat > confinc << 'END'
2817 am__doit:
2818         @echo done
2819 .PHONY: am__doit
2820 END
2821 # If we don't find an include directive, just comment out the code.
2822 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2823 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2824 am__include="#"
2825 am__quote=
2826 _am_result=none
2827 # First try GNU make style include.
2828 echo "include confinc" > confmf
2829 # We grep out `Entering directory' and `Leaving directory'
2830 # messages which can occur if `w' ends up in MAKEFLAGS.
2831 # In particular we don't look at `^make:' because GNU make might
2832 # be invoked under some other name (usually "gmake"), in which
2833 # case it prints its new name instead of `make'.
2834 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2835    am__include=include
2836    am__quote=
2837    _am_result=GNU
2838 fi
2839 # Now try BSD make style include.
2840 if test "$am__include" = "#"; then
2841    echo '.include "confinc"' > confmf
2842    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2843       am__include=.include
2844       am__quote="\""
2845       _am_result=BSD
2846    fi
2847 fi
2848
2849
2850 { echo "$as_me:$LINENO: result: $_am_result" >&5
2851 echo "${ECHO_T}$_am_result" >&6; }
2852 rm -f confinc confmf
2853
2854 # Check whether --enable-dependency-tracking was given.
2855 if test "${enable_dependency_tracking+set}" = set; then
2856   enableval=$enable_dependency_tracking;
2857 fi
2858
2859 if test "x$enable_dependency_tracking" != xno; then
2860   am_depcomp="$ac_aux_dir/depcomp"
2861   AMDEPBACKSLASH='\'
2862 fi
2863  if test "x$enable_dependency_tracking" != xno; then
2864   AMDEP_TRUE=
2865   AMDEP_FALSE='#'
2866 else
2867   AMDEP_TRUE='#'
2868   AMDEP_FALSE=
2869 fi
2870
2871
2872 ac_ext=c
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877 if test -n "$ac_tool_prefix"; then
2878   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2879 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2882 if test "${ac_cv_prog_CC+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885   if test -n "$CC"; then
2886   ac_cv_prog_CC="$CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891   IFS=$as_save_IFS
2892   test -z "$as_dir" && as_dir=.
2893   for ac_exec_ext in '' $ac_executable_extensions; do
2894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897     break 2
2898   fi
2899 done
2900 done
2901 IFS=$as_save_IFS
2902
2903 fi
2904 fi
2905 CC=$ac_cv_prog_CC
2906 if test -n "$CC"; then
2907   { echo "$as_me:$LINENO: result: $CC" >&5
2908 echo "${ECHO_T}$CC" >&6; }
2909 else
2910   { echo "$as_me:$LINENO: result: no" >&5
2911 echo "${ECHO_T}no" >&6; }
2912 fi
2913
2914
2915 fi
2916 if test -z "$ac_cv_prog_CC"; then
2917   ac_ct_CC=$CC
2918   # Extract the first word of "gcc", so it can be a program name with args.
2919 set dummy gcc; ac_word=$2
2920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2922 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   if test -n "$ac_ct_CC"; then
2926   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931   IFS=$as_save_IFS
2932   test -z "$as_dir" && as_dir=.
2933   for ac_exec_ext in '' $ac_executable_extensions; do
2934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935     ac_cv_prog_ac_ct_CC="gcc"
2936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2937     break 2
2938   fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 fi
2944 fi
2945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2946 if test -n "$ac_ct_CC"; then
2947   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2948 echo "${ECHO_T}$ac_ct_CC" >&6; }
2949 else
2950   { echo "$as_me:$LINENO: result: no" >&5
2951 echo "${ECHO_T}no" >&6; }
2952 fi
2953
2954   if test "x$ac_ct_CC" = x; then
2955     CC=""
2956   else
2957     case $cross_compiling:$ac_tool_warned in
2958 yes:)
2959 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2960 whose name does not start with the host triplet.  If you think this
2961 configuration is useful to you, please write to autoconf@gnu.org." >&5
2962 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2963 whose name does not start with the host triplet.  If you think this
2964 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2965 ac_tool_warned=yes ;;
2966 esac
2967     CC=$ac_ct_CC
2968   fi
2969 else
2970   CC="$ac_cv_prog_CC"
2971 fi
2972
2973 if test -z "$CC"; then
2974           if test -n "$ac_tool_prefix"; then
2975     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2976 set dummy ${ac_tool_prefix}cc; ac_word=$2
2977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_CC+set}" = set; then
2980   echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982   if test -n "$CC"; then
2983   ac_cv_prog_CC="$CC" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988   IFS=$as_save_IFS
2989   test -z "$as_dir" && as_dir=.
2990   for ac_exec_ext in '' $ac_executable_extensions; do
2991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992     ac_cv_prog_CC="${ac_tool_prefix}cc"
2993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994     break 2
2995   fi
2996 done
2997 done
2998 IFS=$as_save_IFS
2999
3000 fi
3001 fi
3002 CC=$ac_cv_prog_CC
3003 if test -n "$CC"; then
3004   { echo "$as_me:$LINENO: result: $CC" >&5
3005 echo "${ECHO_T}$CC" >&6; }
3006 else
3007   { echo "$as_me:$LINENO: result: no" >&5
3008 echo "${ECHO_T}no" >&6; }
3009 fi
3010
3011
3012   fi
3013 fi
3014 if test -z "$CC"; then
3015   # Extract the first word of "cc", so it can be a program name with args.
3016 set dummy cc; ac_word=$2
3017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3019 if test "${ac_cv_prog_CC+set}" = set; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022   if test -n "$CC"; then
3023   ac_cv_prog_CC="$CC" # Let the user override the test.
3024 else
3025   ac_prog_rejected=no
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029   IFS=$as_save_IFS
3030   test -z "$as_dir" && as_dir=.
3031   for ac_exec_ext in '' $ac_executable_extensions; do
3032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3034        ac_prog_rejected=yes
3035        continue
3036      fi
3037     ac_cv_prog_CC="cc"
3038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039     break 2
3040   fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 if test $ac_prog_rejected = yes; then
3046   # We found a bogon in the path, so make sure we never use it.
3047   set dummy $ac_cv_prog_CC
3048   shift
3049   if test $# != 0; then
3050     # We chose a different compiler from the bogus one.
3051     # However, it has the same basename, so the bogon will be chosen
3052     # first if we set CC to just the basename; use the full file name.
3053     shift
3054     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3055   fi
3056 fi
3057 fi
3058 fi
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061   { echo "$as_me:$LINENO: result: $CC" >&5
3062 echo "${ECHO_T}$CC" >&6; }
3063 else
3064   { echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6; }
3066 fi
3067
3068
3069 fi
3070 if test -z "$CC"; then
3071   if test -n "$ac_tool_prefix"; then
3072   for ac_prog in cl.exe
3073   do
3074     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081   if test -n "$CC"; then
3082   ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089   for ac_exec_ext in '' $ac_executable_extensions; do
3090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093     break 2
3094   fi
3095 done
3096 done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103   { echo "$as_me:$LINENO: result: $CC" >&5
3104 echo "${ECHO_T}$CC" >&6; }
3105 else
3106   { echo "$as_me:$LINENO: result: no" >&5
3107 echo "${ECHO_T}no" >&6; }
3108 fi
3109
3110
3111     test -n "$CC" && break
3112   done
3113 fi
3114 if test -z "$CC"; then
3115   ac_ct_CC=$CC
3116   for ac_prog in cl.exe
3117 do
3118   # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3123   echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125   if test -n "$ac_ct_CC"; then
3126   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131   IFS=$as_save_IFS
3132   test -z "$as_dir" && as_dir=.
3133   for ac_exec_ext in '' $ac_executable_extensions; do
3134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135     ac_cv_prog_ac_ct_CC="$ac_prog"
3136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137     break 2
3138   fi
3139 done
3140 done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146 if test -n "$ac_ct_CC"; then
3147   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3148 echo "${ECHO_T}$ac_ct_CC" >&6; }
3149 else
3150   { echo "$as_me:$LINENO: result: no" >&5
3151 echo "${ECHO_T}no" >&6; }
3152 fi
3153
3154
3155   test -n "$ac_ct_CC" && break
3156 done
3157
3158   if test "x$ac_ct_CC" = x; then
3159     CC=""
3160   else
3161     case $cross_compiling:$ac_tool_warned in
3162 yes:)
3163 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3164 whose name does not start with the host triplet.  If you think this
3165 configuration is useful to you, please write to autoconf@gnu.org." >&5
3166 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3167 whose name does not start with the host triplet.  If you think this
3168 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3169 ac_tool_warned=yes ;;
3170 esac
3171     CC=$ac_ct_CC
3172   fi
3173 fi
3174
3175 fi
3176
3177
3178 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3179 See \`config.log' for more details." >&5
3180 echo "$as_me: error: no acceptable C compiler found in \$PATH
3181 See \`config.log' for more details." >&2;}
3182    { (exit 1); exit 1; }; }
3183
3184 # Provide some information about the compiler.
3185 echo "$as_me:$LINENO: checking for C compiler version" >&5
3186 ac_compiler=`set X $ac_compile; echo $2`
3187 { (ac_try="$ac_compiler --version >&5"
3188 case "(($ac_try" in
3189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190   *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193   (eval "$ac_compiler --version >&5") 2>&5
3194   ac_status=$?
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); }
3197 { (ac_try="$ac_compiler -v >&5"
3198 case "(($ac_try" in
3199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200   *) ac_try_echo=$ac_try;;
3201 esac
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203   (eval "$ac_compiler -v >&5") 2>&5
3204   ac_status=$?
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); }
3207 { (ac_try="$ac_compiler -V >&5"
3208 case "(($ac_try" in
3209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210   *) ac_try_echo=$ac_try;;
3211 esac
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213   (eval "$ac_compiler -V >&5") 2>&5
3214   ac_status=$?
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); }
3217
3218 cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h.  */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h.  */
3224
3225 int
3226 main ()
3227 {
3228
3229   ;
3230   return 0;
3231 }
3232 _ACEOF
3233 ac_clean_files_save=$ac_clean_files
3234 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3235 # Try to create an executable without -o first, disregard a.out.
3236 # It will help us diagnose broken compilers, and finding out an intuition
3237 # of exeext.
3238 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3239 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3240 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3241 #
3242 # List of possible output files, starting from the most likely.
3243 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3244 # only as a last resort.  b.out is created by i960 compilers.
3245 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3246 #
3247 # The IRIX 6 linker writes into existing files which may not be
3248 # executable, retaining their permissions.  Remove them first so a
3249 # subsequent execution test works.
3250 ac_rmfiles=
3251 for ac_file in $ac_files
3252 do
3253   case $ac_file in
3254     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3255     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3256   esac
3257 done
3258 rm -f $ac_rmfiles
3259
3260 if { (ac_try="$ac_link_default"
3261 case "(($ac_try" in
3262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263   *) ac_try_echo=$ac_try;;
3264 esac
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266   (eval "$ac_link_default") 2>&5
3267   ac_status=$?
3268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); }; then
3270   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3271 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3272 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3273 # so that the user can short-circuit this test for compilers unknown to
3274 # Autoconf.
3275 for ac_file in $ac_files ''
3276 do
3277   test -f "$ac_file" || continue
3278   case $ac_file in
3279     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3280         ;;
3281     [ab].out )
3282         # We found the default executable, but exeext='' is most
3283         # certainly right.
3284         break;;
3285     *.* )
3286         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3287         then :; else
3288            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289         fi
3290         # We set ac_cv_exeext here because the later test for it is not
3291         # safe: cross compilers may not add the suffix if given an `-o'
3292         # argument, so we may need to know it at that point already.
3293         # Even if this section looks crufty: it has the advantage of
3294         # actually working.
3295         break;;
3296     * )
3297         break;;
3298   esac
3299 done
3300 test "$ac_cv_exeext" = no && ac_cv_exeext=
3301
3302 else
3303   ac_file=''
3304 fi
3305
3306 { echo "$as_me:$LINENO: result: $ac_file" >&5
3307 echo "${ECHO_T}$ac_file" >&6; }
3308 if test -z "$ac_file"; then
3309   echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3313 See \`config.log' for more details." >&5
3314 echo "$as_me: error: C compiler cannot create executables
3315 See \`config.log' for more details." >&2;}
3316    { (exit 77); exit 77; }; }
3317 fi
3318
3319 ac_exeext=$ac_cv_exeext
3320
3321 # Check that the compiler produces executables we can run.  If not, either
3322 # the compiler is broken, or we cross compile.
3323 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3324 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3325 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3326 # If not cross compiling, check that we can run a simple program.
3327 if test "$cross_compiling" != yes; then
3328   if { ac_try='./$ac_file'
3329   { (case "(($ac_try" in
3330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331   *) ac_try_echo=$ac_try;;
3332 esac
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334   (eval "$ac_try") 2>&5
3335   ac_status=$?
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); }; }; then
3338     cross_compiling=no
3339   else
3340     if test "$cross_compiling" = maybe; then
3341         cross_compiling=yes
3342     else
3343         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3344 If you meant to cross compile, use \`--host'.
3345 See \`config.log' for more details." >&5
3346 echo "$as_me: error: cannot run C compiled programs.
3347 If you meant to cross compile, use \`--host'.
3348 See \`config.log' for more details." >&2;}
3349    { (exit 1); exit 1; }; }
3350     fi
3351   fi
3352 fi
3353 { echo "$as_me:$LINENO: result: yes" >&5
3354 echo "${ECHO_T}yes" >&6; }
3355
3356 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3357 ac_clean_files=$ac_clean_files_save
3358 # Check that the compiler produces executables we can run.  If not, either
3359 # the compiler is broken, or we cross compile.
3360 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3361 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3362 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3363 echo "${ECHO_T}$cross_compiling" >&6; }
3364
3365 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3366 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3367 if { (ac_try="$ac_link"
3368 case "(($ac_try" in
3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370   *) ac_try_echo=$ac_try;;
3371 esac
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373   (eval "$ac_link") 2>&5
3374   ac_status=$?
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); }; then
3377   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3378 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3379 # work properly (i.e., refer to `conftest.exe'), while it won't with
3380 # `rm'.
3381 for ac_file in conftest.exe conftest conftest.*; do
3382   test -f "$ac_file" || continue
3383   case $ac_file in
3384     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3385     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3386           break;;
3387     * ) break;;
3388   esac
3389 done
3390 else
3391   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3392 See \`config.log' for more details." >&5
3393 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3394 See \`config.log' for more details." >&2;}
3395    { (exit 1); exit 1; }; }
3396 fi
3397
3398 rm -f conftest$ac_cv_exeext
3399 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3400 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3401
3402 rm -f conftest.$ac_ext
3403 EXEEXT=$ac_cv_exeext
3404 ac_exeext=$EXEEXT
3405 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3406 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3407 if test "${ac_cv_objext+set}" = set; then
3408   echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410   cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h.  */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h.  */
3416
3417 int
3418 main ()
3419 {
3420
3421   ;
3422   return 0;
3423 }
3424 _ACEOF
3425 rm -f conftest.o conftest.obj
3426 if { (ac_try="$ac_compile"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432   (eval "$ac_compile") 2>&5
3433   ac_status=$?
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); }; then
3436   for ac_file in conftest.o conftest.obj conftest.*; do
3437   test -f "$ac_file" || continue;
3438   case $ac_file in
3439     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3440     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3441        break;;
3442   esac
3443 done
3444 else
3445   echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3449 See \`config.log' for more details." >&5
3450 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3451 See \`config.log' for more details." >&2;}
3452    { (exit 1); exit 1; }; }
3453 fi
3454
3455 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3456 fi
3457 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3458 echo "${ECHO_T}$ac_cv_objext" >&6; }
3459 OBJEXT=$ac_cv_objext
3460 ac_objext=$OBJEXT
3461 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3462 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3463 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472
3473 int
3474 main ()
3475 {
3476 #ifndef __GNUC__
3477        choke me
3478 #endif
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (ac_try="$ac_compile"
3486 case "(($ac_try" in
3487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488   *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491   (eval "$ac_compile") 2>conftest.er1
3492   ac_status=$?
3493   grep -v '^ *+' conftest.er1 >conftest.err
3494   rm -f conftest.er1
3495   cat conftest.err >&5
3496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497   (exit $ac_status); } && {
3498          test -z "$ac_c_werror_flag" ||
3499          test ! -s conftest.err
3500        } && test -s conftest.$ac_objext; then
3501   ac_compiler_gnu=yes
3502 else
3503   echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506         ac_compiler_gnu=no
3507 fi
3508
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3511
3512 fi
3513 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3514 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3515 GCC=`test $ac_compiler_gnu = yes && echo yes`
3516 ac_test_CFLAGS=${CFLAGS+set}
3517 ac_save_CFLAGS=$CFLAGS
3518 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3519 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3520 if test "${ac_cv_prog_cc_g+set}" = set; then
3521   echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523   ac_save_c_werror_flag=$ac_c_werror_flag
3524    ac_c_werror_flag=yes
3525    ac_cv_prog_cc_g=no
3526    CFLAGS="-g"
3527    cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h.  */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h.  */
3533
3534 int
3535 main ()
3536 {
3537
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3544 case "(($ac_try" in
3545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546   *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549   (eval "$ac_compile") 2>conftest.er1
3550   ac_status=$?
3551   grep -v '^ *+' conftest.er1 >conftest.err
3552   rm -f conftest.er1
3553   cat conftest.err >&5
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } && {
3556          test -z "$ac_c_werror_flag" ||
3557          test ! -s conftest.err
3558        } && test -s conftest.$ac_objext; then
3559   ac_cv_prog_cc_g=yes
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564         CFLAGS=""
3565       cat >conftest.$ac_ext <<_ACEOF
3566 /* confdefs.h.  */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h.  */
3571
3572 int
3573 main ()
3574 {
3575
3576   ;
3577   return 0;
3578 }
3579 _ACEOF
3580 rm -f conftest.$ac_objext
3581 if { (ac_try="$ac_compile"
3582 case "(($ac_try" in
3583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584   *) ac_try_echo=$ac_try;;
3585 esac
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587   (eval "$ac_compile") 2>conftest.er1
3588   ac_status=$?
3589   grep -v '^ *+' conftest.er1 >conftest.err
3590   rm -f conftest.er1
3591   cat conftest.err >&5
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); } && {
3594          test -z "$ac_c_werror_flag" ||
3595          test ! -s conftest.err
3596        } && test -s conftest.$ac_objext; then
3597   :
3598 else
3599   echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602         ac_c_werror_flag=$ac_save_c_werror_flag
3603          CFLAGS="-g"
3604          cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h.  */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h.  */
3610
3611 int
3612 main ()
3613 {
3614
3615   ;
3616   return 0;
3617 }
3618 _ACEOF
3619 rm -f conftest.$ac_objext
3620 if { (ac_try="$ac_compile"
3621 case "(($ac_try" in
3622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623   *) ac_try_echo=$ac_try;;
3624 esac
3625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626   (eval "$ac_compile") 2>conftest.er1
3627   ac_status=$?
3628   grep -v '^ *+' conftest.er1 >conftest.err
3629   rm -f conftest.er1
3630   cat conftest.err >&5
3631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632   (exit $ac_status); } && {
3633          test -z "$ac_c_werror_flag" ||
3634          test ! -s conftest.err
3635        } && test -s conftest.$ac_objext; then
3636   ac_cv_prog_cc_g=yes
3637 else
3638   echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3640
3641
3642 fi
3643
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 fi
3646
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 fi
3649
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651    ac_c_werror_flag=$ac_save_c_werror_flag
3652 fi
3653 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3654 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3655 if test "$ac_test_CFLAGS" = set; then
3656   CFLAGS=$ac_save_CFLAGS
3657 elif test $ac_cv_prog_cc_g = yes; then
3658   if test "$GCC" = yes; then
3659     CFLAGS="-g -O2"
3660   else
3661     CFLAGS="-g"
3662   fi
3663 else
3664   if test "$GCC" = yes; then
3665     CFLAGS="-O2"
3666   else
3667     CFLAGS=
3668   fi
3669 fi
3670 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3671 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3672 if test "${ac_cv_prog_cc_c89+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   ac_cv_prog_cc_c89=no
3676 ac_save_CC=$CC
3677 cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h.  */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h.  */
3683 #include <stdarg.h>
3684 #include <stdio.h>
3685 #include <sys/types.h>
3686 #include <sys/stat.h>
3687 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3688 struct buf { int x; };
3689 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3690 static char *e (p, i)
3691      char **p;
3692      int i;
3693 {
3694   return p[i];
3695 }
3696 static char *f (char * (*g) (char **, int), char **p, ...)
3697 {
3698   char *s;
3699   va_list v;
3700   va_start (v,p);
3701   s = g (p, va_arg (v,int));
3702   va_end (v);
3703   return s;
3704 }
3705
3706 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3707    function prototypes and stuff, but not '\xHH' hex character constants.
3708    These don't provoke an error unfortunately, instead are silently treated
3709    as 'x'.  The following induces an error, until -std is added to get
3710    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3711    array size at least.  It's necessary to write '\x00'==0 to get something
3712    that's true only with -std.  */
3713 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3714
3715 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3716    inside strings and character constants.  */
3717 #define FOO(x) 'x'
3718 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3719
3720 int test (int i, double x);
3721 struct s1 {int (*f) (int a);};
3722 struct s2 {int (*f) (double a);};
3723 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3724 int argc;
3725 char **argv;
3726 int
3727 main ()
3728 {
3729 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3730   ;
3731   return 0;
3732 }
3733 _ACEOF
3734 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3735         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3736 do
3737   CC="$ac_save_CC $ac_arg"
3738   rm -f conftest.$ac_objext
3739 if { (ac_try="$ac_compile"
3740 case "(($ac_try" in
3741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742   *) ac_try_echo=$ac_try;;
3743 esac
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745   (eval "$ac_compile") 2>conftest.er1
3746   ac_status=$?
3747   grep -v '^ *+' conftest.er1 >conftest.err
3748   rm -f conftest.er1
3749   cat conftest.err >&5
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); } && {
3752          test -z "$ac_c_werror_flag" ||
3753          test ! -s conftest.err
3754        } && test -s conftest.$ac_objext; then
3755   ac_cv_prog_cc_c89=$ac_arg
3756 else
3757   echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3759
3760
3761 fi
3762
3763 rm -f core conftest.err conftest.$ac_objext
3764   test "x$ac_cv_prog_cc_c89" != "xno" && break
3765 done
3766 rm -f conftest.$ac_ext
3767 CC=$ac_save_CC
3768
3769 fi
3770 # AC_CACHE_VAL
3771 case "x$ac_cv_prog_cc_c89" in
3772   x)
3773     { echo "$as_me:$LINENO: result: none needed" >&5
3774 echo "${ECHO_T}none needed" >&6; } ;;
3775   xno)
3776     { echo "$as_me:$LINENO: result: unsupported" >&5
3777 echo "${ECHO_T}unsupported" >&6; } ;;
3778   *)
3779     CC="$CC $ac_cv_prog_cc_c89"
3780     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3781 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3782 esac
3783
3784
3785 ac_ext=c
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790
3791 depcc="$CC"   am_compiler_list=
3792
3793 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3794 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3795 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3799   # We make a subdir and do the tests there.  Otherwise we can end up
3800   # making bogus files that we don't know about and never remove.  For
3801   # instance it was reported that on HP-UX the gcc test will end up
3802   # making a dummy file named `D' -- because `-MD' means `put the output
3803   # in D'.
3804   mkdir conftest.dir
3805   # Copy depcomp to subdir because otherwise we won't find it if we're
3806   # using a relative directory.
3807   cp "$am_depcomp" conftest.dir
3808   cd conftest.dir
3809   # We will build objects and dependencies in a subdirectory because
3810   # it helps to detect inapplicable dependency modes.  For instance
3811   # both Tru64's cc and ICC support -MD to output dependencies as a
3812   # side effect of compilation, but ICC will put the dependencies in
3813   # the current directory while Tru64 will put them in the object
3814   # directory.
3815   mkdir sub
3816
3817   am_cv_CC_dependencies_compiler_type=none
3818   if test "$am_compiler_list" = ""; then
3819      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3820   fi
3821   for depmode in $am_compiler_list; do
3822     # Setup a source with many dependencies, because some compilers
3823     # like to wrap large dependency lists on column 80 (with \), and
3824     # we should not choose a depcomp mode which is confused by this.
3825     #
3826     # We need to recreate these files for each test, as the compiler may
3827     # overwrite some of them when testing with obscure command lines.
3828     # This happens at least with the AIX C compiler.
3829     : > sub/conftest.c
3830     for i in 1 2 3 4 5 6; do
3831       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3832       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3833       # Solaris 8's {/usr,}/bin/sh.
3834       touch sub/conftst$i.h
3835     done
3836     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3837
3838     case $depmode in
3839     nosideeffect)
3840       # after this tag, mechanisms are not by side-effect, so they'll
3841       # only be used when explicitly requested
3842       if test "x$enable_dependency_tracking" = xyes; then
3843         continue
3844       else
3845         break
3846       fi
3847       ;;
3848     none) break ;;
3849     esac
3850     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3851     # mode.  It turns out that the SunPro C++ compiler does not properly
3852     # handle `-M -o', and we need to detect this.
3853     if depmode=$depmode \
3854        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3855        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3856        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3857          >/dev/null 2>conftest.err &&
3858        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3859        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3860        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3861        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3862       # icc doesn't choke on unknown options, it will just issue warnings
3863       # or remarks (even with -Werror).  So we grep stderr for any message
3864       # that says an option was ignored or not supported.
3865       # When given -MP, icc 7.0 and 7.1 complain thusly:
3866       #   icc: Command line warning: ignoring option '-M'; no argument required
3867       # The diagnosis changed in icc 8.0:
3868       #   icc: Command line remark: option '-MP' not supported
3869       if (grep 'ignoring option' conftest.err ||
3870           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3871         am_cv_CC_dependencies_compiler_type=$depmode
3872         break
3873       fi
3874     fi
3875   done
3876
3877   cd ..
3878   rm -rf conftest.dir
3879 else
3880   am_cv_CC_dependencies_compiler_type=none
3881 fi
3882
3883 fi
3884 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3885 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3886 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3887
3888  if
3889   test "x$enable_dependency_tracking" != xno \
3890   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3891   am__fastdepCC_TRUE=
3892   am__fastdepCC_FALSE='#'
3893 else
3894   am__fastdepCC_TRUE='#'
3895   am__fastdepCC_FALSE=
3896 fi
3897
3898
3899
3900
3901   TCPW_MSG="no"
3902
3903 # Check whether --with-tcp-wrappers was given.
3904 if test "${with_tcp_wrappers+set}" = set; then
3905   withval=$with_tcp_wrappers; with_tcpw=$withval
3906 else
3907   with_tcpw=yes
3908 fi
3909
3910         if test "x$with_tcpw" != "xno" ; then
3911             saved_LIBS="$LIBS"
3912             saved_LDFLAGS="$LDFLAGS"
3913             saved_CPPFLAGS="$CPPFLAGS"
3914             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3915                 if test -d "${with_tcpw}/lib"; then
3916                     if test -n "${need_dash_r}"; then
3917                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3918                     else
3919                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3920                     fi
3921                 else
3922                     if test -n "${need_dash_r}"; then
3923                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3924                     else
3925                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3926                     fi
3927                 fi
3928                 if test -d "${with_tcpw}/include"; then
3929                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3930                 else
3931                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3932                 fi
3933             fi
3934             LIBWRAP="-lwrap"
3935             LIBS="$LIBWRAP $LIBS"
3936             { echo "$as_me:$LINENO: checking for libwrap" >&5
3937 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3938             cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h.  */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h.  */
3944
3945                 #include <tcpd.h>
3946                 int deny_severity = 0, allow_severity = 0;
3947
3948 int
3949 main ()
3950 {
3951 hosts_access(0);
3952   ;
3953   return 0;
3954 }
3955 _ACEOF
3956 rm -f conftest.$ac_objext conftest$ac_exeext
3957 if { (ac_try="$ac_link"
3958 case "(($ac_try" in
3959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960   *) ac_try_echo=$ac_try;;
3961 esac
3962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963   (eval "$ac_link") 2>conftest.er1
3964   ac_status=$?
3965   grep -v '^ *+' conftest.er1 >conftest.err
3966   rm -f conftest.er1
3967   cat conftest.err >&5
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); } && {
3970          test -z "$ac_c_werror_flag" ||
3971          test ! -s conftest.err
3972        } && test -s conftest$ac_exeext &&
3973        $as_test_x conftest$ac_exeext; then
3974
3975                 { echo "$as_me:$LINENO: result: yes" >&5
3976 echo "${ECHO_T}yes" >&6; }
3977
3978
3979 cat >>confdefs.h <<\_ACEOF
3980 #define LIBWRAP 1
3981 _ACEOF
3982
3983
3984 cat >>confdefs.h <<\_ACEOF
3985 #define HAVE_LIBWRAP 1
3986 _ACEOF
3987
3988
3989 cat >>confdefs.h <<\_ACEOF
3990 #define HAVE_TCP_WRAPPER 1
3991 _ACEOF
3992
3993                 TCPW_MSG="yes"
3994
3995 else
3996   echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3998
3999
4000                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4001 echo "$as_me: error: *** libwrap missing" >&2;}
4002    { (exit 1); exit 1; }; }
4003
4004
4005 fi
4006
4007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4008       conftest$ac_exeext conftest.$ac_ext
4009             LIBS="$saved_LIBS"
4010         fi
4011
4012
4013
4014
4015
4016 # Arrange for large-file support
4017 # Check whether --enable-largefile was given.
4018 if test "${enable_largefile+set}" = set; then
4019   enableval=$enable_largefile;
4020 fi
4021
4022 if test "$enable_largefile" != no; then
4023
4024   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4025 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4026 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   ac_cv_sys_largefile_CC=no
4030      if test "$GCC" != yes; then
4031        ac_save_CC=$CC
4032        while :; do
4033          # IRIX 6.2 and later do not support large files by default,
4034          # so use the C compiler's -n32 option if that helps.
4035          cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h.  */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h.  */
4041 #include <sys/types.h>
4042  /* Check that off_t can represent 2**63 - 1 correctly.
4043     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4044     since some C++ compilers masquerading as C compilers
4045     incorrectly reject 9223372036854775807.  */
4046 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4047   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4048                        && LARGE_OFF_T % 2147483647 == 1)
4049                       ? 1 : -1];
4050 int
4051 main ()
4052 {
4053
4054   ;
4055   return 0;
4056 }
4057 _ACEOF
4058          rm -f conftest.$ac_objext
4059 if { (ac_try="$ac_compile"
4060 case "(($ac_try" in
4061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062   *) ac_try_echo=$ac_try;;
4063 esac
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065   (eval "$ac_compile") 2>conftest.er1
4066   ac_status=$?
4067   grep -v '^ *+' conftest.er1 >conftest.err
4068   rm -f conftest.er1
4069   cat conftest.err >&5
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); } && {
4072          test -z "$ac_c_werror_flag" ||
4073          test ! -s conftest.err
4074        } && test -s conftest.$ac_objext; then
4075   break
4076 else
4077   echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4079
4080
4081 fi
4082
4083 rm -f core conftest.err conftest.$ac_objext
4084          CC="$CC -n32"
4085          rm -f conftest.$ac_objext
4086 if { (ac_try="$ac_compile"
4087 case "(($ac_try" in
4088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089   *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092   (eval "$ac_compile") 2>conftest.er1
4093   ac_status=$?
4094   grep -v '^ *+' conftest.er1 >conftest.err
4095   rm -f conftest.er1
4096   cat conftest.err >&5
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); } && {
4099          test -z "$ac_c_werror_flag" ||
4100          test ! -s conftest.err
4101        } && test -s conftest.$ac_objext; then
4102   ac_cv_sys_largefile_CC=' -n32'; break
4103 else
4104   echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107
4108 fi
4109
4110 rm -f core conftest.err conftest.$ac_objext
4111          break
4112        done
4113        CC=$ac_save_CC
4114        rm -f conftest.$ac_ext
4115     fi
4116 fi
4117 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4118 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4119   if test "$ac_cv_sys_largefile_CC" != no; then
4120     CC=$CC$ac_cv_sys_largefile_CC
4121   fi
4122
4123   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4124 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4125 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   while :; do
4129   cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h.  */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h.  */
4135 #include <sys/types.h>
4136  /* Check that off_t can represent 2**63 - 1 correctly.
4137     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4138     since some C++ compilers masquerading as C compilers
4139     incorrectly reject 9223372036854775807.  */
4140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4141   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4142                        && LARGE_OFF_T % 2147483647 == 1)
4143                       ? 1 : -1];
4144 int
4145 main ()
4146 {
4147
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 rm -f conftest.$ac_objext
4153 if { (ac_try="$ac_compile"
4154 case "(($ac_try" in
4155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156   *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159   (eval "$ac_compile") 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } && {
4166          test -z "$ac_c_werror_flag" ||
4167          test ! -s conftest.err
4168        } && test -s conftest.$ac_objext; then
4169   ac_cv_sys_file_offset_bits=no; break
4170 else
4171   echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174
4175 fi
4176
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178   cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h.  */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h.  */
4184 #define _FILE_OFFSET_BITS 64
4185 #include <sys/types.h>
4186  /* Check that off_t can represent 2**63 - 1 correctly.
4187     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4188     since some C++ compilers masquerading as C compilers
4189     incorrectly reject 9223372036854775807.  */
4190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4191   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4192                        && LARGE_OFF_T % 2147483647 == 1)
4193                       ? 1 : -1];
4194 int
4195 main ()
4196 {
4197
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4204 case "(($ac_try" in
4205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206   *) ac_try_echo=$ac_try;;
4207 esac
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209   (eval "$ac_compile") 2>conftest.er1
4210   ac_status=$?
4211   grep -v '^ *+' conftest.er1 >conftest.err
4212   rm -f conftest.er1
4213   cat conftest.err >&5
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); } && {
4216          test -z "$ac_c_werror_flag" ||
4217          test ! -s conftest.err
4218        } && test -s conftest.$ac_objext; then
4219   ac_cv_sys_file_offset_bits=64; break
4220 else
4221   echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4223
4224
4225 fi
4226
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228   ac_cv_sys_file_offset_bits=unknown
4229   break
4230 done
4231 fi
4232 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4233 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4234 case $ac_cv_sys_file_offset_bits in #(
4235   no | unknown) ;;
4236   *)
4237 cat >>confdefs.h <<_ACEOF
4238 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4239 _ACEOF
4240 ;;
4241 esac
4242 rm -f conftest*
4243   if test $ac_cv_sys_file_offset_bits = unknown; then
4244     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4245 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4246 if test "${ac_cv_sys_large_files+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   while :; do
4250   cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h.  */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h.  */
4256 #include <sys/types.h>
4257  /* Check that off_t can represent 2**63 - 1 correctly.
4258     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4259     since some C++ compilers masquerading as C compilers
4260     incorrectly reject 9223372036854775807.  */
4261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4262   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4263                        && LARGE_OFF_T % 2147483647 == 1)
4264                       ? 1 : -1];
4265 int
4266 main ()
4267 {
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4275 case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280   (eval "$ac_compile") 2>conftest.er1
4281   ac_status=$?
4282   grep -v '^ *+' conftest.er1 >conftest.err
4283   rm -f conftest.er1
4284   cat conftest.err >&5
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } && {
4287          test -z "$ac_c_werror_flag" ||
4288          test ! -s conftest.err
4289        } && test -s conftest.$ac_objext; then
4290   ac_cv_sys_large_files=no; break
4291 else
4292   echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295
4296 fi
4297
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299   cat >conftest.$ac_ext <<_ACEOF
4300 /* confdefs.h.  */
4301 _ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h.  */
4305 #define _LARGE_FILES 1
4306 #include <sys/types.h>
4307  /* Check that off_t can represent 2**63 - 1 correctly.
4308     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4309     since some C++ compilers masquerading as C compilers
4310     incorrectly reject 9223372036854775807.  */
4311 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4312   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4313                        && LARGE_OFF_T % 2147483647 == 1)
4314                       ? 1 : -1];
4315 int
4316 main ()
4317 {
4318
4319   ;
4320   return 0;
4321 }
4322 _ACEOF
4323 rm -f conftest.$ac_objext
4324 if { (ac_try="$ac_compile"
4325 case "(($ac_try" in
4326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327   *) ac_try_echo=$ac_try;;
4328 esac
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330   (eval "$ac_compile") 2>conftest.er1
4331   ac_status=$?
4332   grep -v '^ *+' conftest.er1 >conftest.err
4333   rm -f conftest.er1
4334   cat conftest.err >&5
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); } && {
4337          test -z "$ac_c_werror_flag" ||
4338          test ! -s conftest.err
4339        } && test -s conftest.$ac_objext; then
4340   ac_cv_sys_large_files=1; break
4341 else
4342   echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345
4346 fi
4347
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349   ac_cv_sys_large_files=unknown
4350   break
4351 done
4352 fi
4353 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4354 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4355 case $ac_cv_sys_large_files in #(
4356   no | unknown) ;;
4357   *)
4358 cat >>confdefs.h <<_ACEOF
4359 #define _LARGE_FILES $ac_cv_sys_large_files
4360 _ACEOF
4361 ;;
4362 esac
4363 rm -f conftest*
4364   fi
4365 fi
4366
4367
4368
4369 ac_config_headers="$ac_config_headers support/include/config.h"
4370
4371
4372 # Checks for programs.
4373 ac_ext=cpp
4374 ac_cpp='$CXXCPP $CPPFLAGS'
4375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4378 if test -z "$CXX"; then
4379   if test -n "$CCC"; then
4380     CXX=$CCC
4381   else
4382     if test -n "$ac_tool_prefix"; then
4383   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4384   do
4385     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_CXX+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   if test -n "$CXX"; then
4393   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398   IFS=$as_save_IFS
4399   test -z "$as_dir" && as_dir=.
4400   for ac_exec_ext in '' $ac_executable_extensions; do
4401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404     break 2
4405   fi
4406 done
4407 done
4408 IFS=$as_save_IFS
4409
4410 fi
4411 fi
4412 CXX=$ac_cv_prog_CXX
4413 if test -n "$CXX"; then
4414   { echo "$as_me:$LINENO: result: $CXX" >&5
4415 echo "${ECHO_T}$CXX" >&6; }
4416 else
4417   { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4419 fi
4420
4421
4422     test -n "$CXX" && break
4423   done
4424 fi
4425 if test -z "$CXX"; then
4426   ac_ct_CXX=$CXX
4427   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4428 do
4429   # Extract the first word of "$ac_prog", so it can be a program name with args.
4430 set dummy $ac_prog; ac_word=$2
4431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436   if test -n "$ac_ct_CXX"; then
4437   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444   for ac_exec_ext in '' $ac_executable_extensions; do
4445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446     ac_cv_prog_ac_ct_CXX="$ac_prog"
4447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448     break 2
4449   fi
4450 done
4451 done
4452 IFS=$as_save_IFS
4453
4454 fi
4455 fi
4456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4457 if test -n "$ac_ct_CXX"; then
4458   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4459 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4460 else
4461   { echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6; }
4463 fi
4464
4465
4466   test -n "$ac_ct_CXX" && break
4467 done
4468
4469   if test "x$ac_ct_CXX" = x; then
4470     CXX="g++"
4471   else
4472     case $cross_compiling:$ac_tool_warned in
4473 yes:)
4474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4475 whose name does not start with the host triplet.  If you think this
4476 configuration is useful to you, please write to autoconf@gnu.org." >&5
4477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4478 whose name does not start with the host triplet.  If you think this
4479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4480 ac_tool_warned=yes ;;
4481 esac
4482     CXX=$ac_ct_CXX
4483   fi
4484 fi
4485
4486   fi
4487 fi
4488 # Provide some information about the compiler.
4489 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4490 ac_compiler=`set X $ac_compile; echo $2`
4491 { (ac_try="$ac_compiler --version >&5"
4492 case "(($ac_try" in
4493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494   *) ac_try_echo=$ac_try;;
4495 esac
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497   (eval "$ac_compiler --version >&5") 2>&5
4498   ac_status=$?
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); }
4501 { (ac_try="$ac_compiler -v >&5"
4502 case "(($ac_try" in
4503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504   *) ac_try_echo=$ac_try;;
4505 esac
4506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507   (eval "$ac_compiler -v >&5") 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }
4511 { (ac_try="$ac_compiler -V >&5"
4512 case "(($ac_try" in
4513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514   *) ac_try_echo=$ac_try;;
4515 esac
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517   (eval "$ac_compiler -V >&5") 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); }
4521
4522 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4523 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4524 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533
4534 int
4535 main ()
4536 {
4537 #ifndef __GNUC__
4538        choke me
4539 #endif
4540
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 rm -f conftest.$ac_objext
4546 if { (ac_try="$ac_compile"
4547 case "(($ac_try" in
4548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549   *) ac_try_echo=$ac_try;;
4550 esac
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552   (eval "$ac_compile") 2>conftest.er1
4553   ac_status=$?
4554   grep -v '^ *+' conftest.er1 >conftest.err
4555   rm -f conftest.er1
4556   cat conftest.err >&5
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); } && {
4559          test -z "$ac_cxx_werror_flag" ||
4560          test ! -s conftest.err
4561        } && test -s conftest.$ac_objext; then
4562   ac_compiler_gnu=yes
4563 else
4564   echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4566
4567         ac_compiler_gnu=no
4568 fi
4569
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4572
4573 fi
4574 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4575 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4576 GXX=`test $ac_compiler_gnu = yes && echo yes`
4577 ac_test_CXXFLAGS=${CXXFLAGS+set}
4578 ac_save_CXXFLAGS=$CXXFLAGS
4579 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4580 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_cxx_g+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4585    ac_cxx_werror_flag=yes
4586    ac_cv_prog_cxx_g=no
4587    CXXFLAGS="-g"
4588    cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594
4595 int
4596 main ()
4597 {
4598
4599   ;
4600   return 0;
4601 }
4602 _ACEOF
4603 rm -f conftest.$ac_objext
4604 if { (ac_try="$ac_compile"
4605 case "(($ac_try" in
4606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607   *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610   (eval "$ac_compile") 2>conftest.er1
4611   ac_status=$?
4612   grep -v '^ *+' conftest.er1 >conftest.err
4613   rm -f conftest.er1
4614   cat conftest.err >&5
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); } && {
4617          test -z "$ac_cxx_werror_flag" ||
4618          test ! -s conftest.err
4619        } && test -s conftest.$ac_objext; then
4620   ac_cv_prog_cxx_g=yes
4621 else
4622   echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625         CXXFLAGS=""
4626       cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h.  */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h.  */
4632
4633 int
4634 main ()
4635 {
4636
4637   ;
4638   return 0;
4639 }
4640 _ACEOF
4641 rm -f conftest.$ac_objext
4642 if { (ac_try="$ac_compile"
4643 case "(($ac_try" in
4644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645   *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648   (eval "$ac_compile") 2>conftest.er1
4649   ac_status=$?
4650   grep -v '^ *+' conftest.er1 >conftest.err
4651   rm -f conftest.er1
4652   cat conftest.err >&5
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); } && {
4655          test -z "$ac_cxx_werror_flag" ||
4656          test ! -s conftest.err
4657        } && test -s conftest.$ac_objext; then
4658   :
4659 else
4660   echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4662
4663         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4664          CXXFLAGS="-g"
4665          cat >conftest.$ac_ext <<_ACEOF
4666 /* confdefs.h.  */
4667 _ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h.  */
4671
4672 int
4673 main ()
4674 {
4675
4676   ;
4677   return 0;
4678 }
4679 _ACEOF
4680 rm -f conftest.$ac_objext
4681 if { (ac_try="$ac_compile"
4682 case "(($ac_try" in
4683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684   *) ac_try_echo=$ac_try;;
4685 esac
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687   (eval "$ac_compile") 2>conftest.er1
4688   ac_status=$?
4689   grep -v '^ *+' conftest.er1 >conftest.err
4690   rm -f conftest.er1
4691   cat conftest.err >&5
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); } && {
4694          test -z "$ac_cxx_werror_flag" ||
4695          test ! -s conftest.err
4696        } && test -s conftest.$ac_objext; then
4697   ac_cv_prog_cxx_g=yes
4698 else
4699   echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702
4703 fi
4704
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 fi
4707
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 fi
4710
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4713 fi
4714 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4715 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4716 if test "$ac_test_CXXFLAGS" = set; then
4717   CXXFLAGS=$ac_save_CXXFLAGS
4718 elif test $ac_cv_prog_cxx_g = yes; then
4719   if test "$GXX" = yes; then
4720     CXXFLAGS="-g -O2"
4721   else
4722     CXXFLAGS="-g"
4723   fi
4724 else
4725   if test "$GXX" = yes; then
4726     CXXFLAGS="-O2"
4727   else
4728     CXXFLAGS=
4729   fi
4730 fi
4731 ac_ext=c
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736
4737 depcc="$CXX"  am_compiler_list=
4738
4739 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4740 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4741 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4745   # We make a subdir and do the tests there.  Otherwise we can end up
4746   # making bogus files that we don't know about and never remove.  For
4747   # instance it was reported that on HP-UX the gcc test will end up
4748   # making a dummy file named `D' -- because `-MD' means `put the output
4749   # in D'.
4750   mkdir conftest.dir
4751   # Copy depcomp to subdir because otherwise we won't find it if we're
4752   # using a relative directory.
4753   cp "$am_depcomp" conftest.dir
4754   cd conftest.dir
4755   # We will build objects and dependencies in a subdirectory because
4756   # it helps to detect inapplicable dependency modes.  For instance
4757   # both Tru64's cc and ICC support -MD to output dependencies as a
4758   # side effect of compilation, but ICC will put the dependencies in
4759   # the current directory while Tru64 will put them in the object
4760   # directory.
4761   mkdir sub
4762
4763   am_cv_CXX_dependencies_compiler_type=none
4764   if test "$am_compiler_list" = ""; then
4765      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4766   fi
4767   for depmode in $am_compiler_list; do
4768     # Setup a source with many dependencies, because some compilers
4769     # like to wrap large dependency lists on column 80 (with \), and
4770     # we should not choose a depcomp mode which is confused by this.
4771     #
4772     # We need to recreate these files for each test, as the compiler may
4773     # overwrite some of them when testing with obscure command lines.
4774     # This happens at least with the AIX C compiler.
4775     : > sub/conftest.c
4776     for i in 1 2 3 4 5 6; do
4777       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4778       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4779       # Solaris 8's {/usr,}/bin/sh.
4780       touch sub/conftst$i.h
4781     done
4782     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4783
4784     case $depmode in
4785     nosideeffect)
4786       # after this tag, mechanisms are not by side-effect, so they'll
4787       # only be used when explicitly requested
4788       if test "x$enable_dependency_tracking" = xyes; then
4789         continue
4790       else
4791         break
4792       fi
4793       ;;
4794     none) break ;;
4795     esac
4796     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4797     # mode.  It turns out that the SunPro C++ compiler does not properly
4798     # handle `-M -o', and we need to detect this.
4799     if depmode=$depmode \
4800        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4801        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4802        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4803          >/dev/null 2>conftest.err &&
4804        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4805        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4806        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4807        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4808       # icc doesn't choke on unknown options, it will just issue warnings
4809       # or remarks (even with -Werror).  So we grep stderr for any message
4810       # that says an option was ignored or not supported.
4811       # When given -MP, icc 7.0 and 7.1 complain thusly:
4812       #   icc: Command line warning: ignoring option '-M'; no argument required
4813       # The diagnosis changed in icc 8.0:
4814       #   icc: Command line remark: option '-MP' not supported
4815       if (grep 'ignoring option' conftest.err ||
4816           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4817         am_cv_CXX_dependencies_compiler_type=$depmode
4818         break
4819       fi
4820     fi
4821   done
4822
4823   cd ..
4824   rm -rf conftest.dir
4825 else
4826   am_cv_CXX_dependencies_compiler_type=none
4827 fi
4828
4829 fi
4830 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4831 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4832 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4833
4834  if
4835   test "x$enable_dependency_tracking" != xno \
4836   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4837   am__fastdepCXX_TRUE=
4838   am__fastdepCXX_FALSE='#'
4839 else
4840   am__fastdepCXX_TRUE='#'
4841   am__fastdepCXX_FALSE=
4842 fi
4843
4844
4845 ac_ext=c
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 if test -n "$ac_tool_prefix"; then
4851   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4852 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_CC+set}" = set; then
4856   echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858   if test -n "$CC"; then
4859   ac_cv_prog_CC="$CC" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866   for ac_exec_ext in '' $ac_executable_extensions; do
4867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 CC=$ac_cv_prog_CC
4879 if test -n "$CC"; then
4880   { echo "$as_me:$LINENO: result: $CC" >&5
4881 echo "${ECHO_T}$CC" >&6; }
4882 else
4883   { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4885 fi
4886
4887
4888 fi
4889 if test -z "$ac_cv_prog_CC"; then
4890   ac_ct_CC=$CC
4891   # Extract the first word of "gcc", so it can be a program name with args.
4892 set dummy gcc; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898   if test -n "$ac_ct_CC"; then
4899   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906   for ac_exec_ext in '' $ac_executable_extensions; do
4907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908     ac_cv_prog_ac_ct_CC="gcc"
4909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913 done
4914 IFS=$as_save_IFS
4915
4916 fi
4917 fi
4918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4919 if test -n "$ac_ct_CC"; then
4920   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4921 echo "${ECHO_T}$ac_ct_CC" >&6; }
4922 else
4923   { echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6; }
4925 fi
4926
4927   if test "x$ac_ct_CC" = x; then
4928     CC=""
4929   else
4930     case $cross_compiling:$ac_tool_warned in
4931 yes:)
4932 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4933 whose name does not start with the host triplet.  If you think this
4934 configuration is useful to you, please write to autoconf@gnu.org." >&5
4935 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4936 whose name does not start with the host triplet.  If you think this
4937 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4938 ac_tool_warned=yes ;;
4939 esac
4940     CC=$ac_ct_CC
4941   fi
4942 else
4943   CC="$ac_cv_prog_CC"
4944 fi
4945
4946 if test -z "$CC"; then
4947           if test -n "$ac_tool_prefix"; then
4948     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4949 set dummy ${ac_tool_prefix}cc; ac_word=$2
4950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4952 if test "${ac_cv_prog_CC+set}" = set; then
4953   echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955   if test -n "$CC"; then
4956   ac_cv_prog_CC="$CC" # Let the user override the test.
4957 else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961   IFS=$as_save_IFS
4962   test -z "$as_dir" && as_dir=.
4963   for ac_exec_ext in '' $ac_executable_extensions; do
4964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965     ac_cv_prog_CC="${ac_tool_prefix}cc"
4966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4967     break 2
4968   fi
4969 done
4970 done
4971 IFS=$as_save_IFS
4972
4973 fi
4974 fi
4975 CC=$ac_cv_prog_CC
4976 if test -n "$CC"; then
4977   { echo "$as_me:$LINENO: result: $CC" >&5
4978 echo "${ECHO_T}$CC" >&6; }
4979 else
4980   { echo "$as_me:$LINENO: result: no" >&5
4981 echo "${ECHO_T}no" >&6; }
4982 fi
4983
4984
4985   fi
4986 fi
4987 if test -z "$CC"; then
4988   # Extract the first word of "cc", so it can be a program name with args.
4989 set dummy cc; ac_word=$2
4990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4992 if test "${ac_cv_prog_CC+set}" = set; then
4993   echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995   if test -n "$CC"; then
4996   ac_cv_prog_CC="$CC" # Let the user override the test.
4997 else
4998   ac_prog_rejected=no
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002   IFS=$as_save_IFS
5003   test -z "$as_dir" && as_dir=.
5004   for ac_exec_ext in '' $ac_executable_extensions; do
5005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5007        ac_prog_rejected=yes
5008        continue
5009      fi
5010     ac_cv_prog_CC="cc"
5011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012     break 2
5013   fi
5014 done
5015 done
5016 IFS=$as_save_IFS
5017
5018 if test $ac_prog_rejected = yes; then
5019   # We found a bogon in the path, so make sure we never use it.
5020   set dummy $ac_cv_prog_CC
5021   shift
5022   if test $# != 0; then
5023     # We chose a different compiler from the bogus one.
5024     # However, it has the same basename, so the bogon will be chosen
5025     # first if we set CC to just the basename; use the full file name.
5026     shift
5027     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5028   fi
5029 fi
5030 fi
5031 fi
5032 CC=$ac_cv_prog_CC
5033 if test -n "$CC"; then
5034   { echo "$as_me:$LINENO: result: $CC" >&5
5035 echo "${ECHO_T}$CC" >&6; }
5036 else
5037   { echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6; }
5039 fi
5040
5041
5042 fi
5043 if test -z "$CC"; then
5044   if test -n "$ac_tool_prefix"; then
5045   for ac_prog in cl.exe
5046   do
5047     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_prog_CC+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   if test -n "$CC"; then
5055   ac_cv_prog_CC="$CC" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062   for ac_exec_ext in '' $ac_executable_extensions; do
5063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066     break 2
5067   fi
5068 done
5069 done
5070 IFS=$as_save_IFS
5071
5072 fi
5073 fi
5074 CC=$ac_cv_prog_CC
5075 if test -n "$CC"; then
5076   { echo "$as_me:$LINENO: result: $CC" >&5
5077 echo "${ECHO_T}$CC" >&6; }
5078 else
5079   { echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6; }
5081 fi
5082
5083
5084     test -n "$CC" && break
5085   done
5086 fi
5087 if test -z "$CC"; then
5088   ac_ct_CC=$CC
5089   for ac_prog in cl.exe
5090 do
5091   # Extract the first word of "$ac_prog", so it can be a program name with args.
5092 set dummy $ac_prog; ac_word=$2
5093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5096   echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098   if test -n "$ac_ct_CC"; then
5099   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106   for ac_exec_ext in '' $ac_executable_extensions; do
5107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108     ac_cv_prog_ac_ct_CC="$ac_prog"
5109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110     break 2
5111   fi
5112 done
5113 done
5114 IFS=$as_save_IFS
5115
5116 fi
5117 fi
5118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5119 if test -n "$ac_ct_CC"; then
5120   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5121 echo "${ECHO_T}$ac_ct_CC" >&6; }
5122 else
5123   { echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6; }
5125 fi
5126
5127
5128   test -n "$ac_ct_CC" && break
5129 done
5130
5131   if test "x$ac_ct_CC" = x; then
5132     CC=""
5133   else
5134     case $cross_compiling:$ac_tool_warned in
5135 yes:)
5136 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5137 whose name does not start with the host triplet.  If you think this
5138 configuration is useful to you, please write to autoconf@gnu.org." >&5
5139 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5140 whose name does not start with the host triplet.  If you think this
5141 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5142 ac_tool_warned=yes ;;
5143 esac
5144     CC=$ac_ct_CC
5145   fi
5146 fi
5147
5148 fi
5149
5150
5151 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5152 See \`config.log' for more details." >&5
5153 echo "$as_me: error: no acceptable C compiler found in \$PATH
5154 See \`config.log' for more details." >&2;}
5155    { (exit 1); exit 1; }; }
5156
5157 # Provide some information about the compiler.
5158 echo "$as_me:$LINENO: checking for C compiler version" >&5
5159 ac_compiler=`set X $ac_compile; echo $2`
5160 { (ac_try="$ac_compiler --version >&5"
5161 case "(($ac_try" in
5162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163   *) ac_try_echo=$ac_try;;
5164 esac
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166   (eval "$ac_compiler --version >&5") 2>&5
5167   ac_status=$?
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); }
5170 { (ac_try="$ac_compiler -v >&5"
5171 case "(($ac_try" in
5172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173   *) ac_try_echo=$ac_try;;
5174 esac
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176   (eval "$ac_compiler -v >&5") 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); }
5180 { (ac_try="$ac_compiler -V >&5"
5181 case "(($ac_try" in
5182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183   *) ac_try_echo=$ac_try;;
5184 esac
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186   (eval "$ac_compiler -V >&5") 2>&5
5187   ac_status=$?
5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189   (exit $ac_status); }
5190
5191 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5192 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5193 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5194   echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196   cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h.  */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h.  */
5202
5203 int
5204 main ()
5205 {
5206 #ifndef __GNUC__
5207        choke me
5208 #endif
5209
5210   ;
5211   return 0;
5212 }
5213 _ACEOF
5214 rm -f conftest.$ac_objext
5215 if { (ac_try="$ac_compile"
5216 case "(($ac_try" in
5217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218   *) ac_try_echo=$ac_try;;
5219 esac
5220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221   (eval "$ac_compile") 2>conftest.er1
5222   ac_status=$?
5223   grep -v '^ *+' conftest.er1 >conftest.err
5224   rm -f conftest.er1
5225   cat conftest.err >&5
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); } && {
5228          test -z "$ac_c_werror_flag" ||
5229          test ! -s conftest.err
5230        } && test -s conftest.$ac_objext; then
5231   ac_compiler_gnu=yes
5232 else
5233   echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5235
5236         ac_compiler_gnu=no
5237 fi
5238
5239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5241
5242 fi
5243 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5244 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5245 GCC=`test $ac_compiler_gnu = yes && echo yes`
5246 ac_test_CFLAGS=${CFLAGS+set}
5247 ac_save_CFLAGS=$CFLAGS
5248 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5249 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5250 if test "${ac_cv_prog_cc_g+set}" = set; then
5251   echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253   ac_save_c_werror_flag=$ac_c_werror_flag
5254    ac_c_werror_flag=yes
5255    ac_cv_prog_cc_g=no
5256    CFLAGS="-g"
5257    cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h.  */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h.  */
5263
5264 int
5265 main ()
5266 {
5267
5268   ;
5269   return 0;
5270 }
5271 _ACEOF
5272 rm -f conftest.$ac_objext
5273 if { (ac_try="$ac_compile"
5274 case "(($ac_try" in
5275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276   *) ac_try_echo=$ac_try;;
5277 esac
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279   (eval "$ac_compile") 2>conftest.er1
5280   ac_status=$?
5281   grep -v '^ *+' conftest.er1 >conftest.err
5282   rm -f conftest.er1
5283   cat conftest.err >&5
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); } && {
5286          test -z "$ac_c_werror_flag" ||
5287          test ! -s conftest.err
5288        } && test -s conftest.$ac_objext; then
5289   ac_cv_prog_cc_g=yes
5290 else
5291   echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5293
5294         CFLAGS=""
5295       cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h.  */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h.  */
5301
5302 int
5303 main ()
5304 {
5305
5306   ;
5307   return 0;
5308 }
5309 _ACEOF
5310 rm -f conftest.$ac_objext
5311 if { (ac_try="$ac_compile"
5312 case "(($ac_try" in
5313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314   *) ac_try_echo=$ac_try;;
5315 esac
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317   (eval "$ac_compile") 2>conftest.er1
5318   ac_status=$?
5319   grep -v '^ *+' conftest.er1 >conftest.err
5320   rm -f conftest.er1
5321   cat conftest.err >&5
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); } && {
5324          test -z "$ac_c_werror_flag" ||
5325          test ! -s conftest.err
5326        } && test -s conftest.$ac_objext; then
5327   :
5328 else
5329   echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5331
5332         ac_c_werror_flag=$ac_save_c_werror_flag
5333          CFLAGS="-g"
5334          cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h.  */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h.  */
5340
5341 int
5342 main ()
5343 {
5344
5345   ;
5346   return 0;
5347 }
5348 _ACEOF
5349 rm -f conftest.$ac_objext
5350 if { (ac_try="$ac_compile"
5351 case "(($ac_try" in
5352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353   *) ac_try_echo=$ac_try;;
5354 esac
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356   (eval "$ac_compile") 2>conftest.er1
5357   ac_status=$?
5358   grep -v '^ *+' conftest.er1 >conftest.err
5359   rm -f conftest.er1
5360   cat conftest.err >&5
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); } && {
5363          test -z "$ac_c_werror_flag" ||
5364          test ! -s conftest.err
5365        } && test -s conftest.$ac_objext; then
5366   ac_cv_prog_cc_g=yes
5367 else
5368   echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5370
5371
5372 fi
5373
5374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375 fi
5376
5377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378 fi
5379
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381    ac_c_werror_flag=$ac_save_c_werror_flag
5382 fi
5383 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5384 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5385 if test "$ac_test_CFLAGS" = set; then
5386   CFLAGS=$ac_save_CFLAGS
5387 elif test $ac_cv_prog_cc_g = yes; then
5388   if test "$GCC" = yes; then
5389     CFLAGS="-g -O2"
5390   else
5391     CFLAGS="-g"
5392   fi
5393 else
5394   if test "$GCC" = yes; then
5395     CFLAGS="-O2"
5396   else
5397     CFLAGS=
5398   fi
5399 fi
5400 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5401 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5402 if test "${ac_cv_prog_cc_c89+set}" = set; then
5403   echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405   ac_cv_prog_cc_c89=no
5406 ac_save_CC=$CC
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h.  */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h.  */
5413 #include <stdarg.h>
5414 #include <stdio.h>
5415 #include <sys/types.h>
5416 #include <sys/stat.h>
5417 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5418 struct buf { int x; };
5419 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5420 static char *e (p, i)
5421      char **p;
5422      int i;
5423 {
5424   return p[i];
5425 }
5426 static char *f (char * (*g) (char **, int), char **p, ...)
5427 {
5428   char *s;
5429   va_list v;
5430   va_start (v,p);
5431   s = g (p, va_arg (v,int));
5432   va_end (v);
5433   return s;
5434 }
5435
5436 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5437    function prototypes and stuff, but not '\xHH' hex character constants.
5438    These don't provoke an error unfortunately, instead are silently treated
5439    as 'x'.  The following induces an error, until -std is added to get
5440    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5441    array size at least.  It's necessary to write '\x00'==0 to get something
5442    that's true only with -std.  */
5443 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5444
5445 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5446    inside strings and character constants.  */
5447 #define FOO(x) 'x'
5448 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5449
5450 int test (int i, double x);
5451 struct s1 {int (*f) (int a);};
5452 struct s2 {int (*f) (double a);};
5453 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5454 int argc;
5455 char **argv;
5456 int
5457 main ()
5458 {
5459 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5460   ;
5461   return 0;
5462 }
5463 _ACEOF
5464 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5465         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5466 do
5467   CC="$ac_save_CC $ac_arg"
5468   rm -f conftest.$ac_objext
5469 if { (ac_try="$ac_compile"
5470 case "(($ac_try" in
5471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472   *) ac_try_echo=$ac_try;;
5473 esac
5474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475   (eval "$ac_compile") 2>conftest.er1
5476   ac_status=$?
5477   grep -v '^ *+' conftest.er1 >conftest.err
5478   rm -f conftest.er1
5479   cat conftest.err >&5
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); } && {
5482          test -z "$ac_c_werror_flag" ||
5483          test ! -s conftest.err
5484        } && test -s conftest.$ac_objext; then
5485   ac_cv_prog_cc_c89=$ac_arg
5486 else
5487   echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.$ac_ext >&5
5489
5490
5491 fi
5492
5493 rm -f core conftest.err conftest.$ac_objext
5494   test "x$ac_cv_prog_cc_c89" != "xno" && break
5495 done
5496 rm -f conftest.$ac_ext
5497 CC=$ac_save_CC
5498
5499 fi
5500 # AC_CACHE_VAL
5501 case "x$ac_cv_prog_cc_c89" in
5502   x)
5503     { echo "$as_me:$LINENO: result: none needed" >&5
5504 echo "${ECHO_T}none needed" >&6; } ;;
5505   xno)
5506     { echo "$as_me:$LINENO: result: unsupported" >&5
5507 echo "${ECHO_T}unsupported" >&6; } ;;
5508   *)
5509     CC="$CC $ac_cv_prog_cc_c89"
5510     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5511 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5512 esac
5513
5514
5515 ac_ext=c
5516 ac_cpp='$CPP $CPPFLAGS'
5517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5520
5521 depcc="$CC"   am_compiler_list=
5522
5523 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5524 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5525 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5526   echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5529   # We make a subdir and do the tests there.  Otherwise we can end up
5530   # making bogus files that we don't know about and never remove.  For
5531   # instance it was reported that on HP-UX the gcc test will end up
5532   # making a dummy file named `D' -- because `-MD' means `put the output
5533   # in D'.
5534   mkdir conftest.dir
5535   # Copy depcomp to subdir because otherwise we won't find it if we're
5536   # using a relative directory.
5537   cp "$am_depcomp" conftest.dir
5538   cd conftest.dir
5539   # We will build objects and dependencies in a subdirectory because
5540   # it helps to detect inapplicable dependency modes.  For instance
5541   # both Tru64's cc and ICC support -MD to output dependencies as a
5542   # side effect of compilation, but ICC will put the dependencies in
5543   # the current directory while Tru64 will put them in the object
5544   # directory.
5545   mkdir sub
5546
5547   am_cv_CC_dependencies_compiler_type=none
5548   if test "$am_compiler_list" = ""; then
5549      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5550   fi
5551   for depmode in $am_compiler_list; do
5552     # Setup a source with many dependencies, because some compilers
5553     # like to wrap large dependency lists on column 80 (with \), and
5554     # we should not choose a depcomp mode which is confused by this.
5555     #
5556     # We need to recreate these files for each test, as the compiler may
5557     # overwrite some of them when testing with obscure command lines.
5558     # This happens at least with the AIX C compiler.
5559     : > sub/conftest.c
5560     for i in 1 2 3 4 5 6; do
5561       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5562       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5563       # Solaris 8's {/usr,}/bin/sh.
5564       touch sub/conftst$i.h
5565     done
5566     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5567
5568     case $depmode in
5569     nosideeffect)
5570       # after this tag, mechanisms are not by side-effect, so they'll
5571       # only be used when explicitly requested
5572       if test "x$enable_dependency_tracking" = xyes; then
5573         continue
5574       else
5575         break
5576       fi
5577       ;;
5578     none) break ;;
5579     esac
5580     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5581     # mode.  It turns out that the SunPro C++ compiler does not properly
5582     # handle `-M -o', and we need to detect this.
5583     if depmode=$depmode \
5584        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5585        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5586        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5587          >/dev/null 2>conftest.err &&
5588        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5589        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5590        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5591        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5592       # icc doesn't choke on unknown options, it will just issue warnings
5593       # or remarks (even with -Werror).  So we grep stderr for any message
5594       # that says an option was ignored or not supported.
5595       # When given -MP, icc 7.0 and 7.1 complain thusly:
5596       #   icc: Command line warning: ignoring option '-M'; no argument required
5597       # The diagnosis changed in icc 8.0:
5598       #   icc: Command line remark: option '-MP' not supported
5599       if (grep 'ignoring option' conftest.err ||
5600           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5601         am_cv_CC_dependencies_compiler_type=$depmode
5602         break
5603       fi
5604     fi
5605   done
5606
5607   cd ..
5608   rm -rf conftest.dir
5609 else
5610   am_cv_CC_dependencies_compiler_type=none
5611 fi
5612
5613 fi
5614 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5615 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5616 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5617
5618  if
5619   test "x$enable_dependency_tracking" != xno \
5620   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5621   am__fastdepCC_TRUE=
5622   am__fastdepCC_FALSE='#'
5623 else
5624   am__fastdepCC_TRUE='#'
5625   am__fastdepCC_FALSE=
5626 fi
5627
5628
5629 ac_ext=c
5630 ac_cpp='$CPP $CPPFLAGS'
5631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5634 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5635 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5636 # On Suns, sometimes $CPP names a directory.
5637 if test -n "$CPP" && test -d "$CPP"; then
5638   CPP=
5639 fi
5640 if test -z "$CPP"; then
5641   if test "${ac_cv_prog_CPP+set}" = set; then
5642   echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644       # Double quotes because CPP needs to be expanded
5645     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5646     do
5647       ac_preproc_ok=false
5648 for ac_c_preproc_warn_flag in '' yes
5649 do
5650   # Use a header file that comes with gcc, so configuring glibc
5651   # with a fresh cross-compiler works.
5652   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5653   # <limits.h> exists even on freestanding compilers.
5654   # On the NeXT, cc -E runs the code through the compiler's parser,
5655   # not just through cpp. "Syntax error" is here to catch this case.
5656   cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h.  */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h.  */
5662 #ifdef __STDC__
5663 # include <limits.h>
5664 #else
5665 # include <assert.h>
5666 #endif
5667                      Syntax error
5668 _ACEOF
5669 if { (ac_try="$ac_cpp conftest.$ac_ext"
5670 case "(($ac_try" in
5671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672   *) ac_try_echo=$ac_try;;
5673 esac
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5676   ac_status=$?
5677   grep -v '^ *+' conftest.er1 >conftest.err
5678   rm -f conftest.er1
5679   cat conftest.err >&5
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); } >/dev/null && {
5682          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5683          test ! -s conftest.err
5684        }; then
5685   :
5686 else
5687   echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5689
5690   # Broken: fails on valid input.
5691 continue
5692 fi
5693
5694 rm -f conftest.err conftest.$ac_ext
5695
5696   # OK, works on sane cases.  Now check whether nonexistent headers
5697   # can be detected and how.
5698   cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h.  */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h.  */
5704 #include <ac_nonexistent.h>
5705 _ACEOF
5706 if { (ac_try="$ac_cpp conftest.$ac_ext"
5707 case "(($ac_try" in
5708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709   *) ac_try_echo=$ac_try;;
5710 esac
5711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5713   ac_status=$?
5714   grep -v '^ *+' conftest.er1 >conftest.err
5715   rm -f conftest.er1
5716   cat conftest.err >&5
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); } >/dev/null && {
5719          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5720          test ! -s conftest.err
5721        }; then
5722   # Broken: success on invalid input.
5723 continue
5724 else
5725   echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5727
5728   # Passes both tests.
5729 ac_preproc_ok=:
5730 break
5731 fi
5732
5733 rm -f conftest.err conftest.$ac_ext
5734
5735 done
5736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5737 rm -f conftest.err conftest.$ac_ext
5738 if $ac_preproc_ok; then
5739   break
5740 fi
5741
5742     done
5743     ac_cv_prog_CPP=$CPP
5744
5745 fi
5746   CPP=$ac_cv_prog_CPP
5747 else
5748   ac_cv_prog_CPP=$CPP
5749 fi
5750 { echo "$as_me:$LINENO: result: $CPP" >&5
5751 echo "${ECHO_T}$CPP" >&6; }
5752 ac_preproc_ok=false
5753 for ac_c_preproc_warn_flag in '' yes
5754 do
5755   # Use a header file that comes with gcc, so configuring glibc
5756   # with a fresh cross-compiler works.
5757   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5758   # <limits.h> exists even on freestanding compilers.
5759   # On the NeXT, cc -E runs the code through the compiler's parser,
5760   # not just through cpp. "Syntax error" is here to catch this case.
5761   cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h.  */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h.  */
5767 #ifdef __STDC__
5768 # include <limits.h>
5769 #else
5770 # include <assert.h>
5771 #endif
5772                      Syntax error
5773 _ACEOF
5774 if { (ac_try="$ac_cpp conftest.$ac_ext"
5775 case "(($ac_try" in
5776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777   *) ac_try_echo=$ac_try;;
5778 esac
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5781   ac_status=$?
5782   grep -v '^ *+' conftest.er1 >conftest.err
5783   rm -f conftest.er1
5784   cat conftest.err >&5
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); } >/dev/null && {
5787          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5788          test ! -s conftest.err
5789        }; then
5790   :
5791 else
5792   echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5794
5795   # Broken: fails on valid input.
5796 continue
5797 fi
5798
5799 rm -f conftest.err conftest.$ac_ext
5800
5801   # OK, works on sane cases.  Now check whether nonexistent headers
5802   # can be detected and how.
5803   cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h.  */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h.  */
5809 #include <ac_nonexistent.h>
5810 _ACEOF
5811 if { (ac_try="$ac_cpp conftest.$ac_ext"
5812 case "(($ac_try" in
5813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814   *) ac_try_echo=$ac_try;;
5815 esac
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5818   ac_status=$?
5819   grep -v '^ *+' conftest.er1 >conftest.err
5820   rm -f conftest.er1
5821   cat conftest.err >&5
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); } >/dev/null && {
5824          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5825          test ! -s conftest.err
5826        }; then
5827   # Broken: success on invalid input.
5828 continue
5829 else
5830   echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833   # Passes both tests.
5834 ac_preproc_ok=:
5835 break
5836 fi
5837
5838 rm -f conftest.err conftest.$ac_ext
5839
5840 done
5841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5842 rm -f conftest.err conftest.$ac_ext
5843 if $ac_preproc_ok; then
5844   :
5845 else
5846   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5847 See \`config.log' for more details." >&5
5848 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5849 See \`config.log' for more details." >&2;}
5850    { (exit 1); exit 1; }; }
5851 fi
5852
5853 ac_ext=c
5854 ac_cpp='$CPP $CPPFLAGS'
5855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5858
5859 # Find a good install program.  We prefer a C program (faster),
5860 # so one script is as good as another.  But avoid the broken or
5861 # incompatible versions:
5862 # SysV /etc/install, /usr/sbin/install
5863 # SunOS /usr/etc/install
5864 # IRIX /sbin/install
5865 # AIX /bin/install
5866 # AmigaOS /C/install, which installs bootblocks on floppy discs
5867 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5868 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5869 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5870 # OS/2's system install, which has a completely different semantic
5871 # ./install, which can be erroneously created by make from ./install.sh.
5872 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5873 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5874 if test -z "$INSTALL"; then
5875 if test "${ac_cv_path_install+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881   IFS=$as_save_IFS
5882   test -z "$as_dir" && as_dir=.
5883   # Account for people who put trailing slashes in PATH elements.
5884 case $as_dir/ in
5885   ./ | .// | /cC/* | \
5886   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5887   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5888   /usr/ucb/* ) ;;
5889   *)
5890     # OSF1 and SCO ODT 3.0 have their own names for install.
5891     # Don't use installbsd from OSF since it installs stuff as root
5892     # by default.
5893     for ac_prog in ginstall scoinst install; do
5894       for ac_exec_ext in '' $ac_executable_extensions; do
5895         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5896           if test $ac_prog = install &&
5897             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5898             # AIX install.  It has an incompatible calling convention.
5899             :
5900           elif test $ac_prog = install &&
5901             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5902             # program-specific install script used by HP pwplus--don't use.
5903             :
5904           else
5905             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5906             break 3
5907           fi
5908         fi
5909       done
5910     done
5911     ;;
5912 esac
5913 done
5914 IFS=$as_save_IFS
5915
5916
5917 fi
5918   if test "${ac_cv_path_install+set}" = set; then
5919     INSTALL=$ac_cv_path_install
5920   else
5921     # As a last resort, use the slow shell script.  Don't cache a
5922     # value for INSTALL within a source directory, because that will
5923     # break other packages using the cache if that directory is
5924     # removed, or if the value is a relative name.
5925     INSTALL=$ac_install_sh
5926   fi
5927 fi
5928 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5929 echo "${ECHO_T}$INSTALL" >&6; }
5930
5931 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5932 # It thinks the first close brace ends the variable substitution.
5933 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5934
5935 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5936
5937 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5938
5939 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5940 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5941 LN_S=$as_ln_s
5942 if test "$LN_S" = "ln -s"; then
5943   { echo "$as_me:$LINENO: result: yes" >&5
5944 echo "${ECHO_T}yes" >&6; }
5945 else
5946   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5947 echo "${ECHO_T}no, using $LN_S" >&6; }
5948 fi
5949
5950 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5951 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5952 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5953 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   cat >conftest.make <<\_ACEOF
5957 SHELL = /bin/sh
5958 all:
5959         @echo '@@@%%%=$(MAKE)=@@@%%%'
5960 _ACEOF
5961 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5962 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5963   *@@@%%%=?*=@@@%%%*)
5964     eval ac_cv_prog_make_${ac_make}_set=yes;;
5965   *)
5966     eval ac_cv_prog_make_${ac_make}_set=no;;
5967 esac
5968 rm -f conftest.make
5969 fi
5970 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5971   { echo "$as_me:$LINENO: result: yes" >&5
5972 echo "${ECHO_T}yes" >&6; }
5973   SET_MAKE=
5974 else
5975   { echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6; }
5977   SET_MAKE="MAKE=${MAKE-make}"
5978 fi
5979
5980 # Check whether --enable-shared was given.
5981 if test "${enable_shared+set}" = set; then
5982   enableval=$enable_shared; p=${PACKAGE-default}
5983     case $enableval in
5984     yes) enable_shared=yes ;;
5985     no) enable_shared=no ;;
5986     *)
5987       enable_shared=no
5988       # Look at the argument we got.  We use all the common list separators.
5989       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5990       for pkg in $enableval; do
5991         IFS="$lt_save_ifs"
5992         if test "X$pkg" = "X$p"; then
5993           enable_shared=yes
5994         fi
5995       done
5996       IFS="$lt_save_ifs"
5997       ;;
5998     esac
5999 else
6000   enable_shared=yes
6001 fi
6002
6003
6004 # Check whether --enable-static was given.
6005 if test "${enable_static+set}" = set; then
6006   enableval=$enable_static; p=${PACKAGE-default}
6007     case $enableval in
6008     yes) enable_static=yes ;;
6009     no) enable_static=no ;;
6010     *)
6011      enable_static=no
6012       # Look at the argument we got.  We use all the common list separators.
6013       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6014       for pkg in $enableval; do
6015         IFS="$lt_save_ifs"
6016         if test "X$pkg" = "X$p"; then
6017           enable_static=yes
6018         fi
6019       done
6020       IFS="$lt_save_ifs"
6021       ;;
6022     esac
6023 else
6024   enable_static=yes
6025 fi
6026
6027
6028 # Check whether --enable-fast-install was given.
6029 if test "${enable_fast_install+set}" = set; then
6030   enableval=$enable_fast_install; p=${PACKAGE-default}
6031     case $enableval in
6032     yes) enable_fast_install=yes ;;
6033     no) enable_fast_install=no ;;
6034     *)
6035       enable_fast_install=no
6036       # Look at the argument we got.  We use all the common list separators.
6037       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6038       for pkg in $enableval; do
6039         IFS="$lt_save_ifs"
6040         if test "X$pkg" = "X$p"; then
6041           enable_fast_install=yes
6042         fi
6043       done
6044       IFS="$lt_save_ifs"
6045       ;;
6046     esac
6047 else
6048   enable_fast_install=yes
6049 fi
6050
6051
6052 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6053 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6054 if test "${lt_cv_path_SED+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   # Loop through the user's path and test for sed and gsed.
6058 # Then use that list of sed's as ones to test for truncation.
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064   for lt_ac_prog in sed gsed; do
6065     for ac_exec_ext in '' $ac_executable_extensions; do
6066       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6067         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6068       fi
6069     done
6070   done
6071 done
6072 lt_ac_max=0
6073 lt_ac_count=0
6074 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6075 # along with /bin/sed that truncates output.
6076 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6077   test ! -f $lt_ac_sed && continue
6078   cat /dev/null > conftest.in
6079   lt_ac_count=0
6080   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6081   # Check for GNU sed and select it if it is found.
6082   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6083     lt_cv_path_SED=$lt_ac_sed
6084     break
6085   fi
6086   while true; do
6087     cat conftest.in conftest.in >conftest.tmp
6088     mv conftest.tmp conftest.in
6089     cp conftest.in conftest.nl
6090     echo >>conftest.nl
6091     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6092     cmp -s conftest.out conftest.nl || break
6093     # 10000 chars as input seems more than enough
6094     test $lt_ac_count -gt 10 && break
6095     lt_ac_count=`expr $lt_ac_count + 1`
6096     if test $lt_ac_count -gt $lt_ac_max; then
6097       lt_ac_max=$lt_ac_count
6098       lt_cv_path_SED=$lt_ac_sed
6099     fi
6100   done
6101 done
6102
6103 fi
6104
6105 SED=$lt_cv_path_SED
6106 { echo "$as_me:$LINENO: result: $SED" >&5
6107 echo "${ECHO_T}$SED" >&6; }
6108
6109 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6110 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6111 if test "${ac_cv_path_GREP+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   # Extract the first word of "grep ggrep" to use in msg output
6115 if test -z "$GREP"; then
6116 set dummy grep ggrep; ac_prog_name=$2
6117 if test "${ac_cv_path_GREP+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   ac_path_GREP_found=false
6121 # Loop through the user's path and test for each of PROGNAME-LIST
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6124 do
6125   IFS=$as_save_IFS
6126   test -z "$as_dir" && as_dir=.
6127   for ac_prog in grep ggrep; do
6128   for ac_exec_ext in '' $ac_executable_extensions; do
6129     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6130     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6131     # Check for GNU ac_path_GREP and select it if it is found.
6132   # Check for GNU $ac_path_GREP
6133 case `"$ac_path_GREP" --version 2>&1` in
6134 *GNU*)
6135   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6136 *)
6137   ac_count=0
6138   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6139   while :
6140   do
6141     cat "conftest.in" "conftest.in" >"conftest.tmp"
6142     mv "conftest.tmp" "conftest.in"
6143     cp "conftest.in" "conftest.nl"
6144     echo 'GREP' >> "conftest.nl"
6145     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6146     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6147     ac_count=`expr $ac_count + 1`
6148     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6149       # Best one so far, save it but keep looking for a better one
6150       ac_cv_path_GREP="$ac_path_GREP"
6151       ac_path_GREP_max=$ac_count
6152     fi
6153     # 10*(2^10) chars as input seems more than enough
6154     test $ac_count -gt 10 && break
6155   done
6156   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6157 esac
6158
6159
6160     $ac_path_GREP_found && break 3
6161   done
6162 done
6163
6164 done
6165 IFS=$as_save_IFS
6166
6167
6168 fi
6169
6170 GREP="$ac_cv_path_GREP"
6171 if test -z "$GREP"; then
6172   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6173 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6174    { (exit 1); exit 1; }; }
6175 fi
6176
6177 else
6178   ac_cv_path_GREP=$GREP
6179 fi
6180
6181
6182 fi
6183 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6184 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6185  GREP="$ac_cv_path_GREP"
6186
6187
6188 { echo "$as_me:$LINENO: checking for egrep" >&5
6189 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6190 if test "${ac_cv_path_EGREP+set}" = set; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6194    then ac_cv_path_EGREP="$GREP -E"
6195    else
6196      # Extract the first word of "egrep" to use in msg output
6197 if test -z "$EGREP"; then
6198 set dummy egrep; ac_prog_name=$2
6199 if test "${ac_cv_path_EGREP+set}" = set; then
6200   echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202   ac_path_EGREP_found=false
6203 # Loop through the user's path and test for each of PROGNAME-LIST
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6206 do
6207   IFS=$as_save_IFS
6208   test -z "$as_dir" && as_dir=.
6209   for ac_prog in egrep; do
6210   for ac_exec_ext in '' $ac_executable_extensions; do
6211     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6212     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6213     # Check for GNU ac_path_EGREP and select it if it is found.
6214   # Check for GNU $ac_path_EGREP
6215 case `"$ac_path_EGREP" --version 2>&1` in
6216 *GNU*)
6217   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6218 *)
6219   ac_count=0
6220   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6221   while :
6222   do
6223     cat "conftest.in" "conftest.in" >"conftest.tmp"
6224     mv "conftest.tmp" "conftest.in"
6225     cp "conftest.in" "conftest.nl"
6226     echo 'EGREP' >> "conftest.nl"
6227     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6228     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6229     ac_count=`expr $ac_count + 1`
6230     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6231       # Best one so far, save it but keep looking for a better one
6232       ac_cv_path_EGREP="$ac_path_EGREP"
6233       ac_path_EGREP_max=$ac_count
6234     fi
6235     # 10*(2^10) chars as input seems more than enough
6236     test $ac_count -gt 10 && break
6237   done
6238   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6239 esac
6240
6241
6242     $ac_path_EGREP_found && break 3
6243   done
6244 done
6245
6246 done
6247 IFS=$as_save_IFS
6248
6249
6250 fi
6251
6252 EGREP="$ac_cv_path_EGREP"
6253 if test -z "$EGREP"; then
6254   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6255 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6256    { (exit 1); exit 1; }; }
6257 fi
6258
6259 else
6260   ac_cv_path_EGREP=$EGREP
6261 fi
6262
6263
6264    fi
6265 fi
6266 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6267 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6268  EGREP="$ac_cv_path_EGREP"
6269
6270
6271
6272 # Check whether --with-gnu-ld was given.
6273 if test "${with_gnu_ld+set}" = set; then
6274   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6275 else
6276   with_gnu_ld=no
6277 fi
6278
6279 ac_prog=ld
6280 if test "$GCC" = yes; then
6281   # Check if gcc -print-prog-name=ld gives a path.
6282   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6283 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6284   case $host in
6285   *-*-mingw*)
6286     # gcc leaves a trailing carriage return which upsets mingw
6287     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6288   *)
6289     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6290   esac
6291   case $ac_prog in
6292     # Accept absolute paths.
6293     [\\/]* | ?:[\\/]*)
6294       re_direlt='/[^/][^/]*/\.\./'
6295       # Canonicalize the pathname of ld
6296       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6297       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6298         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6299       done
6300       test -z "$LD" && LD="$ac_prog"
6301       ;;
6302   "")
6303     # If it fails, then pretend we aren't using GCC.
6304     ac_prog=ld
6305     ;;
6306   *)
6307     # If it is relative, then search for the first ld in PATH.
6308     with_gnu_ld=unknown
6309     ;;
6310   esac
6311 elif test "$with_gnu_ld" = yes; then
6312   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6313 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6314 else
6315   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6316 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6317 fi
6318 if test "${lt_cv_path_LD+set}" = set; then
6319   echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321   if test -z "$LD"; then
6322   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6323   for ac_dir in $PATH; do
6324     IFS="$lt_save_ifs"
6325     test -z "$ac_dir" && ac_dir=.
6326     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6327       lt_cv_path_LD="$ac_dir/$ac_prog"
6328       # Check to see if the program is GNU ld.  I'd rather use --version,
6329       # but apparently some variants of GNU ld only accept -v.
6330       # Break only if it was the GNU/non-GNU ld that we prefer.
6331       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6332       *GNU* | *'with BFD'*)
6333         test "$with_gnu_ld" != no && break
6334         ;;
6335       *)
6336         test "$with_gnu_ld" != yes && break
6337         ;;
6338       esac
6339     fi
6340   done
6341   IFS="$lt_save_ifs"
6342 else
6343   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6344 fi
6345 fi
6346
6347 LD="$lt_cv_path_LD"
6348 if test -n "$LD"; then
6349   { echo "$as_me:$LINENO: result: $LD" >&5
6350 echo "${ECHO_T}$LD" >&6; }
6351 else
6352   { echo "$as_me:$LINENO: result: no" >&5
6353 echo "${ECHO_T}no" >&6; }
6354 fi
6355 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6356 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6357    { (exit 1); exit 1; }; }
6358 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6359 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6360 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6361   echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6364 case `$LD -v 2>&1 </dev/null` in
6365 *GNU* | *'with BFD'*)
6366   lt_cv_prog_gnu_ld=yes
6367   ;;
6368 *)
6369   lt_cv_prog_gnu_ld=no
6370   ;;
6371 esac
6372 fi
6373 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6374 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6375 with_gnu_ld=$lt_cv_prog_gnu_ld
6376
6377
6378 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6379 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6380 if test "${lt_cv_ld_reload_flag+set}" = set; then
6381   echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383   lt_cv_ld_reload_flag='-r'
6384 fi
6385 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6386 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6387 reload_flag=$lt_cv_ld_reload_flag
6388 case $reload_flag in
6389 "" | " "*) ;;
6390 *) reload_flag=" $reload_flag" ;;
6391 esac
6392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6393 case $host_os in
6394   darwin*)
6395     if test "$GCC" = yes; then
6396       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6397     else
6398       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6399     fi
6400     ;;
6401 esac
6402
6403 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6404 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6405 if test "${lt_cv_path_NM+set}" = set; then
6406   echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408   if test -n "$NM"; then
6409   # Let the user override the test.
6410   lt_cv_path_NM="$NM"
6411 else
6412   lt_nm_to_check="${ac_tool_prefix}nm"
6413   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6414     lt_nm_to_check="$lt_nm_to_check nm"
6415   fi
6416   for lt_tmp_nm in $lt_nm_to_check; do
6417     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6418     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6419       IFS="$lt_save_ifs"
6420       test -z "$ac_dir" && ac_dir=.
6421       tmp_nm="$ac_dir/$lt_tmp_nm"
6422       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6423         # Check to see if the nm accepts a BSD-compat flag.
6424         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6425         #   nm: unknown option "B" ignored
6426         # Tru64's nm complains that /dev/null is an invalid object file
6427         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6428         */dev/null* | *'Invalid file or object type'*)
6429           lt_cv_path_NM="$tmp_nm -B"
6430           break
6431           ;;
6432         *)
6433           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6434           */dev/null*)
6435             lt_cv_path_NM="$tmp_nm -p"
6436             break
6437             ;;
6438           *)
6439             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6440             continue # so that we can try to find one that supports BSD flags
6441             ;;
6442           esac
6443           ;;
6444         esac
6445       fi
6446     done
6447     IFS="$lt_save_ifs"
6448   done
6449   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6450 fi
6451 fi
6452 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6453 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6454 NM="$lt_cv_path_NM"
6455
6456 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6457 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6458 if test "${lt_cv_deplibs_check_method+set}" = set; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   lt_cv_file_magic_cmd='$MAGIC_CMD'
6462 lt_cv_file_magic_test_file=
6463 lt_cv_deplibs_check_method='unknown'
6464 # Need to set the preceding variable on all platforms that support
6465 # interlibrary dependencies.
6466 # 'none' -- dependencies not supported.
6467 # `unknown' -- same as none, but documents that we really don't know.
6468 # 'pass_all' -- all dependencies passed with no checks.
6469 # 'test_compile' -- check by making test program.
6470 # 'file_magic [[regex]]' -- check by looking for files in library path
6471 # which responds to the $file_magic_cmd with a given extended regex.
6472 # If you have `file' or equivalent on your system and you're not sure
6473 # whether `pass_all' will *always* work, you probably want this one.
6474
6475 case $host_os in
6476 aix4* | aix5*)
6477   lt_cv_deplibs_check_method=pass_all
6478   ;;
6479
6480 beos*)
6481   lt_cv_deplibs_check_method=pass_all
6482   ;;
6483
6484 bsdi[45]*)
6485   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6486   lt_cv_file_magic_cmd='/usr/bin/file -L'
6487   lt_cv_file_magic_test_file=/shlib/libc.so
6488   ;;
6489
6490 cygwin*)
6491   # func_win32_libid is a shell function defined in ltmain.sh
6492   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6493   lt_cv_file_magic_cmd='func_win32_libid'
6494   ;;
6495
6496 mingw* | pw32*)
6497   # Base MSYS/MinGW do not provide the 'file' command needed by
6498   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6499   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6500   lt_cv_file_magic_cmd='$OBJDUMP -f'
6501   ;;
6502
6503 darwin* | rhapsody*)
6504   lt_cv_deplibs_check_method=pass_all
6505   ;;
6506
6507 freebsd* | dragonfly*)
6508   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6509     case $host_cpu in
6510     i*86 )
6511       # Not sure whether the presence of OpenBSD here was a mistake.
6512       # Let's accept both of them until this is cleared up.
6513       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6514       lt_cv_file_magic_cmd=/usr/bin/file
6515       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6516       ;;
6517     esac
6518   else
6519     lt_cv_deplibs_check_method=pass_all
6520   fi
6521   ;;
6522
6523 gnu*)
6524   lt_cv_deplibs_check_method=pass_all
6525   ;;
6526
6527 hpux10.20* | hpux11*)
6528   lt_cv_file_magic_cmd=/usr/bin/file
6529   case $host_cpu in
6530   ia64*)
6531     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6532     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6533     ;;
6534   hppa*64*)
6535     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6536     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6537     ;;
6538   *)
6539     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6540     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6541     ;;
6542   esac
6543   ;;
6544
6545 interix3*)
6546   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6547   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6548   ;;
6549
6550 irix5* | irix6* | nonstopux*)
6551   case $LD in
6552   *-32|*"-32 ") libmagic=32-bit;;
6553   *-n32|*"-n32 ") libmagic=N32;;
6554   *-64|*"-64 ") libmagic=64-bit;;
6555   *) libmagic=never-match;;
6556   esac
6557   lt_cv_deplibs_check_method=pass_all
6558   ;;
6559
6560 # This must be Linux ELF.
6561 linux* | k*bsd*-gnu)
6562   lt_cv_deplibs_check_method=pass_all
6563   ;;
6564
6565 netbsd* | netbsdelf*-gnu)
6566   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6567     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6568   else
6569     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6570   fi
6571   ;;
6572
6573 newos6*)
6574   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6575   lt_cv_file_magic_cmd=/usr/bin/file
6576   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6577   ;;
6578
6579 nto-qnx*)
6580   lt_cv_deplibs_check_method=unknown
6581   ;;
6582
6583 openbsd*)
6584   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6585     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6586   else
6587     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6588   fi
6589   ;;
6590
6591 osf3* | osf4* | osf5*)
6592   lt_cv_deplibs_check_method=pass_all
6593   ;;
6594
6595 solaris*)
6596   lt_cv_deplibs_check_method=pass_all
6597   ;;
6598
6599 sysv4 | sysv4.3*)
6600   case $host_vendor in
6601   motorola)
6602     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]'
6603     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6604     ;;
6605   ncr)
6606     lt_cv_deplibs_check_method=pass_all
6607     ;;
6608   sequent)
6609     lt_cv_file_magic_cmd='/bin/file'
6610     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6611     ;;
6612   sni)
6613     lt_cv_file_magic_cmd='/bin/file'
6614     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6615     lt_cv_file_magic_test_file=/lib/libc.so
6616     ;;
6617   siemens)
6618     lt_cv_deplibs_check_method=pass_all
6619     ;;
6620   pc)
6621     lt_cv_deplibs_check_method=pass_all
6622     ;;
6623   esac
6624   ;;
6625
6626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6627   lt_cv_deplibs_check_method=pass_all
6628   ;;
6629 esac
6630
6631 fi
6632 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6633 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6634 file_magic_cmd=$lt_cv_file_magic_cmd
6635 deplibs_check_method=$lt_cv_deplibs_check_method
6636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6637
6638
6639
6640
6641 # If no C compiler was specified, use CC.
6642 LTCC=${LTCC-"$CC"}
6643
6644 # If no C compiler flags were specified, use CFLAGS.
6645 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6646
6647 # Allow CC to be a program name with arguments.
6648 compiler=$CC
6649
6650 # Check whether --enable-libtool-lock was given.
6651 if test "${enable_libtool_lock+set}" = set; then
6652   enableval=$enable_libtool_lock;
6653 fi
6654
6655 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6656
6657 # Some flags need to be propagated to the compiler or linker for good
6658 # libtool support.
6659 case $host in
6660 ia64-*-hpux*)
6661   # Find out which ABI we are using.
6662   echo 'int i;' > conftest.$ac_ext
6663   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6664   (eval $ac_compile) 2>&5
6665   ac_status=$?
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); }; then
6668     case `/usr/bin/file conftest.$ac_objext` in
6669     *ELF-32*)
6670       HPUX_IA64_MODE="32"
6671       ;;
6672     *ELF-64*)
6673       HPUX_IA64_MODE="64"
6674       ;;
6675     esac
6676   fi
6677   rm -rf conftest*
6678   ;;
6679 *-*-irix6*)
6680   # Find out which ABI we are using.
6681   echo '#line 6681 "configure"' > conftest.$ac_ext
6682   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683   (eval $ac_compile) 2>&5
6684   ac_status=$?
6685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686   (exit $ac_status); }; then
6687    if test "$lt_cv_prog_gnu_ld" = yes; then
6688     case `/usr/bin/file conftest.$ac_objext` in
6689     *32-bit*)
6690       LD="${LD-ld} -melf32bsmip"
6691       ;;
6692     *N32*)
6693       LD="${LD-ld} -melf32bmipn32"
6694       ;;
6695     *64-bit*)
6696       LD="${LD-ld} -melf64bmip"
6697       ;;
6698     esac
6699    else
6700     case `/usr/bin/file conftest.$ac_objext` in
6701     *32-bit*)
6702       LD="${LD-ld} -32"
6703       ;;
6704     *N32*)
6705       LD="${LD-ld} -n32"
6706       ;;
6707     *64-bit*)
6708       LD="${LD-ld} -64"
6709       ;;
6710     esac
6711    fi
6712   fi
6713   rm -rf conftest*
6714   ;;
6715
6716 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6717   # Find out which ABI we are using.
6718   echo 'int i;' > conftest.$ac_ext
6719   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6720   (eval $ac_compile) 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); }; then
6724     case `/usr/bin/file conftest.o` in
6725     *32-bit*)
6726       case $host in
6727         x86_64-*linux*)
6728           LD="${LD-ld} -m elf_i386"
6729           ;;
6730         ppc64-*linux*|powerpc64-*linux*)
6731           LD="${LD-ld} -m elf32ppclinux"
6732           ;;
6733         s390x-*linux*)
6734           LD="${LD-ld} -m elf_s390"
6735           ;;
6736         sparc64-*linux*)
6737           LD="${LD-ld} -m elf32_sparc"
6738           ;;
6739       esac
6740       ;;
6741     *64-bit*)
6742       case $host in
6743         x86_64-*linux*)
6744           LD="${LD-ld} -m elf_x86_64"
6745           ;;
6746         ppc*-*linux*|powerpc*-*linux*)
6747           LD="${LD-ld} -m elf64ppc"
6748           ;;
6749         s390*-*linux*)
6750           LD="${LD-ld} -m elf64_s390"
6751           ;;
6752         sparc*-*linux*)
6753           LD="${LD-ld} -m elf64_sparc"
6754           ;;
6755       esac
6756       ;;
6757     esac
6758   fi
6759   rm -rf conftest*
6760   ;;
6761
6762 *-*-sco3.2v5*)
6763   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6764   SAVE_CFLAGS="$CFLAGS"
6765   CFLAGS="$CFLAGS -belf"
6766   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6767 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6768 if test "${lt_cv_cc_needs_belf+set}" = set; then
6769   echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771   ac_ext=c
6772 ac_cpp='$CPP $CPPFLAGS'
6773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6776
6777      cat >conftest.$ac_ext <<_ACEOF
6778 /* confdefs.h.  */
6779 _ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h.  */
6783
6784 int
6785 main ()
6786 {
6787
6788   ;
6789   return 0;
6790 }
6791 _ACEOF
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (ac_try="$ac_link"
6794 case "(($ac_try" in
6795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796   *) ac_try_echo=$ac_try;;
6797 esac
6798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6799   (eval "$ac_link") 2>conftest.er1
6800   ac_status=$?
6801   grep -v '^ *+' conftest.er1 >conftest.err
6802   rm -f conftest.er1
6803   cat conftest.err >&5
6804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805   (exit $ac_status); } && {
6806          test -z "$ac_c_werror_flag" ||
6807          test ! -s conftest.err
6808        } && test -s conftest$ac_exeext &&
6809        $as_test_x conftest$ac_exeext; then
6810   lt_cv_cc_needs_belf=yes
6811 else
6812   echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815         lt_cv_cc_needs_belf=no
6816 fi
6817
6818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6819       conftest$ac_exeext conftest.$ac_ext
6820      ac_ext=c
6821 ac_cpp='$CPP $CPPFLAGS'
6822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6825
6826 fi
6827 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6828 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6829   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6830     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6831     CFLAGS="$SAVE_CFLAGS"
6832   fi
6833   ;;
6834 sparc*-*solaris*)
6835   # Find out which ABI we are using.
6836   echo 'int i;' > conftest.$ac_ext
6837   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6838   (eval $ac_compile) 2>&5
6839   ac_status=$?
6840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); }; then
6842     case `/usr/bin/file conftest.o` in
6843     *64-bit*)
6844       case $lt_cv_prog_gnu_ld in
6845       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6846       *)    LD="${LD-ld} -64" ;;
6847       esac
6848       ;;
6849     esac
6850   fi
6851   rm -rf conftest*
6852   ;;
6853
6854
6855 esac
6856
6857 need_locks="$enable_libtool_lock"
6858
6859
6860
6861 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6862 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6863 if test "${ac_cv_header_stdc+set}" = set; then
6864   echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866   cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h.  */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h.  */
6872 #include <stdlib.h>
6873 #include <stdarg.h>
6874 #include <string.h>
6875 #include <float.h>
6876
6877 int
6878 main ()
6879 {
6880
6881   ;
6882   return 0;
6883 }
6884 _ACEOF
6885 rm -f conftest.$ac_objext
6886 if { (ac_try="$ac_compile"
6887 case "(($ac_try" in
6888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889   *) ac_try_echo=$ac_try;;
6890 esac
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892   (eval "$ac_compile") 2>conftest.er1
6893   ac_status=$?
6894   grep -v '^ *+' conftest.er1 >conftest.err
6895   rm -f conftest.er1
6896   cat conftest.err >&5
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); } && {
6899          test -z "$ac_c_werror_flag" ||
6900          test ! -s conftest.err
6901        } && test -s conftest.$ac_objext; then
6902   ac_cv_header_stdc=yes
6903 else
6904   echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6906
6907         ac_cv_header_stdc=no
6908 fi
6909
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911
6912 if test $ac_cv_header_stdc = yes; then
6913   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6914   cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h.  */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h.  */
6920 #include <string.h>
6921
6922 _ACEOF
6923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6924   $EGREP "memchr" >/dev/null 2>&1; then
6925   :
6926 else
6927   ac_cv_header_stdc=no
6928 fi
6929 rm -f conftest*
6930
6931 fi
6932
6933 if test $ac_cv_header_stdc = yes; then
6934   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6935   cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h.  */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h.  */
6941 #include <stdlib.h>
6942
6943 _ACEOF
6944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6945   $EGREP "free" >/dev/null 2>&1; then
6946   :
6947 else
6948   ac_cv_header_stdc=no
6949 fi
6950 rm -f conftest*
6951
6952 fi
6953
6954 if test $ac_cv_header_stdc = yes; then
6955   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6956   if test "$cross_compiling" = yes; then
6957   :
6958 else
6959   cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h.  */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h.  */
6965 #include <ctype.h>
6966 #include <stdlib.h>
6967 #if ((' ' & 0x0FF) == 0x020)
6968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6970 #else
6971 # define ISLOWER(c) \
6972                    (('a' <= (c) && (c) <= 'i') \
6973                      || ('j' <= (c) && (c) <= 'r') \
6974                      || ('s' <= (c) && (c) <= 'z'))
6975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6976 #endif
6977
6978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6979 int
6980 main ()
6981 {
6982   int i;
6983   for (i = 0; i < 256; i++)
6984     if (XOR (islower (i), ISLOWER (i))
6985         || toupper (i) != TOUPPER (i))
6986       return 2;
6987   return 0;
6988 }
6989 _ACEOF
6990 rm -f conftest$ac_exeext
6991 if { (ac_try="$ac_link"
6992 case "(($ac_try" in
6993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994   *) ac_try_echo=$ac_try;;
6995 esac
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997   (eval "$ac_link") 2>&5
6998   ac_status=$?
6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7001   { (case "(($ac_try" in
7002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003   *) ac_try_echo=$ac_try;;
7004 esac
7005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7006   (eval "$ac_try") 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); }; }; then
7010   :
7011 else
7012   echo "$as_me: program exited with status $ac_status" >&5
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7015
7016 ( exit $ac_status )
7017 ac_cv_header_stdc=no
7018 fi
7019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7020 fi
7021
7022
7023 fi
7024 fi
7025 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7026 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7027 if test $ac_cv_header_stdc = yes; then
7028
7029 cat >>confdefs.h <<\_ACEOF
7030 #define STDC_HEADERS 1
7031 _ACEOF
7032
7033 fi
7034
7035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7046                   inttypes.h stdint.h unistd.h
7047 do
7048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054   cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h.  */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h.  */
7060 $ac_includes_default
7061
7062 #include <$ac_header>
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (ac_try="$ac_compile"
7066 case "(($ac_try" in
7067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068   *) ac_try_echo=$ac_try;;
7069 esac
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071   (eval "$ac_compile") 2>conftest.er1
7072   ac_status=$?
7073   grep -v '^ *+' conftest.er1 >conftest.err
7074   rm -f conftest.er1
7075   cat conftest.err >&5
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); } && {
7078          test -z "$ac_c_werror_flag" ||
7079          test ! -s conftest.err
7080        } && test -s conftest.$ac_objext; then
7081   eval "$as_ac_Header=yes"
7082 else
7083   echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7085
7086         eval "$as_ac_Header=no"
7087 fi
7088
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 fi
7091 ac_res=`eval echo '${'$as_ac_Header'}'`
7092                { echo "$as_me:$LINENO: result: $ac_res" >&5
7093 echo "${ECHO_T}$ac_res" >&6; }
7094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7095   cat >>confdefs.h <<_ACEOF
7096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7097 _ACEOF
7098
7099 fi
7100
7101 done
7102
7103
7104
7105 for ac_header in dlfcn.h
7106 do
7107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7109   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 fi
7114 ac_res=`eval echo '${'$as_ac_Header'}'`
7115                { echo "$as_me:$LINENO: result: $ac_res" >&5
7116 echo "${ECHO_T}$ac_res" >&6; }
7117 else
7118   # Is the header compilable?
7119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7121 cat >conftest.$ac_ext <<_ACEOF
7122 /* confdefs.h.  */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h.  */
7127 $ac_includes_default
7128 #include <$ac_header>
7129 _ACEOF
7130 rm -f conftest.$ac_objext
7131 if { (ac_try="$ac_compile"
7132 case "(($ac_try" in
7133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7134   *) ac_try_echo=$ac_try;;
7135 esac
7136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7137   (eval "$ac_compile") 2>conftest.er1
7138   ac_status=$?
7139   grep -v '^ *+' conftest.er1 >conftest.err
7140   rm -f conftest.er1
7141   cat conftest.err >&5
7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); } && {
7144          test -z "$ac_c_werror_flag" ||
7145          test ! -s conftest.err
7146        } && test -s conftest.$ac_objext; then
7147   ac_header_compiler=yes
7148 else
7149   echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7151
7152         ac_header_compiler=no
7153 fi
7154
7155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7157 echo "${ECHO_T}$ac_header_compiler" >&6; }
7158
7159 # Is the header present?
7160 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h.  */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h.  */
7168 #include <$ac_header>
7169 _ACEOF
7170 if { (ac_try="$ac_cpp conftest.$ac_ext"
7171 case "(($ac_try" in
7172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173   *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7177   ac_status=$?
7178   grep -v '^ *+' conftest.er1 >conftest.err
7179   rm -f conftest.er1
7180   cat conftest.err >&5
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); } >/dev/null && {
7183          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7184          test ! -s conftest.err
7185        }; then
7186   ac_header_preproc=yes
7187 else
7188   echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7190
7191   ac_header_preproc=no
7192 fi
7193
7194 rm -f conftest.err conftest.$ac_ext
7195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7196 echo "${ECHO_T}$ac_header_preproc" >&6; }
7197
7198 # So?  What about this header?
7199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7200   yes:no: )
7201     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7205     ac_header_preproc=yes
7206     ;;
7207   no:yes:* )
7208     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7210     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7211 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7212     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7214     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7215 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7218     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7220     ( cat <<\_ASBOX
7221 ## ------------------------------- ##
7222 ## Report this to nfs@lists.sf.net ##
7223 ## ------------------------------- ##
7224 _ASBOX
7225      ) | sed "s/^/$as_me: WARNING:     /" >&2
7226     ;;
7227 esac
7228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7231   echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233   eval "$as_ac_Header=\$ac_header_preproc"
7234 fi
7235 ac_res=`eval echo '${'$as_ac_Header'}'`
7236                { echo "$as_me:$LINENO: result: $ac_res" >&5
7237 echo "${ECHO_T}$ac_res" >&6; }
7238
7239 fi
7240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7241   cat >>confdefs.h <<_ACEOF
7242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7243 _ACEOF
7244
7245 fi
7246
7247 done
7248
7249
7250
7251 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7252     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7253     (test "X$CXX" != "Xg++"))) ; then
7254   ac_ext=cpp
7255 ac_cpp='$CXXCPP $CPPFLAGS'
7256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7259 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7260 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7261 if test -z "$CXXCPP"; then
7262   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7263   echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265       # Double quotes because CXXCPP needs to be expanded
7266     for CXXCPP in "$CXX -E" "/lib/cpp"
7267     do
7268       ac_preproc_ok=false
7269 for ac_cxx_preproc_warn_flag in '' yes
7270 do
7271   # Use a header file that comes with gcc, so configuring glibc
7272   # with a fresh cross-compiler works.
7273   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7274   # <limits.h> exists even on freestanding compilers.
7275   # On the NeXT, cc -E runs the code through the compiler's parser,
7276   # not just through cpp. "Syntax error" is here to catch this case.
7277   cat >conftest.$ac_ext <<_ACEOF
7278 /* confdefs.h.  */
7279 _ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h.  */
7283 #ifdef __STDC__
7284 # include <limits.h>
7285 #else
7286 # include <assert.h>
7287 #endif
7288                      Syntax error
7289 _ACEOF
7290 if { (ac_try="$ac_cpp conftest.$ac_ext"
7291 case "(($ac_try" in
7292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7293   *) ac_try_echo=$ac_try;;
7294 esac
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7297   ac_status=$?
7298   grep -v '^ *+' conftest.er1 >conftest.err
7299   rm -f conftest.er1
7300   cat conftest.err >&5
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); } >/dev/null && {
7303          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7304          test ! -s conftest.err
7305        }; then
7306   :
7307 else
7308   echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7310
7311   # Broken: fails on valid input.
7312 continue
7313 fi
7314
7315 rm -f conftest.err conftest.$ac_ext
7316
7317   # OK, works on sane cases.  Now check whether nonexistent headers
7318   # can be detected and how.
7319   cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h.  */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h.  */
7325 #include <ac_nonexistent.h>
7326 _ACEOF
7327 if { (ac_try="$ac_cpp conftest.$ac_ext"
7328 case "(($ac_try" in
7329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330   *) ac_try_echo=$ac_try;;
7331 esac
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7334   ac_status=$?
7335   grep -v '^ *+' conftest.er1 >conftest.err
7336   rm -f conftest.er1
7337   cat conftest.err >&5
7338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339   (exit $ac_status); } >/dev/null && {
7340          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7341          test ! -s conftest.err
7342        }; then
7343   # Broken: success on invalid input.
7344 continue
7345 else
7346   echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7348
7349   # Passes both tests.
7350 ac_preproc_ok=:
7351 break
7352 fi
7353
7354 rm -f conftest.err conftest.$ac_ext
7355
7356 done
7357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7358 rm -f conftest.err conftest.$ac_ext
7359 if $ac_preproc_ok; then
7360   break
7361 fi
7362
7363     done
7364     ac_cv_prog_CXXCPP=$CXXCPP
7365
7366 fi
7367   CXXCPP=$ac_cv_prog_CXXCPP
7368 else
7369   ac_cv_prog_CXXCPP=$CXXCPP
7370 fi
7371 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7372 echo "${ECHO_T}$CXXCPP" >&6; }
7373 ac_preproc_ok=false
7374 for ac_cxx_preproc_warn_flag in '' yes
7375 do
7376   # Use a header file that comes with gcc, so configuring glibc
7377   # with a fresh cross-compiler works.
7378   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7379   # <limits.h> exists even on freestanding compilers.
7380   # On the NeXT, cc -E runs the code through the compiler's parser,
7381   # not just through cpp. "Syntax error" is here to catch this case.
7382   cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h.  */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h.  */
7388 #ifdef __STDC__
7389 # include <limits.h>
7390 #else
7391 # include <assert.h>
7392 #endif
7393                      Syntax error
7394 _ACEOF
7395 if { (ac_try="$ac_cpp conftest.$ac_ext"
7396 case "(($ac_try" in
7397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398   *) ac_try_echo=$ac_try;;
7399 esac
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7402   ac_status=$?
7403   grep -v '^ *+' conftest.er1 >conftest.err
7404   rm -f conftest.er1
7405   cat conftest.err >&5
7406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407   (exit $ac_status); } >/dev/null && {
7408          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7409          test ! -s conftest.err
7410        }; then
7411   :
7412 else
7413   echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7415
7416   # Broken: fails on valid input.
7417 continue
7418 fi
7419
7420 rm -f conftest.err conftest.$ac_ext
7421
7422   # OK, works on sane cases.  Now check whether nonexistent headers
7423   # can be detected and how.
7424   cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h.  */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h.  */
7430 #include <ac_nonexistent.h>
7431 _ACEOF
7432 if { (ac_try="$ac_cpp conftest.$ac_ext"
7433 case "(($ac_try" in
7434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435   *) ac_try_echo=$ac_try;;
7436 esac
7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7439   ac_status=$?
7440   grep -v '^ *+' conftest.er1 >conftest.err
7441   rm -f conftest.er1
7442   cat conftest.err >&5
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); } >/dev/null && {
7445          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7446          test ! -s conftest.err
7447        }; then
7448   # Broken: success on invalid input.
7449 continue
7450 else
7451   echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7453
7454   # Passes both tests.
7455 ac_preproc_ok=:
7456 break
7457 fi
7458
7459 rm -f conftest.err conftest.$ac_ext
7460
7461 done
7462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7463 rm -f conftest.err conftest.$ac_ext
7464 if $ac_preproc_ok; then
7465   :
7466 else
7467   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7468 See \`config.log' for more details." >&5
7469 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7470 See \`config.log' for more details." >&2;}
7471    { (exit 1); exit 1; }; }
7472 fi
7473
7474 ac_ext=cpp
7475 ac_cpp='$CXXCPP $CPPFLAGS'
7476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7479
7480 fi
7481
7482
7483 ac_ext=f
7484 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7485 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7487 if test -n "$ac_tool_prefix"; then
7488   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7489   do
7490     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_prog_F77+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   if test -n "$F77"; then
7498   ac_cv_prog_F77="$F77" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503   IFS=$as_save_IFS
7504   test -z "$as_dir" && as_dir=.
7505   for ac_exec_ext in '' $ac_executable_extensions; do
7506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509     break 2
7510   fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515 fi
7516 fi
7517 F77=$ac_cv_prog_F77
7518 if test -n "$F77"; then
7519   { echo "$as_me:$LINENO: result: $F77" >&5
7520 echo "${ECHO_T}$F77" >&6; }
7521 else
7522   { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7524 fi
7525
7526
7527     test -n "$F77" && break
7528   done
7529 fi
7530 if test -z "$F77"; then
7531   ac_ct_F77=$F77
7532   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7533 do
7534   # Extract the first word of "$ac_prog", so it can be a program name with args.
7535 set dummy $ac_prog; ac_word=$2
7536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7538 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541   if test -n "$ac_ct_F77"; then
7542   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549   for ac_exec_ext in '' $ac_executable_extensions; do
7550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551     ac_cv_prog_ac_ct_F77="$ac_prog"
7552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556 done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7562 if test -n "$ac_ct_F77"; then
7563   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7564 echo "${ECHO_T}$ac_ct_F77" >&6; }
7565 else
7566   { echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6; }
7568 fi
7569
7570
7571   test -n "$ac_ct_F77" && break
7572 done
7573
7574   if test "x$ac_ct_F77" = x; then
7575     F77=""
7576   else
7577     case $cross_compiling:$ac_tool_warned in
7578 yes:)
7579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7580 whose name does not start with the host triplet.  If you think this
7581 configuration is useful to you, please write to autoconf@gnu.org." >&5
7582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7583 whose name does not start with the host triplet.  If you think this
7584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7585 ac_tool_warned=yes ;;
7586 esac
7587     F77=$ac_ct_F77
7588   fi
7589 fi
7590
7591
7592 # Provide some information about the compiler.
7593 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7594 ac_compiler=`set X $ac_compile; echo $2`
7595 { (ac_try="$ac_compiler --version >&5"
7596 case "(($ac_try" in
7597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598   *) ac_try_echo=$ac_try;;
7599 esac
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601   (eval "$ac_compiler --version >&5") 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); }
7605 { (ac_try="$ac_compiler -v >&5"
7606 case "(($ac_try" in
7607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608   *) ac_try_echo=$ac_try;;
7609 esac
7610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7611   (eval "$ac_compiler -v >&5") 2>&5
7612   ac_status=$?
7613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614   (exit $ac_status); }
7615 { (ac_try="$ac_compiler -V >&5"
7616 case "(($ac_try" in
7617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618   *) ac_try_echo=$ac_try;;
7619 esac
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621   (eval "$ac_compiler -V >&5") 2>&5
7622   ac_status=$?
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); }
7625 rm -f a.out
7626
7627 # If we don't use `.F' as extension, the preprocessor is not run on the
7628 # input file.  (Note that this only needs to work for GNU compilers.)
7629 ac_save_ext=$ac_ext
7630 ac_ext=F
7631 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7632 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7633 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7634   echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636   cat >conftest.$ac_ext <<_ACEOF
7637       program main
7638 #ifndef __GNUC__
7639        choke me
7640 #endif
7641
7642       end
7643 _ACEOF
7644 rm -f conftest.$ac_objext
7645 if { (ac_try="$ac_compile"
7646 case "(($ac_try" in
7647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648   *) ac_try_echo=$ac_try;;
7649 esac
7650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651   (eval "$ac_compile") 2>conftest.er1
7652   ac_status=$?
7653   grep -v '^ *+' conftest.er1 >conftest.err
7654   rm -f conftest.er1
7655   cat conftest.err >&5
7656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657   (exit $ac_status); } && {
7658          test -z "$ac_f77_werror_flag" ||
7659          test ! -s conftest.err
7660        } && test -s conftest.$ac_objext; then
7661   ac_compiler_gnu=yes
7662 else
7663   echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7665
7666         ac_compiler_gnu=no
7667 fi
7668
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7671
7672 fi
7673 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7674 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7675 ac_ext=$ac_save_ext
7676 ac_test_FFLAGS=${FFLAGS+set}
7677 ac_save_FFLAGS=$FFLAGS
7678 FFLAGS=
7679 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7680 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7681 if test "${ac_cv_prog_f77_g+set}" = set; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684   FFLAGS=-g
7685 cat >conftest.$ac_ext <<_ACEOF
7686       program main
7687
7688       end
7689 _ACEOF
7690 rm -f conftest.$ac_objext
7691 if { (ac_try="$ac_compile"
7692 case "(($ac_try" in
7693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694   *) ac_try_echo=$ac_try;;
7695 esac
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697   (eval "$ac_compile") 2>conftest.er1
7698   ac_status=$?
7699   grep -v '^ *+' conftest.er1 >conftest.err
7700   rm -f conftest.er1
7701   cat conftest.err >&5
7702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703   (exit $ac_status); } && {
7704          test -z "$ac_f77_werror_flag" ||
7705          test ! -s conftest.err
7706        } && test -s conftest.$ac_objext; then
7707   ac_cv_prog_f77_g=yes
7708 else
7709   echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7711
7712         ac_cv_prog_f77_g=no
7713 fi
7714
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716
7717 fi
7718 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7719 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7720 if test "$ac_test_FFLAGS" = set; then
7721   FFLAGS=$ac_save_FFLAGS
7722 elif test $ac_cv_prog_f77_g = yes; then
7723   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7724     FFLAGS="-g -O2"
7725   else
7726     FFLAGS="-g"
7727   fi
7728 else
7729   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7730     FFLAGS="-O2"
7731   else
7732     FFLAGS=
7733   fi
7734 fi
7735
7736 G77=`test $ac_compiler_gnu = yes && echo yes`
7737 ac_ext=c
7738 ac_cpp='$CPP $CPPFLAGS'
7739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7742
7743
7744
7745 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7746
7747 # find the maximum length of command line arguments
7748 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7749 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7750 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753     i=0
7754   teststring="ABCD"
7755
7756   case $build_os in
7757   msdosdjgpp*)
7758     # On DJGPP, this test can blow up pretty badly due to problems in libc
7759     # (any single argument exceeding 2000 bytes causes a buffer overrun
7760     # during glob expansion).  Even if it were fixed, the result of this
7761     # check would be larger than it should be.
7762     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7763     ;;
7764
7765   gnu*)
7766     # Under GNU Hurd, this test is not required because there is
7767     # no limit to the length of command line arguments.
7768     # Libtool will interpret -1 as no limit whatsoever
7769     lt_cv_sys_max_cmd_len=-1;
7770     ;;
7771
7772   cygwin* | mingw*)
7773     # On Win9x/ME, this test blows up -- it succeeds, but takes
7774     # about 5 minutes as the teststring grows exponentially.
7775     # Worse, since 9x/ME are not pre-emptively multitasking,
7776     # you end up with a "frozen" computer, even though with patience
7777     # the test eventually succeeds (with a max line length of 256k).
7778     # Instead, let's just punt: use the minimum linelength reported by
7779     # all of the supported platforms: 8192 (on NT/2K/XP).
7780     lt_cv_sys_max_cmd_len=8192;
7781     ;;
7782
7783   amigaos*)
7784     # On AmigaOS with pdksh, this test takes hours, literally.
7785     # So we just punt and use a minimum line length of 8192.
7786     lt_cv_sys_max_cmd_len=8192;
7787     ;;
7788
7789   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7790     # This has been around since 386BSD, at least.  Likely further.
7791     if test -x /sbin/sysctl; then
7792       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7793     elif test -x /usr/sbin/sysctl; then
7794       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7795     else
7796       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7797     fi
7798     # And add a safety zone
7799     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7800     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7801     ;;
7802
7803   interix*)
7804     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7805     lt_cv_sys_max_cmd_len=196608
7806     ;;
7807
7808   osf*)
7809     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7810     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7811     # nice to cause kernel panics so lets avoid the loop below.
7812     # First set a reasonable default.
7813     lt_cv_sys_max_cmd_len=16384
7814     #
7815     if test -x /sbin/sysconfig; then
7816       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7817         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7818       esac
7819     fi
7820     ;;
7821   sco3.2v5*)
7822     lt_cv_sys_max_cmd_len=102400
7823     ;;
7824   sysv5* | sco5v6* | sysv4.2uw2*)
7825     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7826     if test -n "$kargmax"; then
7827       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7828     else
7829       lt_cv_sys_max_cmd_len=32768
7830     fi
7831     ;;
7832   *)
7833     # If test is not a shell built-in, we'll probably end up computing a
7834     # maximum length that is only half of the actual maximum length, but
7835     # we can't tell.
7836     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7837     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7838                = "XX$teststring") >/dev/null 2>&1 &&
7839             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7840             lt_cv_sys_max_cmd_len=$new_result &&
7841             test $i != 17 # 1/2 MB should be enough
7842     do
7843       i=`expr $i + 1`
7844       teststring=$teststring$teststring
7845     done
7846     teststring=
7847     # Add a significant safety factor because C++ compilers can tack on massive
7848     # amounts of additional arguments before passing them to the linker.
7849     # It appears as though 1/2 is a usable value.
7850     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7851     ;;
7852   esac
7853
7854 fi
7855
7856 if test -n $lt_cv_sys_max_cmd_len ; then
7857   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7858 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7859 else
7860   { echo "$as_me:$LINENO: result: none" >&5
7861 echo "${ECHO_T}none" >&6; }
7862 fi
7863
7864
7865
7866
7867 # Check for command to grab the raw symbol name followed by C symbol from nm.
7868 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7869 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7870 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7871   echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873
7874 # These are sane defaults that work on at least a few old systems.
7875 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7876
7877 # Character class describing NM global symbol codes.
7878 symcode='[BCDEGRST]'
7879
7880 # Regexp to match symbols that can be accessed directly from C.
7881 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7882
7883 # Transform an extracted symbol line into a proper C declaration
7884 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7885
7886 # Transform an extracted symbol line into symbol name and symbol address
7887 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7888
7889 # Define system-specific variables.
7890 case $host_os in
7891 aix*)
7892   symcode='[BCDT]'
7893   ;;
7894 cygwin* | mingw* | pw32*)
7895   symcode='[ABCDGISTW]'
7896   ;;
7897 hpux*) # Its linker distinguishes data from code symbols
7898   if test "$host_cpu" = ia64; then
7899     symcode='[ABCDEGRST]'
7900   fi
7901   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7902   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7903   ;;
7904 linux* | k*bsd*-gnu)
7905   if test "$host_cpu" = ia64; then
7906     symcode='[ABCDGIRSTW]'
7907     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7908     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7909   fi
7910   ;;
7911 irix* | nonstopux*)
7912   symcode='[BCDEGRST]'
7913   ;;
7914 osf*)
7915   symcode='[BCDEGQRST]'
7916   ;;
7917 solaris*)
7918   symcode='[BDRT]'
7919   ;;
7920 sco3.2v5*)
7921   symcode='[DT]'
7922   ;;
7923 sysv4.2uw2*)
7924   symcode='[DT]'
7925   ;;
7926 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7927   symcode='[ABDT]'
7928   ;;
7929 sysv4)
7930   symcode='[DFNSTU]'
7931   ;;
7932 esac
7933
7934 # Handle CRLF in mingw tool chain
7935 opt_cr=
7936 case $build_os in
7937 mingw*)
7938   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7939   ;;
7940 esac
7941
7942 # If we're using GNU nm, then use its standard symbol codes.
7943 case `$NM -V 2>&1` in
7944 *GNU* | *'with BFD'*)
7945   symcode='[ABCDGIRSTW]' ;;
7946 esac
7947
7948 # Try without a prefix undercore, then with it.
7949 for ac_symprfx in "" "_"; do
7950
7951   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7952   symxfrm="\\1 $ac_symprfx\\2 \\2"
7953
7954   # Write the raw and C identifiers.
7955   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7956
7957   # Check to see that the pipe works correctly.
7958   pipe_works=no
7959
7960   rm -f conftest*
7961   cat > conftest.$ac_ext <<EOF
7962 #ifdef __cplusplus
7963 extern "C" {
7964 #endif
7965 char nm_test_var;
7966 void nm_test_func(){}
7967 #ifdef __cplusplus
7968 }
7969 #endif
7970 int main(){nm_test_var='a';nm_test_func();return(0);}
7971 EOF
7972
7973   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7974   (eval $ac_compile) 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); }; then
7978     # Now try to grab the symbols.
7979     nlist=conftest.nm
7980     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7981   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); } && test -s "$nlist"; then
7985       # Try sorting and uniquifying the output.
7986       if sort "$nlist" | uniq > "$nlist"T; then
7987         mv -f "$nlist"T "$nlist"
7988       else
7989         rm -f "$nlist"T
7990       fi
7991
7992       # Make sure that we snagged all the symbols we need.
7993       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7994         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7995           cat <<EOF > conftest.$ac_ext
7996 #ifdef __cplusplus
7997 extern "C" {
7998 #endif
7999
8000 EOF
8001           # Now generate the symbol file.
8002           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8003
8004           cat <<EOF >> conftest.$ac_ext
8005 #if defined (__STDC__) && __STDC__
8006 # define lt_ptr_t void *
8007 #else
8008 # define lt_ptr_t char *
8009 # define const
8010 #endif
8011
8012 /* The mapping between symbol names and symbols. */
8013 const struct {
8014   const char *name;
8015   lt_ptr_t address;
8016 }
8017 lt_preloaded_symbols[] =
8018 {
8019 EOF
8020           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8021           cat <<\EOF >> conftest.$ac_ext
8022   {0, (lt_ptr_t) 0}
8023 };
8024
8025 #ifdef __cplusplus
8026 }
8027 #endif
8028 EOF
8029           # Now try linking the two files.
8030           mv conftest.$ac_objext conftstm.$ac_objext
8031           lt_save_LIBS="$LIBS"
8032           lt_save_CFLAGS="$CFLAGS"
8033           LIBS="conftstm.$ac_objext"
8034           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8035           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8036   (eval $ac_link) 2>&5
8037   ac_status=$?
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8040             pipe_works=yes
8041           fi
8042           LIBS="$lt_save_LIBS"
8043           CFLAGS="$lt_save_CFLAGS"
8044         else
8045           echo "cannot find nm_test_func in $nlist" >&5
8046         fi
8047       else
8048         echo "cannot find nm_test_var in $nlist" >&5
8049       fi
8050     else
8051       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8052     fi
8053   else
8054     echo "$progname: failed program was:" >&5
8055     cat conftest.$ac_ext >&5
8056   fi
8057   rm -f conftest* conftst*
8058
8059   # Do not use the global_symbol_pipe unless it works.
8060   if test "$pipe_works" = yes; then
8061     break
8062   else
8063     lt_cv_sys_global_symbol_pipe=
8064   fi
8065 done
8066
8067 fi
8068
8069 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8070   lt_cv_sys_global_symbol_to_cdecl=
8071 fi
8072 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8073   { echo "$as_me:$LINENO: result: failed" >&5
8074 echo "${ECHO_T}failed" >&6; }
8075 else
8076   { echo "$as_me:$LINENO: result: ok" >&5
8077 echo "${ECHO_T}ok" >&6; }
8078 fi
8079
8080 { echo "$as_me:$LINENO: checking for objdir" >&5
8081 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8082 if test "${lt_cv_objdir+set}" = set; then
8083   echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085   rm -f .libs 2>/dev/null
8086 mkdir .libs 2>/dev/null
8087 if test -d .libs; then
8088   lt_cv_objdir=.libs
8089 else
8090   # MS-DOS does not allow filenames that begin with a dot.
8091   lt_cv_objdir=_libs
8092 fi
8093 rmdir .libs 2>/dev/null
8094 fi
8095 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8096 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8097 objdir=$lt_cv_objdir
8098
8099
8100
8101
8102
8103 case $host_os in
8104 aix3*)
8105   # AIX sometimes has problems with the GCC collect2 program.  For some
8106   # reason, if we set the COLLECT_NAMES environment variable, the problems
8107   # vanish in a puff of smoke.
8108   if test "X${COLLECT_NAMES+set}" != Xset; then
8109     COLLECT_NAMES=
8110     export COLLECT_NAMES
8111   fi
8112   ;;
8113 esac
8114
8115 # Sed substitution that helps us do robust quoting.  It backslashifies
8116 # metacharacters that are still active within double-quoted strings.
8117 Xsed='sed -e 1s/^X//'
8118 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8119
8120 # Same as above, but do not quote variable references.
8121 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8122
8123 # Sed substitution to delay expansion of an escaped shell variable in a
8124 # double_quote_subst'ed string.
8125 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8126
8127 # Sed substitution to avoid accidental globbing in evaled expressions
8128 no_glob_subst='s/\*/\\\*/g'
8129
8130 # Constants:
8131 rm="rm -f"
8132
8133 # Global variables:
8134 default_ofile=libtool
8135 can_build_shared=yes
8136
8137 # All known linkers require a `.a' archive for static linking (except MSVC,
8138 # which needs '.lib').
8139 libext=a
8140 ltmain="$ac_aux_dir/ltmain.sh"
8141 ofile="$default_ofile"
8142 with_gnu_ld="$lt_cv_prog_gnu_ld"
8143
8144 if test -n "$ac_tool_prefix"; then
8145   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8146 set dummy ${ac_tool_prefix}ar; ac_word=$2
8147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8149 if test "${ac_cv_prog_AR+set}" = set; then
8150   echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152   if test -n "$AR"; then
8153   ac_cv_prog_AR="$AR" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8157 do
8158   IFS=$as_save_IFS
8159   test -z "$as_dir" && as_dir=.
8160   for ac_exec_ext in '' $ac_executable_extensions; do
8161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162     ac_cv_prog_AR="${ac_tool_prefix}ar"
8163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8164     break 2
8165   fi
8166 done
8167 done
8168 IFS=$as_save_IFS
8169
8170 fi
8171 fi
8172 AR=$ac_cv_prog_AR
8173 if test -n "$AR"; then
8174   { echo "$as_me:$LINENO: result: $AR" >&5
8175 echo "${ECHO_T}$AR" >&6; }
8176 else
8177   { echo "$as_me:$LINENO: result: no" >&5
8178 echo "${ECHO_T}no" >&6; }
8179 fi
8180
8181
8182 fi
8183 if test -z "$ac_cv_prog_AR"; then
8184   ac_ct_AR=$AR
8185   # Extract the first word of "ar", so it can be a program name with args.
8186 set dummy ar; ac_word=$2
8187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8189 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8190   echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192   if test -n "$ac_ct_AR"; then
8193   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8194 else
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 for as_dir in $PATH
8197 do
8198   IFS=$as_save_IFS
8199   test -z "$as_dir" && as_dir=.
8200   for ac_exec_ext in '' $ac_executable_extensions; do
8201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8202     ac_cv_prog_ac_ct_AR="ar"
8203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8204     break 2
8205   fi
8206 done
8207 done
8208 IFS=$as_save_IFS
8209
8210 fi
8211 fi
8212 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8213 if test -n "$ac_ct_AR"; then
8214   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8215 echo "${ECHO_T}$ac_ct_AR" >&6; }
8216 else
8217   { echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6; }
8219 fi
8220
8221   if test "x$ac_ct_AR" = x; then
8222     AR="false"
8223   else
8224     case $cross_compiling:$ac_tool_warned in
8225 yes:)
8226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8227 whose name does not start with the host triplet.  If you think this
8228 configuration is useful to you, please write to autoconf@gnu.org." >&5
8229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8230 whose name does not start with the host triplet.  If you think this
8231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8232 ac_tool_warned=yes ;;
8233 esac
8234     AR=$ac_ct_AR
8235   fi
8236 else
8237   AR="$ac_cv_prog_AR"
8238 fi
8239
8240 if test -n "$ac_tool_prefix"; then
8241   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8245 if test "${ac_cv_prog_RANLIB+set}" = set; then
8246   echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248   if test -n "$RANLIB"; then
8249   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8250 else
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8253 do
8254   IFS=$as_save_IFS
8255   test -z "$as_dir" && as_dir=.
8256   for ac_exec_ext in '' $ac_executable_extensions; do
8257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8258     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8260     break 2
8261   fi
8262 done
8263 done
8264 IFS=$as_save_IFS
8265
8266 fi
8267 fi
8268 RANLIB=$ac_cv_prog_RANLIB
8269 if test -n "$RANLIB"; then
8270   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8271 echo "${ECHO_T}$RANLIB" >&6; }
8272 else
8273   { echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6; }
8275 fi
8276
8277
8278 fi
8279 if test -z "$ac_cv_prog_RANLIB"; then
8280   ac_ct_RANLIB=$RANLIB
8281   # Extract the first word of "ranlib", so it can be a program name with args.
8282 set dummy ranlib; ac_word=$2
8283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8286   echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288   if test -n "$ac_ct_RANLIB"; then
8289   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8290 else
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8293 do
8294   IFS=$as_save_IFS
8295   test -z "$as_dir" && as_dir=.
8296   for ac_exec_ext in '' $ac_executable_extensions; do
8297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8298     ac_cv_prog_ac_ct_RANLIB="ranlib"
8299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8300     break 2
8301   fi
8302 done
8303 done
8304 IFS=$as_save_IFS
8305
8306 fi
8307 fi
8308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8309 if test -n "$ac_ct_RANLIB"; then
8310   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8311 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8312 else
8313   { echo "$as_me:$LINENO: result: no" >&5
8314 echo "${ECHO_T}no" >&6; }
8315 fi
8316
8317   if test "x$ac_ct_RANLIB" = x; then
8318     RANLIB=":"
8319   else
8320     case $cross_compiling:$ac_tool_warned in
8321 yes:)
8322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8323 whose name does not start with the host triplet.  If you think this
8324 configuration is useful to you, please write to autoconf@gnu.org." >&5
8325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8326 whose name does not start with the host triplet.  If you think this
8327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8328 ac_tool_warned=yes ;;
8329 esac
8330     RANLIB=$ac_ct_RANLIB
8331   fi
8332 else
8333   RANLIB="$ac_cv_prog_RANLIB"
8334 fi
8335
8336 if test -n "$ac_tool_prefix"; then
8337   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8338 set dummy ${ac_tool_prefix}strip; ac_word=$2
8339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341 if test "${ac_cv_prog_STRIP+set}" = set; then
8342   echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344   if test -n "$STRIP"; then
8345   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8349 do
8350   IFS=$as_save_IFS
8351   test -z "$as_dir" && as_dir=.
8352   for ac_exec_ext in '' $ac_executable_extensions; do
8353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8356     break 2
8357   fi
8358 done
8359 done
8360 IFS=$as_save_IFS
8361
8362 fi
8363 fi
8364 STRIP=$ac_cv_prog_STRIP
8365 if test -n "$STRIP"; then
8366   { echo "$as_me:$LINENO: result: $STRIP" >&5
8367 echo "${ECHO_T}$STRIP" >&6; }
8368 else
8369   { echo "$as_me:$LINENO: result: no" >&5
8370 echo "${ECHO_T}no" >&6; }
8371 fi
8372
8373
8374 fi
8375 if test -z "$ac_cv_prog_STRIP"; then
8376   ac_ct_STRIP=$STRIP
8377   # Extract the first word of "strip", so it can be a program name with args.
8378 set dummy strip; ac_word=$2
8379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8381 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8382   echo $ECHO_N "(cached) $ECHO_C" >&6
8383 else
8384   if test -n "$ac_ct_STRIP"; then
8385   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8389 do
8390   IFS=$as_save_IFS
8391   test -z "$as_dir" && as_dir=.
8392   for ac_exec_ext in '' $ac_executable_extensions; do
8393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394     ac_cv_prog_ac_ct_STRIP="strip"
8395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8396     break 2
8397   fi
8398 done
8399 done
8400 IFS=$as_save_IFS
8401
8402 fi
8403 fi
8404 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8405 if test -n "$ac_ct_STRIP"; then
8406   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8407 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8408 else
8409   { echo "$as_me:$LINENO: result: no" >&5
8410 echo "${ECHO_T}no" >&6; }
8411 fi
8412
8413   if test "x$ac_ct_STRIP" = x; then
8414     STRIP=":"
8415   else
8416     case $cross_compiling:$ac_tool_warned in
8417 yes:)
8418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8419 whose name does not start with the host triplet.  If you think this
8420 configuration is useful to you, please write to autoconf@gnu.org." >&5
8421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8422 whose name does not start with the host triplet.  If you think this
8423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8424 ac_tool_warned=yes ;;
8425 esac
8426     STRIP=$ac_ct_STRIP
8427   fi
8428 else
8429   STRIP="$ac_cv_prog_STRIP"
8430 fi
8431
8432
8433 old_CC="$CC"
8434 old_CFLAGS="$CFLAGS"
8435
8436 # Set sane defaults for various variables
8437 test -z "$AR" && AR=ar
8438 test -z "$AR_FLAGS" && AR_FLAGS=cru
8439 test -z "$AS" && AS=as
8440 test -z "$CC" && CC=cc
8441 test -z "$LTCC" && LTCC=$CC
8442 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8443 test -z "$DLLTOOL" && DLLTOOL=dlltool
8444 test -z "$LD" && LD=ld
8445 test -z "$LN_S" && LN_S="ln -s"
8446 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8447 test -z "$NM" && NM=nm
8448 test -z "$SED" && SED=sed
8449 test -z "$OBJDUMP" && OBJDUMP=objdump
8450 test -z "$RANLIB" && RANLIB=:
8451 test -z "$STRIP" && STRIP=:
8452 test -z "$ac_objext" && ac_objext=o
8453
8454 # Determine commands to create old-style static archives.
8455 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8456 old_postinstall_cmds='chmod 644 $oldlib'
8457 old_postuninstall_cmds=
8458
8459 if test -n "$RANLIB"; then
8460   case $host_os in
8461   openbsd*)
8462     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8463     ;;
8464   *)
8465     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8466     ;;
8467   esac
8468   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8469 fi
8470
8471 for cc_temp in $compiler""; do
8472   case $cc_temp in
8473     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8474     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8475     \-*) ;;
8476     *) break;;
8477   esac
8478 done
8479 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8480
8481
8482 # Only perform the check for file, if the check method requires it
8483 case $deplibs_check_method in
8484 file_magic*)
8485   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8486     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8487 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8489   echo $ECHO_N "(cached) $ECHO_C" >&6
8490 else
8491   case $MAGIC_CMD in
8492 [\\/*] |  ?:[\\/]*)
8493   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8494   ;;
8495 *)
8496   lt_save_MAGIC_CMD="$MAGIC_CMD"
8497   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8498   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8499   for ac_dir in $ac_dummy; do
8500     IFS="$lt_save_ifs"
8501     test -z "$ac_dir" && ac_dir=.
8502     if test -f $ac_dir/${ac_tool_prefix}file; then
8503       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8504       if test -n "$file_magic_test_file"; then
8505         case $deplibs_check_method in
8506         "file_magic "*)
8507           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8508           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8509           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8510             $EGREP "$file_magic_regex" > /dev/null; then
8511             :
8512           else
8513             cat <<EOF 1>&2
8514
8515 *** Warning: the command libtool uses to detect shared libraries,
8516 *** $file_magic_cmd, produces output that libtool cannot recognize.
8517 *** The result is that libtool may fail to recognize shared libraries
8518 *** as such.  This will affect the creation of libtool libraries that
8519 *** depend on shared libraries, but programs linked with such libtool
8520 *** libraries will work regardless of this problem.  Nevertheless, you
8521 *** may want to report the problem to your system manager and/or to
8522 *** bug-libtool@gnu.org
8523
8524 EOF
8525           fi ;;
8526         esac
8527       fi
8528       break
8529     fi
8530   done
8531   IFS="$lt_save_ifs"
8532   MAGIC_CMD="$lt_save_MAGIC_CMD"
8533   ;;
8534 esac
8535 fi
8536
8537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8538 if test -n "$MAGIC_CMD"; then
8539   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8540 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8541 else
8542   { echo "$as_me:$LINENO: result: no" >&5
8543 echo "${ECHO_T}no" >&6; }
8544 fi
8545
8546 if test -z "$lt_cv_path_MAGIC_CMD"; then
8547   if test -n "$ac_tool_prefix"; then
8548     { echo "$as_me:$LINENO: checking for file" >&5
8549 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8550 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8551   echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553   case $MAGIC_CMD in
8554 [\\/*] |  ?:[\\/]*)
8555   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8556   ;;
8557 *)
8558   lt_save_MAGIC_CMD="$MAGIC_CMD"
8559   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8560   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8561   for ac_dir in $ac_dummy; do
8562     IFS="$lt_save_ifs"
8563     test -z "$ac_dir" && ac_dir=.
8564     if test -f $ac_dir/file; then
8565       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8566       if test -n "$file_magic_test_file"; then
8567         case $deplibs_check_method in
8568         "file_magic "*)
8569           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8570           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8571           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8572             $EGREP "$file_magic_regex" > /dev/null; then
8573             :
8574           else
8575             cat <<EOF 1>&2
8576
8577 *** Warning: the command libtool uses to detect shared libraries,
8578 *** $file_magic_cmd, produces output that libtool cannot recognize.
8579 *** The result is that libtool may fail to recognize shared libraries
8580 *** as such.  This will affect the creation of libtool libraries that
8581 *** depend on shared libraries, but programs linked with such libtool
8582 *** libraries will work regardless of this problem.  Nevertheless, you
8583 *** may want to report the problem to your system manager and/or to
8584 *** bug-libtool@gnu.org
8585
8586 EOF
8587           fi ;;
8588         esac
8589       fi
8590       break
8591     fi
8592   done
8593   IFS="$lt_save_ifs"
8594   MAGIC_CMD="$lt_save_MAGIC_CMD"
8595   ;;
8596 esac
8597 fi
8598
8599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8600 if test -n "$MAGIC_CMD"; then
8601   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8602 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8603 else
8604   { echo "$as_me:$LINENO: result: no" >&5
8605 echo "${ECHO_T}no" >&6; }
8606 fi
8607
8608   else
8609     MAGIC_CMD=:
8610   fi
8611 fi
8612
8613   fi
8614   ;;
8615 esac
8616
8617 enable_dlopen=no
8618 enable_win32_dll=no
8619
8620 # Check whether --enable-libtool-lock was given.
8621 if test "${enable_libtool_lock+set}" = set; then
8622   enableval=$enable_libtool_lock;
8623 fi
8624
8625 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8626
8627
8628 # Check whether --with-pic was given.
8629 if test "${with_pic+set}" = set; then
8630   withval=$with_pic; pic_mode="$withval"
8631 else
8632   pic_mode=default
8633 fi
8634
8635 test -z "$pic_mode" && pic_mode=default
8636
8637 # Use C for the default configuration in the libtool script
8638 tagname=
8639 lt_save_CC="$CC"
8640 ac_ext=c
8641 ac_cpp='$CPP $CPPFLAGS'
8642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8645
8646
8647 # Source file extension for C test sources.
8648 ac_ext=c
8649
8650 # Object file extension for compiled C test sources.
8651 objext=o
8652 objext=$objext
8653
8654 # Code to be used in simple compile tests
8655 lt_simple_compile_test_code="int some_variable = 0;\n"
8656
8657 # Code to be used in simple link tests
8658 lt_simple_link_test_code='int main(){return(0);}\n'
8659
8660
8661 # If no C compiler was specified, use CC.
8662 LTCC=${LTCC-"$CC"}
8663
8664 # If no C compiler flags were specified, use CFLAGS.
8665 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8666
8667 # Allow CC to be a program name with arguments.
8668 compiler=$CC
8669
8670
8671 # save warnings/boilerplate of simple test code
8672 ac_outfile=conftest.$ac_objext
8673 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8674 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8675 _lt_compiler_boilerplate=`cat conftest.err`
8676 $rm conftest*
8677
8678 ac_outfile=conftest.$ac_objext
8679 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8680 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8681 _lt_linker_boilerplate=`cat conftest.err`
8682 $rm conftest*
8683
8684
8685
8686 lt_prog_compiler_no_builtin_flag=
8687
8688 if test "$GCC" = yes; then
8689   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8690
8691
8692 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8693 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8694 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697   lt_cv_prog_compiler_rtti_exceptions=no
8698   ac_outfile=conftest.$ac_objext
8699    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8700    lt_compiler_flag="-fno-rtti -fno-exceptions"
8701    # Insert the option either (1) after the last *FLAGS variable, or
8702    # (2) before a word containing "conftest.", or (3) at the end.
8703    # Note that $ac_compile itself does not contain backslashes and begins
8704    # with a dollar sign (not a hyphen), so the echo should work correctly.
8705    # The option is referenced via a variable to avoid confusing sed.
8706    lt_compile=`echo "$ac_compile" | $SED \
8707    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8708    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8709    -e 's:$: $lt_compiler_flag:'`
8710    (eval echo "\"\$as_me:8710: $lt_compile\"" >&5)
8711    (eval "$lt_compile" 2>conftest.err)
8712    ac_status=$?
8713    cat conftest.err >&5
8714    echo "$as_me:8714: \$? = $ac_status" >&5
8715    if (exit $ac_status) && test -s "$ac_outfile"; then
8716      # The compiler can only warn and ignore the option if not recognized
8717      # So say no if there are warnings other than the usual output.
8718      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8719      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8720      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8721        lt_cv_prog_compiler_rtti_exceptions=yes
8722      fi
8723    fi
8724    $rm conftest*
8725
8726 fi
8727 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8728 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8729
8730 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8731     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8732 else
8733     :
8734 fi
8735
8736 fi
8737
8738 lt_prog_compiler_wl=
8739 lt_prog_compiler_pic=
8740 lt_prog_compiler_static=
8741
8742 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8743 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8744
8745   if test "$GCC" = yes; then
8746     lt_prog_compiler_wl='-Wl,'
8747     lt_prog_compiler_static='-static'
8748
8749     case $host_os in
8750       aix*)
8751       # All AIX code is PIC.
8752       if test "$host_cpu" = ia64; then
8753         # AIX 5 now supports IA64 processor
8754         lt_prog_compiler_static='-Bstatic'
8755       fi
8756       ;;
8757
8758     amigaos*)
8759       # FIXME: we need at least 68020 code to build shared libraries, but
8760       # adding the `-m68020' flag to GCC prevents building anything better,
8761       # like `-m68040'.
8762       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8763       ;;
8764
8765     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8766       # PIC is the default for these OSes.
8767       ;;
8768
8769     mingw* | pw32* | os2*)
8770       # This hack is so that the source file can tell whether it is being
8771       # built for inclusion in a dll (and should export symbols for example).
8772       lt_prog_compiler_pic='-DDLL_EXPORT'
8773       ;;
8774
8775     darwin* | rhapsody*)
8776       # PIC is the default on this platform
8777       # Common symbols not allowed in MH_DYLIB files
8778       lt_prog_compiler_pic='-fno-common'
8779       ;;
8780
8781     interix3*)
8782       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8783       # Instead, we relocate shared libraries at runtime.
8784       ;;
8785
8786     msdosdjgpp*)
8787       # Just because we use GCC doesn't mean we suddenly get shared libraries
8788       # on systems that don't support them.
8789       lt_prog_compiler_can_build_shared=no
8790       enable_shared=no
8791       ;;
8792
8793     sysv4*MP*)
8794       if test -d /usr/nec; then
8795         lt_prog_compiler_pic=-Kconform_pic
8796       fi
8797       ;;
8798
8799     hpux*)
8800       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8801       # not for PA HP-UX.
8802       case $host_cpu in
8803       hppa*64*|ia64*)
8804         # +Z the default
8805         ;;
8806       *)
8807         lt_prog_compiler_pic='-fPIC'
8808         ;;
8809       esac
8810       ;;
8811
8812     *)
8813       lt_prog_compiler_pic='-fPIC'
8814       ;;
8815     esac
8816   else
8817     # PORTME Check for flag to pass linker flags through the system compiler.
8818     case $host_os in
8819     aix*)
8820       lt_prog_compiler_wl='-Wl,'
8821       if test "$host_cpu" = ia64; then
8822         # AIX 5 now supports IA64 processor
8823         lt_prog_compiler_static='-Bstatic'
8824       else
8825         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8826       fi
8827       ;;
8828       darwin*)
8829         # PIC is the default on this platform
8830         # Common symbols not allowed in MH_DYLIB files
8831        case $cc_basename in
8832          xlc*)
8833          lt_prog_compiler_pic='-qnocommon'
8834          lt_prog_compiler_wl='-Wl,'
8835          ;;
8836        esac
8837        ;;
8838
8839     mingw* | pw32* | os2*)
8840       # This hack is so that the source file can tell whether it is being
8841       # built for inclusion in a dll (and should export symbols for example).
8842       lt_prog_compiler_pic='-DDLL_EXPORT'
8843       ;;
8844
8845     hpux9* | hpux10* | hpux11*)
8846       lt_prog_compiler_wl='-Wl,'
8847       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8848       # not for PA HP-UX.
8849       case $host_cpu in
8850       hppa*64*|ia64*)
8851         # +Z the default
8852         ;;
8853       *)
8854         lt_prog_compiler_pic='+Z'
8855         ;;
8856       esac
8857       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8858       lt_prog_compiler_static='${wl}-a ${wl}archive'
8859       ;;
8860
8861     irix5* | irix6* | nonstopux*)
8862       lt_prog_compiler_wl='-Wl,'
8863       # PIC (with -KPIC) is the default.
8864       lt_prog_compiler_static='-non_shared'
8865       ;;
8866
8867     newsos6)
8868       lt_prog_compiler_pic='-KPIC'
8869       lt_prog_compiler_static='-Bstatic'
8870       ;;
8871
8872     linux* | k*bsd*-gnu)
8873       case $cc_basename in
8874       icc* | ecc*)
8875         lt_prog_compiler_wl='-Wl,'
8876         lt_prog_compiler_pic='-KPIC'
8877         lt_prog_compiler_static='-static'
8878         ;;
8879       pgcc* | pgf77* | pgf90* | pgf95*)
8880         # Portland Group compilers (*not* the Pentium gcc compiler,
8881         # which looks to be a dead project)
8882         lt_prog_compiler_wl='-Wl,'
8883         lt_prog_compiler_pic='-fpic'
8884         lt_prog_compiler_static='-Bstatic'
8885         ;;
8886       ccc*)
8887         lt_prog_compiler_wl='-Wl,'
8888         # All Alpha code is PIC.
8889         lt_prog_compiler_static='-non_shared'
8890         ;;
8891       esac
8892       ;;
8893
8894     osf3* | osf4* | osf5*)
8895       lt_prog_compiler_wl='-Wl,'
8896       # All OSF/1 code is PIC.
8897       lt_prog_compiler_static='-non_shared'
8898       ;;
8899
8900     solaris*)
8901       lt_prog_compiler_pic='-KPIC'
8902       lt_prog_compiler_static='-Bstatic'
8903       case $cc_basename in
8904       f77* | f90* | f95*)
8905         lt_prog_compiler_wl='-Qoption ld ';;
8906       *)
8907         lt_prog_compiler_wl='-Wl,';;
8908       esac
8909       ;;
8910
8911     sunos4*)
8912       lt_prog_compiler_wl='-Qoption ld '
8913       lt_prog_compiler_pic='-PIC'
8914       lt_prog_compiler_static='-Bstatic'
8915       ;;
8916
8917     sysv4 | sysv4.2uw2* | sysv4.3*)
8918       lt_prog_compiler_wl='-Wl,'
8919       lt_prog_compiler_pic='-KPIC'
8920       lt_prog_compiler_static='-Bstatic'
8921       ;;
8922
8923     sysv4*MP*)
8924       if test -d /usr/nec ;then
8925         lt_prog_compiler_pic='-Kconform_pic'
8926         lt_prog_compiler_static='-Bstatic'
8927       fi
8928       ;;
8929
8930     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8931       lt_prog_compiler_wl='-Wl,'
8932       lt_prog_compiler_pic='-KPIC'
8933       lt_prog_compiler_static='-Bstatic'
8934       ;;
8935
8936     unicos*)
8937       lt_prog_compiler_wl='-Wl,'
8938       lt_prog_compiler_can_build_shared=no
8939       ;;
8940
8941     uts4*)
8942       lt_prog_compiler_pic='-pic'
8943       lt_prog_compiler_static='-Bstatic'
8944       ;;
8945
8946     *)
8947       lt_prog_compiler_can_build_shared=no
8948       ;;
8949     esac
8950   fi
8951
8952 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8953 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8954
8955 #
8956 # Check to make sure the PIC flag actually works.
8957 #
8958 if test -n "$lt_prog_compiler_pic"; then
8959
8960 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8961 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8962 if test "${lt_prog_compiler_pic_works+set}" = set; then
8963   echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965   lt_prog_compiler_pic_works=no
8966   ac_outfile=conftest.$ac_objext
8967    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8968    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8969    # Insert the option either (1) after the last *FLAGS variable, or
8970    # (2) before a word containing "conftest.", or (3) at the end.
8971    # Note that $ac_compile itself does not contain backslashes and begins
8972    # with a dollar sign (not a hyphen), so the echo should work correctly.
8973    # The option is referenced via a variable to avoid confusing sed.
8974    lt_compile=`echo "$ac_compile" | $SED \
8975    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8976    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8977    -e 's:$: $lt_compiler_flag:'`
8978    (eval echo "\"\$as_me:8978: $lt_compile\"" >&5)
8979    (eval "$lt_compile" 2>conftest.err)
8980    ac_status=$?
8981    cat conftest.err >&5
8982    echo "$as_me:8982: \$? = $ac_status" >&5
8983    if (exit $ac_status) && test -s "$ac_outfile"; then
8984      # The compiler can only warn and ignore the option if not recognized
8985      # So say no if there are warnings other than the usual output.
8986      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8987      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8988      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8989        lt_prog_compiler_pic_works=yes
8990      fi
8991    fi
8992    $rm conftest*
8993
8994 fi
8995 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8996 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8997
8998 if test x"$lt_prog_compiler_pic_works" = xyes; then
8999     case $lt_prog_compiler_pic in
9000      "" | " "*) ;;
9001      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9002      esac
9003 else
9004     lt_prog_compiler_pic=
9005      lt_prog_compiler_can_build_shared=no
9006 fi
9007
9008 fi
9009 case $host_os in
9010   # For platforms which do not support PIC, -DPIC is meaningless:
9011   *djgpp*)
9012     lt_prog_compiler_pic=
9013     ;;
9014   *)
9015     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9016     ;;
9017 esac
9018
9019 #
9020 # Check to make sure the static flag actually works.
9021 #
9022 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9023 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9024 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9025 if test "${lt_prog_compiler_static_works+set}" = set; then
9026   echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028   lt_prog_compiler_static_works=no
9029    save_LDFLAGS="$LDFLAGS"
9030    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9031    printf "$lt_simple_link_test_code" > conftest.$ac_ext
9032    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9033      # The linker can only warn and ignore the option if not recognized
9034      # So say no if there are warnings
9035      if test -s conftest.err; then
9036        # Append any errors to the config.log.
9037        cat conftest.err 1>&5
9038        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9039        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9040        if diff conftest.exp conftest.er2 >/dev/null; then
9041          lt_prog_compiler_static_works=yes
9042        fi
9043      else
9044        lt_prog_compiler_static_works=yes
9045      fi
9046    fi
9047    $rm conftest*
9048    LDFLAGS="$save_LDFLAGS"
9049
9050 fi
9051 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9052 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9053
9054 if test x"$lt_prog_compiler_static_works" = xyes; then
9055     :
9056 else
9057     lt_prog_compiler_static=
9058 fi
9059
9060
9061 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9062 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9063 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9064   echo $ECHO_N "(cached) $ECHO_C" >&6
9065 else
9066   lt_cv_prog_compiler_c_o=no
9067    $rm -r conftest 2>/dev/null
9068    mkdir conftest
9069    cd conftest
9070    mkdir out
9071    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9072
9073    lt_compiler_flag="-o out/conftest2.$ac_objext"
9074    # Insert the option either (1) after the last *FLAGS variable, or
9075    # (2) before a word containing "conftest.", or (3) at the end.
9076    # Note that $ac_compile itself does not contain backslashes and begins
9077    # with a dollar sign (not a hyphen), so the echo should work correctly.
9078    lt_compile=`echo "$ac_compile" | $SED \
9079    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9080    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9081    -e 's:$: $lt_compiler_flag:'`
9082    (eval echo "\"\$as_me:9082: $lt_compile\"" >&5)
9083    (eval "$lt_compile" 2>out/conftest.err)
9084    ac_status=$?
9085    cat out/conftest.err >&5
9086    echo "$as_me:9086: \$? = $ac_status" >&5
9087    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9088    then
9089      # The compiler can only warn and ignore the option if not recognized
9090      # So say no if there are warnings
9091      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9092      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9093      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9094        lt_cv_prog_compiler_c_o=yes
9095      fi
9096    fi
9097    chmod u+w . 2>&5
9098    $rm conftest*
9099    # SGI C++ compiler will create directory out/ii_files/ for
9100    # template instantiation
9101    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9102    $rm out/* && rmdir out
9103    cd ..
9104    rmdir conftest
9105    $rm conftest*
9106
9107 fi
9108 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9109 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9110
9111
9112 hard_links="nottested"
9113 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9114   # do not overwrite the value of need_locks provided by the user
9115   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9116 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9117   hard_links=yes
9118   $rm conftest*
9119   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9120   touch conftest.a
9121   ln conftest.a conftest.b 2>&5 || hard_links=no
9122   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9123   { echo "$as_me:$LINENO: result: $hard_links" >&5
9124 echo "${ECHO_T}$hard_links" >&6; }
9125   if test "$hard_links" = no; then
9126     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9127 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9128     need_locks=warn
9129   fi
9130 else
9131   need_locks=no
9132 fi
9133
9134 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9135 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9136
9137   runpath_var=
9138   allow_undefined_flag=
9139   enable_shared_with_static_runtimes=no
9140   archive_cmds=
9141   archive_expsym_cmds=
9142   old_archive_From_new_cmds=
9143   old_archive_from_expsyms_cmds=
9144   export_dynamic_flag_spec=
9145   whole_archive_flag_spec=
9146   thread_safe_flag_spec=
9147   hardcode_libdir_flag_spec=
9148   hardcode_libdir_flag_spec_ld=
9149   hardcode_libdir_separator=
9150   hardcode_direct=no
9151   hardcode_minus_L=no
9152   hardcode_shlibpath_var=unsupported
9153   link_all_deplibs=unknown
9154   hardcode_automatic=no
9155   module_cmds=
9156   module_expsym_cmds=
9157   always_export_symbols=no
9158   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9159   # include_expsyms should be a list of space-separated symbols to be *always*
9160   # included in the symbol list
9161   include_expsyms=
9162   # exclude_expsyms can be an extended regexp of symbols to exclude
9163   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9164   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9165   # as well as any symbol that contains `d'.
9166   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9167   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9168   # platforms (ab)use it in PIC code, but their linkers get confused if
9169   # the symbol is explicitly referenced.  Since portable code cannot
9170   # rely on this symbol name, it's probably fine to never include it in
9171   # preloaded symbol tables.
9172   extract_expsyms_cmds=
9173   # Just being paranoid about ensuring that cc_basename is set.
9174   for cc_temp in $compiler""; do
9175   case $cc_temp in
9176     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9177     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9178     \-*) ;;
9179     *) break;;
9180   esac
9181 done
9182 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9183
9184   case $host_os in
9185   cygwin* | mingw* | pw32*)
9186     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9187     # When not using gcc, we currently assume that we are using
9188     # Microsoft Visual C++.
9189     if test "$GCC" != yes; then
9190       with_gnu_ld=no
9191     fi
9192     ;;
9193   interix*)
9194     # we just hope/assume this is gcc and not c89 (= MSVC++)
9195     with_gnu_ld=yes
9196     ;;
9197   openbsd*)
9198     with_gnu_ld=no
9199     ;;
9200   esac
9201
9202   ld_shlibs=yes
9203   if test "$with_gnu_ld" = yes; then
9204     # If archive_cmds runs LD, not CC, wlarc should be empty
9205     wlarc='${wl}'
9206
9207     # Set some defaults for GNU ld with shared library support. These
9208     # are reset later if shared libraries are not supported. Putting them
9209     # here allows them to be overridden if necessary.
9210     runpath_var=LD_RUN_PATH
9211     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9212     export_dynamic_flag_spec='${wl}--export-dynamic'
9213     # ancient GNU ld didn't support --whole-archive et. al.
9214     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9215         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9216       else
9217         whole_archive_flag_spec=
9218     fi
9219     supports_anon_versioning=no
9220     case `$LD -v 2>/dev/null` in
9221       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9222       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9223       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9224       *\ 2.11.*) ;; # other 2.11 versions
9225       *) supports_anon_versioning=yes ;;
9226     esac
9227
9228     # See if GNU ld supports shared libraries.
9229     case $host_os in
9230     aix3* | aix4* | aix5*)
9231       # On AIX/PPC, the GNU linker is very broken
9232       if test "$host_cpu" != ia64; then
9233         ld_shlibs=no
9234         cat <<EOF 1>&2
9235
9236 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9237 *** to be unable to reliably create shared libraries on AIX.
9238 *** Therefore, libtool is disabling shared libraries support.  If you
9239 *** really care for shared libraries, you may want to modify your PATH
9240 *** so that a non-GNU linker is found, and then restart.
9241
9242 EOF
9243       fi
9244       ;;
9245
9246     amigaos*)
9247       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)'
9248       hardcode_libdir_flag_spec='-L$libdir'
9249       hardcode_minus_L=yes
9250
9251       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9252       # that the semantics of dynamic libraries on AmigaOS, at least up
9253       # to version 4, is to share data among multiple programs linked
9254       # with the same dynamic library.  Since this doesn't match the
9255       # behavior of shared libraries on other platforms, we can't use
9256       # them.
9257       ld_shlibs=no
9258       ;;
9259
9260     beos*)
9261       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9262         allow_undefined_flag=unsupported
9263         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9264         # support --undefined.  This deserves some investigation.  FIXME
9265         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9266       else
9267         ld_shlibs=no
9268       fi
9269       ;;
9270
9271     cygwin* | mingw* | pw32*)
9272       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9273       # as there is no search path for DLLs.
9274       hardcode_libdir_flag_spec='-L$libdir'
9275       allow_undefined_flag=unsupported
9276       always_export_symbols=no
9277       enable_shared_with_static_runtimes=yes
9278       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9279
9280       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9281         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9282         # If the export-symbols file already is a .def file (1st line
9283         # is EXPORTS), use it as is; otherwise, prepend...
9284         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9285           cp $export_symbols $output_objdir/$soname.def;
9286         else
9287           echo EXPORTS > $output_objdir/$soname.def;
9288           cat $export_symbols >> $output_objdir/$soname.def;
9289         fi~
9290         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9291       else
9292         ld_shlibs=no
9293       fi
9294       ;;
9295
9296     interix3*)
9297       hardcode_direct=no
9298       hardcode_shlibpath_var=no
9299       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9300       export_dynamic_flag_spec='${wl}-E'
9301       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9302       # Instead, shared libraries are loaded at an image base (0x10000000 by
9303       # default) and relocated if they conflict, which is a slow very memory
9304       # consuming and fragmenting process.  To avoid this, we pick a random,
9305       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9306       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9307       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9308       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'
9309       ;;
9310
9311     linux* | k*bsd*-gnu)
9312       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9313         tmp_addflag=
9314         case $cc_basename,$host_cpu in
9315         pgcc*)                          # Portland Group C compiler
9316           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9317           tmp_addflag=' $pic_flag'
9318           ;;
9319         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9320           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9321           tmp_addflag=' $pic_flag -Mnomain' ;;
9322         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9323           tmp_addflag=' -i_dynamic' ;;
9324         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9325           tmp_addflag=' -i_dynamic -nofor_main' ;;
9326         ifc* | ifort*)                  # Intel Fortran compiler
9327           tmp_addflag=' -nofor_main' ;;
9328         esac
9329         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330
9331         if test $supports_anon_versioning = yes; then
9332           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9333   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334   $echo "local: *; };" >> $output_objdir/$libname.ver~
9335           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9336         fi
9337         link_all_deplibs=no
9338       else
9339         ld_shlibs=no
9340       fi
9341       ;;
9342
9343     netbsd* | netbsdelf*-gnu)
9344       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9345         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9346         wlarc=
9347       else
9348         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9350       fi
9351       ;;
9352
9353     solaris*)
9354       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9355         ld_shlibs=no
9356         cat <<EOF 1>&2
9357
9358 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9359 *** create shared libraries on Solaris systems.  Therefore, libtool
9360 *** is disabling shared libraries support.  We urge you to upgrade GNU
9361 *** binutils to release 2.9.1 or newer.  Another option is to modify
9362 *** your PATH or compiler configuration so that the native linker is
9363 *** used, and then restart.
9364
9365 EOF
9366       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9367         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9368         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9369       else
9370         ld_shlibs=no
9371       fi
9372       ;;
9373
9374     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9375       case `$LD -v 2>&1` in
9376         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9377         ld_shlibs=no
9378         cat <<_LT_EOF 1>&2
9379
9380 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9381 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9382 *** is disabling shared libraries support.  We urge you to upgrade GNU
9383 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9384 *** your PATH or compiler configuration so that the native linker is
9385 *** used, and then restart.
9386
9387 _LT_EOF
9388         ;;
9389         *)
9390           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9391             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9392             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9393             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9394           else
9395             ld_shlibs=no
9396           fi
9397         ;;
9398       esac
9399       ;;
9400
9401     sunos4*)
9402       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9403       wlarc=
9404       hardcode_direct=yes
9405       hardcode_shlibpath_var=no
9406       ;;
9407
9408     *)
9409       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9410         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9412       else
9413         ld_shlibs=no
9414       fi
9415       ;;
9416     esac
9417
9418     if test "$ld_shlibs" = no; then
9419       runpath_var=
9420       hardcode_libdir_flag_spec=
9421       export_dynamic_flag_spec=
9422       whole_archive_flag_spec=
9423     fi
9424   else
9425     # PORTME fill in a description of your system's linker (not GNU ld)
9426     case $host_os in
9427     aix3*)
9428       allow_undefined_flag=unsupported
9429       always_export_symbols=yes
9430       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'
9431       # Note: this linker hardcodes the directories in LIBPATH if there
9432       # are no directories specified by -L.
9433       hardcode_minus_L=yes
9434       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9435         # Neither direct hardcoding nor static linking is supported with a
9436         # broken collect2.
9437         hardcode_direct=unsupported
9438       fi
9439       ;;
9440
9441     aix4* | aix5*)
9442       if test "$host_cpu" = ia64; then
9443         # On IA64, the linker does run time linking by default, so we don't
9444         # have to do anything special.
9445         aix_use_runtimelinking=no
9446         exp_sym_flag='-Bexport'
9447         no_entry_flag=""
9448       else
9449         # If we're using GNU nm, then we don't want the "-C" option.
9450         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9451         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9452           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9453         else
9454           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'
9455         fi
9456         aix_use_runtimelinking=no
9457
9458         # Test if we are trying to use run time linking or normal
9459         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9460         # need to do runtime linking.
9461         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9462           for ld_flag in $LDFLAGS; do
9463           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9464             aix_use_runtimelinking=yes
9465             break
9466           fi
9467           done
9468           ;;
9469         esac
9470
9471         exp_sym_flag='-bexport'
9472         no_entry_flag='-bnoentry'
9473       fi
9474
9475       # When large executables or shared objects are built, AIX ld can
9476       # have problems creating the table of contents.  If linking a library
9477       # or program results in "error TOC overflow" add -mminimal-toc to
9478       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9479       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9480
9481       archive_cmds=''
9482       hardcode_direct=yes
9483       hardcode_libdir_separator=':'
9484       link_all_deplibs=yes
9485
9486       if test "$GCC" = yes; then
9487         case $host_os in aix4.[012]|aix4.[012].*)
9488         # We only want to do this on AIX 4.2 and lower, the check
9489         # below for broken collect2 doesn't work under 4.3+
9490           collect2name=`${CC} -print-prog-name=collect2`
9491           if test -f "$collect2name" && \
9492            strings "$collect2name" | grep resolve_lib_name >/dev/null
9493           then
9494           # We have reworked collect2
9495           hardcode_direct=yes
9496           else
9497           # We have old collect2
9498           hardcode_direct=unsupported
9499           # It fails to find uninstalled libraries when the uninstalled
9500           # path is not listed in the libpath.  Setting hardcode_minus_L
9501           # to unsupported forces relinking
9502           hardcode_minus_L=yes
9503           hardcode_libdir_flag_spec='-L$libdir'
9504           hardcode_libdir_separator=
9505           fi
9506           ;;
9507         esac
9508         shared_flag='-shared'
9509         if test "$aix_use_runtimelinking" = yes; then
9510           shared_flag="$shared_flag "'${wl}-G'
9511         fi
9512       else
9513         # not using gcc
9514         if test "$host_cpu" = ia64; then
9515         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9516         # chokes on -Wl,-G. The following line is correct:
9517           shared_flag='-G'
9518         else
9519           if test "$aix_use_runtimelinking" = yes; then
9520             shared_flag='${wl}-G'
9521           else
9522             shared_flag='${wl}-bM:SRE'
9523           fi
9524         fi
9525       fi
9526
9527       # It seems that -bexpall does not export symbols beginning with
9528       # underscore (_), so it is better to generate a list of symbols to export.
9529       always_export_symbols=yes
9530       if test "$aix_use_runtimelinking" = yes; then
9531         # Warning - without using the other runtime loading flags (-brtl),
9532         # -berok will link without error, but may produce a broken library.
9533         allow_undefined_flag='-berok'
9534        # Determine the default libpath from the value encoded in an empty executable.
9535        cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h.  */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h.  */
9541
9542 int
9543 main ()
9544 {
9545
9546   ;
9547   return 0;
9548 }
9549 _ACEOF
9550 rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (ac_try="$ac_link"
9552 case "(($ac_try" in
9553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554   *) ac_try_echo=$ac_try;;
9555 esac
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557   (eval "$ac_link") 2>conftest.er1
9558   ac_status=$?
9559   grep -v '^ *+' conftest.er1 >conftest.err
9560   rm -f conftest.er1
9561   cat conftest.err >&5
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); } && {
9564          test -z "$ac_c_werror_flag" ||
9565          test ! -s conftest.err
9566        } && test -s conftest$ac_exeext &&
9567        $as_test_x conftest$ac_exeext; then
9568
9569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9570 }'`
9571 # Check for a 64-bit object if we didn't find anything.
9572 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9573 }'`; fi
9574 else
9575   echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9577
9578
9579 fi
9580
9581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9582       conftest$ac_exeext conftest.$ac_ext
9583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9584
9585        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9586         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9587        else
9588         if test "$host_cpu" = ia64; then
9589           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9590           allow_undefined_flag="-z nodefs"
9591           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"
9592         else
9593          # Determine the default libpath from the value encoded in an empty executable.
9594          cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h.  */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h.  */
9600
9601 int
9602 main ()
9603 {
9604
9605   ;
9606   return 0;
9607 }
9608 _ACEOF
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9611 case "(($ac_try" in
9612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613   *) ac_try_echo=$ac_try;;
9614 esac
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616   (eval "$ac_link") 2>conftest.er1
9617   ac_status=$?
9618   grep -v '^ *+' conftest.er1 >conftest.err
9619   rm -f conftest.er1
9620   cat conftest.err >&5
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); } && {
9623          test -z "$ac_c_werror_flag" ||
9624          test ! -s conftest.err
9625        } && test -s conftest$ac_exeext &&
9626        $as_test_x conftest$ac_exeext; then
9627
9628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9629 }'`
9630 # Check for a 64-bit object if we didn't find anything.
9631 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9632 }'`; fi
9633 else
9634   echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9636
9637
9638 fi
9639
9640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9641       conftest$ac_exeext conftest.$ac_ext
9642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9643
9644          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9645           # Warning - without using the other run time loading flags,
9646           # -berok will link without error, but may produce a broken library.
9647           no_undefined_flag=' ${wl}-bernotok'
9648           allow_undefined_flag=' ${wl}-berok'
9649           # Exported symbols can be pulled into shared objects from archives
9650           whole_archive_flag_spec='$convenience'
9651           archive_cmds_need_lc=yes
9652           # This is similar to how AIX traditionally builds its shared libraries.
9653           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'
9654         fi
9655       fi
9656       ;;
9657
9658     amigaos*)
9659       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)'
9660       hardcode_libdir_flag_spec='-L$libdir'
9661       hardcode_minus_L=yes
9662       # see comment about different semantics on the GNU ld section
9663       ld_shlibs=no
9664       ;;
9665
9666     bsdi[45]*)
9667       export_dynamic_flag_spec=-rdynamic
9668       ;;
9669
9670     cygwin* | mingw* | pw32*)
9671       # When not using gcc, we currently assume that we are using
9672       # Microsoft Visual C++.
9673       # hardcode_libdir_flag_spec is actually meaningless, as there is
9674       # no search path for DLLs.
9675       hardcode_libdir_flag_spec=' '
9676       allow_undefined_flag=unsupported
9677       # Tell ltmain to make .lib files, not .a files.
9678       libext=lib
9679       # Tell ltmain to make .dll files, not .so files.
9680       shrext_cmds=".dll"
9681       # FIXME: Setting linknames here is a bad hack.
9682       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9683       # The linker will automatically build a .lib file if we build a DLL.
9684       old_archive_From_new_cmds='true'
9685       # FIXME: Should let the user specify the lib program.
9686       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9687       fix_srcfile_path='`cygpath -w "$srcfile"`'
9688       enable_shared_with_static_runtimes=yes
9689       ;;
9690
9691     darwin* | rhapsody*)
9692       case $host_os in
9693         rhapsody* | darwin1.[012])
9694          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9695          ;;
9696        *) # Darwin 1.3 on
9697          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9698            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9699          else
9700            case ${MACOSX_DEPLOYMENT_TARGET} in
9701              10.[012])
9702                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9703                ;;
9704              10.*)
9705                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9706                ;;
9707            esac
9708          fi
9709          ;;
9710       esac
9711       archive_cmds_need_lc=no
9712       hardcode_direct=no
9713       hardcode_automatic=yes
9714       hardcode_shlibpath_var=unsupported
9715       whole_archive_flag_spec=''
9716       link_all_deplibs=yes
9717     if test "$GCC" = yes ; then
9718         output_verbose_link_cmd='echo'
9719         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9720       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9721       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9722       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9723       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9724     else
9725       case $cc_basename in
9726         xlc*)
9727          output_verbose_link_cmd='echo'
9728          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9729          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9730           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9731          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9732           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9733           ;;
9734        *)
9735          ld_shlibs=no
9736           ;;
9737       esac
9738     fi
9739       ;;
9740
9741     dgux*)
9742       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743       hardcode_libdir_flag_spec='-L$libdir'
9744       hardcode_shlibpath_var=no
9745       ;;
9746
9747     freebsd1*)
9748       ld_shlibs=no
9749       ;;
9750
9751     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9752     # support.  Future versions do this automatically, but an explicit c++rt0.o
9753     # does not break anything, and helps significantly (at the cost of a little
9754     # extra space).
9755     freebsd2.2*)
9756       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9757       hardcode_libdir_flag_spec='-R$libdir'
9758       hardcode_direct=yes
9759       hardcode_shlibpath_var=no
9760       ;;
9761
9762     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9763     freebsd2*)
9764       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9765       hardcode_direct=yes
9766       hardcode_minus_L=yes
9767       hardcode_shlibpath_var=no
9768       ;;
9769
9770     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9771     freebsd* | dragonfly*)
9772       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9773       hardcode_libdir_flag_spec='-R$libdir'
9774       hardcode_direct=yes
9775       hardcode_shlibpath_var=no
9776       ;;
9777
9778     hpux9*)
9779       if test "$GCC" = yes; then
9780         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9781       else
9782         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'
9783       fi
9784       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9785       hardcode_libdir_separator=:
9786       hardcode_direct=yes
9787
9788       # hardcode_minus_L: Not really in the search PATH,
9789       # but as the default location of the library.
9790       hardcode_minus_L=yes
9791       export_dynamic_flag_spec='${wl}-E'
9792       ;;
9793
9794     hpux10*)
9795       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9796         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9797       else
9798         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9799       fi
9800       if test "$with_gnu_ld" = no; then
9801         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9802         hardcode_libdir_separator=:
9803
9804         hardcode_direct=yes
9805         export_dynamic_flag_spec='${wl}-E'
9806
9807         # hardcode_minus_L: Not really in the search PATH,
9808         # but as the default location of the library.
9809         hardcode_minus_L=yes
9810       fi
9811       ;;
9812
9813     hpux11*)
9814       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9815         case $host_cpu in
9816         hppa*64*)
9817           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9818           ;;
9819         ia64*)
9820           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9821           ;;
9822         *)
9823           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9824           ;;
9825         esac
9826       else
9827         case $host_cpu in
9828         hppa*64*)
9829           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9830           ;;
9831         ia64*)
9832           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9833           ;;
9834         *)
9835           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9836           ;;
9837         esac
9838       fi
9839       if test "$with_gnu_ld" = no; then
9840         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9841         hardcode_libdir_separator=:
9842
9843         case $host_cpu in
9844         hppa*64*|ia64*)
9845           hardcode_libdir_flag_spec_ld='+b $libdir'
9846           hardcode_direct=no
9847           hardcode_shlibpath_var=no
9848           ;;
9849         *)
9850           hardcode_direct=yes
9851           export_dynamic_flag_spec='${wl}-E'
9852
9853           # hardcode_minus_L: Not really in the search PATH,
9854           # but as the default location of the library.
9855           hardcode_minus_L=yes
9856           ;;
9857         esac
9858       fi
9859       ;;
9860
9861     irix5* | irix6* | nonstopux*)
9862       if test "$GCC" = yes; then
9863         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9864       else
9865         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9866         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9867       fi
9868       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9869       hardcode_libdir_separator=:
9870       link_all_deplibs=yes
9871       ;;
9872
9873     netbsd* | netbsdelf*-gnu)
9874       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9875         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9876       else
9877         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9878       fi
9879       hardcode_libdir_flag_spec='-R$libdir'
9880       hardcode_direct=yes
9881       hardcode_shlibpath_var=no
9882       ;;
9883
9884     newsos6)
9885       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886       hardcode_direct=yes
9887       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9888       hardcode_libdir_separator=:
9889       hardcode_shlibpath_var=no
9890       ;;
9891
9892     openbsd*)
9893       hardcode_direct=yes
9894       hardcode_shlibpath_var=no
9895       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9896         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9897         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9898         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9899         export_dynamic_flag_spec='${wl}-E'
9900       else
9901        case $host_os in
9902          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9903            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9904            hardcode_libdir_flag_spec='-R$libdir'
9905            ;;
9906          *)
9907            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9908            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9909            ;;
9910        esac
9911       fi
9912       ;;
9913
9914     os2*)
9915       hardcode_libdir_flag_spec='-L$libdir'
9916       hardcode_minus_L=yes
9917       allow_undefined_flag=unsupported
9918       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'
9919       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9920       ;;
9921
9922     osf3*)
9923       if test "$GCC" = yes; then
9924         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9925         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9926       else
9927         allow_undefined_flag=' -expect_unresolved \*'
9928         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9929       fi
9930       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9931       hardcode_libdir_separator=:
9932       ;;
9933
9934     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9935       if test "$GCC" = yes; then
9936         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9937         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9938         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939       else
9940         allow_undefined_flag=' -expect_unresolved \*'
9941         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9942         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9943         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9944
9945         # Both c and cxx compiler support -rpath directly
9946         hardcode_libdir_flag_spec='-rpath $libdir'
9947       fi
9948       hardcode_libdir_separator=:
9949       ;;
9950
9951     solaris*)
9952       no_undefined_flag=' -z text'
9953       if test "$GCC" = yes; then
9954         wlarc='${wl}'
9955         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9956         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9957           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9958       else
9959         wlarc=''
9960         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9961         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9962         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9963       fi
9964       hardcode_libdir_flag_spec='-R$libdir'
9965       hardcode_shlibpath_var=no
9966       case $host_os in
9967       solaris2.[0-5] | solaris2.[0-5].*) ;;
9968       *)
9969         # The compiler driver will combine linker options so we
9970         # cannot just pass the convience library names through
9971         # without $wl, iff we do not link with $LD.
9972         # Luckily, gcc supports the same syntax we need for Sun Studio.
9973         # Supported since Solaris 2.6 (maybe 2.5.1?)
9974         case $wlarc in
9975         '')
9976           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9977         *)
9978           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9979         esac ;;
9980       esac
9981       link_all_deplibs=yes
9982       ;;
9983
9984     sunos4*)
9985       if test "x$host_vendor" = xsequent; then
9986         # Use $CC to link under sequent, because it throws in some extra .o
9987         # files that make .init and .fini sections work.
9988         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9989       else
9990         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9991       fi
9992       hardcode_libdir_flag_spec='-L$libdir'
9993       hardcode_direct=yes
9994       hardcode_minus_L=yes
9995       hardcode_shlibpath_var=no
9996       ;;
9997
9998     sysv4)
9999       case $host_vendor in
10000         sni)
10001           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10002           hardcode_direct=yes # is this really true???
10003         ;;
10004         siemens)
10005           ## LD is ld it makes a PLAMLIB
10006           ## CC just makes a GrossModule.
10007           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10008           reload_cmds='$CC -r -o $output$reload_objs'
10009           hardcode_direct=no
10010         ;;
10011         motorola)
10012           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10014         ;;
10015       esac
10016       runpath_var='LD_RUN_PATH'
10017       hardcode_shlibpath_var=no
10018       ;;
10019
10020     sysv4.3*)
10021       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022       hardcode_shlibpath_var=no
10023       export_dynamic_flag_spec='-Bexport'
10024       ;;
10025
10026     sysv4*MP*)
10027       if test -d /usr/nec; then
10028         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029         hardcode_shlibpath_var=no
10030         runpath_var=LD_RUN_PATH
10031         hardcode_runpath_var=yes
10032         ld_shlibs=yes
10033       fi
10034       ;;
10035
10036     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10037       no_undefined_flag='${wl}-z,text'
10038       archive_cmds_need_lc=no
10039       hardcode_shlibpath_var=no
10040       runpath_var='LD_RUN_PATH'
10041
10042       if test "$GCC" = yes; then
10043         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10044         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10045       else
10046         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10047         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10048       fi
10049       ;;
10050
10051     sysv5* | sco3.2v5* | sco5v6*)
10052       # Note: We can NOT use -z defs as we might desire, because we do not
10053       # link with -lc, and that would cause any symbols used from libc to
10054       # always be unresolved, which means just about no library would
10055       # ever link correctly.  If we're not using GNU ld we use -z text
10056       # though, which does catch some bad symbols but isn't as heavy-handed
10057       # as -z defs.
10058       no_undefined_flag='${wl}-z,text'
10059       allow_undefined_flag='${wl}-z,nodefs'
10060       archive_cmds_need_lc=no
10061       hardcode_shlibpath_var=no
10062       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10063       hardcode_libdir_separator=':'
10064       link_all_deplibs=yes
10065       export_dynamic_flag_spec='${wl}-Bexport'
10066       runpath_var='LD_RUN_PATH'
10067
10068       if test "$GCC" = yes; then
10069         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10070         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10071       else
10072         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10073         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10074       fi
10075       ;;
10076
10077     uts4*)
10078       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10079       hardcode_libdir_flag_spec='-L$libdir'
10080       hardcode_shlibpath_var=no
10081       ;;
10082
10083     *)
10084       ld_shlibs=no
10085       ;;
10086     esac
10087   fi
10088
10089 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10090 echo "${ECHO_T}$ld_shlibs" >&6; }
10091 test "$ld_shlibs" = no && can_build_shared=no
10092
10093 #
10094 # Do we need to explicitly link libc?
10095 #
10096 case "x$archive_cmds_need_lc" in
10097 x|xyes)
10098   # Assume -lc should be added
10099   archive_cmds_need_lc=yes
10100
10101   if test "$enable_shared" = yes && test "$GCC" = yes; then
10102     case $archive_cmds in
10103     *'~'*)
10104       # FIXME: we may have to deal with multi-command sequences.
10105       ;;
10106     '$CC '*)
10107       # Test whether the compiler implicitly links with -lc since on some
10108       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10109       # to ld, don't add -lc before -lgcc.
10110       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10111 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10112       $rm conftest*
10113       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10114
10115       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10116   (eval $ac_compile) 2>&5
10117   ac_status=$?
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); } 2>conftest.err; then
10120         soname=conftest
10121         lib=conftest
10122         libobjs=conftest.$ac_objext
10123         deplibs=
10124         wl=$lt_prog_compiler_wl
10125         pic_flag=$lt_prog_compiler_pic
10126         compiler_flags=-v
10127         linker_flags=-v
10128         verstring=
10129         output_objdir=.
10130         libname=conftest
10131         lt_save_allow_undefined_flag=$allow_undefined_flag
10132         allow_undefined_flag=
10133         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10134   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10135   ac_status=$?
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); }
10138         then
10139           archive_cmds_need_lc=no
10140         else
10141           archive_cmds_need_lc=yes
10142         fi
10143         allow_undefined_flag=$lt_save_allow_undefined_flag
10144       else
10145         cat conftest.err 1>&5
10146       fi
10147       $rm conftest*
10148       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10149 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10150       ;;
10151     esac
10152   fi
10153   ;;
10154 esac
10155
10156 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10157 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10158 library_names_spec=
10159 libname_spec='lib$name'
10160 soname_spec=
10161 shrext_cmds=".so"
10162 postinstall_cmds=
10163 postuninstall_cmds=
10164 finish_cmds=
10165 finish_eval=
10166 shlibpath_var=
10167 shlibpath_overrides_runpath=unknown
10168 version_type=none
10169 dynamic_linker="$host_os ld.so"
10170 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10171 if test "$GCC" = yes; then
10172   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10173   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10174     # if the path contains ";" then we assume it to be the separator
10175     # otherwise default to the standard path separator (i.e. ":") - it is
10176     # assumed that no part of a normal pathname contains ";" but that should
10177     # okay in the real world where ";" in dirpaths is itself problematic.
10178     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10179   else
10180     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10181   fi
10182 else
10183   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10184 fi
10185 need_lib_prefix=unknown
10186 hardcode_into_libs=no
10187
10188 # when you set need_version to no, make sure it does not cause -set_version
10189 # flags to be left without arguments
10190 need_version=unknown
10191
10192 case $host_os in
10193 aix3*)
10194   version_type=linux
10195   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10196   shlibpath_var=LIBPATH
10197
10198   # AIX 3 has no versioning support, so we append a major version to the name.
10199   soname_spec='${libname}${release}${shared_ext}$major'
10200   ;;
10201
10202 aix4* | aix5*)
10203   version_type=linux
10204   need_lib_prefix=no
10205   need_version=no
10206   hardcode_into_libs=yes
10207   if test "$host_cpu" = ia64; then
10208     # AIX 5 supports IA64
10209     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10210     shlibpath_var=LD_LIBRARY_PATH
10211   else
10212     # With GCC up to 2.95.x, collect2 would create an import file
10213     # for dependence libraries.  The import file would start with
10214     # the line `#! .'.  This would cause the generated library to
10215     # depend on `.', always an invalid library.  This was fixed in
10216     # development snapshots of GCC prior to 3.0.
10217     case $host_os in
10218       aix4 | aix4.[01] | aix4.[01].*)
10219       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10220            echo ' yes '
10221            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10222         :
10223       else
10224         can_build_shared=no
10225       fi
10226       ;;
10227     esac
10228     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10229     # soname into executable. Probably we can add versioning support to
10230     # collect2, so additional links can be useful in future.
10231     if test "$aix_use_runtimelinking" = yes; then
10232       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10233       # instead of lib<name>.a to let people know that these are not
10234       # typical AIX shared libraries.
10235       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236     else
10237       # We preserve .a as extension for shared libraries through AIX4.2
10238       # and later when we are not doing run time linking.
10239       library_names_spec='${libname}${release}.a $libname.a'
10240       soname_spec='${libname}${release}${shared_ext}$major'
10241     fi
10242     shlibpath_var=LIBPATH
10243   fi
10244   ;;
10245
10246 amigaos*)
10247   library_names_spec='$libname.ixlibrary $libname.a'
10248   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10249   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
10250   ;;
10251
10252 beos*)
10253   library_names_spec='${libname}${shared_ext}'
10254   dynamic_linker="$host_os ld.so"
10255   shlibpath_var=LIBRARY_PATH
10256   ;;
10257
10258 bsdi[45]*)
10259   version_type=linux
10260   need_version=no
10261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262   soname_spec='${libname}${release}${shared_ext}$major'
10263   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10264   shlibpath_var=LD_LIBRARY_PATH
10265   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10266   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10267   # the default ld.so.conf also contains /usr/contrib/lib and
10268   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10269   # libtool to hard-code these into programs
10270   ;;
10271
10272 cygwin* | mingw* | pw32*)
10273   version_type=windows
10274   shrext_cmds=".dll"
10275   need_version=no
10276   need_lib_prefix=no
10277
10278   case $GCC,$host_os in
10279   yes,cygwin* | yes,mingw* | yes,pw32*)
10280     library_names_spec='$libname.dll.a'
10281     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10282     postinstall_cmds='base_file=`basename \${file}`~
10283       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10284       dldir=$destdir/`dirname \$dlpath`~
10285       test -d \$dldir || mkdir -p \$dldir~
10286       $install_prog $dir/$dlname \$dldir/$dlname~
10287       chmod a+x \$dldir/$dlname'
10288     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10289       dlpath=$dir/\$dldll~
10290        $rm \$dlpath'
10291     shlibpath_overrides_runpath=yes
10292
10293     case $host_os in
10294     cygwin*)
10295       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10296       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10297       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10298       ;;
10299     mingw*)
10300       # MinGW DLLs use traditional 'lib' prefix
10301       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10302       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10303       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10304         # It is most probably a Windows format PATH printed by
10305         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10306         # path with ; separators, and with drive letters. We can handle the
10307         # drive letters (cygwin fileutils understands them), so leave them,
10308         # especially as we might pass files found there to a mingw objdump,
10309         # which wouldn't understand a cygwinified path. Ahh.
10310         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10311       else
10312         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10313       fi
10314       ;;
10315     pw32*)
10316       # pw32 DLLs use 'pw' prefix rather than 'lib'
10317       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10318       ;;
10319     esac
10320     ;;
10321
10322   *)
10323     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10324     ;;
10325   esac
10326   dynamic_linker='Win32 ld.exe'
10327   # FIXME: first we should search . and the directory the executable is in
10328   shlibpath_var=PATH
10329   ;;
10330
10331 darwin* | rhapsody*)
10332   dynamic_linker="$host_os dyld"
10333   version_type=darwin
10334   need_lib_prefix=no
10335   need_version=no
10336   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10337   soname_spec='${libname}${release}${major}$shared_ext'
10338   shlibpath_overrides_runpath=yes
10339   shlibpath_var=DYLD_LIBRARY_PATH
10340   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10341   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10342   if test "$GCC" = yes; then
10343     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10344   else
10345     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10346   fi
10347   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10348   ;;
10349
10350 dgux*)
10351   version_type=linux
10352   need_lib_prefix=no
10353   need_version=no
10354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10355   soname_spec='${libname}${release}${shared_ext}$major'
10356   shlibpath_var=LD_LIBRARY_PATH
10357   ;;
10358
10359 freebsd1*)
10360   dynamic_linker=no
10361   ;;
10362
10363 freebsd* | dragonfly*)
10364   # DragonFly does not have aout.  When/if they implement a new
10365   # versioning mechanism, adjust this.
10366   if test -x /usr/bin/objformat; then
10367     objformat=`/usr/bin/objformat`
10368   else
10369     case $host_os in
10370     freebsd[123]*) objformat=aout ;;
10371     *) objformat=elf ;;
10372     esac
10373   fi
10374   version_type=freebsd-$objformat
10375   case $version_type in
10376     freebsd-elf*)
10377       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10378       need_version=no
10379       need_lib_prefix=no
10380       ;;
10381     freebsd-*)
10382       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10383       need_version=yes
10384       ;;
10385   esac
10386   shlibpath_var=LD_LIBRARY_PATH
10387   case $host_os in
10388   freebsd2*)
10389     shlibpath_overrides_runpath=yes
10390     ;;
10391   freebsd3.[01]* | freebsdelf3.[01]*)
10392     shlibpath_overrides_runpath=yes
10393     hardcode_into_libs=yes
10394     ;;
10395   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10396   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10397     shlibpath_overrides_runpath=no
10398     hardcode_into_libs=yes
10399     ;;
10400   freebsd*) # from 4.6 on
10401     shlibpath_overrides_runpath=yes
10402     hardcode_into_libs=yes
10403     ;;
10404   esac
10405   ;;
10406
10407 gnu*)
10408   version_type=linux
10409   need_lib_prefix=no
10410   need_version=no
10411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10412   soname_spec='${libname}${release}${shared_ext}$major'
10413   shlibpath_var=LD_LIBRARY_PATH
10414   hardcode_into_libs=yes
10415   ;;
10416
10417 hpux9* | hpux10* | hpux11*)
10418   # Give a soname corresponding to the major version so that dld.sl refuses to
10419   # link against other versions.
10420   version_type=sunos
10421   need_lib_prefix=no
10422   need_version=no
10423   case $host_cpu in
10424   ia64*)
10425     shrext_cmds='.so'
10426     hardcode_into_libs=yes
10427     dynamic_linker="$host_os dld.so"
10428     shlibpath_var=LD_LIBRARY_PATH
10429     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431     soname_spec='${libname}${release}${shared_ext}$major'
10432     if test "X$HPUX_IA64_MODE" = X32; then
10433       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10434     else
10435       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10436     fi
10437     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10438     ;;
10439    hppa*64*)
10440      shrext_cmds='.sl'
10441      hardcode_into_libs=yes
10442      dynamic_linker="$host_os dld.sl"
10443      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10444      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10445      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446      soname_spec='${libname}${release}${shared_ext}$major'
10447      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10448      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10449      ;;
10450    *)
10451     shrext_cmds='.sl'
10452     dynamic_linker="$host_os dld.sl"
10453     shlibpath_var=SHLIB_PATH
10454     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456     soname_spec='${libname}${release}${shared_ext}$major'
10457     ;;
10458   esac
10459   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10460   postinstall_cmds='chmod 555 $lib'
10461   ;;
10462
10463 interix3*)
10464   version_type=linux
10465   need_lib_prefix=no
10466   need_version=no
10467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10468   soname_spec='${libname}${release}${shared_ext}$major'
10469   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10470   shlibpath_var=LD_LIBRARY_PATH
10471   shlibpath_overrides_runpath=no
10472   hardcode_into_libs=yes
10473   ;;
10474
10475 irix5* | irix6* | nonstopux*)
10476   case $host_os in
10477     nonstopux*) version_type=nonstopux ;;
10478     *)
10479         if test "$lt_cv_prog_gnu_ld" = yes; then
10480                 version_type=linux
10481         else
10482                 version_type=irix
10483         fi ;;
10484   esac
10485   need_lib_prefix=no
10486   need_version=no
10487   soname_spec='${libname}${release}${shared_ext}$major'
10488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10489   case $host_os in
10490   irix5* | nonstopux*)
10491     libsuff= shlibsuff=
10492     ;;
10493   *)
10494     case $LD in # libtool.m4 will add one of these switches to LD
10495     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10496       libsuff= shlibsuff= libmagic=32-bit;;
10497     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10498       libsuff=32 shlibsuff=N32 libmagic=N32;;
10499     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10500       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10501     *) libsuff= shlibsuff= libmagic=never-match;;
10502     esac
10503     ;;
10504   esac
10505   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10506   shlibpath_overrides_runpath=no
10507   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10508   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10509   hardcode_into_libs=yes
10510   ;;
10511
10512 # No shared lib support for Linux oldld, aout, or coff.
10513 linux*oldld* | linux*aout* | linux*coff*)
10514   dynamic_linker=no
10515   ;;
10516
10517 # This must be Linux ELF.
10518 linux* | k*bsd*-gnu)
10519   version_type=linux
10520   need_lib_prefix=no
10521   need_version=no
10522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523   soname_spec='${libname}${release}${shared_ext}$major'
10524   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10525   shlibpath_var=LD_LIBRARY_PATH
10526   shlibpath_overrides_runpath=no
10527   # This implies no fast_install, which is unacceptable.
10528   # Some rework will be needed to allow for fast_install
10529   # before this can be enabled.
10530   hardcode_into_libs=yes
10531
10532   # Append ld.so.conf contents to the search path
10533   if test -f /etc/ld.so.conf; then
10534     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10535     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10536   fi
10537
10538   # We used to test for /lib/ld.so.1 and disable shared libraries on
10539   # powerpc, because MkLinux only supported shared libraries with the
10540   # GNU dynamic linker.  Since this was broken with cross compilers,
10541   # most powerpc-linux boxes support dynamic linking these days and
10542   # people can always --disable-shared, the test was removed, and we
10543   # assume the GNU/Linux dynamic linker is in use.
10544   dynamic_linker='GNU/Linux ld.so'
10545   ;;
10546
10547 netbsdelf*-gnu)
10548   version_type=linux
10549   need_lib_prefix=no
10550   need_version=no
10551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10552   soname_spec='${libname}${release}${shared_ext}$major'
10553   shlibpath_var=LD_LIBRARY_PATH
10554   shlibpath_overrides_runpath=no
10555   hardcode_into_libs=yes
10556   dynamic_linker='NetBSD ld.elf_so'
10557   ;;
10558
10559 netbsd*)
10560   version_type=sunos
10561   need_lib_prefix=no
10562   need_version=no
10563   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10565     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10566     dynamic_linker='NetBSD (a.out) ld.so'
10567   else
10568     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10569     soname_spec='${libname}${release}${shared_ext}$major'
10570     dynamic_linker='NetBSD ld.elf_so'
10571   fi
10572   shlibpath_var=LD_LIBRARY_PATH
10573   shlibpath_overrides_runpath=yes
10574   hardcode_into_libs=yes
10575   ;;
10576
10577 newsos6)
10578   version_type=linux
10579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580   shlibpath_var=LD_LIBRARY_PATH
10581   shlibpath_overrides_runpath=yes
10582   ;;
10583
10584 nto-qnx*)
10585   version_type=linux
10586   need_lib_prefix=no
10587   need_version=no
10588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589   soname_spec='${libname}${release}${shared_ext}$major'
10590   shlibpath_var=LD_LIBRARY_PATH
10591   shlibpath_overrides_runpath=yes
10592   ;;
10593
10594 openbsd*)
10595   version_type=sunos
10596   sys_lib_dlsearch_path_spec="/usr/lib"
10597   need_lib_prefix=no
10598   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10599   case $host_os in
10600     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10601     *)                         need_version=no  ;;
10602   esac
10603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10604   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10605   shlibpath_var=LD_LIBRARY_PATH
10606   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10607     case $host_os in
10608       openbsd2.[89] | openbsd2.[89].*)
10609         shlibpath_overrides_runpath=no
10610         ;;
10611       *)
10612         shlibpath_overrides_runpath=yes
10613         ;;
10614       esac
10615   else
10616     shlibpath_overrides_runpath=yes
10617   fi
10618   ;;
10619
10620 os2*)
10621   libname_spec='$name'
10622   shrext_cmds=".dll"
10623   need_lib_prefix=no
10624   library_names_spec='$libname${shared_ext} $libname.a'
10625   dynamic_linker='OS/2 ld.exe'
10626   shlibpath_var=LIBPATH
10627   ;;
10628
10629 osf3* | osf4* | osf5*)
10630   version_type=osf
10631   need_lib_prefix=no
10632   need_version=no
10633   soname_spec='${libname}${release}${shared_ext}$major'
10634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635   shlibpath_var=LD_LIBRARY_PATH
10636   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10637   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10638   ;;
10639
10640 solaris*)
10641   version_type=linux
10642   need_lib_prefix=no
10643   need_version=no
10644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645   soname_spec='${libname}${release}${shared_ext}$major'
10646   shlibpath_var=LD_LIBRARY_PATH
10647   shlibpath_overrides_runpath=yes
10648   hardcode_into_libs=yes
10649   # ldd complains unless libraries are executable
10650   postinstall_cmds='chmod +x $lib'
10651   ;;
10652
10653 sunos4*)
10654   version_type=sunos
10655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10656   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10657   shlibpath_var=LD_LIBRARY_PATH
10658   shlibpath_overrides_runpath=yes
10659   if test "$with_gnu_ld" = yes; then
10660     need_lib_prefix=no
10661   fi
10662   need_version=yes
10663   ;;
10664
10665 sysv4 | sysv4.3*)
10666   version_type=linux
10667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668   soname_spec='${libname}${release}${shared_ext}$major'
10669   shlibpath_var=LD_LIBRARY_PATH
10670   case $host_vendor in
10671     sni)
10672       shlibpath_overrides_runpath=no
10673       need_lib_prefix=no
10674       export_dynamic_flag_spec='${wl}-Blargedynsym'
10675       runpath_var=LD_RUN_PATH
10676       ;;
10677     siemens)
10678       need_lib_prefix=no
10679       ;;
10680     motorola)
10681       need_lib_prefix=no
10682       need_version=no
10683       shlibpath_overrides_runpath=no
10684       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10685       ;;
10686   esac
10687   ;;
10688
10689 sysv4*MP*)
10690   if test -d /usr/nec ;then
10691     version_type=linux
10692     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10693     soname_spec='$libname${shared_ext}.$major'
10694     shlibpath_var=LD_LIBRARY_PATH
10695   fi
10696   ;;
10697
10698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10699   version_type=freebsd-elf
10700   need_lib_prefix=no
10701   need_version=no
10702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10703   soname_spec='${libname}${release}${shared_ext}$major'
10704   shlibpath_var=LD_LIBRARY_PATH
10705   hardcode_into_libs=yes
10706   if test "$with_gnu_ld" = yes; then
10707     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10708     shlibpath_overrides_runpath=no
10709   else
10710     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10711     shlibpath_overrides_runpath=yes
10712     case $host_os in
10713       sco3.2v5*)
10714         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10715         ;;
10716     esac
10717   fi
10718   sys_lib_dlsearch_path_spec='/usr/lib'
10719   ;;
10720
10721 uts4*)
10722   version_type=linux
10723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724   soname_spec='${libname}${release}${shared_ext}$major'
10725   shlibpath_var=LD_LIBRARY_PATH
10726   ;;
10727
10728 *)
10729   dynamic_linker=no
10730   ;;
10731 esac
10732 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10733 echo "${ECHO_T}$dynamic_linker" >&6; }
10734 test "$dynamic_linker" = no && can_build_shared=no
10735
10736 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10737 if test "$GCC" = yes; then
10738   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10739 fi
10740
10741 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10742 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10743 hardcode_action=
10744 if test -n "$hardcode_libdir_flag_spec" || \
10745    test -n "$runpath_var" || \
10746    test "X$hardcode_automatic" = "Xyes" ; then
10747
10748   # We can hardcode non-existant directories.
10749   if test "$hardcode_direct" != no &&
10750      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10751      # have to relink, otherwise we might link with an installed library
10752      # when we should be linking with a yet-to-be-installed one
10753      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10754      test "$hardcode_minus_L" != no; then
10755     # Linking always hardcodes the temporary library directory.
10756     hardcode_action=relink
10757   else
10758     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10759     hardcode_action=immediate
10760   fi
10761 else
10762   # We cannot hardcode anything, or else we can only hardcode existing
10763   # directories.
10764   hardcode_action=unsupported
10765 fi
10766 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10767 echo "${ECHO_T}$hardcode_action" >&6; }
10768
10769 if test "$hardcode_action" = relink; then
10770   # Fast installation is not supported
10771   enable_fast_install=no
10772 elif test "$shlibpath_overrides_runpath" = yes ||
10773      test "$enable_shared" = no; then
10774   # Fast installation is not necessary
10775   enable_fast_install=needless
10776 fi
10777
10778 striplib=
10779 old_striplib=
10780 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10781 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10782 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10783   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10784   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10785   { echo "$as_me:$LINENO: result: yes" >&5
10786 echo "${ECHO_T}yes" >&6; }
10787 else
10788 # FIXME - insert some real tests, host_os isn't really good enough
10789   case $host_os in
10790    darwin*)
10791        if test -n "$STRIP" ; then
10792          striplib="$STRIP -x"
10793          { echo "$as_me:$LINENO: result: yes" >&5
10794 echo "${ECHO_T}yes" >&6; }
10795        else
10796   { echo "$as_me:$LINENO: result: no" >&5
10797 echo "${ECHO_T}no" >&6; }
10798 fi
10799        ;;
10800    *)
10801   { echo "$as_me:$LINENO: result: no" >&5
10802 echo "${ECHO_T}no" >&6; }
10803     ;;
10804   esac
10805 fi
10806
10807 if test "x$enable_dlopen" != xyes; then
10808   enable_dlopen=unknown
10809   enable_dlopen_self=unknown
10810   enable_dlopen_self_static=unknown
10811 else
10812   lt_cv_dlopen=no
10813   lt_cv_dlopen_libs=
10814
10815   case $host_os in
10816   beos*)
10817     lt_cv_dlopen="load_add_on"
10818     lt_cv_dlopen_libs=
10819     lt_cv_dlopen_self=yes
10820     ;;
10821
10822   mingw* | pw32*)
10823     lt_cv_dlopen="LoadLibrary"
10824     lt_cv_dlopen_libs=
10825    ;;
10826
10827   cygwin*)
10828     lt_cv_dlopen="dlopen"
10829     lt_cv_dlopen_libs=
10830    ;;
10831
10832   darwin*)
10833   # if libdl is installed we need to link against it
10834     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10835 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10837   echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839   ac_check_lib_save_LIBS=$LIBS
10840 LIBS="-ldl  $LIBS"
10841 cat >conftest.$ac_ext <<_ACEOF
10842 /* confdefs.h.  */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h.  */
10847
10848 /* Override any GCC internal prototype to avoid an error.
10849    Use char because int might match the return type of a GCC
10850    builtin and then its argument prototype would still apply.  */
10851 #ifdef __cplusplus
10852 extern "C"
10853 #endif
10854 char dlopen ();
10855 int
10856 main ()
10857 {
10858 return dlopen ();
10859   ;
10860   return 0;
10861 }
10862 _ACEOF
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (ac_try="$ac_link"
10865 case "(($ac_try" in
10866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867   *) ac_try_echo=$ac_try;;
10868 esac
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870   (eval "$ac_link") 2>conftest.er1
10871   ac_status=$?
10872   grep -v '^ *+' conftest.er1 >conftest.err
10873   rm -f conftest.er1
10874   cat conftest.err >&5
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); } && {
10877          test -z "$ac_c_werror_flag" ||
10878          test ! -s conftest.err
10879        } && test -s conftest$ac_exeext &&
10880        $as_test_x conftest$ac_exeext; then
10881   ac_cv_lib_dl_dlopen=yes
10882 else
10883   echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10885
10886         ac_cv_lib_dl_dlopen=no
10887 fi
10888
10889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10890       conftest$ac_exeext conftest.$ac_ext
10891 LIBS=$ac_check_lib_save_LIBS
10892 fi
10893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10894 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10895 if test $ac_cv_lib_dl_dlopen = yes; then
10896   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10897 else
10898
10899     lt_cv_dlopen="dyld"
10900     lt_cv_dlopen_libs=
10901     lt_cv_dlopen_self=yes
10902
10903 fi
10904
10905    ;;
10906
10907   *)
10908     { echo "$as_me:$LINENO: checking for shl_load" >&5
10909 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10910 if test "${ac_cv_func_shl_load+set}" = set; then
10911   echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913   cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h.  */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h.  */
10919 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10921 #define shl_load innocuous_shl_load
10922
10923 /* System header to define __stub macros and hopefully few prototypes,
10924     which can conflict with char shl_load (); below.
10925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10926     <limits.h> exists even on freestanding compilers.  */
10927
10928 #ifdef __STDC__
10929 # include <limits.h>
10930 #else
10931 # include <assert.h>
10932 #endif
10933
10934 #undef shl_load
10935
10936 /* Override any GCC internal prototype to avoid an error.
10937    Use char because int might match the return type of a GCC
10938    builtin and then its argument prototype would still apply.  */
10939 #ifdef __cplusplus
10940 extern "C"
10941 #endif
10942 char shl_load ();
10943 /* The GNU C library defines this for functions which it implements
10944     to always fail with ENOSYS.  Some functions are actually named
10945     something starting with __ and the normal name is an alias.  */
10946 #if defined __stub_shl_load || defined __stub___shl_load
10947 choke me
10948 #endif
10949
10950 int
10951 main ()
10952 {
10953 return shl_load ();
10954   ;
10955   return 0;
10956 }
10957 _ACEOF
10958 rm -f conftest.$ac_objext conftest$ac_exeext
10959 if { (ac_try="$ac_link"
10960 case "(($ac_try" in
10961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962   *) ac_try_echo=$ac_try;;
10963 esac
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965   (eval "$ac_link") 2>conftest.er1
10966   ac_status=$?
10967   grep -v '^ *+' conftest.er1 >conftest.err
10968   rm -f conftest.er1
10969   cat conftest.err >&5
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); } && {
10972          test -z "$ac_c_werror_flag" ||
10973          test ! -s conftest.err
10974        } && test -s conftest$ac_exeext &&
10975        $as_test_x conftest$ac_exeext; then
10976   ac_cv_func_shl_load=yes
10977 else
10978   echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10980
10981         ac_cv_func_shl_load=no
10982 fi
10983
10984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10985       conftest$ac_exeext conftest.$ac_ext
10986 fi
10987 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10988 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10989 if test $ac_cv_func_shl_load = yes; then
10990   lt_cv_dlopen="shl_load"
10991 else
10992   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10993 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10994 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10995   echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997   ac_check_lib_save_LIBS=$LIBS
10998 LIBS="-ldld  $LIBS"
10999 cat >conftest.$ac_ext <<_ACEOF
11000 /* confdefs.h.  */
11001 _ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h.  */
11005
11006 /* Override any GCC internal prototype to avoid an error.
11007    Use char because int might match the return type of a GCC
11008    builtin and then its argument prototype would still apply.  */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 char shl_load ();
11013 int
11014 main ()
11015 {
11016 return shl_load ();
11017   ;
11018   return 0;
11019 }
11020 _ACEOF
11021 rm -f conftest.$ac_objext conftest$ac_exeext
11022 if { (ac_try="$ac_link"
11023 case "(($ac_try" in
11024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025   *) ac_try_echo=$ac_try;;
11026 esac
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028   (eval "$ac_link") 2>conftest.er1
11029   ac_status=$?
11030   grep -v '^ *+' conftest.er1 >conftest.err
11031   rm -f conftest.er1
11032   cat conftest.err >&5
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); } && {
11035          test -z "$ac_c_werror_flag" ||
11036          test ! -s conftest.err
11037        } && test -s conftest$ac_exeext &&
11038        $as_test_x conftest$ac_exeext; then
11039   ac_cv_lib_dld_shl_load=yes
11040 else
11041   echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11043
11044         ac_cv_lib_dld_shl_load=no
11045 fi
11046
11047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11048       conftest$ac_exeext conftest.$ac_ext
11049 LIBS=$ac_check_lib_save_LIBS
11050 fi
11051 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11052 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11053 if test $ac_cv_lib_dld_shl_load = yes; then
11054   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11055 else
11056   { echo "$as_me:$LINENO: checking for dlopen" >&5
11057 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11058 if test "${ac_cv_func_dlopen+set}" = set; then
11059   echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061   cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h.  */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h.  */
11067 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11069 #define dlopen innocuous_dlopen
11070
11071 /* System header to define __stub macros and hopefully few prototypes,
11072     which can conflict with char dlopen (); below.
11073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11074     <limits.h> exists even on freestanding compilers.  */
11075
11076 #ifdef __STDC__
11077 # include <limits.h>
11078 #else
11079 # include <assert.h>
11080 #endif
11081
11082 #undef dlopen
11083
11084 /* Override any GCC internal prototype to avoid an error.
11085    Use char because int might match the return type of a GCC
11086    builtin and then its argument prototype would still apply.  */
11087 #ifdef __cplusplus
11088 extern "C"
11089 #endif
11090 char dlopen ();
11091 /* The GNU C library defines this for functions which it implements
11092     to always fail with ENOSYS.  Some functions are actually named
11093     something starting with __ and the normal name is an alias.  */
11094 #if defined __stub_dlopen || defined __stub___dlopen
11095 choke me
11096 #endif
11097
11098 int
11099 main ()
11100 {
11101 return dlopen ();
11102   ;
11103   return 0;
11104 }
11105 _ACEOF
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (ac_try="$ac_link"
11108 case "(($ac_try" in
11109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110   *) ac_try_echo=$ac_try;;
11111 esac
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113   (eval "$ac_link") 2>conftest.er1
11114   ac_status=$?
11115   grep -v '^ *+' conftest.er1 >conftest.err
11116   rm -f conftest.er1
11117   cat conftest.err >&5
11118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119   (exit $ac_status); } && {
11120          test -z "$ac_c_werror_flag" ||
11121          test ! -s conftest.err
11122        } && test -s conftest$ac_exeext &&
11123        $as_test_x conftest$ac_exeext; then
11124   ac_cv_func_dlopen=yes
11125 else
11126   echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11128
11129         ac_cv_func_dlopen=no
11130 fi
11131
11132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11133       conftest$ac_exeext conftest.$ac_ext
11134 fi
11135 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11136 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11137 if test $ac_cv_func_dlopen = yes; then
11138   lt_cv_dlopen="dlopen"
11139 else
11140   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11141 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11142 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11143   echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145   ac_check_lib_save_LIBS=$LIBS
11146 LIBS="-ldl  $LIBS"
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h.  */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h.  */
11153
11154 /* Override any GCC internal prototype to avoid an error.
11155    Use char because int might match the return type of a GCC
11156    builtin and then its argument prototype would still apply.  */
11157 #ifdef __cplusplus
11158 extern "C"
11159 #endif
11160 char dlopen ();
11161 int
11162 main ()
11163 {
11164 return dlopen ();
11165   ;
11166   return 0;
11167 }
11168 _ACEOF
11169 rm -f conftest.$ac_objext conftest$ac_exeext
11170 if { (ac_try="$ac_link"
11171 case "(($ac_try" in
11172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173   *) ac_try_echo=$ac_try;;
11174 esac
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176   (eval "$ac_link") 2>conftest.er1
11177   ac_status=$?
11178   grep -v '^ *+' conftest.er1 >conftest.err
11179   rm -f conftest.er1
11180   cat conftest.err >&5
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); } && {
11183          test -z "$ac_c_werror_flag" ||
11184          test ! -s conftest.err
11185        } && test -s conftest$ac_exeext &&
11186        $as_test_x conftest$ac_exeext; then
11187   ac_cv_lib_dl_dlopen=yes
11188 else
11189   echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11191
11192         ac_cv_lib_dl_dlopen=no
11193 fi
11194
11195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11196       conftest$ac_exeext conftest.$ac_ext
11197 LIBS=$ac_check_lib_save_LIBS
11198 fi
11199 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11200 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11201 if test $ac_cv_lib_dl_dlopen = yes; then
11202   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11203 else
11204   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11205 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11206 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11207   echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209   ac_check_lib_save_LIBS=$LIBS
11210 LIBS="-lsvld  $LIBS"
11211 cat >conftest.$ac_ext <<_ACEOF
11212 /* confdefs.h.  */
11213 _ACEOF
11214 cat confdefs.h >>conftest.$ac_ext
11215 cat >>conftest.$ac_ext <<_ACEOF
11216 /* end confdefs.h.  */
11217
11218 /* Override any GCC internal prototype to avoid an error.
11219    Use char because int might match the return type of a GCC
11220    builtin and then its argument prototype would still apply.  */
11221 #ifdef __cplusplus
11222 extern "C"
11223 #endif
11224 char dlopen ();
11225 int
11226 main ()
11227 {
11228 return dlopen ();
11229   ;
11230   return 0;
11231 }
11232 _ACEOF
11233 rm -f conftest.$ac_objext conftest$ac_exeext
11234 if { (ac_try="$ac_link"
11235 case "(($ac_try" in
11236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237   *) ac_try_echo=$ac_try;;
11238 esac
11239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240   (eval "$ac_link") 2>conftest.er1
11241   ac_status=$?
11242   grep -v '^ *+' conftest.er1 >conftest.err
11243   rm -f conftest.er1
11244   cat conftest.err >&5
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); } && {
11247          test -z "$ac_c_werror_flag" ||
11248          test ! -s conftest.err
11249        } && test -s conftest$ac_exeext &&
11250        $as_test_x conftest$ac_exeext; then
11251   ac_cv_lib_svld_dlopen=yes
11252 else
11253   echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11255
11256         ac_cv_lib_svld_dlopen=no
11257 fi
11258
11259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11260       conftest$ac_exeext conftest.$ac_ext
11261 LIBS=$ac_check_lib_save_LIBS
11262 fi
11263 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11264 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11265 if test $ac_cv_lib_svld_dlopen = yes; then
11266   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11267 else
11268   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11269 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11270 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11271   echo $ECHO_N "(cached) $ECHO_C" >&6
11272 else
11273   ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-ldld  $LIBS"
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h.  */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h.  */
11281
11282 /* Override any GCC internal prototype to avoid an error.
11283    Use char because int might match the return type of a GCC
11284    builtin and then its argument prototype would still apply.  */
11285 #ifdef __cplusplus
11286 extern "C"
11287 #endif
11288 char dld_link ();
11289 int
11290 main ()
11291 {
11292 return dld_link ();
11293   ;
11294   return 0;
11295 }
11296 _ACEOF
11297 rm -f conftest.$ac_objext conftest$ac_exeext
11298 if { (ac_try="$ac_link"
11299 case "(($ac_try" in
11300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301   *) ac_try_echo=$ac_try;;
11302 esac
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304   (eval "$ac_link") 2>conftest.er1
11305   ac_status=$?
11306   grep -v '^ *+' conftest.er1 >conftest.err
11307   rm -f conftest.er1
11308   cat conftest.err >&5
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); } && {
11311          test -z "$ac_c_werror_flag" ||
11312          test ! -s conftest.err
11313        } && test -s conftest$ac_exeext &&
11314        $as_test_x conftest$ac_exeext; then
11315   ac_cv_lib_dld_dld_link=yes
11316 else
11317   echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11319
11320         ac_cv_lib_dld_dld_link=no
11321 fi
11322
11323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11324       conftest$ac_exeext conftest.$ac_ext
11325 LIBS=$ac_check_lib_save_LIBS
11326 fi
11327 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11328 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11329 if test $ac_cv_lib_dld_dld_link = yes; then
11330   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11331 fi
11332
11333
11334 fi
11335
11336
11337 fi
11338
11339
11340 fi
11341
11342
11343 fi
11344
11345
11346 fi
11347
11348     ;;
11349   esac
11350
11351   if test "x$lt_cv_dlopen" != xno; then
11352     enable_dlopen=yes
11353   else
11354     enable_dlopen=no
11355   fi
11356
11357   case $lt_cv_dlopen in
11358   dlopen)
11359     save_CPPFLAGS="$CPPFLAGS"
11360     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11361
11362     save_LDFLAGS="$LDFLAGS"
11363     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11364
11365     save_LIBS="$LIBS"
11366     LIBS="$lt_cv_dlopen_libs $LIBS"
11367
11368     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11369 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11370 if test "${lt_cv_dlopen_self+set}" = set; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373           if test "$cross_compiling" = yes; then :
11374   lt_cv_dlopen_self=cross
11375 else
11376   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11377   lt_status=$lt_dlunknown
11378   cat > conftest.$ac_ext <<EOF
11379 #line 11379 "configure"
11380 #include "confdefs.h"
11381
11382 #if HAVE_DLFCN_H
11383 #include <dlfcn.h>
11384 #endif
11385
11386 #include <stdio.h>
11387
11388 #ifdef RTLD_GLOBAL
11389 #  define LT_DLGLOBAL           RTLD_GLOBAL
11390 #else
11391 #  ifdef DL_GLOBAL
11392 #    define LT_DLGLOBAL         DL_GLOBAL
11393 #  else
11394 #    define LT_DLGLOBAL         0
11395 #  endif
11396 #endif
11397
11398 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11399    find out it does not work in some platform. */
11400 #ifndef LT_DLLAZY_OR_NOW
11401 #  ifdef RTLD_LAZY
11402 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11403 #  else
11404 #    ifdef DL_LAZY
11405 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11406 #    else
11407 #      ifdef RTLD_NOW
11408 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11409 #      else
11410 #        ifdef DL_NOW
11411 #          define LT_DLLAZY_OR_NOW      DL_NOW
11412 #        else
11413 #          define LT_DLLAZY_OR_NOW      0
11414 #        endif
11415 #      endif
11416 #    endif
11417 #  endif
11418 #endif
11419
11420 #ifdef __cplusplus
11421 extern "C" void exit (int);
11422 #endif
11423
11424 void fnord() { int i=42;}
11425 int main ()
11426 {
11427   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11428   int status = $lt_dlunknown;
11429
11430   if (self)
11431     {
11432       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11433       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11434       /* dlclose (self); */
11435     }
11436   else
11437     puts (dlerror ());
11438
11439     exit (status);
11440 }
11441 EOF
11442   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11443   (eval $ac_link) 2>&5
11444   ac_status=$?
11445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11447     (./conftest; exit; ) >&5 2>/dev/null
11448     lt_status=$?
11449     case x$lt_status in
11450       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11451       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11452       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11453     esac
11454   else :
11455     # compilation failed
11456     lt_cv_dlopen_self=no
11457   fi
11458 fi
11459 rm -fr conftest*
11460
11461
11462 fi
11463 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11464 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11465
11466     if test "x$lt_cv_dlopen_self" = xyes; then
11467       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11468       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11469 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11470 if test "${lt_cv_dlopen_self_static+set}" = set; then
11471   echo $ECHO_N "(cached) $ECHO_C" >&6
11472 else
11473           if test "$cross_compiling" = yes; then :
11474   lt_cv_dlopen_self_static=cross
11475 else
11476   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11477   lt_status=$lt_dlunknown
11478   cat > conftest.$ac_ext <<EOF
11479 #line 11479 "configure"
11480 #include "confdefs.h"
11481
11482 #if HAVE_DLFCN_H
11483 #include <dlfcn.h>
11484 #endif
11485
11486 #include <stdio.h>
11487
11488 #ifdef RTLD_GLOBAL
11489 #  define LT_DLGLOBAL           RTLD_GLOBAL
11490 #else
11491 #  ifdef DL_GLOBAL
11492 #    define LT_DLGLOBAL         DL_GLOBAL
11493 #  else
11494 #    define LT_DLGLOBAL         0
11495 #  endif
11496 #endif
11497
11498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11499    find out it does not work in some platform. */
11500 #ifndef LT_DLLAZY_OR_NOW
11501 #  ifdef RTLD_LAZY
11502 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11503 #  else
11504 #    ifdef DL_LAZY
11505 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11506 #    else
11507 #      ifdef RTLD_NOW
11508 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11509 #      else
11510 #        ifdef DL_NOW
11511 #          define LT_DLLAZY_OR_NOW      DL_NOW
11512 #        else
11513 #          define LT_DLLAZY_OR_NOW      0
11514 #        endif
11515 #      endif
11516 #    endif
11517 #  endif
11518 #endif
11519
11520 #ifdef __cplusplus
11521 extern "C" void exit (int);
11522 #endif
11523
11524 void fnord() { int i=42;}
11525 int main ()
11526 {
11527   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11528   int status = $lt_dlunknown;
11529
11530   if (self)
11531     {
11532       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11533       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11534       /* dlclose (self); */
11535     }
11536   else
11537     puts (dlerror ());
11538
11539     exit (status);
11540 }
11541 EOF
11542   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11543   (eval $ac_link) 2>&5
11544   ac_status=$?
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11547     (./conftest; exit; ) >&5 2>/dev/null
11548     lt_status=$?
11549     case x$lt_status in
11550       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11551       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11552       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11553     esac
11554   else :
11555     # compilation failed
11556     lt_cv_dlopen_self_static=no
11557   fi
11558 fi
11559 rm -fr conftest*
11560
11561
11562 fi
11563 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11564 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11565     fi
11566
11567     CPPFLAGS="$save_CPPFLAGS"
11568     LDFLAGS="$save_LDFLAGS"
11569     LIBS="$save_LIBS"
11570     ;;
11571   esac
11572
11573   case $lt_cv_dlopen_self in
11574   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11575   *) enable_dlopen_self=unknown ;;
11576   esac
11577
11578   case $lt_cv_dlopen_self_static in
11579   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11580   *) enable_dlopen_self_static=unknown ;;
11581   esac
11582 fi
11583
11584
11585 # Report which library types will actually be built
11586 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11587 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11588 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11589 echo "${ECHO_T}$can_build_shared" >&6; }
11590
11591 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11592 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11593 test "$can_build_shared" = "no" && enable_shared=no
11594
11595 # On AIX, shared libraries and static libraries use the same namespace, and
11596 # are all built from PIC.
11597 case $host_os in
11598 aix3*)
11599   test "$enable_shared" = yes && enable_static=no
11600   if test -n "$RANLIB"; then
11601     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11602     postinstall_cmds='$RANLIB $lib'
11603   fi
11604   ;;
11605
11606 aix4* | aix5*)
11607   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11608     test "$enable_shared" = yes && enable_static=no
11609   fi
11610     ;;
11611 esac
11612 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11613 echo "${ECHO_T}$enable_shared" >&6; }
11614
11615 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11616 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11617 # Make sure either enable_shared or enable_static is yes.
11618 test "$enable_shared" = yes || enable_static=yes
11619 { echo "$as_me:$LINENO: result: $enable_static" >&5
11620 echo "${ECHO_T}$enable_static" >&6; }
11621
11622 # The else clause should only fire when bootstrapping the
11623 # libtool distribution, otherwise you forgot to ship ltmain.sh
11624 # with your package, and you will get complaints that there are
11625 # no rules to generate ltmain.sh.
11626 if test -f "$ltmain"; then
11627   # See if we are running on zsh, and set the options which allow our commands through
11628   # without removal of \ escapes.
11629   if test -n "${ZSH_VERSION+set}" ; then
11630     setopt NO_GLOB_SUBST
11631   fi
11632   # Now quote all the things that may contain metacharacters while being
11633   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11634   # variables and quote the copies for generation of the libtool script.
11635   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11636     SED SHELL STRIP \
11637     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11638     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11639     deplibs_check_method reload_flag reload_cmds need_locks \
11640     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11641     lt_cv_sys_global_symbol_to_c_name_address \
11642     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11643     old_postinstall_cmds old_postuninstall_cmds \
11644     compiler \
11645     CC \
11646     LD \
11647     lt_prog_compiler_wl \
11648     lt_prog_compiler_pic \
11649     lt_prog_compiler_static \
11650     lt_prog_compiler_no_builtin_flag \
11651     export_dynamic_flag_spec \
11652     thread_safe_flag_spec \
11653     whole_archive_flag_spec \
11654     enable_shared_with_static_runtimes \
11655     old_archive_cmds \
11656     old_archive_from_new_cmds \
11657     predep_objects \
11658     postdep_objects \
11659     predeps \
11660     postdeps \
11661     compiler_lib_search_path \
11662     archive_cmds \
11663     archive_expsym_cmds \
11664     postinstall_cmds \
11665     postuninstall_cmds \
11666     old_archive_from_expsyms_cmds \
11667     allow_undefined_flag \
11668     no_undefined_flag \
11669     export_symbols_cmds \
11670     hardcode_libdir_flag_spec \
11671     hardcode_libdir_flag_spec_ld \
11672     hardcode_libdir_separator \
11673     hardcode_automatic \
11674     module_cmds \
11675     module_expsym_cmds \
11676     lt_cv_prog_compiler_c_o \
11677     exclude_expsyms \
11678     include_expsyms; do
11679
11680     case $var in
11681     old_archive_cmds | \
11682     old_archive_from_new_cmds | \
11683     archive_cmds | \
11684     archive_expsym_cmds | \
11685     module_cmds | \
11686     module_expsym_cmds | \
11687     old_archive_from_expsyms_cmds | \
11688     export_symbols_cmds | \
11689     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11690     postinstall_cmds | postuninstall_cmds | \
11691     old_postinstall_cmds | old_postuninstall_cmds | \
11692     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11693       # Double-quote double-evaled strings.
11694       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11695       ;;
11696     *)
11697       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11698       ;;
11699     esac
11700   done
11701
11702   case $lt_echo in
11703   *'\$0 --fallback-echo"')
11704     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11705     ;;
11706   esac
11707
11708 cfgfile="${ofile}T"
11709   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11710   $rm -f "$cfgfile"
11711   { echo "$as_me:$LINENO: creating $ofile" >&5
11712 echo "$as_me: creating $ofile" >&6;}
11713
11714   cat <<__EOF__ >> "$cfgfile"
11715 #! $SHELL
11716
11717 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11718 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11719 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11720 #
11721 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11722 # Free Software Foundation, Inc.
11723 #
11724 # This file is part of GNU Libtool:
11725 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11726 #
11727 # This program is free software; you can redistribute it and/or modify
11728 # it under the terms of the GNU General Public License as published by
11729 # the Free Software Foundation; either version 2 of the License, or
11730 # (at your option) any later version.
11731 #
11732 # This program is distributed in the hope that it will be useful, but
11733 # WITHOUT ANY WARRANTY; without even the implied warranty of
11734 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11735 # General Public License for more details.
11736 #
11737 # You should have received a copy of the GNU General Public License
11738 # along with this program; if not, write to the Free Software
11739 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11740 #
11741 # As a special exception to the GNU General Public License, if you
11742 # distribute this file as part of a program that contains a
11743 # configuration script generated by Autoconf, you may include it under
11744 # the same distribution terms that you use for the rest of that program.
11745
11746 # A sed program that does not truncate output.
11747 SED=$lt_SED
11748
11749 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11750 Xsed="$SED -e 1s/^X//"
11751
11752 # The HP-UX ksh and POSIX shell print the target directory to stdout
11753 # if CDPATH is set.
11754 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11755
11756 # The names of the tagged configurations supported by this script.
11757 available_tags=
11758
11759 # ### BEGIN LIBTOOL CONFIG
11760
11761 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11762
11763 # Shell to use when invoking shell scripts.
11764 SHELL=$lt_SHELL
11765
11766 # Whether or not to build shared libraries.
11767 build_libtool_libs=$enable_shared
11768
11769 # Whether or not to build static libraries.
11770 build_old_libs=$enable_static
11771
11772 # Whether or not to add -lc for building shared libraries.
11773 build_libtool_need_lc=$archive_cmds_need_lc
11774
11775 # Whether or not to disallow shared libs when runtime libs are static
11776 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11777
11778 # Whether or not to optimize for fast installation.
11779 fast_install=$enable_fast_install
11780
11781 # The host system.
11782 host_alias=$host_alias
11783 host=$host
11784 host_os=$host_os
11785
11786 # The build system.
11787 build_alias=$build_alias
11788 build=$build
11789 build_os=$build_os
11790
11791 # An echo program that does not interpret backslashes.
11792 echo=$lt_echo
11793
11794 # The archiver.
11795 AR=$lt_AR
11796 AR_FLAGS=$lt_AR_FLAGS
11797
11798 # A C compiler.
11799 LTCC=$lt_LTCC
11800
11801 # LTCC compiler flags.
11802 LTCFLAGS=$lt_LTCFLAGS
11803
11804 # A language-specific compiler.
11805 CC=$lt_compiler
11806
11807 # Is the compiler the GNU C compiler?
11808 with_gcc=$GCC
11809
11810 # An ERE matcher.
11811 EGREP=$lt_EGREP
11812
11813 # The linker used to build libraries.
11814 LD=$lt_LD
11815
11816 # Whether we need hard or soft links.
11817 LN_S=$lt_LN_S
11818
11819 # A BSD-compatible nm program.
11820 NM=$lt_NM
11821
11822 # A symbol stripping program
11823 STRIP=$lt_STRIP
11824
11825 # Used to examine libraries when file_magic_cmd begins "file"
11826 MAGIC_CMD=$MAGIC_CMD
11827
11828 # Used on cygwin: DLL creation program.
11829 DLLTOOL="$DLLTOOL"
11830
11831 # Used on cygwin: object dumper.
11832 OBJDUMP="$OBJDUMP"
11833
11834 # Used on cygwin: assembler.
11835 AS="$AS"
11836
11837 # The name of the directory that contains temporary libtool files.
11838 objdir=$objdir
11839
11840 # How to create reloadable object files.
11841 reload_flag=$lt_reload_flag
11842 reload_cmds=$lt_reload_cmds
11843
11844 # How to pass a linker flag through the compiler.
11845 wl=$lt_lt_prog_compiler_wl
11846
11847 # Object file suffix (normally "o").
11848 objext="$ac_objext"
11849
11850 # Old archive suffix (normally "a").
11851 libext="$libext"
11852
11853 # Shared library suffix (normally ".so").
11854 shrext_cmds='$shrext_cmds'
11855
11856 # Executable file suffix (normally "").
11857 exeext="$exeext"
11858
11859 # Additional compiler flags for building library objects.
11860 pic_flag=$lt_lt_prog_compiler_pic
11861 pic_mode=$pic_mode
11862
11863 # What is the maximum length of a command?
11864 max_cmd_len=$lt_cv_sys_max_cmd_len
11865
11866 # Does compiler simultaneously support -c and -o options?
11867 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11868
11869 # Must we lock files when doing compilation?
11870 need_locks=$lt_need_locks
11871
11872 # Do we need the lib prefix for modules?
11873 need_lib_prefix=$need_lib_prefix
11874
11875 # Do we need a version for libraries?
11876 need_version=$need_version
11877
11878 # Whether dlopen is supported.
11879 dlopen_support=$enable_dlopen
11880
11881 # Whether dlopen of programs is supported.
11882 dlopen_self=$enable_dlopen_self
11883
11884 # Whether dlopen of statically linked programs is supported.
11885 dlopen_self_static=$enable_dlopen_self_static
11886
11887 # Compiler flag to prevent dynamic linking.
11888 link_static_flag=$lt_lt_prog_compiler_static
11889
11890 # Compiler flag to turn off builtin functions.
11891 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11892
11893 # Compiler flag to allow reflexive dlopens.
11894 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11895
11896 # Compiler flag to generate shared objects directly from archives.
11897 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11898
11899 # Compiler flag to generate thread-safe objects.
11900 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11901
11902 # Library versioning type.
11903 version_type=$version_type
11904
11905 # Format of library name prefix.
11906 libname_spec=$lt_libname_spec
11907
11908 # List of archive names.  First name is the real one, the rest are links.
11909 # The last name is the one that the linker finds with -lNAME.
11910 library_names_spec=$lt_library_names_spec
11911
11912 # The coded name of the library, if different from the real name.
11913 soname_spec=$lt_soname_spec
11914
11915 # Commands used to build and install an old-style archive.
11916 RANLIB=$lt_RANLIB
11917 old_archive_cmds=$lt_old_archive_cmds
11918 old_postinstall_cmds=$lt_old_postinstall_cmds
11919 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11920
11921 # Create an old-style archive from a shared archive.
11922 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11923
11924 # Create a temporary old-style archive to link instead of a shared archive.
11925 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11926
11927 # Commands used to build and install a shared archive.
11928 archive_cmds=$lt_archive_cmds
11929 archive_expsym_cmds=$lt_archive_expsym_cmds
11930 postinstall_cmds=$lt_postinstall_cmds
11931 postuninstall_cmds=$lt_postuninstall_cmds
11932
11933 # Commands used to build a loadable module (assumed same as above if empty)
11934 module_cmds=$lt_module_cmds
11935 module_expsym_cmds=$lt_module_expsym_cmds
11936
11937 # Commands to strip libraries.
11938 old_striplib=$lt_old_striplib
11939 striplib=$lt_striplib
11940
11941 # Dependencies to place before the objects being linked to create a
11942 # shared library.
11943 predep_objects=$lt_predep_objects
11944
11945 # Dependencies to place after the objects being linked to create a
11946 # shared library.
11947 postdep_objects=$lt_postdep_objects
11948
11949 # Dependencies to place before the objects being linked to create a
11950 # shared library.
11951 predeps=$lt_predeps
11952
11953 # Dependencies to place after the objects being linked to create a
11954 # shared library.
11955 postdeps=$lt_postdeps
11956
11957 # The library search path used internally by the compiler when linking
11958 # a shared library.
11959 compiler_lib_search_path=$lt_compiler_lib_search_path
11960
11961 # Method to check whether dependent libraries are shared objects.
11962 deplibs_check_method=$lt_deplibs_check_method
11963
11964 # Command to use when deplibs_check_method == file_magic.
11965 file_magic_cmd=$lt_file_magic_cmd
11966
11967 # Flag that allows shared libraries with undefined symbols to be built.
11968 allow_undefined_flag=$lt_allow_undefined_flag
11969
11970 # Flag that forces no undefined symbols.
11971 no_undefined_flag=$lt_no_undefined_flag
11972
11973 # Commands used to finish a libtool library installation in a directory.
11974 finish_cmds=$lt_finish_cmds
11975
11976 # Same as above, but a single script fragment to be evaled but not shown.
11977 finish_eval=$lt_finish_eval
11978
11979 # Take the output of nm and produce a listing of raw symbols and C names.
11980 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11981
11982 # Transform the output of nm in a proper C declaration
11983 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11984
11985 # Transform the output of nm in a C name address pair
11986 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11987
11988 # This is the shared library runtime path variable.
11989 runpath_var=$runpath_var
11990
11991 # This is the shared library path variable.
11992 shlibpath_var=$shlibpath_var
11993
11994 # Is shlibpath searched before the hard-coded library search path?
11995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11996
11997 # How to hardcode a shared library path into an executable.
11998 hardcode_action=$hardcode_action
11999
12000 # Whether we should hardcode library paths into libraries.
12001 hardcode_into_libs=$hardcode_into_libs
12002
12003 # Flag to hardcode \$libdir into a binary during linking.
12004 # This must work even if \$libdir does not exist.
12005 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12006
12007 # If ld is used when linking, flag to hardcode \$libdir into
12008 # a binary during linking. This must work even if \$libdir does
12009 # not exist.
12010 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12011
12012 # Whether we need a single -rpath flag with a separated argument.
12013 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12014
12015 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12016 # resulting binary.
12017 hardcode_direct=$hardcode_direct
12018
12019 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12020 # resulting binary.
12021 hardcode_minus_L=$hardcode_minus_L
12022
12023 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12024 # the resulting binary.
12025 hardcode_shlibpath_var=$hardcode_shlibpath_var
12026
12027 # Set to yes if building a shared library automatically hardcodes DIR into the library
12028 # and all subsequent libraries and executables linked against it.
12029 hardcode_automatic=$hardcode_automatic
12030
12031 # Variables whose values should be saved in libtool wrapper scripts and
12032 # restored at relink time.
12033 variables_saved_for_relink="$variables_saved_for_relink"
12034
12035 # Whether libtool must link a program against all its dependency libraries.
12036 link_all_deplibs=$link_all_deplibs
12037
12038 # Compile-time system search path for libraries
12039 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12040
12041 # Run-time system search path for libraries
12042 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12043
12044 # Fix the shell variable \$srcfile for the compiler.
12045 fix_srcfile_path="$fix_srcfile_path"
12046
12047 # Set to yes if exported symbols are required.
12048 always_export_symbols=$always_export_symbols
12049
12050 # The commands to list exported symbols.
12051 export_symbols_cmds=$lt_export_symbols_cmds
12052
12053 # The commands to extract the exported symbol list from a shared archive.
12054 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12055
12056 # Symbols that should not be listed in the preloaded symbols.
12057 exclude_expsyms=$lt_exclude_expsyms
12058
12059 # Symbols that must always be exported.
12060 include_expsyms=$lt_include_expsyms
12061
12062 # ### END LIBTOOL CONFIG
12063
12064 __EOF__
12065
12066
12067   case $host_os in
12068   aix3*)
12069     cat <<\EOF >> "$cfgfile"
12070
12071 # AIX sometimes has problems with the GCC collect2 program.  For some
12072 # reason, if we set the COLLECT_NAMES environment variable, the problems
12073 # vanish in a puff of smoke.
12074 if test "X${COLLECT_NAMES+set}" != Xset; then
12075   COLLECT_NAMES=
12076   export COLLECT_NAMES
12077 fi
12078 EOF
12079     ;;
12080   esac
12081
12082   # We use sed instead of cat because bash on DJGPP gets confused if
12083   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12084   # text mode, it properly converts lines to CR/LF.  This bash problem
12085   # is reportedly fixed, but why not run on old versions too?
12086   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12087
12088   mv -f "$cfgfile" "$ofile" || \
12089     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12090   chmod +x "$ofile"
12091
12092 else
12093   # If there is no Makefile yet, we rely on a make rule to execute
12094   # `config.status --recheck' to rerun these tests and create the
12095   # libtool script then.
12096   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12097   if test -f "$ltmain_in"; then
12098     test -f Makefile && make "$ltmain"
12099   fi
12100 fi
12101
12102
12103 ac_ext=c
12104 ac_cpp='$CPP $CPPFLAGS'
12105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12108
12109 CC="$lt_save_CC"
12110
12111
12112 # Check whether --with-tags was given.
12113 if test "${with_tags+set}" = set; then
12114   withval=$with_tags; tagnames="$withval"
12115 fi
12116
12117
12118 if test -f "$ltmain" && test -n "$tagnames"; then
12119   if test ! -f "${ofile}"; then
12120     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12121 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12122   fi
12123
12124   if test -z "$LTCC"; then
12125     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12126     if test -z "$LTCC"; then
12127       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12128 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12129     else
12130       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12131 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12132     fi
12133   fi
12134   if test -z "$LTCFLAGS"; then
12135     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12136   fi
12137
12138   # Extract list of available tagged configurations in $ofile.
12139   # Note that this assumes the entire list is on one line.
12140   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12141
12142   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12143   for tagname in $tagnames; do
12144     IFS="$lt_save_ifs"
12145     # Check whether tagname contains only valid characters
12146     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12147     "") ;;
12148     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12149 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12150    { (exit 1); exit 1; }; }
12151         ;;
12152     esac
12153
12154     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12155     then
12156       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12157 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12158    { (exit 1); exit 1; }; }
12159     fi
12160
12161     # Update the list of available tags.
12162     if test -n "$tagname"; then
12163       echo appending configuration tag \"$tagname\" to $ofile
12164
12165       case $tagname in
12166       CXX)
12167         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12168             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12169             (test "X$CXX" != "Xg++"))) ; then
12170           ac_ext=cpp
12171 ac_cpp='$CXXCPP $CPPFLAGS'
12172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12175
12176
12177
12178
12179 archive_cmds_need_lc_CXX=no
12180 allow_undefined_flag_CXX=
12181 always_export_symbols_CXX=no
12182 archive_expsym_cmds_CXX=
12183 export_dynamic_flag_spec_CXX=
12184 hardcode_direct_CXX=no
12185 hardcode_libdir_flag_spec_CXX=
12186 hardcode_libdir_flag_spec_ld_CXX=
12187 hardcode_libdir_separator_CXX=
12188 hardcode_minus_L_CXX=no
12189 hardcode_shlibpath_var_CXX=unsupported
12190 hardcode_automatic_CXX=no
12191 module_cmds_CXX=
12192 module_expsym_cmds_CXX=
12193 link_all_deplibs_CXX=unknown
12194 old_archive_cmds_CXX=$old_archive_cmds
12195 no_undefined_flag_CXX=
12196 whole_archive_flag_spec_CXX=
12197 enable_shared_with_static_runtimes_CXX=no
12198
12199 # Dependencies to place before and after the object being linked:
12200 predep_objects_CXX=
12201 postdep_objects_CXX=
12202 predeps_CXX=
12203 postdeps_CXX=
12204 compiler_lib_search_path_CXX=
12205
12206 # Source file extension for C++ test sources.
12207 ac_ext=cpp
12208
12209 # Object file extension for compiled C++ test sources.
12210 objext=o
12211 objext_CXX=$objext
12212
12213 # Code to be used in simple compile tests
12214 lt_simple_compile_test_code="int some_variable = 0;\n"
12215
12216 # Code to be used in simple link tests
12217 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12218
12219 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12220
12221 # If no C compiler was specified, use CC.
12222 LTCC=${LTCC-"$CC"}
12223
12224 # If no C compiler flags were specified, use CFLAGS.
12225 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12226
12227 # Allow CC to be a program name with arguments.
12228 compiler=$CC
12229
12230
12231 # save warnings/boilerplate of simple test code
12232 ac_outfile=conftest.$ac_objext
12233 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12234 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12235 _lt_compiler_boilerplate=`cat conftest.err`
12236 $rm conftest*
12237
12238 ac_outfile=conftest.$ac_objext
12239 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12240 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12241 _lt_linker_boilerplate=`cat conftest.err`
12242 $rm conftest*
12243
12244
12245 # Allow CC to be a program name with arguments.
12246 lt_save_CC=$CC
12247 lt_save_LD=$LD
12248 lt_save_GCC=$GCC
12249 GCC=$GXX
12250 lt_save_with_gnu_ld=$with_gnu_ld
12251 lt_save_path_LD=$lt_cv_path_LD
12252 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12253   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12254 else
12255   $as_unset lt_cv_prog_gnu_ld
12256 fi
12257 if test -n "${lt_cv_path_LDCXX+set}"; then
12258   lt_cv_path_LD=$lt_cv_path_LDCXX
12259 else
12260   $as_unset lt_cv_path_LD
12261 fi
12262 test -z "${LDCXX+set}" || LD=$LDCXX
12263 CC=${CXX-"c++"}
12264 compiler=$CC
12265 compiler_CXX=$CC
12266 for cc_temp in $compiler""; do
12267   case $cc_temp in
12268     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12269     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12270     \-*) ;;
12271     *) break;;
12272   esac
12273 done
12274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12275
12276
12277 # We don't want -fno-exception wen compiling C++ code, so set the
12278 # no_builtin_flag separately
12279 if test "$GXX" = yes; then
12280   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12281 else
12282   lt_prog_compiler_no_builtin_flag_CXX=
12283 fi
12284
12285 if test "$GXX" = yes; then
12286   # Set up default GNU C++ configuration
12287
12288
12289 # Check whether --with-gnu-ld was given.
12290 if test "${with_gnu_ld+set}" = set; then
12291   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12292 else
12293   with_gnu_ld=no
12294 fi
12295
12296 ac_prog=ld
12297 if test "$GCC" = yes; then
12298   # Check if gcc -print-prog-name=ld gives a path.
12299   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12300 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12301   case $host in
12302   *-*-mingw*)
12303     # gcc leaves a trailing carriage return which upsets mingw
12304     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12305   *)
12306     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12307   esac
12308   case $ac_prog in
12309     # Accept absolute paths.
12310     [\\/]* | ?:[\\/]*)
12311       re_direlt='/[^/][^/]*/\.\./'
12312       # Canonicalize the pathname of ld
12313       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12314       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12315         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12316       done
12317       test -z "$LD" && LD="$ac_prog"
12318       ;;
12319   "")
12320     # If it fails, then pretend we aren't using GCC.
12321     ac_prog=ld
12322     ;;
12323   *)
12324     # If it is relative, then search for the first ld in PATH.
12325     with_gnu_ld=unknown
12326     ;;
12327   esac
12328 elif test "$with_gnu_ld" = yes; then
12329   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12330 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12331 else
12332   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12333 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12334 fi
12335 if test "${lt_cv_path_LD+set}" = set; then
12336   echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338   if test -z "$LD"; then
12339   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12340   for ac_dir in $PATH; do
12341     IFS="$lt_save_ifs"
12342     test -z "$ac_dir" && ac_dir=.
12343     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12344       lt_cv_path_LD="$ac_dir/$ac_prog"
12345       # Check to see if the program is GNU ld.  I'd rather use --version,
12346       # but apparently some variants of GNU ld only accept -v.
12347       # Break only if it was the GNU/non-GNU ld that we prefer.
12348       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12349       *GNU* | *'with BFD'*)
12350         test "$with_gnu_ld" != no && break
12351         ;;
12352       *)
12353         test "$with_gnu_ld" != yes && break
12354         ;;
12355       esac
12356     fi
12357   done
12358   IFS="$lt_save_ifs"
12359 else
12360   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12361 fi
12362 fi
12363
12364 LD="$lt_cv_path_LD"
12365 if test -n "$LD"; then
12366   { echo "$as_me:$LINENO: result: $LD" >&5
12367 echo "${ECHO_T}$LD" >&6; }
12368 else
12369   { echo "$as_me:$LINENO: result: no" >&5
12370 echo "${ECHO_T}no" >&6; }
12371 fi
12372 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12373 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12374    { (exit 1); exit 1; }; }
12375 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12376 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12377 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12378   echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12381 case `$LD -v 2>&1 </dev/null` in
12382 *GNU* | *'with BFD'*)
12383   lt_cv_prog_gnu_ld=yes
12384   ;;
12385 *)
12386   lt_cv_prog_gnu_ld=no
12387   ;;
12388 esac
12389 fi
12390 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12391 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12392 with_gnu_ld=$lt_cv_prog_gnu_ld
12393
12394
12395
12396   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12397   # archiving commands below assume that GNU ld is being used.
12398   if test "$with_gnu_ld" = yes; then
12399     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12400     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12401
12402     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12403     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12404
12405     # If archive_cmds runs LD, not CC, wlarc should be empty
12406     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12407     #     investigate it a little bit more. (MM)
12408     wlarc='${wl}'
12409
12410     # ancient GNU ld didn't support --whole-archive et. al.
12411     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12412         grep 'no-whole-archive' > /dev/null; then
12413       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12414     else
12415       whole_archive_flag_spec_CXX=
12416     fi
12417   else
12418     with_gnu_ld=no
12419     wlarc=
12420
12421     # A generic and very simple default shared library creation
12422     # command for GNU C++ for the case where it uses the native
12423     # linker, instead of GNU ld.  If possible, this setting should
12424     # overridden to take advantage of the native linker features on
12425     # the platform it is being used on.
12426     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12427   fi
12428
12429   # Commands to make compiler produce verbose output that lists
12430   # what "hidden" libraries, object files and flags are used when
12431   # linking a shared library.
12432   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12433
12434 else
12435   GXX=no
12436   with_gnu_ld=no
12437   wlarc=
12438 fi
12439
12440 # PORTME: fill in a description of your system's C++ link characteristics
12441 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12442 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12443 ld_shlibs_CXX=yes
12444 case $host_os in
12445   aix3*)
12446     # FIXME: insert proper C++ library support
12447     ld_shlibs_CXX=no
12448     ;;
12449   aix4* | aix5*)
12450     if test "$host_cpu" = ia64; then
12451       # On IA64, the linker does run time linking by default, so we don't
12452       # have to do anything special.
12453       aix_use_runtimelinking=no
12454       exp_sym_flag='-Bexport'
12455       no_entry_flag=""
12456     else
12457       aix_use_runtimelinking=no
12458
12459       # Test if we are trying to use run time linking or normal
12460       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12461       # need to do runtime linking.
12462       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12463         for ld_flag in $LDFLAGS; do
12464           case $ld_flag in
12465           *-brtl*)
12466             aix_use_runtimelinking=yes
12467             break
12468             ;;
12469           esac
12470         done
12471         ;;
12472       esac
12473
12474       exp_sym_flag='-bexport'
12475       no_entry_flag='-bnoentry'
12476     fi
12477
12478     # When large executables or shared objects are built, AIX ld can
12479     # have problems creating the table of contents.  If linking a library
12480     # or program results in "error TOC overflow" add -mminimal-toc to
12481     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12482     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12483
12484     archive_cmds_CXX=''
12485     hardcode_direct_CXX=yes
12486     hardcode_libdir_separator_CXX=':'
12487     link_all_deplibs_CXX=yes
12488
12489     if test "$GXX" = yes; then
12490       case $host_os in aix4.[012]|aix4.[012].*)
12491       # We only want to do this on AIX 4.2 and lower, the check
12492       # below for broken collect2 doesn't work under 4.3+
12493         collect2name=`${CC} -print-prog-name=collect2`
12494         if test -f "$collect2name" && \
12495            strings "$collect2name" | grep resolve_lib_name >/dev/null
12496         then
12497           # We have reworked collect2
12498           hardcode_direct_CXX=yes
12499         else
12500           # We have old collect2
12501           hardcode_direct_CXX=unsupported
12502           # It fails to find uninstalled libraries when the uninstalled
12503           # path is not listed in the libpath.  Setting hardcode_minus_L
12504           # to unsupported forces relinking
12505           hardcode_minus_L_CXX=yes
12506           hardcode_libdir_flag_spec_CXX='-L$libdir'
12507           hardcode_libdir_separator_CXX=
12508         fi
12509         ;;
12510       esac
12511       shared_flag='-shared'
12512       if test "$aix_use_runtimelinking" = yes; then
12513         shared_flag="$shared_flag "'${wl}-G'
12514       fi
12515     else
12516       # not using gcc
12517       if test "$host_cpu" = ia64; then
12518         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12519         # chokes on -Wl,-G. The following line is correct:
12520         shared_flag='-G'
12521       else
12522         if test "$aix_use_runtimelinking" = yes; then
12523           shared_flag='${wl}-G'
12524         else
12525           shared_flag='${wl}-bM:SRE'
12526         fi
12527       fi
12528     fi
12529
12530     # It seems that -bexpall does not export symbols beginning with
12531     # underscore (_), so it is better to generate a list of symbols to export.
12532     always_export_symbols_CXX=yes
12533     if test "$aix_use_runtimelinking" = yes; then
12534       # Warning - without using the other runtime loading flags (-brtl),
12535       # -berok will link without error, but may produce a broken library.
12536       allow_undefined_flag_CXX='-berok'
12537       # Determine the default libpath from the value encoded in an empty executable.
12538       cat >conftest.$ac_ext <<_ACEOF
12539 /* confdefs.h.  */
12540 _ACEOF
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h.  */
12544
12545 int
12546 main ()
12547 {
12548
12549   ;
12550   return 0;
12551 }
12552 _ACEOF
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (ac_try="$ac_link"
12555 case "(($ac_try" in
12556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557   *) ac_try_echo=$ac_try;;
12558 esac
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560   (eval "$ac_link") 2>conftest.er1
12561   ac_status=$?
12562   grep -v '^ *+' conftest.er1 >conftest.err
12563   rm -f conftest.er1
12564   cat conftest.err >&5
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); } && {
12567          test -z "$ac_cxx_werror_flag" ||
12568          test ! -s conftest.err
12569        } && test -s conftest$ac_exeext &&
12570        $as_test_x conftest$ac_exeext; then
12571
12572 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12573 }'`
12574 # Check for a 64-bit object if we didn't find anything.
12575 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12576 }'`; fi
12577 else
12578   echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581
12582 fi
12583
12584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12585       conftest$ac_exeext conftest.$ac_ext
12586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12587
12588       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12589
12590       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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12591      else
12592       if test "$host_cpu" = ia64; then
12593         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12594         allow_undefined_flag_CXX="-z nodefs"
12595         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"
12596       else
12597         # Determine the default libpath from the value encoded in an empty executable.
12598         cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h.  */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h.  */
12604
12605 int
12606 main ()
12607 {
12608
12609   ;
12610   return 0;
12611 }
12612 _ACEOF
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617   *) ac_try_echo=$ac_try;;
12618 esac
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620   (eval "$ac_link") 2>conftest.er1
12621   ac_status=$?
12622   grep -v '^ *+' conftest.er1 >conftest.err
12623   rm -f conftest.er1
12624   cat conftest.err >&5
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); } && {
12627          test -z "$ac_cxx_werror_flag" ||
12628          test ! -s conftest.err
12629        } && test -s conftest$ac_exeext &&
12630        $as_test_x conftest$ac_exeext; then
12631
12632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12633 }'`
12634 # Check for a 64-bit object if we didn't find anything.
12635 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12636 }'`; fi
12637 else
12638   echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641
12642 fi
12643
12644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12645       conftest$ac_exeext conftest.$ac_ext
12646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12647
12648         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12649         # Warning - without using the other run time loading flags,
12650         # -berok will link without error, but may produce a broken library.
12651         no_undefined_flag_CXX=' ${wl}-bernotok'
12652         allow_undefined_flag_CXX=' ${wl}-berok'
12653         # Exported symbols can be pulled into shared objects from archives
12654         whole_archive_flag_spec_CXX='$convenience'
12655         archive_cmds_need_lc_CXX=yes
12656         # This is similar to how AIX traditionally builds its shared libraries.
12657         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'
12658       fi
12659     fi
12660     ;;
12661
12662   beos*)
12663     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12664       allow_undefined_flag_CXX=unsupported
12665       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12666       # support --undefined.  This deserves some investigation.  FIXME
12667       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12668     else
12669       ld_shlibs_CXX=no
12670     fi
12671     ;;
12672
12673   chorus*)
12674     case $cc_basename in
12675       *)
12676         # FIXME: insert proper C++ library support
12677         ld_shlibs_CXX=no
12678         ;;
12679     esac
12680     ;;
12681
12682   cygwin* | mingw* | pw32*)
12683     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12684     # as there is no search path for DLLs.
12685     hardcode_libdir_flag_spec_CXX='-L$libdir'
12686     allow_undefined_flag_CXX=unsupported
12687     always_export_symbols_CXX=no
12688     enable_shared_with_static_runtimes_CXX=yes
12689
12690     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12691       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'
12692       # If the export-symbols file already is a .def file (1st line
12693       # is EXPORTS), use it as is; otherwise, prepend...
12694       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12695         cp $export_symbols $output_objdir/$soname.def;
12696       else
12697         echo EXPORTS > $output_objdir/$soname.def;
12698         cat $export_symbols >> $output_objdir/$soname.def;
12699       fi~
12700       $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'
12701     else
12702       ld_shlibs_CXX=no
12703     fi
12704   ;;
12705       darwin* | rhapsody*)
12706         case $host_os in
12707         rhapsody* | darwin1.[012])
12708          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12709          ;;
12710        *) # Darwin 1.3 on
12711          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12712            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12713          else
12714            case ${MACOSX_DEPLOYMENT_TARGET} in
12715              10.[012])
12716                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12717                ;;
12718              10.*)
12719                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12720                ;;
12721            esac
12722          fi
12723          ;;
12724         esac
12725       archive_cmds_need_lc_CXX=no
12726       hardcode_direct_CXX=no
12727       hardcode_automatic_CXX=yes
12728       hardcode_shlibpath_var_CXX=unsupported
12729       whole_archive_flag_spec_CXX=''
12730       link_all_deplibs_CXX=yes
12731
12732     if test "$GXX" = yes ; then
12733       lt_int_apple_cc_single_mod=no
12734       output_verbose_link_cmd='echo'
12735       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12736        lt_int_apple_cc_single_mod=yes
12737       fi
12738       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12739        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12740       else
12741           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'
12742         fi
12743         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12744         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12745           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12746             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12747           else
12748             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12749           fi
12750             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12751       else
12752       case $cc_basename in
12753         xlc*)
12754          output_verbose_link_cmd='echo'
12755           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12756           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12757           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12758           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12759           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12760           ;;
12761        *)
12762          ld_shlibs_CXX=no
12763           ;;
12764       esac
12765       fi
12766         ;;
12767
12768   dgux*)
12769     case $cc_basename in
12770       ec++*)
12771         # FIXME: insert proper C++ library support
12772         ld_shlibs_CXX=no
12773         ;;
12774       ghcx*)
12775         # Green Hills C++ Compiler
12776         # FIXME: insert proper C++ library support
12777         ld_shlibs_CXX=no
12778         ;;
12779       *)
12780         # FIXME: insert proper C++ library support
12781         ld_shlibs_CXX=no
12782         ;;
12783     esac
12784     ;;
12785   freebsd[12]*)
12786     # C++ shared libraries reported to be fairly broken before switch to ELF
12787     ld_shlibs_CXX=no
12788     ;;
12789   freebsd-elf*)
12790     archive_cmds_need_lc_CXX=no
12791     ;;
12792   freebsd* | dragonfly*)
12793     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12794     # conventions
12795     ld_shlibs_CXX=yes
12796     ;;
12797   gnu*)
12798     ;;
12799   hpux9*)
12800     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12801     hardcode_libdir_separator_CXX=:
12802     export_dynamic_flag_spec_CXX='${wl}-E'
12803     hardcode_direct_CXX=yes
12804     hardcode_minus_L_CXX=yes # Not in the search PATH,
12805                                 # but as the default
12806                                 # location of the library.
12807
12808     case $cc_basename in
12809     CC*)
12810       # FIXME: insert proper C++ library support
12811       ld_shlibs_CXX=no
12812       ;;
12813     aCC*)
12814       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'
12815       # Commands to make compiler produce verbose output that lists
12816       # what "hidden" libraries, object files and flags are used when
12817       # linking a shared library.
12818       #
12819       # There doesn't appear to be a way to prevent this compiler from
12820       # explicitly linking system object files so we need to strip them
12821       # from the output so that they don't get included in the library
12822       # dependencies.
12823       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; echo $list'
12824       ;;
12825     *)
12826       if test "$GXX" = yes; then
12827         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12828       else
12829         # FIXME: insert proper C++ library support
12830         ld_shlibs_CXX=no
12831       fi
12832       ;;
12833     esac
12834     ;;
12835   hpux10*|hpux11*)
12836     if test $with_gnu_ld = no; then
12837       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12838       hardcode_libdir_separator_CXX=:
12839
12840       case $host_cpu in
12841       hppa*64*|ia64*)
12842         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12843         ;;
12844       *)
12845         export_dynamic_flag_spec_CXX='${wl}-E'
12846         ;;
12847       esac
12848     fi
12849     case $host_cpu in
12850     hppa*64*|ia64*)
12851       hardcode_direct_CXX=no
12852       hardcode_shlibpath_var_CXX=no
12853       ;;
12854     *)
12855       hardcode_direct_CXX=yes
12856       hardcode_minus_L_CXX=yes # Not in the search PATH,
12857                                               # but as the default
12858                                               # location of the library.
12859       ;;
12860     esac
12861
12862     case $cc_basename in
12863       CC*)
12864         # FIXME: insert proper C++ library support
12865         ld_shlibs_CXX=no
12866         ;;
12867       aCC*)
12868         case $host_cpu in
12869         hppa*64*)
12870           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12871           ;;
12872         ia64*)
12873           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12874           ;;
12875         *)
12876           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12877           ;;
12878         esac
12879         # Commands to make compiler produce verbose output that lists
12880         # what "hidden" libraries, object files and flags are used when
12881         # linking a shared library.
12882         #
12883         # There doesn't appear to be a way to prevent this compiler from
12884         # explicitly linking system object files so we need to strip them
12885         # from the output so that they don't get included in the library
12886         # dependencies.
12887         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; echo $list'
12888         ;;
12889       *)
12890         if test "$GXX" = yes; then
12891           if test $with_gnu_ld = no; then
12892             case $host_cpu in
12893             hppa*64*)
12894               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12895               ;;
12896             ia64*)
12897               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12898               ;;
12899             *)
12900               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12901               ;;
12902             esac
12903           fi
12904         else
12905           # FIXME: insert proper C++ library support
12906           ld_shlibs_CXX=no
12907         fi
12908         ;;
12909     esac
12910     ;;
12911   interix3*)
12912     hardcode_direct_CXX=no
12913     hardcode_shlibpath_var_CXX=no
12914     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12915     export_dynamic_flag_spec_CXX='${wl}-E'
12916     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12917     # Instead, shared libraries are loaded at an image base (0x10000000 by
12918     # default) and relocated if they conflict, which is a slow very memory
12919     # consuming and fragmenting process.  To avoid this, we pick a random,
12920     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12921     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12922     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'
12923     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'
12924     ;;
12925   irix5* | irix6*)
12926     case $cc_basename in
12927       CC*)
12928         # SGI C++
12929         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12930
12931         # Archives containing C++ object files must be created using
12932         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12933         # necessary to make sure instantiated templates are included
12934         # in the archive.
12935         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12936         ;;
12937       *)
12938         if test "$GXX" = yes; then
12939           if test "$with_gnu_ld" = no; then
12940             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12941           else
12942             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12943           fi
12944         fi
12945         link_all_deplibs_CXX=yes
12946         ;;
12947     esac
12948     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12949     hardcode_libdir_separator_CXX=:
12950     ;;
12951   linux* | k*bsd*-gnu)
12952     case $cc_basename in
12953       KCC*)
12954         # Kuck and Associates, Inc. (KAI) C++ Compiler
12955
12956         # KCC will only create a shared library if the output file
12957         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12958         # to its proper name (with version) after linking.
12959         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'
12960         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'
12961         # Commands to make compiler produce verbose output that lists
12962         # what "hidden" libraries, object files and flags are used when
12963         # linking a shared library.
12964         #
12965         # There doesn't appear to be a way to prevent this compiler from
12966         # explicitly linking system object files so we need to strip them
12967         # from the output so that they don't get included in the library
12968         # dependencies.
12969         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; echo $list'
12970
12971         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12972         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12973
12974         # Archives containing C++ object files must be created using
12975         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12976         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12977         ;;
12978       icpc*)
12979         # Intel C++
12980         with_gnu_ld=yes
12981         # version 8.0 and above of icpc choke on multiply defined symbols
12982         # if we add $predep_objects and $postdep_objects, however 7.1 and
12983         # earlier do not add the objects themselves.
12984         case `$CC -V 2>&1` in
12985         *"Version 7."*)
12986           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12987           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'
12988           ;;
12989         *)  # Version 8.0 or newer
12990           tmp_idyn=
12991           case $host_cpu in
12992             ia64*) tmp_idyn=' -i_dynamic';;
12993           esac
12994           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12995           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'
12996           ;;
12997         esac
12998         archive_cmds_need_lc_CXX=no
12999         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13000         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13001         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13002         ;;
13003       pgCC*)
13004         # Portland Group C++ compiler
13005         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13006         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'
13007
13008         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13009         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13010         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13011         ;;
13012       cxx*)
13013         # Compaq C++
13014         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13015         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'
13016
13017         runpath_var=LD_RUN_PATH
13018         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13019         hardcode_libdir_separator_CXX=:
13020
13021         # Commands to make compiler produce verbose output that lists
13022         # what "hidden" libraries, object files and flags are used when
13023         # linking a shared library.
13024         #
13025         # There doesn't appear to be a way to prevent this compiler from
13026         # explicitly linking system object files so we need to strip them
13027         # from the output so that they don't get included in the library
13028         # dependencies.
13029         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
13030         ;;
13031     esac
13032     ;;
13033   lynxos*)
13034     # FIXME: insert proper C++ library support
13035     ld_shlibs_CXX=no
13036     ;;
13037   m88k*)
13038     # FIXME: insert proper C++ library support
13039     ld_shlibs_CXX=no
13040     ;;
13041   mvs*)
13042     case $cc_basename in
13043       cxx*)
13044         # FIXME: insert proper C++ library support
13045         ld_shlibs_CXX=no
13046         ;;
13047       *)
13048         # FIXME: insert proper C++ library support
13049         ld_shlibs_CXX=no
13050         ;;
13051     esac
13052     ;;
13053   netbsd* | netbsdelf*-gnu)
13054     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13055       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13056       wlarc=
13057       hardcode_libdir_flag_spec_CXX='-R$libdir'
13058       hardcode_direct_CXX=yes
13059       hardcode_shlibpath_var_CXX=no
13060     fi
13061     # Workaround some broken pre-1.5 toolchains
13062     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13063     ;;
13064   openbsd2*)
13065     # C++ shared libraries are fairly broken
13066     ld_shlibs_CXX=no
13067     ;;
13068   openbsd*)
13069     hardcode_direct_CXX=yes
13070     hardcode_shlibpath_var_CXX=no
13071     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13072     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13073     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13074       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13075       export_dynamic_flag_spec_CXX='${wl}-E'
13076       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13077     fi
13078     output_verbose_link_cmd='echo'
13079     ;;
13080   osf3*)
13081     case $cc_basename in
13082       KCC*)
13083         # Kuck and Associates, Inc. (KAI) C++ Compiler
13084
13085         # KCC will only create a shared library if the output file
13086         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13087         # to its proper name (with version) after linking.
13088         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'
13089
13090         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13091         hardcode_libdir_separator_CXX=:
13092
13093         # Archives containing C++ object files must be created using
13094         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13095         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13096
13097         ;;
13098       RCC*)
13099         # Rational C++ 2.4.1
13100         # FIXME: insert proper C++ library support
13101         ld_shlibs_CXX=no
13102         ;;
13103       cxx*)
13104         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13105         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13106
13107         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13108         hardcode_libdir_separator_CXX=:
13109
13110         # Commands to make compiler produce verbose output that lists
13111         # what "hidden" libraries, object files and flags are used when
13112         # linking a shared library.
13113         #
13114         # There doesn't appear to be a way to prevent this compiler from
13115         # explicitly linking system object files so we need to strip them
13116         # from the output so that they don't get included in the library
13117         # dependencies.
13118         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
13119         ;;
13120       *)
13121         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13122           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13123           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13124
13125           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13126           hardcode_libdir_separator_CXX=:
13127
13128           # Commands to make compiler produce verbose output that lists
13129           # what "hidden" libraries, object files and flags are used when
13130           # linking a shared library.
13131           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13132
13133         else
13134           # FIXME: insert proper C++ library support
13135           ld_shlibs_CXX=no
13136         fi
13137         ;;
13138     esac
13139     ;;
13140   osf4* | osf5*)
13141     case $cc_basename in
13142       KCC*)
13143         # Kuck and Associates, Inc. (KAI) C++ Compiler
13144
13145         # KCC will only create a shared library if the output file
13146         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13147         # to its proper name (with version) after linking.
13148         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'
13149
13150         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13151         hardcode_libdir_separator_CXX=:
13152
13153         # Archives containing C++ object files must be created using
13154         # the KAI C++ compiler.
13155         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13156         ;;
13157       RCC*)
13158         # Rational C++ 2.4.1
13159         # FIXME: insert proper C++ library support
13160         ld_shlibs_CXX=no
13161         ;;
13162       cxx*)
13163         allow_undefined_flag_CXX=' -expect_unresolved \*'
13164         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13165         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13166           echo "-hidden">> $lib.exp~
13167           $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~
13168           $rm $lib.exp'
13169
13170         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13171         hardcode_libdir_separator_CXX=:
13172
13173         # Commands to make compiler produce verbose output that lists
13174         # what "hidden" libraries, object files and flags are used when
13175         # linking a shared library.
13176         #
13177         # There doesn't appear to be a way to prevent this compiler from
13178         # explicitly linking system object files so we need to strip them
13179         # from the output so that they don't get included in the library
13180         # dependencies.
13181         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
13182         ;;
13183       *)
13184         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13185           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13186          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13187
13188           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13189           hardcode_libdir_separator_CXX=:
13190
13191           # Commands to make compiler produce verbose output that lists
13192           # what "hidden" libraries, object files and flags are used when
13193           # linking a shared library.
13194           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13195
13196         else
13197           # FIXME: insert proper C++ library support
13198           ld_shlibs_CXX=no
13199         fi
13200         ;;
13201     esac
13202     ;;
13203   psos*)
13204     # FIXME: insert proper C++ library support
13205     ld_shlibs_CXX=no
13206     ;;
13207   sunos4*)
13208     case $cc_basename in
13209       CC*)
13210         # Sun C++ 4.x
13211         # FIXME: insert proper C++ library support
13212         ld_shlibs_CXX=no
13213         ;;
13214       lcc*)
13215         # Lucid
13216         # FIXME: insert proper C++ library support
13217         ld_shlibs_CXX=no
13218         ;;
13219       *)
13220         # FIXME: insert proper C++ library support
13221         ld_shlibs_CXX=no
13222         ;;
13223     esac
13224     ;;
13225   solaris*)
13226     case $cc_basename in
13227       CC*)
13228         # Sun C++ 4.2, 5.x and Centerline C++
13229         archive_cmds_need_lc_CXX=yes
13230         no_undefined_flag_CXX=' -zdefs'
13231         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13232         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13233         $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'
13234
13235         hardcode_libdir_flag_spec_CXX='-R$libdir'
13236         hardcode_shlibpath_var_CXX=no
13237         case $host_os in
13238           solaris2.[0-5] | solaris2.[0-5].*) ;;
13239           *)
13240             # The C++ compiler is used as linker so we must use $wl
13241             # flag to pass the commands to the underlying system
13242             # linker. We must also pass each convience library through
13243             # to the system linker between allextract/defaultextract.
13244             # The C++ compiler will combine linker options so we
13245             # cannot just pass the convience library names through
13246             # without $wl.
13247             # Supported since Solaris 2.6 (maybe 2.5.1?)
13248             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13249             ;;
13250         esac
13251         link_all_deplibs_CXX=yes
13252
13253         output_verbose_link_cmd='echo'
13254
13255         # Archives containing C++ object files must be created using
13256         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13257         # necessary to make sure instantiated templates are included
13258         # in the archive.
13259         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13260         ;;
13261       gcx*)
13262         # Green Hills C++ Compiler
13263         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13264
13265         # The C++ compiler must be used to create the archive.
13266         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13267         ;;
13268       *)
13269         # GNU C++ compiler with Solaris linker
13270         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13271           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13272           if $CC --version | grep -v '^2\.7' > /dev/null; then
13273             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13274             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13275                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13276
13277             # Commands to make compiler produce verbose output that lists
13278             # what "hidden" libraries, object files and flags are used when
13279             # linking a shared library.
13280             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13281           else
13282             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13283             # platform.
13284             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13285             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13286                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13287
13288             # Commands to make compiler produce verbose output that lists
13289             # what "hidden" libraries, object files and flags are used when
13290             # linking a shared library.
13291             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13292           fi
13293
13294           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13295         fi
13296         ;;
13297     esac
13298     ;;
13299   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13300     no_undefined_flag_CXX='${wl}-z,text'
13301     archive_cmds_need_lc_CXX=no
13302     hardcode_shlibpath_var_CXX=no
13303     runpath_var='LD_RUN_PATH'
13304
13305     case $cc_basename in
13306       CC*)
13307         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13308         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13309         ;;
13310       *)
13311         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13312         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13313         ;;
13314     esac
13315     ;;
13316   sysv5* | sco3.2v5* | sco5v6*)
13317     # Note: We can NOT use -z defs as we might desire, because we do not
13318     # link with -lc, and that would cause any symbols used from libc to
13319     # always be unresolved, which means just about no library would
13320     # ever link correctly.  If we're not using GNU ld we use -z text
13321     # though, which does catch some bad symbols but isn't as heavy-handed
13322     # as -z defs.
13323     # For security reasons, it is highly recommended that you always
13324     # use absolute paths for naming shared libraries, and exclude the
13325     # DT_RUNPATH tag from executables and libraries.  But doing so
13326     # requires that you compile everything twice, which is a pain.
13327     # So that behaviour is only enabled if SCOABSPATH is set to a
13328     # non-empty value in the environment.  Most likely only useful for
13329     # creating official distributions of packages.
13330     # This is a hack until libtool officially supports absolute path
13331     # names for shared libraries.
13332     no_undefined_flag_CXX='${wl}-z,text'
13333     allow_undefined_flag_CXX='${wl}-z,nodefs'
13334     archive_cmds_need_lc_CXX=no
13335     hardcode_shlibpath_var_CXX=no
13336     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13337     hardcode_libdir_separator_CXX=':'
13338     link_all_deplibs_CXX=yes
13339     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13340     runpath_var='LD_RUN_PATH'
13341
13342     case $cc_basename in
13343       CC*)
13344         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13345         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13346         ;;
13347       *)
13348         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13349         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13350         ;;
13351     esac
13352     ;;
13353   tandem*)
13354     case $cc_basename in
13355       NCC*)
13356         # NonStop-UX NCC 3.20
13357         # FIXME: insert proper C++ library support
13358         ld_shlibs_CXX=no
13359         ;;
13360       *)
13361         # FIXME: insert proper C++ library support
13362         ld_shlibs_CXX=no
13363         ;;
13364     esac
13365     ;;
13366   vxworks*)
13367     # FIXME: insert proper C++ library support
13368     ld_shlibs_CXX=no
13369     ;;
13370   *)
13371     # FIXME: insert proper C++ library support
13372     ld_shlibs_CXX=no
13373     ;;
13374 esac
13375 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13376 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13377 test "$ld_shlibs_CXX" = no && can_build_shared=no
13378
13379 GCC_CXX="$GXX"
13380 LD_CXX="$LD"
13381
13382
13383 cat > conftest.$ac_ext <<EOF
13384 class Foo
13385 {
13386 public:
13387   Foo (void) { a = 0; }
13388 private:
13389   int a;
13390 };
13391 EOF
13392
13393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13394   (eval $ac_compile) 2>&5
13395   ac_status=$?
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); }; then
13398   # Parse the compiler output and extract the necessary
13399   # objects, libraries and library flags.
13400
13401   # Sentinel used to keep track of whether or not we are before
13402   # the conftest object file.
13403   pre_test_object_deps_done=no
13404
13405   # The `*' in the case matches for architectures that use `case' in
13406   # $output_verbose_cmd can trigger glob expansion during the loop
13407   # eval without this substitution.
13408   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13409
13410   for p in `eval $output_verbose_link_cmd`; do
13411     case $p in
13412
13413     -L* | -R* | -l*)
13414        # Some compilers place space between "-{L,R}" and the path.
13415        # Remove the space.
13416        if test $p = "-L" \
13417           || test $p = "-R"; then
13418          prev=$p
13419          continue
13420        else
13421          prev=
13422        fi
13423
13424        if test "$pre_test_object_deps_done" = no; then
13425          case $p in
13426          -L* | -R*)
13427            # Internal compiler library paths should come after those
13428            # provided the user.  The postdeps already come after the
13429            # user supplied libs so there is no need to process them.
13430            if test -z "$compiler_lib_search_path_CXX"; then
13431              compiler_lib_search_path_CXX="${prev}${p}"
13432            else
13433              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13434            fi
13435            ;;
13436          # The "-l" case would never come before the object being
13437          # linked, so don't bother handling this case.
13438          esac
13439        else
13440          if test -z "$postdeps_CXX"; then
13441            postdeps_CXX="${prev}${p}"
13442          else
13443            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13444          fi
13445        fi
13446        ;;
13447
13448     *.$objext)
13449        # This assumes that the test object file only shows up
13450        # once in the compiler output.
13451        if test "$p" = "conftest.$objext"; then
13452          pre_test_object_deps_done=yes
13453          continue
13454        fi
13455
13456        if test "$pre_test_object_deps_done" = no; then
13457          if test -z "$predep_objects_CXX"; then
13458            predep_objects_CXX="$p"
13459          else
13460            predep_objects_CXX="$predep_objects_CXX $p"
13461          fi
13462        else
13463          if test -z "$postdep_objects_CXX"; then
13464            postdep_objects_CXX="$p"
13465          else
13466            postdep_objects_CXX="$postdep_objects_CXX $p"
13467          fi
13468        fi
13469        ;;
13470
13471     *) ;; # Ignore the rest.
13472
13473     esac
13474   done
13475
13476   # Clean up.
13477   rm -f a.out a.exe
13478 else
13479   echo "libtool.m4: error: problem compiling CXX test program"
13480 fi
13481
13482 $rm -f confest.$objext
13483
13484 # PORTME: override above test on systems where it is broken
13485 case $host_os in
13486 interix3*)
13487   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13488   # hack all around it, let's just trust "g++" to DTRT.
13489   predep_objects_CXX=
13490   postdep_objects_CXX=
13491   postdeps_CXX=
13492   ;;
13493
13494 solaris*)
13495   case $cc_basename in
13496   CC*)
13497     # Adding this requires a known-good setup of shared libraries for
13498     # Sun compiler versions before 5.6, else PIC objects from an old
13499     # archive will be linked into the output, leading to subtle bugs.
13500     postdeps_CXX='-lCstd -lCrun'
13501     ;;
13502   esac
13503   ;;
13504 esac
13505
13506
13507 case " $postdeps_CXX " in
13508 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13509 esac
13510
13511 lt_prog_compiler_wl_CXX=
13512 lt_prog_compiler_pic_CXX=
13513 lt_prog_compiler_static_CXX=
13514
13515 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13516 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13517
13518   # C++ specific cases for pic, static, wl, etc.
13519   if test "$GXX" = yes; then
13520     lt_prog_compiler_wl_CXX='-Wl,'
13521     lt_prog_compiler_static_CXX='-static'
13522
13523     case $host_os in
13524     aix*)
13525       # All AIX code is PIC.
13526       if test "$host_cpu" = ia64; then
13527         # AIX 5 now supports IA64 processor
13528         lt_prog_compiler_static_CXX='-Bstatic'
13529       fi
13530       ;;
13531     amigaos*)
13532       # FIXME: we need at least 68020 code to build shared libraries, but
13533       # adding the `-m68020' flag to GCC prevents building anything better,
13534       # like `-m68040'.
13535       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13536       ;;
13537     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13538       # PIC is the default for these OSes.
13539       ;;
13540     mingw* | os2* | pw32*)
13541       # This hack is so that the source file can tell whether it is being
13542       # built for inclusion in a dll (and should export symbols for example).
13543       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13544       ;;
13545     darwin* | rhapsody*)
13546       # PIC is the default on this platform
13547       # Common symbols not allowed in MH_DYLIB files
13548       lt_prog_compiler_pic_CXX='-fno-common'
13549       ;;
13550     *djgpp*)
13551       # DJGPP does not support shared libraries at all
13552       lt_prog_compiler_pic_CXX=
13553       ;;
13554     interix3*)
13555       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13556       # Instead, we relocate shared libraries at runtime.
13557       ;;
13558     sysv4*MP*)
13559       if test -d /usr/nec; then
13560         lt_prog_compiler_pic_CXX=-Kconform_pic
13561       fi
13562       ;;
13563     hpux*)
13564       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13565       # not for PA HP-UX.
13566       case $host_cpu in
13567       hppa*64*|ia64*)
13568         ;;
13569       *)
13570         lt_prog_compiler_pic_CXX='-fPIC'
13571         ;;
13572       esac
13573       ;;
13574     *)
13575       lt_prog_compiler_pic_CXX='-fPIC'
13576       ;;
13577     esac
13578   else
13579     case $host_os in
13580       aix4* | aix5*)
13581         # All AIX code is PIC.
13582         if test "$host_cpu" = ia64; then
13583           # AIX 5 now supports IA64 processor
13584           lt_prog_compiler_static_CXX='-Bstatic'
13585         else
13586           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13587         fi
13588         ;;
13589       chorus*)
13590         case $cc_basename in
13591         cxch68*)
13592           # Green Hills C++ Compiler
13593           # _LT_AC_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"
13594           ;;
13595         esac
13596         ;;
13597        darwin*)
13598          # PIC is the default on this platform
13599          # Common symbols not allowed in MH_DYLIB files
13600          case $cc_basename in
13601            xlc*)
13602            lt_prog_compiler_pic_CXX='-qnocommon'
13603            lt_prog_compiler_wl_CXX='-Wl,'
13604            ;;
13605          esac
13606        ;;
13607       dgux*)
13608         case $cc_basename in
13609           ec++*)
13610             lt_prog_compiler_pic_CXX='-KPIC'
13611             ;;
13612           ghcx*)
13613             # Green Hills C++ Compiler
13614             lt_prog_compiler_pic_CXX='-pic'
13615             ;;
13616           *)
13617             ;;
13618         esac
13619         ;;
13620       freebsd* | dragonfly*)
13621         # FreeBSD uses GNU C++
13622         ;;
13623       hpux9* | hpux10* | hpux11*)
13624         case $cc_basename in
13625           CC*)
13626             lt_prog_compiler_wl_CXX='-Wl,'
13627             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13628             if test "$host_cpu" != ia64; then
13629               lt_prog_compiler_pic_CXX='+Z'
13630             fi
13631             ;;
13632           aCC*)
13633             lt_prog_compiler_wl_CXX='-Wl,'
13634             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13635             case $host_cpu in
13636             hppa*64*|ia64*)
13637               # +Z the default
13638               ;;
13639             *)
13640               lt_prog_compiler_pic_CXX='+Z'
13641               ;;
13642             esac
13643             ;;
13644           *)
13645             ;;
13646         esac
13647         ;;
13648       interix*)
13649         # This is c89, which is MS Visual C++ (no shared libs)
13650         # Anyone wants to do a port?
13651         ;;
13652       irix5* | irix6* | nonstopux*)
13653         case $cc_basename in
13654           CC*)
13655             lt_prog_compiler_wl_CXX='-Wl,'
13656             lt_prog_compiler_static_CXX='-non_shared'
13657             # CC pic flag -KPIC is the default.
13658             ;;
13659           *)
13660             ;;
13661         esac
13662         ;;
13663       linux* | k*bsd*-gnu)
13664         case $cc_basename in
13665           KCC*)
13666             # KAI C++ Compiler
13667             lt_prog_compiler_wl_CXX='--backend -Wl,'
13668             lt_prog_compiler_pic_CXX='-fPIC'
13669             ;;
13670           icpc* | ecpc*)
13671             # Intel C++
13672             lt_prog_compiler_wl_CXX='-Wl,'
13673             lt_prog_compiler_pic_CXX='-KPIC'
13674             lt_prog_compiler_static_CXX='-static'
13675             ;;
13676           pgCC*)
13677             # Portland Group C++ compiler.
13678             lt_prog_compiler_wl_CXX='-Wl,'
13679             lt_prog_compiler_pic_CXX='-fpic'
13680             lt_prog_compiler_static_CXX='-Bstatic'
13681             ;;
13682           cxx*)
13683             # Compaq C++
13684             # Make sure the PIC flag is empty.  It appears that all Alpha
13685             # Linux and Compaq Tru64 Unix objects are PIC.
13686             lt_prog_compiler_pic_CXX=
13687             lt_prog_compiler_static_CXX='-non_shared'
13688             ;;
13689           *)
13690             ;;
13691         esac
13692         ;;
13693       lynxos*)
13694         ;;
13695       m88k*)
13696         ;;
13697       mvs*)
13698         case $cc_basename in
13699           cxx*)
13700             lt_prog_compiler_pic_CXX='-W c,exportall'
13701             ;;
13702           *)
13703             ;;
13704         esac
13705         ;;
13706       netbsd* | netbsdelf*-gnu)
13707         ;;
13708       osf3* | osf4* | osf5*)
13709         case $cc_basename in
13710           KCC*)
13711             lt_prog_compiler_wl_CXX='--backend -Wl,'
13712             ;;
13713           RCC*)
13714             # Rational C++ 2.4.1
13715             lt_prog_compiler_pic_CXX='-pic'
13716             ;;
13717           cxx*)
13718             # Digital/Compaq C++
13719             lt_prog_compiler_wl_CXX='-Wl,'
13720             # Make sure the PIC flag is empty.  It appears that all Alpha
13721             # Linux and Compaq Tru64 Unix objects are PIC.
13722             lt_prog_compiler_pic_CXX=
13723             lt_prog_compiler_static_CXX='-non_shared'
13724             ;;
13725           *)
13726             ;;
13727         esac
13728         ;;
13729       psos*)
13730         ;;
13731       solaris*)
13732         case $cc_basename in
13733           CC*)
13734             # Sun C++ 4.2, 5.x and Centerline C++
13735             lt_prog_compiler_pic_CXX='-KPIC'
13736             lt_prog_compiler_static_CXX='-Bstatic'
13737             lt_prog_compiler_wl_CXX='-Qoption ld '
13738             ;;
13739           gcx*)
13740             # Green Hills C++ Compiler
13741             lt_prog_compiler_pic_CXX='-PIC'
13742             ;;
13743           *)
13744             ;;
13745         esac
13746         ;;
13747       sunos4*)
13748         case $cc_basename in
13749           CC*)
13750             # Sun C++ 4.x
13751             lt_prog_compiler_pic_CXX='-pic'
13752             lt_prog_compiler_static_CXX='-Bstatic'
13753             ;;
13754           lcc*)
13755             # Lucid
13756             lt_prog_compiler_pic_CXX='-pic'
13757             ;;
13758           *)
13759             ;;
13760         esac
13761         ;;
13762       tandem*)
13763         case $cc_basename in
13764           NCC*)
13765             # NonStop-UX NCC 3.20
13766             lt_prog_compiler_pic_CXX='-KPIC'
13767             ;;
13768           *)
13769             ;;
13770         esac
13771         ;;
13772       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13773         case $cc_basename in
13774           CC*)
13775             lt_prog_compiler_wl_CXX='-Wl,'
13776             lt_prog_compiler_pic_CXX='-KPIC'
13777             lt_prog_compiler_static_CXX='-Bstatic'
13778             ;;
13779         esac
13780         ;;
13781       vxworks*)
13782         ;;
13783       *)
13784         lt_prog_compiler_can_build_shared_CXX=no
13785         ;;
13786     esac
13787   fi
13788
13789 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13790 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13791
13792 #
13793 # Check to make sure the PIC flag actually works.
13794 #
13795 if test -n "$lt_prog_compiler_pic_CXX"; then
13796
13797 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13798 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13799 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13800   echo $ECHO_N "(cached) $ECHO_C" >&6
13801 else
13802   lt_prog_compiler_pic_works_CXX=no
13803   ac_outfile=conftest.$ac_objext
13804    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13805    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13806    # Insert the option either (1) after the last *FLAGS variable, or
13807    # (2) before a word containing "conftest.", or (3) at the end.
13808    # Note that $ac_compile itself does not contain backslashes and begins
13809    # with a dollar sign (not a hyphen), so the echo should work correctly.
13810    # The option is referenced via a variable to avoid confusing sed.
13811    lt_compile=`echo "$ac_compile" | $SED \
13812    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13813    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13814    -e 's:$: $lt_compiler_flag:'`
13815    (eval echo "\"\$as_me:13815: $lt_compile\"" >&5)
13816    (eval "$lt_compile" 2>conftest.err)
13817    ac_status=$?
13818    cat conftest.err >&5
13819    echo "$as_me:13819: \$? = $ac_status" >&5
13820    if (exit $ac_status) && test -s "$ac_outfile"; then
13821      # The compiler can only warn and ignore the option if not recognized
13822      # So say no if there are warnings other than the usual output.
13823      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13824      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13825      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13826        lt_prog_compiler_pic_works_CXX=yes
13827      fi
13828    fi
13829    $rm conftest*
13830
13831 fi
13832 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13833 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13834
13835 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13836     case $lt_prog_compiler_pic_CXX in
13837      "" | " "*) ;;
13838      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13839      esac
13840 else
13841     lt_prog_compiler_pic_CXX=
13842      lt_prog_compiler_can_build_shared_CXX=no
13843 fi
13844
13845 fi
13846 case $host_os in
13847   # For platforms which do not support PIC, -DPIC is meaningless:
13848   *djgpp*)
13849     lt_prog_compiler_pic_CXX=
13850     ;;
13851   *)
13852     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13853     ;;
13854 esac
13855
13856 #
13857 # Check to make sure the static flag actually works.
13858 #
13859 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13860 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13861 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13862 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13863   echo $ECHO_N "(cached) $ECHO_C" >&6
13864 else
13865   lt_prog_compiler_static_works_CXX=no
13866    save_LDFLAGS="$LDFLAGS"
13867    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13868    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13869    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13870      # The linker can only warn and ignore the option if not recognized
13871      # So say no if there are warnings
13872      if test -s conftest.err; then
13873        # Append any errors to the config.log.
13874        cat conftest.err 1>&5
13875        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13876        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13877        if diff conftest.exp conftest.er2 >/dev/null; then
13878          lt_prog_compiler_static_works_CXX=yes
13879        fi
13880      else
13881        lt_prog_compiler_static_works_CXX=yes
13882      fi
13883    fi
13884    $rm conftest*
13885    LDFLAGS="$save_LDFLAGS"
13886
13887 fi
13888 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13889 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13890
13891 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13892     :
13893 else
13894     lt_prog_compiler_static_CXX=
13895 fi
13896
13897
13898 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13899 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13900 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13901   echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903   lt_cv_prog_compiler_c_o_CXX=no
13904    $rm -r conftest 2>/dev/null
13905    mkdir conftest
13906    cd conftest
13907    mkdir out
13908    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13909
13910    lt_compiler_flag="-o out/conftest2.$ac_objext"
13911    # Insert the option either (1) after the last *FLAGS variable, or
13912    # (2) before a word containing "conftest.", or (3) at the end.
13913    # Note that $ac_compile itself does not contain backslashes and begins
13914    # with a dollar sign (not a hyphen), so the echo should work correctly.
13915    lt_compile=`echo "$ac_compile" | $SED \
13916    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13917    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13918    -e 's:$: $lt_compiler_flag:'`
13919    (eval echo "\"\$as_me:13919: $lt_compile\"" >&5)
13920    (eval "$lt_compile" 2>out/conftest.err)
13921    ac_status=$?
13922    cat out/conftest.err >&5
13923    echo "$as_me:13923: \$? = $ac_status" >&5
13924    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13925    then
13926      # The compiler can only warn and ignore the option if not recognized
13927      # So say no if there are warnings
13928      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13929      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13930      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13931        lt_cv_prog_compiler_c_o_CXX=yes
13932      fi
13933    fi
13934    chmod u+w . 2>&5
13935    $rm conftest*
13936    # SGI C++ compiler will create directory out/ii_files/ for
13937    # template instantiation
13938    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13939    $rm out/* && rmdir out
13940    cd ..
13941    rmdir conftest
13942    $rm conftest*
13943
13944 fi
13945 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13946 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13947
13948
13949 hard_links="nottested"
13950 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13951   # do not overwrite the value of need_locks provided by the user
13952   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13953 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13954   hard_links=yes
13955   $rm conftest*
13956   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13957   touch conftest.a
13958   ln conftest.a conftest.b 2>&5 || hard_links=no
13959   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13960   { echo "$as_me:$LINENO: result: $hard_links" >&5
13961 echo "${ECHO_T}$hard_links" >&6; }
13962   if test "$hard_links" = no; then
13963     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13964 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13965     need_locks=warn
13966   fi
13967 else
13968   need_locks=no
13969 fi
13970
13971 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13972 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13973
13974   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13975   case $host_os in
13976   aix4* | aix5*)
13977     # If we're using GNU nm, then we don't want the "-C" option.
13978     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13979     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13980       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13981     else
13982       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'
13983     fi
13984     ;;
13985   pw32*)
13986     export_symbols_cmds_CXX="$ltdll_cmds"
13987   ;;
13988   cygwin* | mingw*)
13989     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13990   ;;
13991   linux* | k*bsd*-gnu)
13992     link_all_deplibs_CXX=no
13993   ;;
13994   *)
13995     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13996   ;;
13997   esac
13998
13999 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14000 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14001 test "$ld_shlibs_CXX" = no && can_build_shared=no
14002
14003 #
14004 # Do we need to explicitly link libc?
14005 #
14006 case "x$archive_cmds_need_lc_CXX" in
14007 x|xyes)
14008   # Assume -lc should be added
14009   archive_cmds_need_lc_CXX=yes
14010
14011   if test "$enable_shared" = yes && test "$GCC" = yes; then
14012     case $archive_cmds_CXX in
14013     *'~'*)
14014       # FIXME: we may have to deal with multi-command sequences.
14015       ;;
14016     '$CC '*)
14017       # Test whether the compiler implicitly links with -lc since on some
14018       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14019       # to ld, don't add -lc before -lgcc.
14020       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14021 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14022       $rm conftest*
14023       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14024
14025       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14026   (eval $ac_compile) 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); } 2>conftest.err; then
14030         soname=conftest
14031         lib=conftest
14032         libobjs=conftest.$ac_objext
14033         deplibs=
14034         wl=$lt_prog_compiler_wl_CXX
14035         pic_flag=$lt_prog_compiler_pic_CXX
14036         compiler_flags=-v
14037         linker_flags=-v
14038         verstring=
14039         output_objdir=.
14040         libname=conftest
14041         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14042         allow_undefined_flag_CXX=
14043         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14044   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); }
14048         then
14049           archive_cmds_need_lc_CXX=no
14050         else
14051           archive_cmds_need_lc_CXX=yes
14052         fi
14053         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14054       else
14055         cat conftest.err 1>&5
14056       fi
14057       $rm conftest*
14058       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14059 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14060       ;;
14061     esac
14062   fi
14063   ;;
14064 esac
14065
14066 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14067 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14068 library_names_spec=
14069 libname_spec='lib$name'
14070 soname_spec=
14071 shrext_cmds=".so"
14072 postinstall_cmds=
14073 postuninstall_cmds=
14074 finish_cmds=
14075 finish_eval=
14076 shlibpath_var=
14077 shlibpath_overrides_runpath=unknown
14078 version_type=none
14079 dynamic_linker="$host_os ld.so"
14080 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14081 if test "$GCC" = yes; then
14082   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14083   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14084     # if the path contains ";" then we assume it to be the separator
14085     # otherwise default to the standard path separator (i.e. ":") - it is
14086     # assumed that no part of a normal pathname contains ";" but that should
14087     # okay in the real world where ";" in dirpaths is itself problematic.
14088     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14089   else
14090     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14091   fi
14092 else
14093   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14094 fi
14095 need_lib_prefix=unknown
14096 hardcode_into_libs=no
14097
14098 # when you set need_version to no, make sure it does not cause -set_version
14099 # flags to be left without arguments
14100 need_version=unknown
14101
14102 case $host_os in
14103 aix3*)
14104   version_type=linux
14105   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14106   shlibpath_var=LIBPATH
14107
14108   # AIX 3 has no versioning support, so we append a major version to the name.
14109   soname_spec='${libname}${release}${shared_ext}$major'
14110   ;;
14111
14112 aix4* | aix5*)
14113   version_type=linux
14114   need_lib_prefix=no
14115   need_version=no
14116   hardcode_into_libs=yes
14117   if test "$host_cpu" = ia64; then
14118     # AIX 5 supports IA64
14119     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14120     shlibpath_var=LD_LIBRARY_PATH
14121   else
14122     # With GCC up to 2.95.x, collect2 would create an import file
14123     # for dependence libraries.  The import file would start with
14124     # the line `#! .'.  This would cause the generated library to
14125     # depend on `.', always an invalid library.  This was fixed in
14126     # development snapshots of GCC prior to 3.0.
14127     case $host_os in
14128       aix4 | aix4.[01] | aix4.[01].*)
14129       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14130            echo ' yes '
14131            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14132         :
14133       else
14134         can_build_shared=no
14135       fi
14136       ;;
14137     esac
14138     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14139     # soname into executable. Probably we can add versioning support to
14140     # collect2, so additional links can be useful in future.
14141     if test "$aix_use_runtimelinking" = yes; then
14142       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14143       # instead of lib<name>.a to let people know that these are not
14144       # typical AIX shared libraries.
14145       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146     else
14147       # We preserve .a as extension for shared libraries through AIX4.2
14148       # and later when we are not doing run time linking.
14149       library_names_spec='${libname}${release}.a $libname.a'
14150       soname_spec='${libname}${release}${shared_ext}$major'
14151     fi
14152     shlibpath_var=LIBPATH
14153   fi
14154   ;;
14155
14156 amigaos*)
14157   library_names_spec='$libname.ixlibrary $libname.a'
14158   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14159   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
14160   ;;
14161
14162 beos*)
14163   library_names_spec='${libname}${shared_ext}'
14164   dynamic_linker="$host_os ld.so"
14165   shlibpath_var=LIBRARY_PATH
14166   ;;
14167
14168 bsdi[45]*)
14169   version_type=linux
14170   need_version=no
14171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172   soname_spec='${libname}${release}${shared_ext}$major'
14173   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14174   shlibpath_var=LD_LIBRARY_PATH
14175   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14176   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14177   # the default ld.so.conf also contains /usr/contrib/lib and
14178   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14179   # libtool to hard-code these into programs
14180   ;;
14181
14182 cygwin* | mingw* | pw32*)
14183   version_type=windows
14184   shrext_cmds=".dll"
14185   need_version=no
14186   need_lib_prefix=no
14187
14188   case $GCC,$host_os in
14189   yes,cygwin* | yes,mingw* | yes,pw32*)
14190     library_names_spec='$libname.dll.a'
14191     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14192     postinstall_cmds='base_file=`basename \${file}`~
14193       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14194       dldir=$destdir/`dirname \$dlpath`~
14195       test -d \$dldir || mkdir -p \$dldir~
14196       $install_prog $dir/$dlname \$dldir/$dlname~
14197       chmod a+x \$dldir/$dlname'
14198     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14199       dlpath=$dir/\$dldll~
14200        $rm \$dlpath'
14201     shlibpath_overrides_runpath=yes
14202
14203     case $host_os in
14204     cygwin*)
14205       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14206       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14207       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14208       ;;
14209     mingw*)
14210       # MinGW DLLs use traditional 'lib' prefix
14211       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14212       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14213       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14214         # It is most probably a Windows format PATH printed by
14215         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14216         # path with ; separators, and with drive letters. We can handle the
14217         # drive letters (cygwin fileutils understands them), so leave them,
14218         # especially as we might pass files found there to a mingw objdump,
14219         # which wouldn't understand a cygwinified path. Ahh.
14220         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14221       else
14222         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14223       fi
14224       ;;
14225     pw32*)
14226       # pw32 DLLs use 'pw' prefix rather than 'lib'
14227       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14228       ;;
14229     esac
14230     ;;
14231
14232   *)
14233     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14234     ;;
14235   esac
14236   dynamic_linker='Win32 ld.exe'
14237   # FIXME: first we should search . and the directory the executable is in
14238   shlibpath_var=PATH
14239   ;;
14240
14241 darwin* | rhapsody*)
14242   dynamic_linker="$host_os dyld"
14243   version_type=darwin
14244   need_lib_prefix=no
14245   need_version=no
14246   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14247   soname_spec='${libname}${release}${major}$shared_ext'
14248   shlibpath_overrides_runpath=yes
14249   shlibpath_var=DYLD_LIBRARY_PATH
14250   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14251   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14252   if test "$GCC" = yes; then
14253     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14254   else
14255     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14256   fi
14257   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14258   ;;
14259
14260 dgux*)
14261   version_type=linux
14262   need_lib_prefix=no
14263   need_version=no
14264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14265   soname_spec='${libname}${release}${shared_ext}$major'
14266   shlibpath_var=LD_LIBRARY_PATH
14267   ;;
14268
14269 freebsd1*)
14270   dynamic_linker=no
14271   ;;
14272
14273 freebsd* | dragonfly*)
14274   # DragonFly does not have aout.  When/if they implement a new
14275   # versioning mechanism, adjust this.
14276   if test -x /usr/bin/objformat; then
14277     objformat=`/usr/bin/objformat`
14278   else
14279     case $host_os in
14280     freebsd[123]*) objformat=aout ;;
14281     *) objformat=elf ;;
14282     esac
14283   fi
14284   version_type=freebsd-$objformat
14285   case $version_type in
14286     freebsd-elf*)
14287       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14288       need_version=no
14289       need_lib_prefix=no
14290       ;;
14291     freebsd-*)
14292       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14293       need_version=yes
14294       ;;
14295   esac
14296   shlibpath_var=LD_LIBRARY_PATH
14297   case $host_os in
14298   freebsd2*)
14299     shlibpath_overrides_runpath=yes
14300     ;;
14301   freebsd3.[01]* | freebsdelf3.[01]*)
14302     shlibpath_overrides_runpath=yes
14303     hardcode_into_libs=yes
14304     ;;
14305   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14306   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14307     shlibpath_overrides_runpath=no
14308     hardcode_into_libs=yes
14309     ;;
14310   freebsd*) # from 4.6 on
14311     shlibpath_overrides_runpath=yes
14312     hardcode_into_libs=yes
14313     ;;
14314   esac
14315   ;;
14316
14317 gnu*)
14318   version_type=linux
14319   need_lib_prefix=no
14320   need_version=no
14321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14322   soname_spec='${libname}${release}${shared_ext}$major'
14323   shlibpath_var=LD_LIBRARY_PATH
14324   hardcode_into_libs=yes
14325   ;;
14326
14327 hpux9* | hpux10* | hpux11*)
14328   # Give a soname corresponding to the major version so that dld.sl refuses to
14329   # link against other versions.
14330   version_type=sunos
14331   need_lib_prefix=no
14332   need_version=no
14333   case $host_cpu in
14334   ia64*)
14335     shrext_cmds='.so'
14336     hardcode_into_libs=yes
14337     dynamic_linker="$host_os dld.so"
14338     shlibpath_var=LD_LIBRARY_PATH
14339     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341     soname_spec='${libname}${release}${shared_ext}$major'
14342     if test "X$HPUX_IA64_MODE" = X32; then
14343       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14344     else
14345       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14346     fi
14347     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14348     ;;
14349    hppa*64*)
14350      shrext_cmds='.sl'
14351      hardcode_into_libs=yes
14352      dynamic_linker="$host_os dld.sl"
14353      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14354      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14355      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356      soname_spec='${libname}${release}${shared_ext}$major'
14357      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14358      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14359      ;;
14360    *)
14361     shrext_cmds='.sl'
14362     dynamic_linker="$host_os dld.sl"
14363     shlibpath_var=SHLIB_PATH
14364     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366     soname_spec='${libname}${release}${shared_ext}$major'
14367     ;;
14368   esac
14369   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14370   postinstall_cmds='chmod 555 $lib'
14371   ;;
14372
14373 interix3*)
14374   version_type=linux
14375   need_lib_prefix=no
14376   need_version=no
14377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14378   soname_spec='${libname}${release}${shared_ext}$major'
14379   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14380   shlibpath_var=LD_LIBRARY_PATH
14381   shlibpath_overrides_runpath=no
14382   hardcode_into_libs=yes
14383   ;;
14384
14385 irix5* | irix6* | nonstopux*)
14386   case $host_os in
14387     nonstopux*) version_type=nonstopux ;;
14388     *)
14389         if test "$lt_cv_prog_gnu_ld" = yes; then
14390                 version_type=linux
14391         else
14392                 version_type=irix
14393         fi ;;
14394   esac
14395   need_lib_prefix=no
14396   need_version=no
14397   soname_spec='${libname}${release}${shared_ext}$major'
14398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14399   case $host_os in
14400   irix5* | nonstopux*)
14401     libsuff= shlibsuff=
14402     ;;
14403   *)
14404     case $LD in # libtool.m4 will add one of these switches to LD
14405     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14406       libsuff= shlibsuff= libmagic=32-bit;;
14407     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14408       libsuff=32 shlibsuff=N32 libmagic=N32;;
14409     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14410       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14411     *) libsuff= shlibsuff= libmagic=never-match;;
14412     esac
14413     ;;
14414   esac
14415   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14416   shlibpath_overrides_runpath=no
14417   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14418   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14419   hardcode_into_libs=yes
14420   ;;
14421
14422 # No shared lib support for Linux oldld, aout, or coff.
14423 linux*oldld* | linux*aout* | linux*coff*)
14424   dynamic_linker=no
14425   ;;
14426
14427 # This must be Linux ELF.
14428 linux* | k*bsd*-gnu)
14429   version_type=linux
14430   need_lib_prefix=no
14431   need_version=no
14432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14433   soname_spec='${libname}${release}${shared_ext}$major'
14434   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14435   shlibpath_var=LD_LIBRARY_PATH
14436   shlibpath_overrides_runpath=no
14437   # This implies no fast_install, which is unacceptable.
14438   # Some rework will be needed to allow for fast_install
14439   # before this can be enabled.
14440   hardcode_into_libs=yes
14441
14442   # Append ld.so.conf contents to the search path
14443   if test -f /etc/ld.so.conf; then
14444     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14445     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14446   fi
14447
14448   # We used to test for /lib/ld.so.1 and disable shared libraries on
14449   # powerpc, because MkLinux only supported shared libraries with the
14450   # GNU dynamic linker.  Since this was broken with cross compilers,
14451   # most powerpc-linux boxes support dynamic linking these days and
14452   # people can always --disable-shared, the test was removed, and we
14453   # assume the GNU/Linux dynamic linker is in use.
14454   dynamic_linker='GNU/Linux ld.so'
14455   ;;
14456
14457 netbsdelf*-gnu)
14458   version_type=linux
14459   need_lib_prefix=no
14460   need_version=no
14461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14462   soname_spec='${libname}${release}${shared_ext}$major'
14463   shlibpath_var=LD_LIBRARY_PATH
14464   shlibpath_overrides_runpath=no
14465   hardcode_into_libs=yes
14466   dynamic_linker='NetBSD ld.elf_so'
14467   ;;
14468
14469 netbsd*)
14470   version_type=sunos
14471   need_lib_prefix=no
14472   need_version=no
14473   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14474     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14475     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14476     dynamic_linker='NetBSD (a.out) ld.so'
14477   else
14478     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14479     soname_spec='${libname}${release}${shared_ext}$major'
14480     dynamic_linker='NetBSD ld.elf_so'
14481   fi
14482   shlibpath_var=LD_LIBRARY_PATH
14483   shlibpath_overrides_runpath=yes
14484   hardcode_into_libs=yes
14485   ;;
14486
14487 newsos6)
14488   version_type=linux
14489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14490   shlibpath_var=LD_LIBRARY_PATH
14491   shlibpath_overrides_runpath=yes
14492   ;;
14493
14494 nto-qnx*)
14495   version_type=linux
14496   need_lib_prefix=no
14497   need_version=no
14498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499   soname_spec='${libname}${release}${shared_ext}$major'
14500   shlibpath_var=LD_LIBRARY_PATH
14501   shlibpath_overrides_runpath=yes
14502   ;;
14503
14504 openbsd*)
14505   version_type=sunos
14506   sys_lib_dlsearch_path_spec="/usr/lib"
14507   need_lib_prefix=no
14508   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14509   case $host_os in
14510     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14511     *)                         need_version=no  ;;
14512   esac
14513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14514   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14515   shlibpath_var=LD_LIBRARY_PATH
14516   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14517     case $host_os in
14518       openbsd2.[89] | openbsd2.[89].*)
14519         shlibpath_overrides_runpath=no
14520         ;;
14521       *)
14522         shlibpath_overrides_runpath=yes
14523         ;;
14524       esac
14525   else
14526     shlibpath_overrides_runpath=yes
14527   fi
14528   ;;
14529
14530 os2*)
14531   libname_spec='$name'
14532   shrext_cmds=".dll"
14533   need_lib_prefix=no
14534   library_names_spec='$libname${shared_ext} $libname.a'
14535   dynamic_linker='OS/2 ld.exe'
14536   shlibpath_var=LIBPATH
14537   ;;
14538
14539 osf3* | osf4* | osf5*)
14540   version_type=osf
14541   need_lib_prefix=no
14542   need_version=no
14543   soname_spec='${libname}${release}${shared_ext}$major'
14544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545   shlibpath_var=LD_LIBRARY_PATH
14546   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14547   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14548   ;;
14549
14550 solaris*)
14551   version_type=linux
14552   need_lib_prefix=no
14553   need_version=no
14554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14555   soname_spec='${libname}${release}${shared_ext}$major'
14556   shlibpath_var=LD_LIBRARY_PATH
14557   shlibpath_overrides_runpath=yes
14558   hardcode_into_libs=yes
14559   # ldd complains unless libraries are executable
14560   postinstall_cmds='chmod +x $lib'
14561   ;;
14562
14563 sunos4*)
14564   version_type=sunos
14565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14566   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14567   shlibpath_var=LD_LIBRARY_PATH
14568   shlibpath_overrides_runpath=yes
14569   if test "$with_gnu_ld" = yes; then
14570     need_lib_prefix=no
14571   fi
14572   need_version=yes
14573   ;;
14574
14575 sysv4 | sysv4.3*)
14576   version_type=linux
14577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14578   soname_spec='${libname}${release}${shared_ext}$major'
14579   shlibpath_var=LD_LIBRARY_PATH
14580   case $host_vendor in
14581     sni)
14582       shlibpath_overrides_runpath=no
14583       need_lib_prefix=no
14584       export_dynamic_flag_spec='${wl}-Blargedynsym'
14585       runpath_var=LD_RUN_PATH
14586       ;;
14587     siemens)
14588       need_lib_prefix=no
14589       ;;
14590     motorola)
14591       need_lib_prefix=no
14592       need_version=no
14593       shlibpath_overrides_runpath=no
14594       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14595       ;;
14596   esac
14597   ;;
14598
14599 sysv4*MP*)
14600   if test -d /usr/nec ;then
14601     version_type=linux
14602     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14603     soname_spec='$libname${shared_ext}.$major'
14604     shlibpath_var=LD_LIBRARY_PATH
14605   fi
14606   ;;
14607
14608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14609   version_type=freebsd-elf
14610   need_lib_prefix=no
14611   need_version=no
14612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14613   soname_spec='${libname}${release}${shared_ext}$major'
14614   shlibpath_var=LD_LIBRARY_PATH
14615   hardcode_into_libs=yes
14616   if test "$with_gnu_ld" = yes; then
14617     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14618     shlibpath_overrides_runpath=no
14619   else
14620     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14621     shlibpath_overrides_runpath=yes
14622     case $host_os in
14623       sco3.2v5*)
14624         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14625         ;;
14626     esac
14627   fi
14628   sys_lib_dlsearch_path_spec='/usr/lib'
14629   ;;
14630
14631 uts4*)
14632   version_type=linux
14633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634   soname_spec='${libname}${release}${shared_ext}$major'
14635   shlibpath_var=LD_LIBRARY_PATH
14636   ;;
14637
14638 *)
14639   dynamic_linker=no
14640   ;;
14641 esac
14642 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14643 echo "${ECHO_T}$dynamic_linker" >&6; }
14644 test "$dynamic_linker" = no && can_build_shared=no
14645
14646 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14647 if test "$GCC" = yes; then
14648   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14649 fi
14650
14651 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14652 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14653 hardcode_action_CXX=
14654 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14655    test -n "$runpath_var_CXX" || \
14656    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14657
14658   # We can hardcode non-existant directories.
14659   if test "$hardcode_direct_CXX" != no &&
14660      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14661      # have to relink, otherwise we might link with an installed library
14662      # when we should be linking with a yet-to-be-installed one
14663      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14664      test "$hardcode_minus_L_CXX" != no; then
14665     # Linking always hardcodes the temporary library directory.
14666     hardcode_action_CXX=relink
14667   else
14668     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14669     hardcode_action_CXX=immediate
14670   fi
14671 else
14672   # We cannot hardcode anything, or else we can only hardcode existing
14673   # directories.
14674   hardcode_action_CXX=unsupported
14675 fi
14676 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14677 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14678
14679 if test "$hardcode_action_CXX" = relink; then
14680   # Fast installation is not supported
14681   enable_fast_install=no
14682 elif test "$shlibpath_overrides_runpath" = yes ||
14683      test "$enable_shared" = no; then
14684   # Fast installation is not necessary
14685   enable_fast_install=needless
14686 fi
14687
14688
14689 # The else clause should only fire when bootstrapping the
14690 # libtool distribution, otherwise you forgot to ship ltmain.sh
14691 # with your package, and you will get complaints that there are
14692 # no rules to generate ltmain.sh.
14693 if test -f "$ltmain"; then
14694   # See if we are running on zsh, and set the options which allow our commands through
14695   # without removal of \ escapes.
14696   if test -n "${ZSH_VERSION+set}" ; then
14697     setopt NO_GLOB_SUBST
14698   fi
14699   # Now quote all the things that may contain metacharacters while being
14700   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14701   # variables and quote the copies for generation of the libtool script.
14702   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14703     SED SHELL STRIP \
14704     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14705     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14706     deplibs_check_method reload_flag reload_cmds need_locks \
14707     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14708     lt_cv_sys_global_symbol_to_c_name_address \
14709     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14710     old_postinstall_cmds old_postuninstall_cmds \
14711     compiler_CXX \
14712     CC_CXX \
14713     LD_CXX \
14714     lt_prog_compiler_wl_CXX \
14715     lt_prog_compiler_pic_CXX \
14716     lt_prog_compiler_static_CXX \
14717     lt_prog_compiler_no_builtin_flag_CXX \
14718     export_dynamic_flag_spec_CXX \
14719     thread_safe_flag_spec_CXX \
14720     whole_archive_flag_spec_CXX \
14721     enable_shared_with_static_runtimes_CXX \
14722     old_archive_cmds_CXX \
14723     old_archive_from_new_cmds_CXX \
14724     predep_objects_CXX \
14725     postdep_objects_CXX \
14726     predeps_CXX \
14727     postdeps_CXX \
14728     compiler_lib_search_path_CXX \
14729     archive_cmds_CXX \
14730     archive_expsym_cmds_CXX \
14731     postinstall_cmds_CXX \
14732     postuninstall_cmds_CXX \
14733     old_archive_from_expsyms_cmds_CXX \
14734     allow_undefined_flag_CXX \
14735     no_undefined_flag_CXX \
14736     export_symbols_cmds_CXX \
14737     hardcode_libdir_flag_spec_CXX \
14738     hardcode_libdir_flag_spec_ld_CXX \
14739     hardcode_libdir_separator_CXX \
14740     hardcode_automatic_CXX \
14741     module_cmds_CXX \
14742     module_expsym_cmds_CXX \
14743     lt_cv_prog_compiler_c_o_CXX \
14744     exclude_expsyms_CXX \
14745     include_expsyms_CXX; do
14746
14747     case $var in
14748     old_archive_cmds_CXX | \
14749     old_archive_from_new_cmds_CXX | \
14750     archive_cmds_CXX | \
14751     archive_expsym_cmds_CXX | \
14752     module_cmds_CXX | \
14753     module_expsym_cmds_CXX | \
14754     old_archive_from_expsyms_cmds_CXX | \
14755     export_symbols_cmds_CXX | \
14756     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14757     postinstall_cmds | postuninstall_cmds | \
14758     old_postinstall_cmds | old_postuninstall_cmds | \
14759     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14760       # Double-quote double-evaled strings.
14761       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14762       ;;
14763     *)
14764       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14765       ;;
14766     esac
14767   done
14768
14769   case $lt_echo in
14770   *'\$0 --fallback-echo"')
14771     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14772     ;;
14773   esac
14774
14775 cfgfile="$ofile"
14776
14777   cat <<__EOF__ >> "$cfgfile"
14778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14779
14780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14781
14782 # Shell to use when invoking shell scripts.
14783 SHELL=$lt_SHELL
14784
14785 # Whether or not to build shared libraries.
14786 build_libtool_libs=$enable_shared
14787
14788 # Whether or not to build static libraries.
14789 build_old_libs=$enable_static
14790
14791 # Whether or not to add -lc for building shared libraries.
14792 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14793
14794 # Whether or not to disallow shared libs when runtime libs are static
14795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14796
14797 # Whether or not to optimize for fast installation.
14798 fast_install=$enable_fast_install
14799
14800 # The host system.
14801 host_alias=$host_alias
14802 host=$host
14803 host_os=$host_os
14804
14805 # The build system.
14806 build_alias=$build_alias
14807 build=$build
14808 build_os=$build_os
14809
14810 # An echo program that does not interpret backslashes.
14811 echo=$lt_echo
14812
14813 # The archiver.
14814 AR=$lt_AR
14815 AR_FLAGS=$lt_AR_FLAGS
14816
14817 # A C compiler.
14818 LTCC=$lt_LTCC
14819
14820 # LTCC compiler flags.
14821 LTCFLAGS=$lt_LTCFLAGS
14822
14823 # A language-specific compiler.
14824 CC=$lt_compiler_CXX
14825
14826 # Is the compiler the GNU C compiler?
14827 with_gcc=$GCC_CXX
14828
14829 # An ERE matcher.
14830 EGREP=$lt_EGREP
14831
14832 # The linker used to build libraries.
14833 LD=$lt_LD_CXX
14834
14835 # Whether we need hard or soft links.
14836 LN_S=$lt_LN_S
14837
14838 # A BSD-compatible nm program.
14839 NM=$lt_NM
14840
14841 # A symbol stripping program
14842 STRIP=$lt_STRIP
14843
14844 # Used to examine libraries when file_magic_cmd begins "file"
14845 MAGIC_CMD=$MAGIC_CMD
14846
14847 # Used on cygwin: DLL creation program.
14848 DLLTOOL="$DLLTOOL"
14849
14850 # Used on cygwin: object dumper.
14851 OBJDUMP="$OBJDUMP"
14852
14853 # Used on cygwin: assembler.
14854 AS="$AS"
14855
14856 # The name of the directory that contains temporary libtool files.
14857 objdir=$objdir
14858
14859 # How to create reloadable object files.
14860 reload_flag=$lt_reload_flag
14861 reload_cmds=$lt_reload_cmds
14862
14863 # How to pass a linker flag through the compiler.
14864 wl=$lt_lt_prog_compiler_wl_CXX
14865
14866 # Object file suffix (normally "o").
14867 objext="$ac_objext"
14868
14869 # Old archive suffix (normally "a").
14870 libext="$libext"
14871
14872 # Shared library suffix (normally ".so").
14873 shrext_cmds='$shrext_cmds'
14874
14875 # Executable file suffix (normally "").
14876 exeext="$exeext"
14877
14878 # Additional compiler flags for building library objects.
14879 pic_flag=$lt_lt_prog_compiler_pic_CXX
14880 pic_mode=$pic_mode
14881
14882 # What is the maximum length of a command?
14883 max_cmd_len=$lt_cv_sys_max_cmd_len
14884
14885 # Does compiler simultaneously support -c and -o options?
14886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14887
14888 # Must we lock files when doing compilation?
14889 need_locks=$lt_need_locks
14890
14891 # Do we need the lib prefix for modules?
14892 need_lib_prefix=$need_lib_prefix
14893
14894 # Do we need a version for libraries?
14895 need_version=$need_version
14896
14897 # Whether dlopen is supported.
14898 dlopen_support=$enable_dlopen
14899
14900 # Whether dlopen of programs is supported.
14901 dlopen_self=$enable_dlopen_self
14902
14903 # Whether dlopen of statically linked programs is supported.
14904 dlopen_self_static=$enable_dlopen_self_static
14905
14906 # Compiler flag to prevent dynamic linking.
14907 link_static_flag=$lt_lt_prog_compiler_static_CXX
14908
14909 # Compiler flag to turn off builtin functions.
14910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14911
14912 # Compiler flag to allow reflexive dlopens.
14913 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14914
14915 # Compiler flag to generate shared objects directly from archives.
14916 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14917
14918 # Compiler flag to generate thread-safe objects.
14919 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14920
14921 # Library versioning type.
14922 version_type=$version_type
14923
14924 # Format of library name prefix.
14925 libname_spec=$lt_libname_spec
14926
14927 # List of archive names.  First name is the real one, the rest are links.
14928 # The last name is the one that the linker finds with -lNAME.
14929 library_names_spec=$lt_library_names_spec
14930
14931 # The coded name of the library, if different from the real name.
14932 soname_spec=$lt_soname_spec
14933
14934 # Commands used to build and install an old-style archive.
14935 RANLIB=$lt_RANLIB
14936 old_archive_cmds=$lt_old_archive_cmds_CXX
14937 old_postinstall_cmds=$lt_old_postinstall_cmds
14938 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14939
14940 # Create an old-style archive from a shared archive.
14941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14942
14943 # Create a temporary old-style archive to link instead of a shared archive.
14944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14945
14946 # Commands used to build and install a shared archive.
14947 archive_cmds=$lt_archive_cmds_CXX
14948 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14949 postinstall_cmds=$lt_postinstall_cmds
14950 postuninstall_cmds=$lt_postuninstall_cmds
14951
14952 # Commands used to build a loadable module (assumed same as above if empty)
14953 module_cmds=$lt_module_cmds_CXX
14954 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14955
14956 # Commands to strip libraries.
14957 old_striplib=$lt_old_striplib
14958 striplib=$lt_striplib
14959
14960 # Dependencies to place before the objects being linked to create a
14961 # shared library.
14962 predep_objects=$lt_predep_objects_CXX
14963
14964 # Dependencies to place after the objects being linked to create a
14965 # shared library.
14966 postdep_objects=$lt_postdep_objects_CXX
14967
14968 # Dependencies to place before the objects being linked to create a
14969 # shared library.
14970 predeps=$lt_predeps_CXX
14971
14972 # Dependencies to place after the objects being linked to create a
14973 # shared library.
14974 postdeps=$lt_postdeps_CXX
14975
14976 # The library search path used internally by the compiler when linking
14977 # a shared library.
14978 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14979
14980 # Method to check whether dependent libraries are shared objects.
14981 deplibs_check_method=$lt_deplibs_check_method
14982
14983 # Command to use when deplibs_check_method == file_magic.
14984 file_magic_cmd=$lt_file_magic_cmd
14985
14986 # Flag that allows shared libraries with undefined symbols to be built.
14987 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14988
14989 # Flag that forces no undefined symbols.
14990 no_undefined_flag=$lt_no_undefined_flag_CXX
14991
14992 # Commands used to finish a libtool library installation in a directory.
14993 finish_cmds=$lt_finish_cmds
14994
14995 # Same as above, but a single script fragment to be evaled but not shown.
14996 finish_eval=$lt_finish_eval
14997
14998 # Take the output of nm and produce a listing of raw symbols and C names.
14999 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15000
15001 # Transform the output of nm in a proper C declaration
15002 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15003
15004 # Transform the output of nm in a C name address pair
15005 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15006
15007 # This is the shared library runtime path variable.
15008 runpath_var=$runpath_var
15009
15010 # This is the shared library path variable.
15011 shlibpath_var=$shlibpath_var
15012
15013 # Is shlibpath searched before the hard-coded library search path?
15014 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15015
15016 # How to hardcode a shared library path into an executable.
15017 hardcode_action=$hardcode_action_CXX
15018
15019 # Whether we should hardcode library paths into libraries.
15020 hardcode_into_libs=$hardcode_into_libs
15021
15022 # Flag to hardcode \$libdir into a binary during linking.
15023 # This must work even if \$libdir does not exist.
15024 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15025
15026 # If ld is used when linking, flag to hardcode \$libdir into
15027 # a binary during linking. This must work even if \$libdir does
15028 # not exist.
15029 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15030
15031 # Whether we need a single -rpath flag with a separated argument.
15032 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15033
15034 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15035 # resulting binary.
15036 hardcode_direct=$hardcode_direct_CXX
15037
15038 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15039 # resulting binary.
15040 hardcode_minus_L=$hardcode_minus_L_CXX
15041
15042 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15043 # the resulting binary.
15044 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15045
15046 # Set to yes if building a shared library automatically hardcodes DIR into the library
15047 # and all subsequent libraries and executables linked against it.
15048 hardcode_automatic=$hardcode_automatic_CXX
15049
15050 # Variables whose values should be saved in libtool wrapper scripts and
15051 # restored at relink time.
15052 variables_saved_for_relink="$variables_saved_for_relink"
15053
15054 # Whether libtool must link a program against all its dependency libraries.
15055 link_all_deplibs=$link_all_deplibs_CXX
15056
15057 # Compile-time system search path for libraries
15058 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15059
15060 # Run-time system search path for libraries
15061 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15062
15063 # Fix the shell variable \$srcfile for the compiler.
15064 fix_srcfile_path="$fix_srcfile_path_CXX"
15065
15066 # Set to yes if exported symbols are required.
15067 always_export_symbols=$always_export_symbols_CXX
15068
15069 # The commands to list exported symbols.
15070 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15071
15072 # The commands to extract the exported symbol list from a shared archive.
15073 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15074
15075 # Symbols that should not be listed in the preloaded symbols.
15076 exclude_expsyms=$lt_exclude_expsyms_CXX
15077
15078 # Symbols that must always be exported.
15079 include_expsyms=$lt_include_expsyms_CXX
15080
15081 # ### END LIBTOOL TAG CONFIG: $tagname
15082
15083 __EOF__
15084
15085
15086 else
15087   # If there is no Makefile yet, we rely on a make rule to execute
15088   # `config.status --recheck' to rerun these tests and create the
15089   # libtool script then.
15090   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15091   if test -f "$ltmain_in"; then
15092     test -f Makefile && make "$ltmain"
15093   fi
15094 fi
15095
15096
15097 ac_ext=c
15098 ac_cpp='$CPP $CPPFLAGS'
15099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15102
15103 CC=$lt_save_CC
15104 LDCXX=$LD
15105 LD=$lt_save_LD
15106 GCC=$lt_save_GCC
15107 with_gnu_ldcxx=$with_gnu_ld
15108 with_gnu_ld=$lt_save_with_gnu_ld
15109 lt_cv_path_LDCXX=$lt_cv_path_LD
15110 lt_cv_path_LD=$lt_save_path_LD
15111 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15112 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15113
15114         else
15115           tagname=""
15116         fi
15117         ;;
15118
15119       F77)
15120         if test -n "$F77" && test "X$F77" != "Xno"; then
15121
15122 ac_ext=f
15123 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15124 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15125 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15126
15127
15128 archive_cmds_need_lc_F77=no
15129 allow_undefined_flag_F77=
15130 always_export_symbols_F77=no
15131 archive_expsym_cmds_F77=
15132 export_dynamic_flag_spec_F77=
15133 hardcode_direct_F77=no
15134 hardcode_libdir_flag_spec_F77=
15135 hardcode_libdir_flag_spec_ld_F77=
15136 hardcode_libdir_separator_F77=
15137 hardcode_minus_L_F77=no
15138 hardcode_automatic_F77=no
15139 module_cmds_F77=
15140 module_expsym_cmds_F77=
15141 link_all_deplibs_F77=unknown
15142 old_archive_cmds_F77=$old_archive_cmds
15143 no_undefined_flag_F77=
15144 whole_archive_flag_spec_F77=
15145 enable_shared_with_static_runtimes_F77=no
15146
15147 # Source file extension for f77 test sources.
15148 ac_ext=f
15149
15150 # Object file extension for compiled f77 test sources.
15151 objext=o
15152 objext_F77=$objext
15153
15154 # Code to be used in simple compile tests
15155 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15156
15157 # Code to be used in simple link tests
15158 lt_simple_link_test_code="      program t\n      end\n"
15159
15160 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15161
15162 # If no C compiler was specified, use CC.
15163 LTCC=${LTCC-"$CC"}
15164
15165 # If no C compiler flags were specified, use CFLAGS.
15166 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15167
15168 # Allow CC to be a program name with arguments.
15169 compiler=$CC
15170
15171
15172 # save warnings/boilerplate of simple test code
15173 ac_outfile=conftest.$ac_objext
15174 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15176 _lt_compiler_boilerplate=`cat conftest.err`
15177 $rm conftest*
15178
15179 ac_outfile=conftest.$ac_objext
15180 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15182 _lt_linker_boilerplate=`cat conftest.err`
15183 $rm conftest*
15184
15185
15186 # Allow CC to be a program name with arguments.
15187 lt_save_CC="$CC"
15188 CC=${F77-"f77"}
15189 compiler=$CC
15190 compiler_F77=$CC
15191 for cc_temp in $compiler""; do
15192   case $cc_temp in
15193     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15194     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15195     \-*) ;;
15196     *) break;;
15197   esac
15198 done
15199 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15200
15201
15202 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15203 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15204 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15205 echo "${ECHO_T}$can_build_shared" >&6; }
15206
15207 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15208 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15209 test "$can_build_shared" = "no" && enable_shared=no
15210
15211 # On AIX, shared libraries and static libraries use the same namespace, and
15212 # are all built from PIC.
15213 case $host_os in
15214 aix3*)
15215   test "$enable_shared" = yes && enable_static=no
15216   if test -n "$RANLIB"; then
15217     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15218     postinstall_cmds='$RANLIB $lib'
15219   fi
15220   ;;
15221 aix4* | aix5*)
15222   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15223     test "$enable_shared" = yes && enable_static=no
15224   fi
15225   ;;
15226 esac
15227 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15228 echo "${ECHO_T}$enable_shared" >&6; }
15229
15230 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15231 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15232 # Make sure either enable_shared or enable_static is yes.
15233 test "$enable_shared" = yes || enable_static=yes
15234 { echo "$as_me:$LINENO: result: $enable_static" >&5
15235 echo "${ECHO_T}$enable_static" >&6; }
15236
15237 GCC_F77="$G77"
15238 LD_F77="$LD"
15239
15240 lt_prog_compiler_wl_F77=
15241 lt_prog_compiler_pic_F77=
15242 lt_prog_compiler_static_F77=
15243
15244 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15245 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15246
15247   if test "$GCC" = yes; then
15248     lt_prog_compiler_wl_F77='-Wl,'
15249     lt_prog_compiler_static_F77='-static'
15250
15251     case $host_os in
15252       aix*)
15253       # All AIX code is PIC.
15254       if test "$host_cpu" = ia64; then
15255         # AIX 5 now supports IA64 processor
15256         lt_prog_compiler_static_F77='-Bstatic'
15257       fi
15258       ;;
15259
15260     amigaos*)
15261       # FIXME: we need at least 68020 code to build shared libraries, but
15262       # adding the `-m68020' flag to GCC prevents building anything better,
15263       # like `-m68040'.
15264       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15265       ;;
15266
15267     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15268       # PIC is the default for these OSes.
15269       ;;
15270
15271     mingw* | pw32* | os2*)
15272       # This hack is so that the source file can tell whether it is being
15273       # built for inclusion in a dll (and should export symbols for example).
15274       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15275       ;;
15276
15277     darwin* | rhapsody*)
15278       # PIC is the default on this platform
15279       # Common symbols not allowed in MH_DYLIB files
15280       lt_prog_compiler_pic_F77='-fno-common'
15281       ;;
15282
15283     interix3*)
15284       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15285       # Instead, we relocate shared libraries at runtime.
15286       ;;
15287
15288     msdosdjgpp*)
15289       # Just because we use GCC doesn't mean we suddenly get shared libraries
15290       # on systems that don't support them.
15291       lt_prog_compiler_can_build_shared_F77=no
15292       enable_shared=no
15293       ;;
15294
15295     sysv4*MP*)
15296       if test -d /usr/nec; then
15297         lt_prog_compiler_pic_F77=-Kconform_pic
15298       fi
15299       ;;
15300
15301     hpux*)
15302       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15303       # not for PA HP-UX.
15304       case $host_cpu in
15305       hppa*64*|ia64*)
15306         # +Z the default
15307         ;;
15308       *)
15309         lt_prog_compiler_pic_F77='-fPIC'
15310         ;;
15311       esac
15312       ;;
15313
15314     *)
15315       lt_prog_compiler_pic_F77='-fPIC'
15316       ;;
15317     esac
15318   else
15319     # PORTME Check for flag to pass linker flags through the system compiler.
15320     case $host_os in
15321     aix*)
15322       lt_prog_compiler_wl_F77='-Wl,'
15323       if test "$host_cpu" = ia64; then
15324         # AIX 5 now supports IA64 processor
15325         lt_prog_compiler_static_F77='-Bstatic'
15326       else
15327         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15328       fi
15329       ;;
15330       darwin*)
15331         # PIC is the default on this platform
15332         # Common symbols not allowed in MH_DYLIB files
15333        case $cc_basename in
15334          xlc*)
15335          lt_prog_compiler_pic_F77='-qnocommon'
15336          lt_prog_compiler_wl_F77='-Wl,'
15337          ;;
15338        esac
15339        ;;
15340
15341     mingw* | pw32* | os2*)
15342       # This hack is so that the source file can tell whether it is being
15343       # built for inclusion in a dll (and should export symbols for example).
15344       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15345       ;;
15346
15347     hpux9* | hpux10* | hpux11*)
15348       lt_prog_compiler_wl_F77='-Wl,'
15349       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15350       # not for PA HP-UX.
15351       case $host_cpu in
15352       hppa*64*|ia64*)
15353         # +Z the default
15354         ;;
15355       *)
15356         lt_prog_compiler_pic_F77='+Z'
15357         ;;
15358       esac
15359       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15360       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15361       ;;
15362
15363     irix5* | irix6* | nonstopux*)
15364       lt_prog_compiler_wl_F77='-Wl,'
15365       # PIC (with -KPIC) is the default.
15366       lt_prog_compiler_static_F77='-non_shared'
15367       ;;
15368
15369     newsos6)
15370       lt_prog_compiler_pic_F77='-KPIC'
15371       lt_prog_compiler_static_F77='-Bstatic'
15372       ;;
15373
15374     linux* | k*bsd*-gnu)
15375       case $cc_basename in
15376       icc* | ecc*)
15377         lt_prog_compiler_wl_F77='-Wl,'
15378         lt_prog_compiler_pic_F77='-KPIC'
15379         lt_prog_compiler_static_F77='-static'
15380         ;;
15381       pgcc* | pgf77* | pgf90* | pgf95*)
15382         # Portland Group compilers (*not* the Pentium gcc compiler,
15383         # which looks to be a dead project)
15384         lt_prog_compiler_wl_F77='-Wl,'
15385         lt_prog_compiler_pic_F77='-fpic'
15386         lt_prog_compiler_static_F77='-Bstatic'
15387         ;;
15388       ccc*)
15389         lt_prog_compiler_wl_F77='-Wl,'
15390         # All Alpha code is PIC.
15391         lt_prog_compiler_static_F77='-non_shared'
15392         ;;
15393       esac
15394       ;;
15395
15396     osf3* | osf4* | osf5*)
15397       lt_prog_compiler_wl_F77='-Wl,'
15398       # All OSF/1 code is PIC.
15399       lt_prog_compiler_static_F77='-non_shared'
15400       ;;
15401
15402     solaris*)
15403       lt_prog_compiler_pic_F77='-KPIC'
15404       lt_prog_compiler_static_F77='-Bstatic'
15405       case $cc_basename in
15406       f77* | f90* | f95*)
15407         lt_prog_compiler_wl_F77='-Qoption ld ';;
15408       *)
15409         lt_prog_compiler_wl_F77='-Wl,';;
15410       esac
15411       ;;
15412
15413     sunos4*)
15414       lt_prog_compiler_wl_F77='-Qoption ld '
15415       lt_prog_compiler_pic_F77='-PIC'
15416       lt_prog_compiler_static_F77='-Bstatic'
15417       ;;
15418
15419     sysv4 | sysv4.2uw2* | sysv4.3*)
15420       lt_prog_compiler_wl_F77='-Wl,'
15421       lt_prog_compiler_pic_F77='-KPIC'
15422       lt_prog_compiler_static_F77='-Bstatic'
15423       ;;
15424
15425     sysv4*MP*)
15426       if test -d /usr/nec ;then
15427         lt_prog_compiler_pic_F77='-Kconform_pic'
15428         lt_prog_compiler_static_F77='-Bstatic'
15429       fi
15430       ;;
15431
15432     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15433       lt_prog_compiler_wl_F77='-Wl,'
15434       lt_prog_compiler_pic_F77='-KPIC'
15435       lt_prog_compiler_static_F77='-Bstatic'
15436       ;;
15437
15438     unicos*)
15439       lt_prog_compiler_wl_F77='-Wl,'
15440       lt_prog_compiler_can_build_shared_F77=no
15441       ;;
15442
15443     uts4*)
15444       lt_prog_compiler_pic_F77='-pic'
15445       lt_prog_compiler_static_F77='-Bstatic'
15446       ;;
15447
15448     *)
15449       lt_prog_compiler_can_build_shared_F77=no
15450       ;;
15451     esac
15452   fi
15453
15454 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15455 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15456
15457 #
15458 # Check to make sure the PIC flag actually works.
15459 #
15460 if test -n "$lt_prog_compiler_pic_F77"; then
15461
15462 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15463 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15464 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15465   echo $ECHO_N "(cached) $ECHO_C" >&6
15466 else
15467   lt_prog_compiler_pic_works_F77=no
15468   ac_outfile=conftest.$ac_objext
15469    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15470    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15471    # Insert the option either (1) after the last *FLAGS variable, or
15472    # (2) before a word containing "conftest.", or (3) at the end.
15473    # Note that $ac_compile itself does not contain backslashes and begins
15474    # with a dollar sign (not a hyphen), so the echo should work correctly.
15475    # The option is referenced via a variable to avoid confusing sed.
15476    lt_compile=`echo "$ac_compile" | $SED \
15477    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15478    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15479    -e 's:$: $lt_compiler_flag:'`
15480    (eval echo "\"\$as_me:15480: $lt_compile\"" >&5)
15481    (eval "$lt_compile" 2>conftest.err)
15482    ac_status=$?
15483    cat conftest.err >&5
15484    echo "$as_me:15484: \$? = $ac_status" >&5
15485    if (exit $ac_status) && test -s "$ac_outfile"; then
15486      # The compiler can only warn and ignore the option if not recognized
15487      # So say no if there are warnings other than the usual output.
15488      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15489      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15490      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15491        lt_prog_compiler_pic_works_F77=yes
15492      fi
15493    fi
15494    $rm conftest*
15495
15496 fi
15497 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15498 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15499
15500 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15501     case $lt_prog_compiler_pic_F77 in
15502      "" | " "*) ;;
15503      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15504      esac
15505 else
15506     lt_prog_compiler_pic_F77=
15507      lt_prog_compiler_can_build_shared_F77=no
15508 fi
15509
15510 fi
15511 case $host_os in
15512   # For platforms which do not support PIC, -DPIC is meaningless:
15513   *djgpp*)
15514     lt_prog_compiler_pic_F77=
15515     ;;
15516   *)
15517     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15518     ;;
15519 esac
15520
15521 #
15522 # Check to make sure the static flag actually works.
15523 #
15524 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15525 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15526 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15527 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15528   echo $ECHO_N "(cached) $ECHO_C" >&6
15529 else
15530   lt_prog_compiler_static_works_F77=no
15531    save_LDFLAGS="$LDFLAGS"
15532    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15533    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15534    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15535      # The linker can only warn and ignore the option if not recognized
15536      # So say no if there are warnings
15537      if test -s conftest.err; then
15538        # Append any errors to the config.log.
15539        cat conftest.err 1>&5
15540        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15541        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15542        if diff conftest.exp conftest.er2 >/dev/null; then
15543          lt_prog_compiler_static_works_F77=yes
15544        fi
15545      else
15546        lt_prog_compiler_static_works_F77=yes
15547      fi
15548    fi
15549    $rm conftest*
15550    LDFLAGS="$save_LDFLAGS"
15551
15552 fi
15553 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15554 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15555
15556 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15557     :
15558 else
15559     lt_prog_compiler_static_F77=
15560 fi
15561
15562
15563 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15564 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15565 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15566   echo $ECHO_N "(cached) $ECHO_C" >&6
15567 else
15568   lt_cv_prog_compiler_c_o_F77=no
15569    $rm -r conftest 2>/dev/null
15570    mkdir conftest
15571    cd conftest
15572    mkdir out
15573    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15574
15575    lt_compiler_flag="-o out/conftest2.$ac_objext"
15576    # Insert the option either (1) after the last *FLAGS variable, or
15577    # (2) before a word containing "conftest.", or (3) at the end.
15578    # Note that $ac_compile itself does not contain backslashes and begins
15579    # with a dollar sign (not a hyphen), so the echo should work correctly.
15580    lt_compile=`echo "$ac_compile" | $SED \
15581    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15582    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15583    -e 's:$: $lt_compiler_flag:'`
15584    (eval echo "\"\$as_me:15584: $lt_compile\"" >&5)
15585    (eval "$lt_compile" 2>out/conftest.err)
15586    ac_status=$?
15587    cat out/conftest.err >&5
15588    echo "$as_me:15588: \$? = $ac_status" >&5
15589    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15590    then
15591      # The compiler can only warn and ignore the option if not recognized
15592      # So say no if there are warnings
15593      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15594      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15595      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15596        lt_cv_prog_compiler_c_o_F77=yes
15597      fi
15598    fi
15599    chmod u+w . 2>&5
15600    $rm conftest*
15601    # SGI C++ compiler will create directory out/ii_files/ for
15602    # template instantiation
15603    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15604    $rm out/* && rmdir out
15605    cd ..
15606    rmdir conftest
15607    $rm conftest*
15608
15609 fi
15610 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15611 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15612
15613
15614 hard_links="nottested"
15615 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15616   # do not overwrite the value of need_locks provided by the user
15617   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15618 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15619   hard_links=yes
15620   $rm conftest*
15621   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15622   touch conftest.a
15623   ln conftest.a conftest.b 2>&5 || hard_links=no
15624   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15625   { echo "$as_me:$LINENO: result: $hard_links" >&5
15626 echo "${ECHO_T}$hard_links" >&6; }
15627   if test "$hard_links" = no; then
15628     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15629 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15630     need_locks=warn
15631   fi
15632 else
15633   need_locks=no
15634 fi
15635
15636 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15637 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15638
15639   runpath_var=
15640   allow_undefined_flag_F77=
15641   enable_shared_with_static_runtimes_F77=no
15642   archive_cmds_F77=
15643   archive_expsym_cmds_F77=
15644   old_archive_From_new_cmds_F77=
15645   old_archive_from_expsyms_cmds_F77=
15646   export_dynamic_flag_spec_F77=
15647   whole_archive_flag_spec_F77=
15648   thread_safe_flag_spec_F77=
15649   hardcode_libdir_flag_spec_F77=
15650   hardcode_libdir_flag_spec_ld_F77=
15651   hardcode_libdir_separator_F77=
15652   hardcode_direct_F77=no
15653   hardcode_minus_L_F77=no
15654   hardcode_shlibpath_var_F77=unsupported
15655   link_all_deplibs_F77=unknown
15656   hardcode_automatic_F77=no
15657   module_cmds_F77=
15658   module_expsym_cmds_F77=
15659   always_export_symbols_F77=no
15660   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15661   # include_expsyms should be a list of space-separated symbols to be *always*
15662   # included in the symbol list
15663   include_expsyms_F77=
15664   # exclude_expsyms can be an extended regexp of symbols to exclude
15665   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15666   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15667   # as well as any symbol that contains `d'.
15668   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15669   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15670   # platforms (ab)use it in PIC code, but their linkers get confused if
15671   # the symbol is explicitly referenced.  Since portable code cannot
15672   # rely on this symbol name, it's probably fine to never include it in
15673   # preloaded symbol tables.
15674   extract_expsyms_cmds=
15675   # Just being paranoid about ensuring that cc_basename is set.
15676   for cc_temp in $compiler""; do
15677   case $cc_temp in
15678     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15679     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15680     \-*) ;;
15681     *) break;;
15682   esac
15683 done
15684 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15685
15686   case $host_os in
15687   cygwin* | mingw* | pw32*)
15688     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15689     # When not using gcc, we currently assume that we are using
15690     # Microsoft Visual C++.
15691     if test "$GCC" != yes; then
15692       with_gnu_ld=no
15693     fi
15694     ;;
15695   interix*)
15696     # we just hope/assume this is gcc and not c89 (= MSVC++)
15697     with_gnu_ld=yes
15698     ;;
15699   openbsd*)
15700     with_gnu_ld=no
15701     ;;
15702   esac
15703
15704   ld_shlibs_F77=yes
15705   if test "$with_gnu_ld" = yes; then
15706     # If archive_cmds runs LD, not CC, wlarc should be empty
15707     wlarc='${wl}'
15708
15709     # Set some defaults for GNU ld with shared library support. These
15710     # are reset later if shared libraries are not supported. Putting them
15711     # here allows them to be overridden if necessary.
15712     runpath_var=LD_RUN_PATH
15713     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15714     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15715     # ancient GNU ld didn't support --whole-archive et. al.
15716     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15717         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15718       else
15719         whole_archive_flag_spec_F77=
15720     fi
15721     supports_anon_versioning=no
15722     case `$LD -v 2>/dev/null` in
15723       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15724       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15725       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15726       *\ 2.11.*) ;; # other 2.11 versions
15727       *) supports_anon_versioning=yes ;;
15728     esac
15729
15730     # See if GNU ld supports shared libraries.
15731     case $host_os in
15732     aix3* | aix4* | aix5*)
15733       # On AIX/PPC, the GNU linker is very broken
15734       if test "$host_cpu" != ia64; then
15735         ld_shlibs_F77=no
15736         cat <<EOF 1>&2
15737
15738 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15739 *** to be unable to reliably create shared libraries on AIX.
15740 *** Therefore, libtool is disabling shared libraries support.  If you
15741 *** really care for shared libraries, you may want to modify your PATH
15742 *** so that a non-GNU linker is found, and then restart.
15743
15744 EOF
15745       fi
15746       ;;
15747
15748     amigaos*)
15749       archive_cmds_F77='$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)'
15750       hardcode_libdir_flag_spec_F77='-L$libdir'
15751       hardcode_minus_L_F77=yes
15752
15753       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15754       # that the semantics of dynamic libraries on AmigaOS, at least up
15755       # to version 4, is to share data among multiple programs linked
15756       # with the same dynamic library.  Since this doesn't match the
15757       # behavior of shared libraries on other platforms, we can't use
15758       # them.
15759       ld_shlibs_F77=no
15760       ;;
15761
15762     beos*)
15763       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15764         allow_undefined_flag_F77=unsupported
15765         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15766         # support --undefined.  This deserves some investigation.  FIXME
15767         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15768       else
15769         ld_shlibs_F77=no
15770       fi
15771       ;;
15772
15773     cygwin* | mingw* | pw32*)
15774       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15775       # as there is no search path for DLLs.
15776       hardcode_libdir_flag_spec_F77='-L$libdir'
15777       allow_undefined_flag_F77=unsupported
15778       always_export_symbols_F77=no
15779       enable_shared_with_static_runtimes_F77=yes
15780       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15781
15782       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15783         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15784         # If the export-symbols file already is a .def file (1st line
15785         # is EXPORTS), use it as is; otherwise, prepend...
15786         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15787           cp $export_symbols $output_objdir/$soname.def;
15788         else
15789           echo EXPORTS > $output_objdir/$soname.def;
15790           cat $export_symbols >> $output_objdir/$soname.def;
15791         fi~
15792         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15793       else
15794         ld_shlibs_F77=no
15795       fi
15796       ;;
15797
15798     interix3*)
15799       hardcode_direct_F77=no
15800       hardcode_shlibpath_var_F77=no
15801       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15802       export_dynamic_flag_spec_F77='${wl}-E'
15803       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15804       # Instead, shared libraries are loaded at an image base (0x10000000 by
15805       # default) and relocated if they conflict, which is a slow very memory
15806       # consuming and fragmenting process.  To avoid this, we pick a random,
15807       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15808       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15809       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15810       archive_expsym_cmds_F77='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'
15811       ;;
15812
15813     linux* | k*bsd*-gnu)
15814       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15815         tmp_addflag=
15816         case $cc_basename,$host_cpu in
15817         pgcc*)                          # Portland Group C compiler
15818           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15819           tmp_addflag=' $pic_flag'
15820           ;;
15821         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15822           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15823           tmp_addflag=' $pic_flag -Mnomain' ;;
15824         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15825           tmp_addflag=' -i_dynamic' ;;
15826         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15827           tmp_addflag=' -i_dynamic -nofor_main' ;;
15828         ifc* | ifort*)                  # Intel Fortran compiler
15829           tmp_addflag=' -nofor_main' ;;
15830         esac
15831         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15832
15833         if test $supports_anon_versioning = yes; then
15834           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15835   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15836   $echo "local: *; };" >> $output_objdir/$libname.ver~
15837           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15838         fi
15839         link_all_deplibs_F77=no
15840       else
15841         ld_shlibs_F77=no
15842       fi
15843       ;;
15844
15845     netbsd* | netbsdelf*-gnu)
15846       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15847         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15848         wlarc=
15849       else
15850         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15851         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15852       fi
15853       ;;
15854
15855     solaris*)
15856       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15857         ld_shlibs_F77=no
15858         cat <<EOF 1>&2
15859
15860 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15861 *** create shared libraries on Solaris systems.  Therefore, libtool
15862 *** is disabling shared libraries support.  We urge you to upgrade GNU
15863 *** binutils to release 2.9.1 or newer.  Another option is to modify
15864 *** your PATH or compiler configuration so that the native linker is
15865 *** used, and then restart.
15866
15867 EOF
15868       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15869         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15870         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15871       else
15872         ld_shlibs_F77=no
15873       fi
15874       ;;
15875
15876     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15877       case `$LD -v 2>&1` in
15878         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15879         ld_shlibs_F77=no
15880         cat <<_LT_EOF 1>&2
15881
15882 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15883 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15884 *** is disabling shared libraries support.  We urge you to upgrade GNU
15885 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15886 *** your PATH or compiler configuration so that the native linker is
15887 *** used, and then restart.
15888
15889 _LT_EOF
15890         ;;
15891         *)
15892           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15893             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15894             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15895             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15896           else
15897             ld_shlibs_F77=no
15898           fi
15899         ;;
15900       esac
15901       ;;
15902
15903     sunos4*)
15904       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15905       wlarc=
15906       hardcode_direct_F77=yes
15907       hardcode_shlibpath_var_F77=no
15908       ;;
15909
15910     *)
15911       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15912         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15913         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15914       else
15915         ld_shlibs_F77=no
15916       fi
15917       ;;
15918     esac
15919
15920     if test "$ld_shlibs_F77" = no; then
15921       runpath_var=
15922       hardcode_libdir_flag_spec_F77=
15923       export_dynamic_flag_spec_F77=
15924       whole_archive_flag_spec_F77=
15925     fi
15926   else
15927     # PORTME fill in a description of your system's linker (not GNU ld)
15928     case $host_os in
15929     aix3*)
15930       allow_undefined_flag_F77=unsupported
15931       always_export_symbols_F77=yes
15932       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15933       # Note: this linker hardcodes the directories in LIBPATH if there
15934       # are no directories specified by -L.
15935       hardcode_minus_L_F77=yes
15936       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15937         # Neither direct hardcoding nor static linking is supported with a
15938         # broken collect2.
15939         hardcode_direct_F77=unsupported
15940       fi
15941       ;;
15942
15943     aix4* | aix5*)
15944       if test "$host_cpu" = ia64; then
15945         # On IA64, the linker does run time linking by default, so we don't
15946         # have to do anything special.
15947         aix_use_runtimelinking=no
15948         exp_sym_flag='-Bexport'
15949         no_entry_flag=""
15950       else
15951         # If we're using GNU nm, then we don't want the "-C" option.
15952         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15953         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15954           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15955         else
15956           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15957         fi
15958         aix_use_runtimelinking=no
15959
15960         # Test if we are trying to use run time linking or normal
15961         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15962         # need to do runtime linking.
15963         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15964           for ld_flag in $LDFLAGS; do
15965           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15966             aix_use_runtimelinking=yes
15967             break
15968           fi
15969           done
15970           ;;
15971         esac
15972
15973         exp_sym_flag='-bexport'
15974         no_entry_flag='-bnoentry'
15975       fi
15976
15977       # When large executables or shared objects are built, AIX ld can
15978       # have problems creating the table of contents.  If linking a library
15979       # or program results in "error TOC overflow" add -mminimal-toc to
15980       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15981       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15982
15983       archive_cmds_F77=''
15984       hardcode_direct_F77=yes
15985       hardcode_libdir_separator_F77=':'
15986       link_all_deplibs_F77=yes
15987
15988       if test "$GCC" = yes; then
15989         case $host_os in aix4.[012]|aix4.[012].*)
15990         # We only want to do this on AIX 4.2 and lower, the check
15991         # below for broken collect2 doesn't work under 4.3+
15992           collect2name=`${CC} -print-prog-name=collect2`
15993           if test -f "$collect2name" && \
15994            strings "$collect2name" | grep resolve_lib_name >/dev/null
15995           then
15996           # We have reworked collect2
15997           hardcode_direct_F77=yes
15998           else
15999           # We have old collect2
16000           hardcode_direct_F77=unsupported
16001           # It fails to find uninstalled libraries when the uninstalled
16002           # path is not listed in the libpath.  Setting hardcode_minus_L
16003           # to unsupported forces relinking
16004           hardcode_minus_L_F77=yes
16005           hardcode_libdir_flag_spec_F77='-L$libdir'
16006           hardcode_libdir_separator_F77=
16007           fi
16008           ;;
16009         esac
16010         shared_flag='-shared'
16011         if test "$aix_use_runtimelinking" = yes; then
16012           shared_flag="$shared_flag "'${wl}-G'
16013         fi
16014       else
16015         # not using gcc
16016         if test "$host_cpu" = ia64; then
16017         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16018         # chokes on -Wl,-G. The following line is correct:
16019           shared_flag='-G'
16020         else
16021           if test "$aix_use_runtimelinking" = yes; then
16022             shared_flag='${wl}-G'
16023           else
16024             shared_flag='${wl}-bM:SRE'
16025           fi
16026         fi
16027       fi
16028
16029       # It seems that -bexpall does not export symbols beginning with
16030       # underscore (_), so it is better to generate a list of symbols to export.
16031       always_export_symbols_F77=yes
16032       if test "$aix_use_runtimelinking" = yes; then
16033         # Warning - without using the other runtime loading flags (-brtl),
16034         # -berok will link without error, but may produce a broken library.
16035         allow_undefined_flag_F77='-berok'
16036        # Determine the default libpath from the value encoded in an empty executable.
16037        cat >conftest.$ac_ext <<_ACEOF
16038       program main
16039
16040       end
16041 _ACEOF
16042 rm -f conftest.$ac_objext conftest$ac_exeext
16043 if { (ac_try="$ac_link"
16044 case "(($ac_try" in
16045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16046   *) ac_try_echo=$ac_try;;
16047 esac
16048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16049   (eval "$ac_link") 2>conftest.er1
16050   ac_status=$?
16051   grep -v '^ *+' conftest.er1 >conftest.err
16052   rm -f conftest.er1
16053   cat conftest.err >&5
16054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055   (exit $ac_status); } && {
16056          test -z "$ac_f77_werror_flag" ||
16057          test ! -s conftest.err
16058        } && test -s conftest$ac_exeext &&
16059        $as_test_x conftest$ac_exeext; then
16060
16061 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16062 }'`
16063 # Check for a 64-bit object if we didn't find anything.
16064 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16065 }'`; fi
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070
16071 fi
16072
16073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16074       conftest$ac_exeext conftest.$ac_ext
16075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16076
16077        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16078         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16079        else
16080         if test "$host_cpu" = ia64; then
16081           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16082           allow_undefined_flag_F77="-z nodefs"
16083           archive_expsym_cmds_F77="\$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"
16084         else
16085          # Determine the default libpath from the value encoded in an empty executable.
16086          cat >conftest.$ac_ext <<_ACEOF
16087       program main
16088
16089       end
16090 _ACEOF
16091 rm -f conftest.$ac_objext conftest$ac_exeext
16092 if { (ac_try="$ac_link"
16093 case "(($ac_try" in
16094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095   *) ac_try_echo=$ac_try;;
16096 esac
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098   (eval "$ac_link") 2>conftest.er1
16099   ac_status=$?
16100   grep -v '^ *+' conftest.er1 >conftest.err
16101   rm -f conftest.er1
16102   cat conftest.err >&5
16103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104   (exit $ac_status); } && {
16105          test -z "$ac_f77_werror_flag" ||
16106          test ! -s conftest.err
16107        } && test -s conftest$ac_exeext &&
16108        $as_test_x conftest$ac_exeext; then
16109
16110 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16111 }'`
16112 # Check for a 64-bit object if we didn't find anything.
16113 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16114 }'`; fi
16115 else
16116   echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16118
16119
16120 fi
16121
16122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16123       conftest$ac_exeext conftest.$ac_ext
16124 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16125
16126          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16127           # Warning - without using the other run time loading flags,
16128           # -berok will link without error, but may produce a broken library.
16129           no_undefined_flag_F77=' ${wl}-bernotok'
16130           allow_undefined_flag_F77=' ${wl}-berok'
16131           # Exported symbols can be pulled into shared objects from archives
16132           whole_archive_flag_spec_F77='$convenience'
16133           archive_cmds_need_lc_F77=yes
16134           # This is similar to how AIX traditionally builds its shared libraries.
16135           archive_expsym_cmds_F77="\$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'
16136         fi
16137       fi
16138       ;;
16139
16140     amigaos*)
16141       archive_cmds_F77='$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)'
16142       hardcode_libdir_flag_spec_F77='-L$libdir'
16143       hardcode_minus_L_F77=yes
16144       # see comment about different semantics on the GNU ld section
16145       ld_shlibs_F77=no
16146       ;;
16147
16148     bsdi[45]*)
16149       export_dynamic_flag_spec_F77=-rdynamic
16150       ;;
16151
16152     cygwin* | mingw* | pw32*)
16153       # When not using gcc, we currently assume that we are using
16154       # Microsoft Visual C++.
16155       # hardcode_libdir_flag_spec is actually meaningless, as there is
16156       # no search path for DLLs.
16157       hardcode_libdir_flag_spec_F77=' '
16158       allow_undefined_flag_F77=unsupported
16159       # Tell ltmain to make .lib files, not .a files.
16160       libext=lib
16161       # Tell ltmain to make .dll files, not .so files.
16162       shrext_cmds=".dll"
16163       # FIXME: Setting linknames here is a bad hack.
16164       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16165       # The linker will automatically build a .lib file if we build a DLL.
16166       old_archive_From_new_cmds_F77='true'
16167       # FIXME: Should let the user specify the lib program.
16168       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16169       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16170       enable_shared_with_static_runtimes_F77=yes
16171       ;;
16172
16173     darwin* | rhapsody*)
16174       case $host_os in
16175         rhapsody* | darwin1.[012])
16176          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16177          ;;
16178        *) # Darwin 1.3 on
16179          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16180            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16181          else
16182            case ${MACOSX_DEPLOYMENT_TARGET} in
16183              10.[012])
16184                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16185                ;;
16186              10.*)
16187                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16188                ;;
16189            esac
16190          fi
16191          ;;
16192       esac
16193       archive_cmds_need_lc_F77=no
16194       hardcode_direct_F77=no
16195       hardcode_automatic_F77=yes
16196       hardcode_shlibpath_var_F77=unsupported
16197       whole_archive_flag_spec_F77=''
16198       link_all_deplibs_F77=yes
16199     if test "$GCC" = yes ; then
16200         output_verbose_link_cmd='echo'
16201         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16202       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16203       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16204       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16205       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16206     else
16207       case $cc_basename in
16208         xlc*)
16209          output_verbose_link_cmd='echo'
16210          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16211          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16212           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16213          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16214           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16215           ;;
16216        *)
16217          ld_shlibs_F77=no
16218           ;;
16219       esac
16220     fi
16221       ;;
16222
16223     dgux*)
16224       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16225       hardcode_libdir_flag_spec_F77='-L$libdir'
16226       hardcode_shlibpath_var_F77=no
16227       ;;
16228
16229     freebsd1*)
16230       ld_shlibs_F77=no
16231       ;;
16232
16233     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16234     # support.  Future versions do this automatically, but an explicit c++rt0.o
16235     # does not break anything, and helps significantly (at the cost of a little
16236     # extra space).
16237     freebsd2.2*)
16238       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16239       hardcode_libdir_flag_spec_F77='-R$libdir'
16240       hardcode_direct_F77=yes
16241       hardcode_shlibpath_var_F77=no
16242       ;;
16243
16244     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16245     freebsd2*)
16246       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16247       hardcode_direct_F77=yes
16248       hardcode_minus_L_F77=yes
16249       hardcode_shlibpath_var_F77=no
16250       ;;
16251
16252     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16253     freebsd* | dragonfly*)
16254       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16255       hardcode_libdir_flag_spec_F77='-R$libdir'
16256       hardcode_direct_F77=yes
16257       hardcode_shlibpath_var_F77=no
16258       ;;
16259
16260     hpux9*)
16261       if test "$GCC" = yes; then
16262         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16263       else
16264         archive_cmds_F77='$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'
16265       fi
16266       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16267       hardcode_libdir_separator_F77=:
16268       hardcode_direct_F77=yes
16269
16270       # hardcode_minus_L: Not really in the search PATH,
16271       # but as the default location of the library.
16272       hardcode_minus_L_F77=yes
16273       export_dynamic_flag_spec_F77='${wl}-E'
16274       ;;
16275
16276     hpux10*)
16277       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16278         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16279       else
16280         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16281       fi
16282       if test "$with_gnu_ld" = no; then
16283         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16284         hardcode_libdir_separator_F77=:
16285
16286         hardcode_direct_F77=yes
16287         export_dynamic_flag_spec_F77='${wl}-E'
16288
16289         # hardcode_minus_L: Not really in the search PATH,
16290         # but as the default location of the library.
16291         hardcode_minus_L_F77=yes
16292       fi
16293       ;;
16294
16295     hpux11*)
16296       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16297         case $host_cpu in
16298         hppa*64*)
16299           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16300           ;;
16301         ia64*)
16302           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16303           ;;
16304         *)
16305           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16306           ;;
16307         esac
16308       else
16309         case $host_cpu in
16310         hppa*64*)
16311           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16312           ;;
16313         ia64*)
16314           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16315           ;;
16316         *)
16317           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16318           ;;
16319         esac
16320       fi
16321       if test "$with_gnu_ld" = no; then
16322         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16323         hardcode_libdir_separator_F77=:
16324
16325         case $host_cpu in
16326         hppa*64*|ia64*)
16327           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16328           hardcode_direct_F77=no
16329           hardcode_shlibpath_var_F77=no
16330           ;;
16331         *)
16332           hardcode_direct_F77=yes
16333           export_dynamic_flag_spec_F77='${wl}-E'
16334
16335           # hardcode_minus_L: Not really in the search PATH,
16336           # but as the default location of the library.
16337           hardcode_minus_L_F77=yes
16338           ;;
16339         esac
16340       fi
16341       ;;
16342
16343     irix5* | irix6* | nonstopux*)
16344       if test "$GCC" = yes; then
16345         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16346       else
16347         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16348         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16349       fi
16350       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16351       hardcode_libdir_separator_F77=:
16352       link_all_deplibs_F77=yes
16353       ;;
16354
16355     netbsd* | netbsdelf*-gnu)
16356       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16357         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16358       else
16359         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16360       fi
16361       hardcode_libdir_flag_spec_F77='-R$libdir'
16362       hardcode_direct_F77=yes
16363       hardcode_shlibpath_var_F77=no
16364       ;;
16365
16366     newsos6)
16367       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16368       hardcode_direct_F77=yes
16369       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16370       hardcode_libdir_separator_F77=:
16371       hardcode_shlibpath_var_F77=no
16372       ;;
16373
16374     openbsd*)
16375       hardcode_direct_F77=yes
16376       hardcode_shlibpath_var_F77=no
16377       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16378         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16379         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16380         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16381         export_dynamic_flag_spec_F77='${wl}-E'
16382       else
16383        case $host_os in
16384          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16385            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16386            hardcode_libdir_flag_spec_F77='-R$libdir'
16387            ;;
16388          *)
16389            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16390            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16391            ;;
16392        esac
16393       fi
16394       ;;
16395
16396     os2*)
16397       hardcode_libdir_flag_spec_F77='-L$libdir'
16398       hardcode_minus_L_F77=yes
16399       allow_undefined_flag_F77=unsupported
16400       archive_cmds_F77='$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'
16401       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16402       ;;
16403
16404     osf3*)
16405       if test "$GCC" = yes; then
16406         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16407         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16408       else
16409         allow_undefined_flag_F77=' -expect_unresolved \*'
16410         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16411       fi
16412       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16413       hardcode_libdir_separator_F77=:
16414       ;;
16415
16416     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16417       if test "$GCC" = yes; then
16418         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16419         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16420         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16421       else
16422         allow_undefined_flag_F77=' -expect_unresolved \*'
16423         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16424         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16425         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16426
16427         # Both c and cxx compiler support -rpath directly
16428         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16429       fi
16430       hardcode_libdir_separator_F77=:
16431       ;;
16432
16433     solaris*)
16434       no_undefined_flag_F77=' -z text'
16435       if test "$GCC" = yes; then
16436         wlarc='${wl}'
16437         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16438         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16439           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16440       else
16441         wlarc=''
16442         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16443         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16444         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16445       fi
16446       hardcode_libdir_flag_spec_F77='-R$libdir'
16447       hardcode_shlibpath_var_F77=no
16448       case $host_os in
16449       solaris2.[0-5] | solaris2.[0-5].*) ;;
16450       *)
16451         # The compiler driver will combine linker options so we
16452         # cannot just pass the convience library names through
16453         # without $wl, iff we do not link with $LD.
16454         # Luckily, gcc supports the same syntax we need for Sun Studio.
16455         # Supported since Solaris 2.6 (maybe 2.5.1?)
16456         case $wlarc in
16457         '')
16458           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16459         *)
16460           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16461         esac ;;
16462       esac
16463       link_all_deplibs_F77=yes
16464       ;;
16465
16466     sunos4*)
16467       if test "x$host_vendor" = xsequent; then
16468         # Use $CC to link under sequent, because it throws in some extra .o
16469         # files that make .init and .fini sections work.
16470         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16471       else
16472         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16473       fi
16474       hardcode_libdir_flag_spec_F77='-L$libdir'
16475       hardcode_direct_F77=yes
16476       hardcode_minus_L_F77=yes
16477       hardcode_shlibpath_var_F77=no
16478       ;;
16479
16480     sysv4)
16481       case $host_vendor in
16482         sni)
16483           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16484           hardcode_direct_F77=yes # is this really true???
16485         ;;
16486         siemens)
16487           ## LD is ld it makes a PLAMLIB
16488           ## CC just makes a GrossModule.
16489           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16490           reload_cmds_F77='$CC -r -o $output$reload_objs'
16491           hardcode_direct_F77=no
16492         ;;
16493         motorola)
16494           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16496         ;;
16497       esac
16498       runpath_var='LD_RUN_PATH'
16499       hardcode_shlibpath_var_F77=no
16500       ;;
16501
16502     sysv4.3*)
16503       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16504       hardcode_shlibpath_var_F77=no
16505       export_dynamic_flag_spec_F77='-Bexport'
16506       ;;
16507
16508     sysv4*MP*)
16509       if test -d /usr/nec; then
16510         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16511         hardcode_shlibpath_var_F77=no
16512         runpath_var=LD_RUN_PATH
16513         hardcode_runpath_var=yes
16514         ld_shlibs_F77=yes
16515       fi
16516       ;;
16517
16518     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16519       no_undefined_flag_F77='${wl}-z,text'
16520       archive_cmds_need_lc_F77=no
16521       hardcode_shlibpath_var_F77=no
16522       runpath_var='LD_RUN_PATH'
16523
16524       if test "$GCC" = yes; then
16525         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16526         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16527       else
16528         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16529         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16530       fi
16531       ;;
16532
16533     sysv5* | sco3.2v5* | sco5v6*)
16534       # Note: We can NOT use -z defs as we might desire, because we do not
16535       # link with -lc, and that would cause any symbols used from libc to
16536       # always be unresolved, which means just about no library would
16537       # ever link correctly.  If we're not using GNU ld we use -z text
16538       # though, which does catch some bad symbols but isn't as heavy-handed
16539       # as -z defs.
16540       no_undefined_flag_F77='${wl}-z,text'
16541       allow_undefined_flag_F77='${wl}-z,nodefs'
16542       archive_cmds_need_lc_F77=no
16543       hardcode_shlibpath_var_F77=no
16544       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16545       hardcode_libdir_separator_F77=':'
16546       link_all_deplibs_F77=yes
16547       export_dynamic_flag_spec_F77='${wl}-Bexport'
16548       runpath_var='LD_RUN_PATH'
16549
16550       if test "$GCC" = yes; then
16551         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16552         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16553       else
16554         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16555         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16556       fi
16557       ;;
16558
16559     uts4*)
16560       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16561       hardcode_libdir_flag_spec_F77='-L$libdir'
16562       hardcode_shlibpath_var_F77=no
16563       ;;
16564
16565     *)
16566       ld_shlibs_F77=no
16567       ;;
16568     esac
16569   fi
16570
16571 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16572 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16573 test "$ld_shlibs_F77" = no && can_build_shared=no
16574
16575 #
16576 # Do we need to explicitly link libc?
16577 #
16578 case "x$archive_cmds_need_lc_F77" in
16579 x|xyes)
16580   # Assume -lc should be added
16581   archive_cmds_need_lc_F77=yes
16582
16583   if test "$enable_shared" = yes && test "$GCC" = yes; then
16584     case $archive_cmds_F77 in
16585     *'~'*)
16586       # FIXME: we may have to deal with multi-command sequences.
16587       ;;
16588     '$CC '*)
16589       # Test whether the compiler implicitly links with -lc since on some
16590       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16591       # to ld, don't add -lc before -lgcc.
16592       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16593 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16594       $rm conftest*
16595       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16596
16597       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16598   (eval $ac_compile) 2>&5
16599   ac_status=$?
16600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601   (exit $ac_status); } 2>conftest.err; then
16602         soname=conftest
16603         lib=conftest
16604         libobjs=conftest.$ac_objext
16605         deplibs=
16606         wl=$lt_prog_compiler_wl_F77
16607         pic_flag=$lt_prog_compiler_pic_F77
16608         compiler_flags=-v
16609         linker_flags=-v
16610         verstring=
16611         output_objdir=.
16612         libname=conftest
16613         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16614         allow_undefined_flag_F77=
16615         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16616   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); }
16620         then
16621           archive_cmds_need_lc_F77=no
16622         else
16623           archive_cmds_need_lc_F77=yes
16624         fi
16625         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16626       else
16627         cat conftest.err 1>&5
16628       fi
16629       $rm conftest*
16630       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16631 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16632       ;;
16633     esac
16634   fi
16635   ;;
16636 esac
16637
16638 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16639 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16640 library_names_spec=
16641 libname_spec='lib$name'
16642 soname_spec=
16643 shrext_cmds=".so"
16644 postinstall_cmds=
16645 postuninstall_cmds=
16646 finish_cmds=
16647 finish_eval=
16648 shlibpath_var=
16649 shlibpath_overrides_runpath=unknown
16650 version_type=none
16651 dynamic_linker="$host_os ld.so"
16652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16653 if test "$GCC" = yes; then
16654   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16655   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16656     # if the path contains ";" then we assume it to be the separator
16657     # otherwise default to the standard path separator (i.e. ":") - it is
16658     # assumed that no part of a normal pathname contains ";" but that should
16659     # okay in the real world where ";" in dirpaths is itself problematic.
16660     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16661   else
16662     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16663   fi
16664 else
16665   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16666 fi
16667 need_lib_prefix=unknown
16668 hardcode_into_libs=no
16669
16670 # when you set need_version to no, make sure it does not cause -set_version
16671 # flags to be left without arguments
16672 need_version=unknown
16673
16674 case $host_os in
16675 aix3*)
16676   version_type=linux
16677   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16678   shlibpath_var=LIBPATH
16679
16680   # AIX 3 has no versioning support, so we append a major version to the name.
16681   soname_spec='${libname}${release}${shared_ext}$major'
16682   ;;
16683
16684 aix4* | aix5*)
16685   version_type=linux
16686   need_lib_prefix=no
16687   need_version=no
16688   hardcode_into_libs=yes
16689   if test "$host_cpu" = ia64; then
16690     # AIX 5 supports IA64
16691     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16692     shlibpath_var=LD_LIBRARY_PATH
16693   else
16694     # With GCC up to 2.95.x, collect2 would create an import file
16695     # for dependence libraries.  The import file would start with
16696     # the line `#! .'.  This would cause the generated library to
16697     # depend on `.', always an invalid library.  This was fixed in
16698     # development snapshots of GCC prior to 3.0.
16699     case $host_os in
16700       aix4 | aix4.[01] | aix4.[01].*)
16701       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16702            echo ' yes '
16703            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16704         :
16705       else
16706         can_build_shared=no
16707       fi
16708       ;;
16709     esac
16710     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16711     # soname into executable. Probably we can add versioning support to
16712     # collect2, so additional links can be useful in future.
16713     if test "$aix_use_runtimelinking" = yes; then
16714       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16715       # instead of lib<name>.a to let people know that these are not
16716       # typical AIX shared libraries.
16717       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718     else
16719       # We preserve .a as extension for shared libraries through AIX4.2
16720       # and later when we are not doing run time linking.
16721       library_names_spec='${libname}${release}.a $libname.a'
16722       soname_spec='${libname}${release}${shared_ext}$major'
16723     fi
16724     shlibpath_var=LIBPATH
16725   fi
16726   ;;
16727
16728 amigaos*)
16729   library_names_spec='$libname.ixlibrary $libname.a'
16730   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16731   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
16732   ;;
16733
16734 beos*)
16735   library_names_spec='${libname}${shared_ext}'
16736   dynamic_linker="$host_os ld.so"
16737   shlibpath_var=LIBRARY_PATH
16738   ;;
16739
16740 bsdi[45]*)
16741   version_type=linux
16742   need_version=no
16743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16744   soname_spec='${libname}${release}${shared_ext}$major'
16745   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16746   shlibpath_var=LD_LIBRARY_PATH
16747   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16748   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16749   # the default ld.so.conf also contains /usr/contrib/lib and
16750   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16751   # libtool to hard-code these into programs
16752   ;;
16753
16754 cygwin* | mingw* | pw32*)
16755   version_type=windows
16756   shrext_cmds=".dll"
16757   need_version=no
16758   need_lib_prefix=no
16759
16760   case $GCC,$host_os in
16761   yes,cygwin* | yes,mingw* | yes,pw32*)
16762     library_names_spec='$libname.dll.a'
16763     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16764     postinstall_cmds='base_file=`basename \${file}`~
16765       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16766       dldir=$destdir/`dirname \$dlpath`~
16767       test -d \$dldir || mkdir -p \$dldir~
16768       $install_prog $dir/$dlname \$dldir/$dlname~
16769       chmod a+x \$dldir/$dlname'
16770     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16771       dlpath=$dir/\$dldll~
16772        $rm \$dlpath'
16773     shlibpath_overrides_runpath=yes
16774
16775     case $host_os in
16776     cygwin*)
16777       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16778       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16779       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16780       ;;
16781     mingw*)
16782       # MinGW DLLs use traditional 'lib' prefix
16783       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16784       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16785       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16786         # It is most probably a Windows format PATH printed by
16787         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16788         # path with ; separators, and with drive letters. We can handle the
16789         # drive letters (cygwin fileutils understands them), so leave them,
16790         # especially as we might pass files found there to a mingw objdump,
16791         # which wouldn't understand a cygwinified path. Ahh.
16792         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16793       else
16794         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16795       fi
16796       ;;
16797     pw32*)
16798       # pw32 DLLs use 'pw' prefix rather than 'lib'
16799       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16800       ;;
16801     esac
16802     ;;
16803
16804   *)
16805     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16806     ;;
16807   esac
16808   dynamic_linker='Win32 ld.exe'
16809   # FIXME: first we should search . and the directory the executable is in
16810   shlibpath_var=PATH
16811   ;;
16812
16813 darwin* | rhapsody*)
16814   dynamic_linker="$host_os dyld"
16815   version_type=darwin
16816   need_lib_prefix=no
16817   need_version=no
16818   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16819   soname_spec='${libname}${release}${major}$shared_ext'
16820   shlibpath_overrides_runpath=yes
16821   shlibpath_var=DYLD_LIBRARY_PATH
16822   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16823   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16824   if test "$GCC" = yes; then
16825     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16826   else
16827     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16828   fi
16829   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16830   ;;
16831
16832 dgux*)
16833   version_type=linux
16834   need_lib_prefix=no
16835   need_version=no
16836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16837   soname_spec='${libname}${release}${shared_ext}$major'
16838   shlibpath_var=LD_LIBRARY_PATH
16839   ;;
16840
16841 freebsd1*)
16842   dynamic_linker=no
16843   ;;
16844
16845 freebsd* | dragonfly*)
16846   # DragonFly does not have aout.  When/if they implement a new
16847   # versioning mechanism, adjust this.
16848   if test -x /usr/bin/objformat; then
16849     objformat=`/usr/bin/objformat`
16850   else
16851     case $host_os in
16852     freebsd[123]*) objformat=aout ;;
16853     *) objformat=elf ;;
16854     esac
16855   fi
16856   version_type=freebsd-$objformat
16857   case $version_type in
16858     freebsd-elf*)
16859       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16860       need_version=no
16861       need_lib_prefix=no
16862       ;;
16863     freebsd-*)
16864       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16865       need_version=yes
16866       ;;
16867   esac
16868   shlibpath_var=LD_LIBRARY_PATH
16869   case $host_os in
16870   freebsd2*)
16871     shlibpath_overrides_runpath=yes
16872     ;;
16873   freebsd3.[01]* | freebsdelf3.[01]*)
16874     shlibpath_overrides_runpath=yes
16875     hardcode_into_libs=yes
16876     ;;
16877   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16878   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16879     shlibpath_overrides_runpath=no
16880     hardcode_into_libs=yes
16881     ;;
16882   freebsd*) # from 4.6 on
16883     shlibpath_overrides_runpath=yes
16884     hardcode_into_libs=yes
16885     ;;
16886   esac
16887   ;;
16888
16889 gnu*)
16890   version_type=linux
16891   need_lib_prefix=no
16892   need_version=no
16893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16894   soname_spec='${libname}${release}${shared_ext}$major'
16895   shlibpath_var=LD_LIBRARY_PATH
16896   hardcode_into_libs=yes
16897   ;;
16898
16899 hpux9* | hpux10* | hpux11*)
16900   # Give a soname corresponding to the major version so that dld.sl refuses to
16901   # link against other versions.
16902   version_type=sunos
16903   need_lib_prefix=no
16904   need_version=no
16905   case $host_cpu in
16906   ia64*)
16907     shrext_cmds='.so'
16908     hardcode_into_libs=yes
16909     dynamic_linker="$host_os dld.so"
16910     shlibpath_var=LD_LIBRARY_PATH
16911     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16912     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913     soname_spec='${libname}${release}${shared_ext}$major'
16914     if test "X$HPUX_IA64_MODE" = X32; then
16915       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16916     else
16917       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16918     fi
16919     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16920     ;;
16921    hppa*64*)
16922      shrext_cmds='.sl'
16923      hardcode_into_libs=yes
16924      dynamic_linker="$host_os dld.sl"
16925      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16926      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16927      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928      soname_spec='${libname}${release}${shared_ext}$major'
16929      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16930      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16931      ;;
16932    *)
16933     shrext_cmds='.sl'
16934     dynamic_linker="$host_os dld.sl"
16935     shlibpath_var=SHLIB_PATH
16936     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938     soname_spec='${libname}${release}${shared_ext}$major'
16939     ;;
16940   esac
16941   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16942   postinstall_cmds='chmod 555 $lib'
16943   ;;
16944
16945 interix3*)
16946   version_type=linux
16947   need_lib_prefix=no
16948   need_version=no
16949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16950   soname_spec='${libname}${release}${shared_ext}$major'
16951   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16952   shlibpath_var=LD_LIBRARY_PATH
16953   shlibpath_overrides_runpath=no
16954   hardcode_into_libs=yes
16955   ;;
16956
16957 irix5* | irix6* | nonstopux*)
16958   case $host_os in
16959     nonstopux*) version_type=nonstopux ;;
16960     *)
16961         if test "$lt_cv_prog_gnu_ld" = yes; then
16962                 version_type=linux
16963         else
16964                 version_type=irix
16965         fi ;;
16966   esac
16967   need_lib_prefix=no
16968   need_version=no
16969   soname_spec='${libname}${release}${shared_ext}$major'
16970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16971   case $host_os in
16972   irix5* | nonstopux*)
16973     libsuff= shlibsuff=
16974     ;;
16975   *)
16976     case $LD in # libtool.m4 will add one of these switches to LD
16977     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16978       libsuff= shlibsuff= libmagic=32-bit;;
16979     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16980       libsuff=32 shlibsuff=N32 libmagic=N32;;
16981     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16982       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16983     *) libsuff= shlibsuff= libmagic=never-match;;
16984     esac
16985     ;;
16986   esac
16987   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16988   shlibpath_overrides_runpath=no
16989   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16990   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16991   hardcode_into_libs=yes
16992   ;;
16993
16994 # No shared lib support for Linux oldld, aout, or coff.
16995 linux*oldld* | linux*aout* | linux*coff*)
16996   dynamic_linker=no
16997   ;;
16998
16999 # This must be Linux ELF.
17000 linux* | k*bsd*-gnu)
17001   version_type=linux
17002   need_lib_prefix=no
17003   need_version=no
17004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005   soname_spec='${libname}${release}${shared_ext}$major'
17006   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17007   shlibpath_var=LD_LIBRARY_PATH
17008   shlibpath_overrides_runpath=no
17009   # This implies no fast_install, which is unacceptable.
17010   # Some rework will be needed to allow for fast_install
17011   # before this can be enabled.
17012   hardcode_into_libs=yes
17013
17014   # Append ld.so.conf contents to the search path
17015   if test -f /etc/ld.so.conf; then
17016     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17017     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17018   fi
17019
17020   # We used to test for /lib/ld.so.1 and disable shared libraries on
17021   # powerpc, because MkLinux only supported shared libraries with the
17022   # GNU dynamic linker.  Since this was broken with cross compilers,
17023   # most powerpc-linux boxes support dynamic linking these days and
17024   # people can always --disable-shared, the test was removed, and we
17025   # assume the GNU/Linux dynamic linker is in use.
17026   dynamic_linker='GNU/Linux ld.so'
17027   ;;
17028
17029 netbsdelf*-gnu)
17030   version_type=linux
17031   need_lib_prefix=no
17032   need_version=no
17033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17034   soname_spec='${libname}${release}${shared_ext}$major'
17035   shlibpath_var=LD_LIBRARY_PATH
17036   shlibpath_overrides_runpath=no
17037   hardcode_into_libs=yes
17038   dynamic_linker='NetBSD ld.elf_so'
17039   ;;
17040
17041 netbsd*)
17042   version_type=sunos
17043   need_lib_prefix=no
17044   need_version=no
17045   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17047     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17048     dynamic_linker='NetBSD (a.out) ld.so'
17049   else
17050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17051     soname_spec='${libname}${release}${shared_ext}$major'
17052     dynamic_linker='NetBSD ld.elf_so'
17053   fi
17054   shlibpath_var=LD_LIBRARY_PATH
17055   shlibpath_overrides_runpath=yes
17056   hardcode_into_libs=yes
17057   ;;
17058
17059 newsos6)
17060   version_type=linux
17061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062   shlibpath_var=LD_LIBRARY_PATH
17063   shlibpath_overrides_runpath=yes
17064   ;;
17065
17066 nto-qnx*)
17067   version_type=linux
17068   need_lib_prefix=no
17069   need_version=no
17070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071   soname_spec='${libname}${release}${shared_ext}$major'
17072   shlibpath_var=LD_LIBRARY_PATH
17073   shlibpath_overrides_runpath=yes
17074   ;;
17075
17076 openbsd*)
17077   version_type=sunos
17078   sys_lib_dlsearch_path_spec="/usr/lib"
17079   need_lib_prefix=no
17080   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17081   case $host_os in
17082     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17083     *)                         need_version=no  ;;
17084   esac
17085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17086   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17087   shlibpath_var=LD_LIBRARY_PATH
17088   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17089     case $host_os in
17090       openbsd2.[89] | openbsd2.[89].*)
17091         shlibpath_overrides_runpath=no
17092         ;;
17093       *)
17094         shlibpath_overrides_runpath=yes
17095         ;;
17096       esac
17097   else
17098     shlibpath_overrides_runpath=yes
17099   fi
17100   ;;
17101
17102 os2*)
17103   libname_spec='$name'
17104   shrext_cmds=".dll"
17105   need_lib_prefix=no
17106   library_names_spec='$libname${shared_ext} $libname.a'
17107   dynamic_linker='OS/2 ld.exe'
17108   shlibpath_var=LIBPATH
17109   ;;
17110
17111 osf3* | osf4* | osf5*)
17112   version_type=osf
17113   need_lib_prefix=no
17114   need_version=no
17115   soname_spec='${libname}${release}${shared_ext}$major'
17116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117   shlibpath_var=LD_LIBRARY_PATH
17118   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17119   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17120   ;;
17121
17122 solaris*)
17123   version_type=linux
17124   need_lib_prefix=no
17125   need_version=no
17126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17127   soname_spec='${libname}${release}${shared_ext}$major'
17128   shlibpath_var=LD_LIBRARY_PATH
17129   shlibpath_overrides_runpath=yes
17130   hardcode_into_libs=yes
17131   # ldd complains unless libraries are executable
17132   postinstall_cmds='chmod +x $lib'
17133   ;;
17134
17135 sunos4*)
17136   version_type=sunos
17137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17138   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17139   shlibpath_var=LD_LIBRARY_PATH
17140   shlibpath_overrides_runpath=yes
17141   if test "$with_gnu_ld" = yes; then
17142     need_lib_prefix=no
17143   fi
17144   need_version=yes
17145   ;;
17146
17147 sysv4 | sysv4.3*)
17148   version_type=linux
17149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150   soname_spec='${libname}${release}${shared_ext}$major'
17151   shlibpath_var=LD_LIBRARY_PATH
17152   case $host_vendor in
17153     sni)
17154       shlibpath_overrides_runpath=no
17155       need_lib_prefix=no
17156       export_dynamic_flag_spec='${wl}-Blargedynsym'
17157       runpath_var=LD_RUN_PATH
17158       ;;
17159     siemens)
17160       need_lib_prefix=no
17161       ;;
17162     motorola)
17163       need_lib_prefix=no
17164       need_version=no
17165       shlibpath_overrides_runpath=no
17166       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17167       ;;
17168   esac
17169   ;;
17170
17171 sysv4*MP*)
17172   if test -d /usr/nec ;then
17173     version_type=linux
17174     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17175     soname_spec='$libname${shared_ext}.$major'
17176     shlibpath_var=LD_LIBRARY_PATH
17177   fi
17178   ;;
17179
17180 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17181   version_type=freebsd-elf
17182   need_lib_prefix=no
17183   need_version=no
17184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17185   soname_spec='${libname}${release}${shared_ext}$major'
17186   shlibpath_var=LD_LIBRARY_PATH
17187   hardcode_into_libs=yes
17188   if test "$with_gnu_ld" = yes; then
17189     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17190     shlibpath_overrides_runpath=no
17191   else
17192     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17193     shlibpath_overrides_runpath=yes
17194     case $host_os in
17195       sco3.2v5*)
17196         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17197         ;;
17198     esac
17199   fi
17200   sys_lib_dlsearch_path_spec='/usr/lib'
17201   ;;
17202
17203 uts4*)
17204   version_type=linux
17205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206   soname_spec='${libname}${release}${shared_ext}$major'
17207   shlibpath_var=LD_LIBRARY_PATH
17208   ;;
17209
17210 *)
17211   dynamic_linker=no
17212   ;;
17213 esac
17214 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17215 echo "${ECHO_T}$dynamic_linker" >&6; }
17216 test "$dynamic_linker" = no && can_build_shared=no
17217
17218 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17219 if test "$GCC" = yes; then
17220   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17221 fi
17222
17223 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17224 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17225 hardcode_action_F77=
17226 if test -n "$hardcode_libdir_flag_spec_F77" || \
17227    test -n "$runpath_var_F77" || \
17228    test "X$hardcode_automatic_F77" = "Xyes" ; then
17229
17230   # We can hardcode non-existant directories.
17231   if test "$hardcode_direct_F77" != no &&
17232      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17233      # have to relink, otherwise we might link with an installed library
17234      # when we should be linking with a yet-to-be-installed one
17235      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17236      test "$hardcode_minus_L_F77" != no; then
17237     # Linking always hardcodes the temporary library directory.
17238     hardcode_action_F77=relink
17239   else
17240     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17241     hardcode_action_F77=immediate
17242   fi
17243 else
17244   # We cannot hardcode anything, or else we can only hardcode existing
17245   # directories.
17246   hardcode_action_F77=unsupported
17247 fi
17248 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17249 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17250
17251 if test "$hardcode_action_F77" = relink; then
17252   # Fast installation is not supported
17253   enable_fast_install=no
17254 elif test "$shlibpath_overrides_runpath" = yes ||
17255      test "$enable_shared" = no; then
17256   # Fast installation is not necessary
17257   enable_fast_install=needless
17258 fi
17259
17260
17261 # The else clause should only fire when bootstrapping the
17262 # libtool distribution, otherwise you forgot to ship ltmain.sh
17263 # with your package, and you will get complaints that there are
17264 # no rules to generate ltmain.sh.
17265 if test -f "$ltmain"; then
17266   # See if we are running on zsh, and set the options which allow our commands through
17267   # without removal of \ escapes.
17268   if test -n "${ZSH_VERSION+set}" ; then
17269     setopt NO_GLOB_SUBST
17270   fi
17271   # Now quote all the things that may contain metacharacters while being
17272   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17273   # variables and quote the copies for generation of the libtool script.
17274   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17275     SED SHELL STRIP \
17276     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17277     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17278     deplibs_check_method reload_flag reload_cmds need_locks \
17279     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17280     lt_cv_sys_global_symbol_to_c_name_address \
17281     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17282     old_postinstall_cmds old_postuninstall_cmds \
17283     compiler_F77 \
17284     CC_F77 \
17285     LD_F77 \
17286     lt_prog_compiler_wl_F77 \
17287     lt_prog_compiler_pic_F77 \
17288     lt_prog_compiler_static_F77 \
17289     lt_prog_compiler_no_builtin_flag_F77 \
17290     export_dynamic_flag_spec_F77 \
17291     thread_safe_flag_spec_F77 \
17292     whole_archive_flag_spec_F77 \
17293     enable_shared_with_static_runtimes_F77 \
17294     old_archive_cmds_F77 \
17295     old_archive_from_new_cmds_F77 \
17296     predep_objects_F77 \
17297     postdep_objects_F77 \
17298     predeps_F77 \
17299     postdeps_F77 \
17300     compiler_lib_search_path_F77 \
17301     archive_cmds_F77 \
17302     archive_expsym_cmds_F77 \
17303     postinstall_cmds_F77 \
17304     postuninstall_cmds_F77 \
17305     old_archive_from_expsyms_cmds_F77 \
17306     allow_undefined_flag_F77 \
17307     no_undefined_flag_F77 \
17308     export_symbols_cmds_F77 \
17309     hardcode_libdir_flag_spec_F77 \
17310     hardcode_libdir_flag_spec_ld_F77 \
17311     hardcode_libdir_separator_F77 \
17312     hardcode_automatic_F77 \
17313     module_cmds_F77 \
17314     module_expsym_cmds_F77 \
17315     lt_cv_prog_compiler_c_o_F77 \
17316     exclude_expsyms_F77 \
17317     include_expsyms_F77; do
17318
17319     case $var in
17320     old_archive_cmds_F77 | \
17321     old_archive_from_new_cmds_F77 | \
17322     archive_cmds_F77 | \
17323     archive_expsym_cmds_F77 | \
17324     module_cmds_F77 | \
17325     module_expsym_cmds_F77 | \
17326     old_archive_from_expsyms_cmds_F77 | \
17327     export_symbols_cmds_F77 | \
17328     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17329     postinstall_cmds | postuninstall_cmds | \
17330     old_postinstall_cmds | old_postuninstall_cmds | \
17331     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17332       # Double-quote double-evaled strings.
17333       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17334       ;;
17335     *)
17336       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17337       ;;
17338     esac
17339   done
17340
17341   case $lt_echo in
17342   *'\$0 --fallback-echo"')
17343     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17344     ;;
17345   esac
17346
17347 cfgfile="$ofile"
17348
17349   cat <<__EOF__ >> "$cfgfile"
17350 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17351
17352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17353
17354 # Shell to use when invoking shell scripts.
17355 SHELL=$lt_SHELL
17356
17357 # Whether or not to build shared libraries.
17358 build_libtool_libs=$enable_shared
17359
17360 # Whether or not to build static libraries.
17361 build_old_libs=$enable_static
17362
17363 # Whether or not to add -lc for building shared libraries.
17364 build_libtool_need_lc=$archive_cmds_need_lc_F77
17365
17366 # Whether or not to disallow shared libs when runtime libs are static
17367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17368
17369 # Whether or not to optimize for fast installation.
17370 fast_install=$enable_fast_install
17371
17372 # The host system.
17373 host_alias=$host_alias
17374 host=$host
17375 host_os=$host_os
17376
17377 # The build system.
17378 build_alias=$build_alias
17379 build=$build
17380 build_os=$build_os
17381
17382 # An echo program that does not interpret backslashes.
17383 echo=$lt_echo
17384
17385 # The archiver.
17386 AR=$lt_AR
17387 AR_FLAGS=$lt_AR_FLAGS
17388
17389 # A C compiler.
17390 LTCC=$lt_LTCC
17391
17392 # LTCC compiler flags.
17393 LTCFLAGS=$lt_LTCFLAGS
17394
17395 # A language-specific compiler.
17396 CC=$lt_compiler_F77
17397
17398 # Is the compiler the GNU C compiler?
17399 with_gcc=$GCC_F77
17400
17401 # An ERE matcher.
17402 EGREP=$lt_EGREP
17403
17404 # The linker used to build libraries.
17405 LD=$lt_LD_F77
17406
17407 # Whether we need hard or soft links.
17408 LN_S=$lt_LN_S
17409
17410 # A BSD-compatible nm program.
17411 NM=$lt_NM
17412
17413 # A symbol stripping program
17414 STRIP=$lt_STRIP
17415
17416 # Used to examine libraries when file_magic_cmd begins "file"
17417 MAGIC_CMD=$MAGIC_CMD
17418
17419 # Used on cygwin: DLL creation program.
17420 DLLTOOL="$DLLTOOL"
17421
17422 # Used on cygwin: object dumper.
17423 OBJDUMP="$OBJDUMP"
17424
17425 # Used on cygwin: assembler.
17426 AS="$AS"
17427
17428 # The name of the directory that contains temporary libtool files.
17429 objdir=$objdir
17430
17431 # How to create reloadable object files.
17432 reload_flag=$lt_reload_flag
17433 reload_cmds=$lt_reload_cmds
17434
17435 # How to pass a linker flag through the compiler.
17436 wl=$lt_lt_prog_compiler_wl_F77
17437
17438 # Object file suffix (normally "o").
17439 objext="$ac_objext"
17440
17441 # Old archive suffix (normally "a").
17442 libext="$libext"
17443
17444 # Shared library suffix (normally ".so").
17445 shrext_cmds='$shrext_cmds'
17446
17447 # Executable file suffix (normally "").
17448 exeext="$exeext"
17449
17450 # Additional compiler flags for building library objects.
17451 pic_flag=$lt_lt_prog_compiler_pic_F77
17452 pic_mode=$pic_mode
17453
17454 # What is the maximum length of a command?
17455 max_cmd_len=$lt_cv_sys_max_cmd_len
17456
17457 # Does compiler simultaneously support -c and -o options?
17458 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17459
17460 # Must we lock files when doing compilation?
17461 need_locks=$lt_need_locks
17462
17463 # Do we need the lib prefix for modules?
17464 need_lib_prefix=$need_lib_prefix
17465
17466 # Do we need a version for libraries?
17467 need_version=$need_version
17468
17469 # Whether dlopen is supported.
17470 dlopen_support=$enable_dlopen
17471
17472 # Whether dlopen of programs is supported.
17473 dlopen_self=$enable_dlopen_self
17474
17475 # Whether dlopen of statically linked programs is supported.
17476 dlopen_self_static=$enable_dlopen_self_static
17477
17478 # Compiler flag to prevent dynamic linking.
17479 link_static_flag=$lt_lt_prog_compiler_static_F77
17480
17481 # Compiler flag to turn off builtin functions.
17482 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17483
17484 # Compiler flag to allow reflexive dlopens.
17485 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17486
17487 # Compiler flag to generate shared objects directly from archives.
17488 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17489
17490 # Compiler flag to generate thread-safe objects.
17491 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17492
17493 # Library versioning type.
17494 version_type=$version_type
17495
17496 # Format of library name prefix.
17497 libname_spec=$lt_libname_spec
17498
17499 # List of archive names.  First name is the real one, the rest are links.
17500 # The last name is the one that the linker finds with -lNAME.
17501 library_names_spec=$lt_library_names_spec
17502
17503 # The coded name of the library, if different from the real name.
17504 soname_spec=$lt_soname_spec
17505
17506 # Commands used to build and install an old-style archive.
17507 RANLIB=$lt_RANLIB
17508 old_archive_cmds=$lt_old_archive_cmds_F77
17509 old_postinstall_cmds=$lt_old_postinstall_cmds
17510 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17511
17512 # Create an old-style archive from a shared archive.
17513 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17514
17515 # Create a temporary old-style archive to link instead of a shared archive.
17516 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17517
17518 # Commands used to build and install a shared archive.
17519 archive_cmds=$lt_archive_cmds_F77
17520 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17521 postinstall_cmds=$lt_postinstall_cmds
17522 postuninstall_cmds=$lt_postuninstall_cmds
17523
17524 # Commands used to build a loadable module (assumed same as above if empty)
17525 module_cmds=$lt_module_cmds_F77
17526 module_expsym_cmds=$lt_module_expsym_cmds_F77
17527
17528 # Commands to strip libraries.
17529 old_striplib=$lt_old_striplib
17530 striplib=$lt_striplib
17531
17532 # Dependencies to place before the objects being linked to create a
17533 # shared library.
17534 predep_objects=$lt_predep_objects_F77
17535
17536 # Dependencies to place after the objects being linked to create a
17537 # shared library.
17538 postdep_objects=$lt_postdep_objects_F77
17539
17540 # Dependencies to place before the objects being linked to create a
17541 # shared library.
17542 predeps=$lt_predeps_F77
17543
17544 # Dependencies to place after the objects being linked to create a
17545 # shared library.
17546 postdeps=$lt_postdeps_F77
17547
17548 # The library search path used internally by the compiler when linking
17549 # a shared library.
17550 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17551
17552 # Method to check whether dependent libraries are shared objects.
17553 deplibs_check_method=$lt_deplibs_check_method
17554
17555 # Command to use when deplibs_check_method == file_magic.
17556 file_magic_cmd=$lt_file_magic_cmd
17557
17558 # Flag that allows shared libraries with undefined symbols to be built.
17559 allow_undefined_flag=$lt_allow_undefined_flag_F77
17560
17561 # Flag that forces no undefined symbols.
17562 no_undefined_flag=$lt_no_undefined_flag_F77
17563
17564 # Commands used to finish a libtool library installation in a directory.
17565 finish_cmds=$lt_finish_cmds
17566
17567 # Same as above, but a single script fragment to be evaled but not shown.
17568 finish_eval=$lt_finish_eval
17569
17570 # Take the output of nm and produce a listing of raw symbols and C names.
17571 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17572
17573 # Transform the output of nm in a proper C declaration
17574 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17575
17576 # Transform the output of nm in a C name address pair
17577 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17578
17579 # This is the shared library runtime path variable.
17580 runpath_var=$runpath_var
17581
17582 # This is the shared library path variable.
17583 shlibpath_var=$shlibpath_var
17584
17585 # Is shlibpath searched before the hard-coded library search path?
17586 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17587
17588 # How to hardcode a shared library path into an executable.
17589 hardcode_action=$hardcode_action_F77
17590
17591 # Whether we should hardcode library paths into libraries.
17592 hardcode_into_libs=$hardcode_into_libs
17593
17594 # Flag to hardcode \$libdir into a binary during linking.
17595 # This must work even if \$libdir does not exist.
17596 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17597
17598 # If ld is used when linking, flag to hardcode \$libdir into
17599 # a binary during linking. This must work even if \$libdir does
17600 # not exist.
17601 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17602
17603 # Whether we need a single -rpath flag with a separated argument.
17604 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17605
17606 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17607 # resulting binary.
17608 hardcode_direct=$hardcode_direct_F77
17609
17610 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17611 # resulting binary.
17612 hardcode_minus_L=$hardcode_minus_L_F77
17613
17614 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17615 # the resulting binary.
17616 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17617
17618 # Set to yes if building a shared library automatically hardcodes DIR into the library
17619 # and all subsequent libraries and executables linked against it.
17620 hardcode_automatic=$hardcode_automatic_F77
17621
17622 # Variables whose values should be saved in libtool wrapper scripts and
17623 # restored at relink time.
17624 variables_saved_for_relink="$variables_saved_for_relink"
17625
17626 # Whether libtool must link a program against all its dependency libraries.
17627 link_all_deplibs=$link_all_deplibs_F77
17628
17629 # Compile-time system search path for libraries
17630 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17631
17632 # Run-time system search path for libraries
17633 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17634
17635 # Fix the shell variable \$srcfile for the compiler.
17636 fix_srcfile_path="$fix_srcfile_path_F77"
17637
17638 # Set to yes if exported symbols are required.
17639 always_export_symbols=$always_export_symbols_F77
17640
17641 # The commands to list exported symbols.
17642 export_symbols_cmds=$lt_export_symbols_cmds_F77
17643
17644 # The commands to extract the exported symbol list from a shared archive.
17645 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17646
17647 # Symbols that should not be listed in the preloaded symbols.
17648 exclude_expsyms=$lt_exclude_expsyms_F77
17649
17650 # Symbols that must always be exported.
17651 include_expsyms=$lt_include_expsyms_F77
17652
17653 # ### END LIBTOOL TAG CONFIG: $tagname
17654
17655 __EOF__
17656
17657
17658 else
17659   # If there is no Makefile yet, we rely on a make rule to execute
17660   # `config.status --recheck' to rerun these tests and create the
17661   # libtool script then.
17662   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17663   if test -f "$ltmain_in"; then
17664     test -f Makefile && make "$ltmain"
17665   fi
17666 fi
17667
17668
17669 ac_ext=c
17670 ac_cpp='$CPP $CPPFLAGS'
17671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17674
17675 CC="$lt_save_CC"
17676
17677         else
17678           tagname=""
17679         fi
17680         ;;
17681
17682       GCJ)
17683         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17684
17685
17686 # Source file extension for Java test sources.
17687 ac_ext=java
17688
17689 # Object file extension for compiled Java test sources.
17690 objext=o
17691 objext_GCJ=$objext
17692
17693 # Code to be used in simple compile tests
17694 lt_simple_compile_test_code="class foo {}\n"
17695
17696 # Code to be used in simple link tests
17697 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17698
17699 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17700
17701 # If no C compiler was specified, use CC.
17702 LTCC=${LTCC-"$CC"}
17703
17704 # If no C compiler flags were specified, use CFLAGS.
17705 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17706
17707 # Allow CC to be a program name with arguments.
17708 compiler=$CC
17709
17710
17711 # save warnings/boilerplate of simple test code
17712 ac_outfile=conftest.$ac_objext
17713 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17714 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17715 _lt_compiler_boilerplate=`cat conftest.err`
17716 $rm conftest*
17717
17718 ac_outfile=conftest.$ac_objext
17719 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17720 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17721 _lt_linker_boilerplate=`cat conftest.err`
17722 $rm conftest*
17723
17724
17725 # Allow CC to be a program name with arguments.
17726 lt_save_CC="$CC"
17727 CC=${GCJ-"gcj"}
17728 compiler=$CC
17729 compiler_GCJ=$CC
17730 for cc_temp in $compiler""; do
17731   case $cc_temp in
17732     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17733     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17734     \-*) ;;
17735     *) break;;
17736   esac
17737 done
17738 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17739
17740
17741 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17742 archive_cmds_need_lc_GCJ=no
17743
17744 old_archive_cmds_GCJ=$old_archive_cmds
17745
17746
17747 lt_prog_compiler_no_builtin_flag_GCJ=
17748
17749 if test "$GCC" = yes; then
17750   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17751
17752
17753 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17754 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17755 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17756   echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758   lt_cv_prog_compiler_rtti_exceptions=no
17759   ac_outfile=conftest.$ac_objext
17760    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17761    lt_compiler_flag="-fno-rtti -fno-exceptions"
17762    # Insert the option either (1) after the last *FLAGS variable, or
17763    # (2) before a word containing "conftest.", or (3) at the end.
17764    # Note that $ac_compile itself does not contain backslashes and begins
17765    # with a dollar sign (not a hyphen), so the echo should work correctly.
17766    # The option is referenced via a variable to avoid confusing sed.
17767    lt_compile=`echo "$ac_compile" | $SED \
17768    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17769    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17770    -e 's:$: $lt_compiler_flag:'`
17771    (eval echo "\"\$as_me:17771: $lt_compile\"" >&5)
17772    (eval "$lt_compile" 2>conftest.err)
17773    ac_status=$?
17774    cat conftest.err >&5
17775    echo "$as_me:17775: \$? = $ac_status" >&5
17776    if (exit $ac_status) && test -s "$ac_outfile"; then
17777      # The compiler can only warn and ignore the option if not recognized
17778      # So say no if there are warnings other than the usual output.
17779      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17780      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17781      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17782        lt_cv_prog_compiler_rtti_exceptions=yes
17783      fi
17784    fi
17785    $rm conftest*
17786
17787 fi
17788 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17789 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17790
17791 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17792     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17793 else
17794     :
17795 fi
17796
17797 fi
17798
17799 lt_prog_compiler_wl_GCJ=
17800 lt_prog_compiler_pic_GCJ=
17801 lt_prog_compiler_static_GCJ=
17802
17803 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17804 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17805
17806   if test "$GCC" = yes; then
17807     lt_prog_compiler_wl_GCJ='-Wl,'
17808     lt_prog_compiler_static_GCJ='-static'
17809
17810     case $host_os in
17811       aix*)
17812       # All AIX code is PIC.
17813       if test "$host_cpu" = ia64; then
17814         # AIX 5 now supports IA64 processor
17815         lt_prog_compiler_static_GCJ='-Bstatic'
17816       fi
17817       ;;
17818
17819     amigaos*)
17820       # FIXME: we need at least 68020 code to build shared libraries, but
17821       # adding the `-m68020' flag to GCC prevents building anything better,
17822       # like `-m68040'.
17823       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17824       ;;
17825
17826     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17827       # PIC is the default for these OSes.
17828       ;;
17829
17830     mingw* | pw32* | os2*)
17831       # This hack is so that the source file can tell whether it is being
17832       # built for inclusion in a dll (and should export symbols for example).
17833       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17834       ;;
17835
17836     darwin* | rhapsody*)
17837       # PIC is the default on this platform
17838       # Common symbols not allowed in MH_DYLIB files
17839       lt_prog_compiler_pic_GCJ='-fno-common'
17840       ;;
17841
17842     interix3*)
17843       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17844       # Instead, we relocate shared libraries at runtime.
17845       ;;
17846
17847     msdosdjgpp*)
17848       # Just because we use GCC doesn't mean we suddenly get shared libraries
17849       # on systems that don't support them.
17850       lt_prog_compiler_can_build_shared_GCJ=no
17851       enable_shared=no
17852       ;;
17853
17854     sysv4*MP*)
17855       if test -d /usr/nec; then
17856         lt_prog_compiler_pic_GCJ=-Kconform_pic
17857       fi
17858       ;;
17859
17860     hpux*)
17861       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17862       # not for PA HP-UX.
17863       case $host_cpu in
17864       hppa*64*|ia64*)
17865         # +Z the default
17866         ;;
17867       *)
17868         lt_prog_compiler_pic_GCJ='-fPIC'
17869         ;;
17870       esac
17871       ;;
17872
17873     *)
17874       lt_prog_compiler_pic_GCJ='-fPIC'
17875       ;;
17876     esac
17877   else
17878     # PORTME Check for flag to pass linker flags through the system compiler.
17879     case $host_os in
17880     aix*)
17881       lt_prog_compiler_wl_GCJ='-Wl,'
17882       if test "$host_cpu" = ia64; then
17883         # AIX 5 now supports IA64 processor
17884         lt_prog_compiler_static_GCJ='-Bstatic'
17885       else
17886         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17887       fi
17888       ;;
17889       darwin*)
17890         # PIC is the default on this platform
17891         # Common symbols not allowed in MH_DYLIB files
17892        case $cc_basename in
17893          xlc*)
17894          lt_prog_compiler_pic_GCJ='-qnocommon'
17895          lt_prog_compiler_wl_GCJ='-Wl,'
17896          ;;
17897        esac
17898        ;;
17899
17900     mingw* | pw32* | os2*)
17901       # This hack is so that the source file can tell whether it is being
17902       # built for inclusion in a dll (and should export symbols for example).
17903       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17904       ;;
17905
17906     hpux9* | hpux10* | hpux11*)
17907       lt_prog_compiler_wl_GCJ='-Wl,'
17908       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17909       # not for PA HP-UX.
17910       case $host_cpu in
17911       hppa*64*|ia64*)
17912         # +Z the default
17913         ;;
17914       *)
17915         lt_prog_compiler_pic_GCJ='+Z'
17916         ;;
17917       esac
17918       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17919       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17920       ;;
17921
17922     irix5* | irix6* | nonstopux*)
17923       lt_prog_compiler_wl_GCJ='-Wl,'
17924       # PIC (with -KPIC) is the default.
17925       lt_prog_compiler_static_GCJ='-non_shared'
17926       ;;
17927
17928     newsos6)
17929       lt_prog_compiler_pic_GCJ='-KPIC'
17930       lt_prog_compiler_static_GCJ='-Bstatic'
17931       ;;
17932
17933     linux* | k*bsd*-gnu)
17934       case $cc_basename in
17935       icc* | ecc*)
17936         lt_prog_compiler_wl_GCJ='-Wl,'
17937         lt_prog_compiler_pic_GCJ='-KPIC'
17938         lt_prog_compiler_static_GCJ='-static'
17939         ;;
17940       pgcc* | pgf77* | pgf90* | pgf95*)
17941         # Portland Group compilers (*not* the Pentium gcc compiler,
17942         # which looks to be a dead project)
17943         lt_prog_compiler_wl_GCJ='-Wl,'
17944         lt_prog_compiler_pic_GCJ='-fpic'
17945         lt_prog_compiler_static_GCJ='-Bstatic'
17946         ;;
17947       ccc*)
17948         lt_prog_compiler_wl_GCJ='-Wl,'
17949         # All Alpha code is PIC.
17950         lt_prog_compiler_static_GCJ='-non_shared'
17951         ;;
17952       esac
17953       ;;
17954
17955     osf3* | osf4* | osf5*)
17956       lt_prog_compiler_wl_GCJ='-Wl,'
17957       # All OSF/1 code is PIC.
17958       lt_prog_compiler_static_GCJ='-non_shared'
17959       ;;
17960
17961     solaris*)
17962       lt_prog_compiler_pic_GCJ='-KPIC'
17963       lt_prog_compiler_static_GCJ='-Bstatic'
17964       case $cc_basename in
17965       f77* | f90* | f95*)
17966         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17967       *)
17968         lt_prog_compiler_wl_GCJ='-Wl,';;
17969       esac
17970       ;;
17971
17972     sunos4*)
17973       lt_prog_compiler_wl_GCJ='-Qoption ld '
17974       lt_prog_compiler_pic_GCJ='-PIC'
17975       lt_prog_compiler_static_GCJ='-Bstatic'
17976       ;;
17977
17978     sysv4 | sysv4.2uw2* | sysv4.3*)
17979       lt_prog_compiler_wl_GCJ='-Wl,'
17980       lt_prog_compiler_pic_GCJ='-KPIC'
17981       lt_prog_compiler_static_GCJ='-Bstatic'
17982       ;;
17983
17984     sysv4*MP*)
17985       if test -d /usr/nec ;then
17986         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17987         lt_prog_compiler_static_GCJ='-Bstatic'
17988       fi
17989       ;;
17990
17991     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17992       lt_prog_compiler_wl_GCJ='-Wl,'
17993       lt_prog_compiler_pic_GCJ='-KPIC'
17994       lt_prog_compiler_static_GCJ='-Bstatic'
17995       ;;
17996
17997     unicos*)
17998       lt_prog_compiler_wl_GCJ='-Wl,'
17999       lt_prog_compiler_can_build_shared_GCJ=no
18000       ;;
18001
18002     uts4*)
18003       lt_prog_compiler_pic_GCJ='-pic'
18004       lt_prog_compiler_static_GCJ='-Bstatic'
18005       ;;
18006
18007     *)
18008       lt_prog_compiler_can_build_shared_GCJ=no
18009       ;;
18010     esac
18011   fi
18012
18013 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18014 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18015
18016 #
18017 # Check to make sure the PIC flag actually works.
18018 #
18019 if test -n "$lt_prog_compiler_pic_GCJ"; then
18020
18021 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18022 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18023 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18024   echo $ECHO_N "(cached) $ECHO_C" >&6
18025 else
18026   lt_prog_compiler_pic_works_GCJ=no
18027   ac_outfile=conftest.$ac_objext
18028    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18029    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18030    # Insert the option either (1) after the last *FLAGS variable, or
18031    # (2) before a word containing "conftest.", or (3) at the end.
18032    # Note that $ac_compile itself does not contain backslashes and begins
18033    # with a dollar sign (not a hyphen), so the echo should work correctly.
18034    # The option is referenced via a variable to avoid confusing sed.
18035    lt_compile=`echo "$ac_compile" | $SED \
18036    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18037    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18038    -e 's:$: $lt_compiler_flag:'`
18039    (eval echo "\"\$as_me:18039: $lt_compile\"" >&5)
18040    (eval "$lt_compile" 2>conftest.err)
18041    ac_status=$?
18042    cat conftest.err >&5
18043    echo "$as_me:18043: \$? = $ac_status" >&5
18044    if (exit $ac_status) && test -s "$ac_outfile"; then
18045      # The compiler can only warn and ignore the option if not recognized
18046      # So say no if there are warnings other than the usual output.
18047      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18048      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18049      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18050        lt_prog_compiler_pic_works_GCJ=yes
18051      fi
18052    fi
18053    $rm conftest*
18054
18055 fi
18056 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18057 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18058
18059 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18060     case $lt_prog_compiler_pic_GCJ in
18061      "" | " "*) ;;
18062      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18063      esac
18064 else
18065     lt_prog_compiler_pic_GCJ=
18066      lt_prog_compiler_can_build_shared_GCJ=no
18067 fi
18068
18069 fi
18070 case $host_os in
18071   # For platforms which do not support PIC, -DPIC is meaningless:
18072   *djgpp*)
18073     lt_prog_compiler_pic_GCJ=
18074     ;;
18075   *)
18076     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18077     ;;
18078 esac
18079
18080 #
18081 # Check to make sure the static flag actually works.
18082 #
18083 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18084 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18085 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18086 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18087   echo $ECHO_N "(cached) $ECHO_C" >&6
18088 else
18089   lt_prog_compiler_static_works_GCJ=no
18090    save_LDFLAGS="$LDFLAGS"
18091    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18092    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18093    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18094      # The linker can only warn and ignore the option if not recognized
18095      # So say no if there are warnings
18096      if test -s conftest.err; then
18097        # Append any errors to the config.log.
18098        cat conftest.err 1>&5
18099        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18100        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18101        if diff conftest.exp conftest.er2 >/dev/null; then
18102          lt_prog_compiler_static_works_GCJ=yes
18103        fi
18104      else
18105        lt_prog_compiler_static_works_GCJ=yes
18106      fi
18107    fi
18108    $rm conftest*
18109    LDFLAGS="$save_LDFLAGS"
18110
18111 fi
18112 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18113 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18114
18115 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18116     :
18117 else
18118     lt_prog_compiler_static_GCJ=
18119 fi
18120
18121
18122 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18123 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18124 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18125   echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18127   lt_cv_prog_compiler_c_o_GCJ=no
18128    $rm -r conftest 2>/dev/null
18129    mkdir conftest
18130    cd conftest
18131    mkdir out
18132    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18133
18134    lt_compiler_flag="-o out/conftest2.$ac_objext"
18135    # Insert the option either (1) after the last *FLAGS variable, or
18136    # (2) before a word containing "conftest.", or (3) at the end.
18137    # Note that $ac_compile itself does not contain backslashes and begins
18138    # with a dollar sign (not a hyphen), so the echo should work correctly.
18139    lt_compile=`echo "$ac_compile" | $SED \
18140    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18141    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18142    -e 's:$: $lt_compiler_flag:'`
18143    (eval echo "\"\$as_me:18143: $lt_compile\"" >&5)
18144    (eval "$lt_compile" 2>out/conftest.err)
18145    ac_status=$?
18146    cat out/conftest.err >&5
18147    echo "$as_me:18147: \$? = $ac_status" >&5
18148    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18149    then
18150      # The compiler can only warn and ignore the option if not recognized
18151      # So say no if there are warnings
18152      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18153      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18154      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18155        lt_cv_prog_compiler_c_o_GCJ=yes
18156      fi
18157    fi
18158    chmod u+w . 2>&5
18159    $rm conftest*
18160    # SGI C++ compiler will create directory out/ii_files/ for
18161    # template instantiation
18162    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18163    $rm out/* && rmdir out
18164    cd ..
18165    rmdir conftest
18166    $rm conftest*
18167
18168 fi
18169 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18170 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18171
18172
18173 hard_links="nottested"
18174 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18175   # do not overwrite the value of need_locks provided by the user
18176   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18177 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18178   hard_links=yes
18179   $rm conftest*
18180   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18181   touch conftest.a
18182   ln conftest.a conftest.b 2>&5 || hard_links=no
18183   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18184   { echo "$as_me:$LINENO: result: $hard_links" >&5
18185 echo "${ECHO_T}$hard_links" >&6; }
18186   if test "$hard_links" = no; then
18187     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18188 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18189     need_locks=warn
18190   fi
18191 else
18192   need_locks=no
18193 fi
18194
18195 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18196 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18197
18198   runpath_var=
18199   allow_undefined_flag_GCJ=
18200   enable_shared_with_static_runtimes_GCJ=no
18201   archive_cmds_GCJ=
18202   archive_expsym_cmds_GCJ=
18203   old_archive_From_new_cmds_GCJ=
18204   old_archive_from_expsyms_cmds_GCJ=
18205   export_dynamic_flag_spec_GCJ=
18206   whole_archive_flag_spec_GCJ=
18207   thread_safe_flag_spec_GCJ=
18208   hardcode_libdir_flag_spec_GCJ=
18209   hardcode_libdir_flag_spec_ld_GCJ=
18210   hardcode_libdir_separator_GCJ=
18211   hardcode_direct_GCJ=no
18212   hardcode_minus_L_GCJ=no
18213   hardcode_shlibpath_var_GCJ=unsupported
18214   link_all_deplibs_GCJ=unknown
18215   hardcode_automatic_GCJ=no
18216   module_cmds_GCJ=
18217   module_expsym_cmds_GCJ=
18218   always_export_symbols_GCJ=no
18219   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18220   # include_expsyms should be a list of space-separated symbols to be *always*
18221   # included in the symbol list
18222   include_expsyms_GCJ=
18223   # exclude_expsyms can be an extended regexp of symbols to exclude
18224   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18225   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18226   # as well as any symbol that contains `d'.
18227   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18228   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18229   # platforms (ab)use it in PIC code, but their linkers get confused if
18230   # the symbol is explicitly referenced.  Since portable code cannot
18231   # rely on this symbol name, it's probably fine to never include it in
18232   # preloaded symbol tables.
18233   extract_expsyms_cmds=
18234   # Just being paranoid about ensuring that cc_basename is set.
18235   for cc_temp in $compiler""; do
18236   case $cc_temp in
18237     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18238     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18239     \-*) ;;
18240     *) break;;
18241   esac
18242 done
18243 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18244
18245   case $host_os in
18246   cygwin* | mingw* | pw32*)
18247     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18248     # When not using gcc, we currently assume that we are using
18249     # Microsoft Visual C++.
18250     if test "$GCC" != yes; then
18251       with_gnu_ld=no
18252     fi
18253     ;;
18254   interix*)
18255     # we just hope/assume this is gcc and not c89 (= MSVC++)
18256     with_gnu_ld=yes
18257     ;;
18258   openbsd*)
18259     with_gnu_ld=no
18260     ;;
18261   esac
18262
18263   ld_shlibs_GCJ=yes
18264   if test "$with_gnu_ld" = yes; then
18265     # If archive_cmds runs LD, not CC, wlarc should be empty
18266     wlarc='${wl}'
18267
18268     # Set some defaults for GNU ld with shared library support. These
18269     # are reset later if shared libraries are not supported. Putting them
18270     # here allows them to be overridden if necessary.
18271     runpath_var=LD_RUN_PATH
18272     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18273     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18274     # ancient GNU ld didn't support --whole-archive et. al.
18275     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18276         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18277       else
18278         whole_archive_flag_spec_GCJ=
18279     fi
18280     supports_anon_versioning=no
18281     case `$LD -v 2>/dev/null` in
18282       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18283       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18284       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18285       *\ 2.11.*) ;; # other 2.11 versions
18286       *) supports_anon_versioning=yes ;;
18287     esac
18288
18289     # See if GNU ld supports shared libraries.
18290     case $host_os in
18291     aix3* | aix4* | aix5*)
18292       # On AIX/PPC, the GNU linker is very broken
18293       if test "$host_cpu" != ia64; then
18294         ld_shlibs_GCJ=no
18295         cat <<EOF 1>&2
18296
18297 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18298 *** to be unable to reliably create shared libraries on AIX.
18299 *** Therefore, libtool is disabling shared libraries support.  If you
18300 *** really care for shared libraries, you may want to modify your PATH
18301 *** so that a non-GNU linker is found, and then restart.
18302
18303 EOF
18304       fi
18305       ;;
18306
18307     amigaos*)
18308       archive_cmds_GCJ='$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)'
18309       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18310       hardcode_minus_L_GCJ=yes
18311
18312       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18313       # that the semantics of dynamic libraries on AmigaOS, at least up
18314       # to version 4, is to share data among multiple programs linked
18315       # with the same dynamic library.  Since this doesn't match the
18316       # behavior of shared libraries on other platforms, we can't use
18317       # them.
18318       ld_shlibs_GCJ=no
18319       ;;
18320
18321     beos*)
18322       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18323         allow_undefined_flag_GCJ=unsupported
18324         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18325         # support --undefined.  This deserves some investigation.  FIXME
18326         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18327       else
18328         ld_shlibs_GCJ=no
18329       fi
18330       ;;
18331
18332     cygwin* | mingw* | pw32*)
18333       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18334       # as there is no search path for DLLs.
18335       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18336       allow_undefined_flag_GCJ=unsupported
18337       always_export_symbols_GCJ=no
18338       enable_shared_with_static_runtimes_GCJ=yes
18339       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18340
18341       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18342         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18343         # If the export-symbols file already is a .def file (1st line
18344         # is EXPORTS), use it as is; otherwise, prepend...
18345         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18346           cp $export_symbols $output_objdir/$soname.def;
18347         else
18348           echo EXPORTS > $output_objdir/$soname.def;
18349           cat $export_symbols >> $output_objdir/$soname.def;
18350         fi~
18351         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18352       else
18353         ld_shlibs_GCJ=no
18354       fi
18355       ;;
18356
18357     interix3*)
18358       hardcode_direct_GCJ=no
18359       hardcode_shlibpath_var_GCJ=no
18360       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18361       export_dynamic_flag_spec_GCJ='${wl}-E'
18362       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18363       # Instead, shared libraries are loaded at an image base (0x10000000 by
18364       # default) and relocated if they conflict, which is a slow very memory
18365       # consuming and fragmenting process.  To avoid this, we pick a random,
18366       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18367       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18368       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18369       archive_expsym_cmds_GCJ='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'
18370       ;;
18371
18372     linux* | k*bsd*-gnu)
18373       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18374         tmp_addflag=
18375         case $cc_basename,$host_cpu in
18376         pgcc*)                          # Portland Group C compiler
18377           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18378           tmp_addflag=' $pic_flag'
18379           ;;
18380         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18381           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18382           tmp_addflag=' $pic_flag -Mnomain' ;;
18383         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18384           tmp_addflag=' -i_dynamic' ;;
18385         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18386           tmp_addflag=' -i_dynamic -nofor_main' ;;
18387         ifc* | ifort*)                  # Intel Fortran compiler
18388           tmp_addflag=' -nofor_main' ;;
18389         esac
18390         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18391
18392         if test $supports_anon_versioning = yes; then
18393           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18394   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18395   $echo "local: *; };" >> $output_objdir/$libname.ver~
18396           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18397         fi
18398         link_all_deplibs_GCJ=no
18399       else
18400         ld_shlibs_GCJ=no
18401       fi
18402       ;;
18403
18404     netbsd* | netbsdelf*-gnu)
18405       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18406         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18407         wlarc=
18408       else
18409         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18410         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18411       fi
18412       ;;
18413
18414     solaris*)
18415       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18416         ld_shlibs_GCJ=no
18417         cat <<EOF 1>&2
18418
18419 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18420 *** create shared libraries on Solaris systems.  Therefore, libtool
18421 *** is disabling shared libraries support.  We urge you to upgrade GNU
18422 *** binutils to release 2.9.1 or newer.  Another option is to modify
18423 *** your PATH or compiler configuration so that the native linker is
18424 *** used, and then restart.
18425
18426 EOF
18427       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18428         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18429         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18430       else
18431         ld_shlibs_GCJ=no
18432       fi
18433       ;;
18434
18435     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18436       case `$LD -v 2>&1` in
18437         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18438         ld_shlibs_GCJ=no
18439         cat <<_LT_EOF 1>&2
18440
18441 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18442 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18443 *** is disabling shared libraries support.  We urge you to upgrade GNU
18444 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18445 *** your PATH or compiler configuration so that the native linker is
18446 *** used, and then restart.
18447
18448 _LT_EOF
18449         ;;
18450         *)
18451           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18452             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18453             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18454             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18455           else
18456             ld_shlibs_GCJ=no
18457           fi
18458         ;;
18459       esac
18460       ;;
18461
18462     sunos4*)
18463       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18464       wlarc=
18465       hardcode_direct_GCJ=yes
18466       hardcode_shlibpath_var_GCJ=no
18467       ;;
18468
18469     *)
18470       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18471         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18472         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18473       else
18474         ld_shlibs_GCJ=no
18475       fi
18476       ;;
18477     esac
18478
18479     if test "$ld_shlibs_GCJ" = no; then
18480       runpath_var=
18481       hardcode_libdir_flag_spec_GCJ=
18482       export_dynamic_flag_spec_GCJ=
18483       whole_archive_flag_spec_GCJ=
18484     fi
18485   else
18486     # PORTME fill in a description of your system's linker (not GNU ld)
18487     case $host_os in
18488     aix3*)
18489       allow_undefined_flag_GCJ=unsupported
18490       always_export_symbols_GCJ=yes
18491       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18492       # Note: this linker hardcodes the directories in LIBPATH if there
18493       # are no directories specified by -L.
18494       hardcode_minus_L_GCJ=yes
18495       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18496         # Neither direct hardcoding nor static linking is supported with a
18497         # broken collect2.
18498         hardcode_direct_GCJ=unsupported
18499       fi
18500       ;;
18501
18502     aix4* | aix5*)
18503       if test "$host_cpu" = ia64; then
18504         # On IA64, the linker does run time linking by default, so we don't
18505         # have to do anything special.
18506         aix_use_runtimelinking=no
18507         exp_sym_flag='-Bexport'
18508         no_entry_flag=""
18509       else
18510         # If we're using GNU nm, then we don't want the "-C" option.
18511         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18512         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18513           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18514         else
18515           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18516         fi
18517         aix_use_runtimelinking=no
18518
18519         # Test if we are trying to use run time linking or normal
18520         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18521         # need to do runtime linking.
18522         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18523           for ld_flag in $LDFLAGS; do
18524           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18525             aix_use_runtimelinking=yes
18526             break
18527           fi
18528           done
18529           ;;
18530         esac
18531
18532         exp_sym_flag='-bexport'
18533         no_entry_flag='-bnoentry'
18534       fi
18535
18536       # When large executables or shared objects are built, AIX ld can
18537       # have problems creating the table of contents.  If linking a library
18538       # or program results in "error TOC overflow" add -mminimal-toc to
18539       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18540       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18541
18542       archive_cmds_GCJ=''
18543       hardcode_direct_GCJ=yes
18544       hardcode_libdir_separator_GCJ=':'
18545       link_all_deplibs_GCJ=yes
18546
18547       if test "$GCC" = yes; then
18548         case $host_os in aix4.[012]|aix4.[012].*)
18549         # We only want to do this on AIX 4.2 and lower, the check
18550         # below for broken collect2 doesn't work under 4.3+
18551           collect2name=`${CC} -print-prog-name=collect2`
18552           if test -f "$collect2name" && \
18553            strings "$collect2name" | grep resolve_lib_name >/dev/null
18554           then
18555           # We have reworked collect2
18556           hardcode_direct_GCJ=yes
18557           else
18558           # We have old collect2
18559           hardcode_direct_GCJ=unsupported
18560           # It fails to find uninstalled libraries when the uninstalled
18561           # path is not listed in the libpath.  Setting hardcode_minus_L
18562           # to unsupported forces relinking
18563           hardcode_minus_L_GCJ=yes
18564           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18565           hardcode_libdir_separator_GCJ=
18566           fi
18567           ;;
18568         esac
18569         shared_flag='-shared'
18570         if test "$aix_use_runtimelinking" = yes; then
18571           shared_flag="$shared_flag "'${wl}-G'
18572         fi
18573       else
18574         # not using gcc
18575         if test "$host_cpu" = ia64; then
18576         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18577         # chokes on -Wl,-G. The following line is correct:
18578           shared_flag='-G'
18579         else
18580           if test "$aix_use_runtimelinking" = yes; then
18581             shared_flag='${wl}-G'
18582           else
18583             shared_flag='${wl}-bM:SRE'
18584           fi
18585         fi
18586       fi
18587
18588       # It seems that -bexpall does not export symbols beginning with
18589       # underscore (_), so it is better to generate a list of symbols to export.
18590       always_export_symbols_GCJ=yes
18591       if test "$aix_use_runtimelinking" = yes; then
18592         # Warning - without using the other runtime loading flags (-brtl),
18593         # -berok will link without error, but may produce a broken library.
18594         allow_undefined_flag_GCJ='-berok'
18595        # Determine the default libpath from the value encoded in an empty executable.
18596        cat >conftest.$ac_ext <<_ACEOF
18597 /* confdefs.h.  */
18598 _ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h.  */
18602
18603 int
18604 main ()
18605 {
18606
18607   ;
18608   return 0;
18609 }
18610 _ACEOF
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (ac_try="$ac_link"
18613 case "(($ac_try" in
18614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615   *) ac_try_echo=$ac_try;;
18616 esac
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618   (eval "$ac_link") 2>conftest.er1
18619   ac_status=$?
18620   grep -v '^ *+' conftest.er1 >conftest.err
18621   rm -f conftest.er1
18622   cat conftest.err >&5
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); } && {
18625          test -z "$ac_c_werror_flag" ||
18626          test ! -s conftest.err
18627        } && test -s conftest$ac_exeext &&
18628        $as_test_x conftest$ac_exeext; then
18629
18630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18631 }'`
18632 # Check for a 64-bit object if we didn't find anything.
18633 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18634 }'`; fi
18635 else
18636   echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18638
18639
18640 fi
18641
18642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18643       conftest$ac_exeext conftest.$ac_ext
18644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18645
18646        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18647         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18648        else
18649         if test "$host_cpu" = ia64; then
18650           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18651           allow_undefined_flag_GCJ="-z nodefs"
18652           archive_expsym_cmds_GCJ="\$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"
18653         else
18654          # Determine the default libpath from the value encoded in an empty executable.
18655          cat >conftest.$ac_ext <<_ACEOF
18656 /* confdefs.h.  */
18657 _ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h.  */
18661
18662 int
18663 main ()
18664 {
18665
18666   ;
18667   return 0;
18668 }
18669 _ACEOF
18670 rm -f conftest.$ac_objext conftest$ac_exeext
18671 if { (ac_try="$ac_link"
18672 case "(($ac_try" in
18673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674   *) ac_try_echo=$ac_try;;
18675 esac
18676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677   (eval "$ac_link") 2>conftest.er1
18678   ac_status=$?
18679   grep -v '^ *+' conftest.er1 >conftest.err
18680   rm -f conftest.er1
18681   cat conftest.err >&5
18682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683   (exit $ac_status); } && {
18684          test -z "$ac_c_werror_flag" ||
18685          test ! -s conftest.err
18686        } && test -s conftest$ac_exeext &&
18687        $as_test_x conftest$ac_exeext; then
18688
18689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18690 }'`
18691 # Check for a 64-bit object if we didn't find anything.
18692 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18693 }'`; fi
18694 else
18695   echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18697
18698
18699 fi
18700
18701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18702       conftest$ac_exeext conftest.$ac_ext
18703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18704
18705          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18706           # Warning - without using the other run time loading flags,
18707           # -berok will link without error, but may produce a broken library.
18708           no_undefined_flag_GCJ=' ${wl}-bernotok'
18709           allow_undefined_flag_GCJ=' ${wl}-berok'
18710           # Exported symbols can be pulled into shared objects from archives
18711           whole_archive_flag_spec_GCJ='$convenience'
18712           archive_cmds_need_lc_GCJ=yes
18713           # This is similar to how AIX traditionally builds its shared libraries.
18714           archive_expsym_cmds_GCJ="\$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'
18715         fi
18716       fi
18717       ;;
18718
18719     amigaos*)
18720       archive_cmds_GCJ='$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)'
18721       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18722       hardcode_minus_L_GCJ=yes
18723       # see comment about different semantics on the GNU ld section
18724       ld_shlibs_GCJ=no
18725       ;;
18726
18727     bsdi[45]*)
18728       export_dynamic_flag_spec_GCJ=-rdynamic
18729       ;;
18730
18731     cygwin* | mingw* | pw32*)
18732       # When not using gcc, we currently assume that we are using
18733       # Microsoft Visual C++.
18734       # hardcode_libdir_flag_spec is actually meaningless, as there is
18735       # no search path for DLLs.
18736       hardcode_libdir_flag_spec_GCJ=' '
18737       allow_undefined_flag_GCJ=unsupported
18738       # Tell ltmain to make .lib files, not .a files.
18739       libext=lib
18740       # Tell ltmain to make .dll files, not .so files.
18741       shrext_cmds=".dll"
18742       # FIXME: Setting linknames here is a bad hack.
18743       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18744       # The linker will automatically build a .lib file if we build a DLL.
18745       old_archive_From_new_cmds_GCJ='true'
18746       # FIXME: Should let the user specify the lib program.
18747       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18748       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18749       enable_shared_with_static_runtimes_GCJ=yes
18750       ;;
18751
18752     darwin* | rhapsody*)
18753       case $host_os in
18754         rhapsody* | darwin1.[012])
18755          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18756          ;;
18757        *) # Darwin 1.3 on
18758          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18759            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18760          else
18761            case ${MACOSX_DEPLOYMENT_TARGET} in
18762              10.[012])
18763                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18764                ;;
18765              10.*)
18766                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18767                ;;
18768            esac
18769          fi
18770          ;;
18771       esac
18772       archive_cmds_need_lc_GCJ=no
18773       hardcode_direct_GCJ=no
18774       hardcode_automatic_GCJ=yes
18775       hardcode_shlibpath_var_GCJ=unsupported
18776       whole_archive_flag_spec_GCJ=''
18777       link_all_deplibs_GCJ=yes
18778     if test "$GCC" = yes ; then
18779         output_verbose_link_cmd='echo'
18780         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18781       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18782       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18783       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18784       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18785     else
18786       case $cc_basename in
18787         xlc*)
18788          output_verbose_link_cmd='echo'
18789          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18790          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18791           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18792          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18793           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18794           ;;
18795        *)
18796          ld_shlibs_GCJ=no
18797           ;;
18798       esac
18799     fi
18800       ;;
18801
18802     dgux*)
18803       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18804       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18805       hardcode_shlibpath_var_GCJ=no
18806       ;;
18807
18808     freebsd1*)
18809       ld_shlibs_GCJ=no
18810       ;;
18811
18812     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18813     # support.  Future versions do this automatically, but an explicit c++rt0.o
18814     # does not break anything, and helps significantly (at the cost of a little
18815     # extra space).
18816     freebsd2.2*)
18817       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18818       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18819       hardcode_direct_GCJ=yes
18820       hardcode_shlibpath_var_GCJ=no
18821       ;;
18822
18823     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18824     freebsd2*)
18825       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18826       hardcode_direct_GCJ=yes
18827       hardcode_minus_L_GCJ=yes
18828       hardcode_shlibpath_var_GCJ=no
18829       ;;
18830
18831     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18832     freebsd* | dragonfly*)
18833       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18834       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18835       hardcode_direct_GCJ=yes
18836       hardcode_shlibpath_var_GCJ=no
18837       ;;
18838
18839     hpux9*)
18840       if test "$GCC" = yes; then
18841         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18842       else
18843         archive_cmds_GCJ='$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'
18844       fi
18845       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18846       hardcode_libdir_separator_GCJ=:
18847       hardcode_direct_GCJ=yes
18848
18849       # hardcode_minus_L: Not really in the search PATH,
18850       # but as the default location of the library.
18851       hardcode_minus_L_GCJ=yes
18852       export_dynamic_flag_spec_GCJ='${wl}-E'
18853       ;;
18854
18855     hpux10*)
18856       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18857         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18858       else
18859         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18860       fi
18861       if test "$with_gnu_ld" = no; then
18862         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18863         hardcode_libdir_separator_GCJ=:
18864
18865         hardcode_direct_GCJ=yes
18866         export_dynamic_flag_spec_GCJ='${wl}-E'
18867
18868         # hardcode_minus_L: Not really in the search PATH,
18869         # but as the default location of the library.
18870         hardcode_minus_L_GCJ=yes
18871       fi
18872       ;;
18873
18874     hpux11*)
18875       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18876         case $host_cpu in
18877         hppa*64*)
18878           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18879           ;;
18880         ia64*)
18881           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18882           ;;
18883         *)
18884           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18885           ;;
18886         esac
18887       else
18888         case $host_cpu in
18889         hppa*64*)
18890           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18891           ;;
18892         ia64*)
18893           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18894           ;;
18895         *)
18896           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18897           ;;
18898         esac
18899       fi
18900       if test "$with_gnu_ld" = no; then
18901         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18902         hardcode_libdir_separator_GCJ=:
18903
18904         case $host_cpu in
18905         hppa*64*|ia64*)
18906           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18907           hardcode_direct_GCJ=no
18908           hardcode_shlibpath_var_GCJ=no
18909           ;;
18910         *)
18911           hardcode_direct_GCJ=yes
18912           export_dynamic_flag_spec_GCJ='${wl}-E'
18913
18914           # hardcode_minus_L: Not really in the search PATH,
18915           # but as the default location of the library.
18916           hardcode_minus_L_GCJ=yes
18917           ;;
18918         esac
18919       fi
18920       ;;
18921
18922     irix5* | irix6* | nonstopux*)
18923       if test "$GCC" = yes; then
18924         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18925       else
18926         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18927         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18928       fi
18929       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18930       hardcode_libdir_separator_GCJ=:
18931       link_all_deplibs_GCJ=yes
18932       ;;
18933
18934     netbsd* | netbsdelf*-gnu)
18935       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18936         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18937       else
18938         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18939       fi
18940       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18941       hardcode_direct_GCJ=yes
18942       hardcode_shlibpath_var_GCJ=no
18943       ;;
18944
18945     newsos6)
18946       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18947       hardcode_direct_GCJ=yes
18948       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18949       hardcode_libdir_separator_GCJ=:
18950       hardcode_shlibpath_var_GCJ=no
18951       ;;
18952
18953     openbsd*)
18954       hardcode_direct_GCJ=yes
18955       hardcode_shlibpath_var_GCJ=no
18956       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18957         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18958         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18959         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18960         export_dynamic_flag_spec_GCJ='${wl}-E'
18961       else
18962        case $host_os in
18963          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18964            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18965            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18966            ;;
18967          *)
18968            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18969            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18970            ;;
18971        esac
18972       fi
18973       ;;
18974
18975     os2*)
18976       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18977       hardcode_minus_L_GCJ=yes
18978       allow_undefined_flag_GCJ=unsupported
18979       archive_cmds_GCJ='$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'
18980       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18981       ;;
18982
18983     osf3*)
18984       if test "$GCC" = yes; then
18985         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18986         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18987       else
18988         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18989         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18990       fi
18991       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18992       hardcode_libdir_separator_GCJ=:
18993       ;;
18994
18995     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18996       if test "$GCC" = yes; then
18997         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18998         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18999         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19000       else
19001         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19002         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19003         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19004         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19005
19006         # Both c and cxx compiler support -rpath directly
19007         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19008       fi
19009       hardcode_libdir_separator_GCJ=:
19010       ;;
19011
19012     solaris*)
19013       no_undefined_flag_GCJ=' -z text'
19014       if test "$GCC" = yes; then
19015         wlarc='${wl}'
19016         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19017         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19018           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19019       else
19020         wlarc=''
19021         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19022         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19023         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19024       fi
19025       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19026       hardcode_shlibpath_var_GCJ=no
19027       case $host_os in
19028       solaris2.[0-5] | solaris2.[0-5].*) ;;
19029       *)
19030         # The compiler driver will combine linker options so we
19031         # cannot just pass the convience library names through
19032         # without $wl, iff we do not link with $LD.
19033         # Luckily, gcc supports the same syntax we need for Sun Studio.
19034         # Supported since Solaris 2.6 (maybe 2.5.1?)
19035         case $wlarc in
19036         '')
19037           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19038         *)
19039           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19040         esac ;;
19041       esac
19042       link_all_deplibs_GCJ=yes
19043       ;;
19044
19045     sunos4*)
19046       if test "x$host_vendor" = xsequent; then
19047         # Use $CC to link under sequent, because it throws in some extra .o
19048         # files that make .init and .fini sections work.
19049         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19050       else
19051         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19052       fi
19053       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19054       hardcode_direct_GCJ=yes
19055       hardcode_minus_L_GCJ=yes
19056       hardcode_shlibpath_var_GCJ=no
19057       ;;
19058
19059     sysv4)
19060       case $host_vendor in
19061         sni)
19062           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19063           hardcode_direct_GCJ=yes # is this really true???
19064         ;;
19065         siemens)
19066           ## LD is ld it makes a PLAMLIB
19067           ## CC just makes a GrossModule.
19068           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19069           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19070           hardcode_direct_GCJ=no
19071         ;;
19072         motorola)
19073           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19074           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19075         ;;
19076       esac
19077       runpath_var='LD_RUN_PATH'
19078       hardcode_shlibpath_var_GCJ=no
19079       ;;
19080
19081     sysv4.3*)
19082       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19083       hardcode_shlibpath_var_GCJ=no
19084       export_dynamic_flag_spec_GCJ='-Bexport'
19085       ;;
19086
19087     sysv4*MP*)
19088       if test -d /usr/nec; then
19089         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19090         hardcode_shlibpath_var_GCJ=no
19091         runpath_var=LD_RUN_PATH
19092         hardcode_runpath_var=yes
19093         ld_shlibs_GCJ=yes
19094       fi
19095       ;;
19096
19097     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19098       no_undefined_flag_GCJ='${wl}-z,text'
19099       archive_cmds_need_lc_GCJ=no
19100       hardcode_shlibpath_var_GCJ=no
19101       runpath_var='LD_RUN_PATH'
19102
19103       if test "$GCC" = yes; then
19104         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19105         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19106       else
19107         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19108         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19109       fi
19110       ;;
19111
19112     sysv5* | sco3.2v5* | sco5v6*)
19113       # Note: We can NOT use -z defs as we might desire, because we do not
19114       # link with -lc, and that would cause any symbols used from libc to
19115       # always be unresolved, which means just about no library would
19116       # ever link correctly.  If we're not using GNU ld we use -z text
19117       # though, which does catch some bad symbols but isn't as heavy-handed
19118       # as -z defs.
19119       no_undefined_flag_GCJ='${wl}-z,text'
19120       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19121       archive_cmds_need_lc_GCJ=no
19122       hardcode_shlibpath_var_GCJ=no
19123       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19124       hardcode_libdir_separator_GCJ=':'
19125       link_all_deplibs_GCJ=yes
19126       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19127       runpath_var='LD_RUN_PATH'
19128
19129       if test "$GCC" = yes; then
19130         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19131         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19132       else
19133         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19134         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19135       fi
19136       ;;
19137
19138     uts4*)
19139       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19140       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19141       hardcode_shlibpath_var_GCJ=no
19142       ;;
19143
19144     *)
19145       ld_shlibs_GCJ=no
19146       ;;
19147     esac
19148   fi
19149
19150 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19151 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19152 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19153
19154 #
19155 # Do we need to explicitly link libc?
19156 #
19157 case "x$archive_cmds_need_lc_GCJ" in
19158 x|xyes)
19159   # Assume -lc should be added
19160   archive_cmds_need_lc_GCJ=yes
19161
19162   if test "$enable_shared" = yes && test "$GCC" = yes; then
19163     case $archive_cmds_GCJ in
19164     *'~'*)
19165       # FIXME: we may have to deal with multi-command sequences.
19166       ;;
19167     '$CC '*)
19168       # Test whether the compiler implicitly links with -lc since on some
19169       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19170       # to ld, don't add -lc before -lgcc.
19171       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19172 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19173       $rm conftest*
19174       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19175
19176       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19177   (eval $ac_compile) 2>&5
19178   ac_status=$?
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); } 2>conftest.err; then
19181         soname=conftest
19182         lib=conftest
19183         libobjs=conftest.$ac_objext
19184         deplibs=
19185         wl=$lt_prog_compiler_wl_GCJ
19186         pic_flag=$lt_prog_compiler_pic_GCJ
19187         compiler_flags=-v
19188         linker_flags=-v
19189         verstring=
19190         output_objdir=.
19191         libname=conftest
19192         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19193         allow_undefined_flag_GCJ=
19194         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19195   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19196   ac_status=$?
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); }
19199         then
19200           archive_cmds_need_lc_GCJ=no
19201         else
19202           archive_cmds_need_lc_GCJ=yes
19203         fi
19204         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19205       else
19206         cat conftest.err 1>&5
19207       fi
19208       $rm conftest*
19209       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19210 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19211       ;;
19212     esac
19213   fi
19214   ;;
19215 esac
19216
19217 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19218 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19219 library_names_spec=
19220 libname_spec='lib$name'
19221 soname_spec=
19222 shrext_cmds=".so"
19223 postinstall_cmds=
19224 postuninstall_cmds=
19225 finish_cmds=
19226 finish_eval=
19227 shlibpath_var=
19228 shlibpath_overrides_runpath=unknown
19229 version_type=none
19230 dynamic_linker="$host_os ld.so"
19231 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19232 if test "$GCC" = yes; then
19233   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19234   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19235     # if the path contains ";" then we assume it to be the separator
19236     # otherwise default to the standard path separator (i.e. ":") - it is
19237     # assumed that no part of a normal pathname contains ";" but that should
19238     # okay in the real world where ";" in dirpaths is itself problematic.
19239     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19240   else
19241     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19242   fi
19243 else
19244   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19245 fi
19246 need_lib_prefix=unknown
19247 hardcode_into_libs=no
19248
19249 # when you set need_version to no, make sure it does not cause -set_version
19250 # flags to be left without arguments
19251 need_version=unknown
19252
19253 case $host_os in
19254 aix3*)
19255   version_type=linux
19256   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19257   shlibpath_var=LIBPATH
19258
19259   # AIX 3 has no versioning support, so we append a major version to the name.
19260   soname_spec='${libname}${release}${shared_ext}$major'
19261   ;;
19262
19263 aix4* | aix5*)
19264   version_type=linux
19265   need_lib_prefix=no
19266   need_version=no
19267   hardcode_into_libs=yes
19268   if test "$host_cpu" = ia64; then
19269     # AIX 5 supports IA64
19270     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19271     shlibpath_var=LD_LIBRARY_PATH
19272   else
19273     # With GCC up to 2.95.x, collect2 would create an import file
19274     # for dependence libraries.  The import file would start with
19275     # the line `#! .'.  This would cause the generated library to
19276     # depend on `.', always an invalid library.  This was fixed in
19277     # development snapshots of GCC prior to 3.0.
19278     case $host_os in
19279       aix4 | aix4.[01] | aix4.[01].*)
19280       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19281            echo ' yes '
19282            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19283         :
19284       else
19285         can_build_shared=no
19286       fi
19287       ;;
19288     esac
19289     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19290     # soname into executable. Probably we can add versioning support to
19291     # collect2, so additional links can be useful in future.
19292     if test "$aix_use_runtimelinking" = yes; then
19293       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19294       # instead of lib<name>.a to let people know that these are not
19295       # typical AIX shared libraries.
19296       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19297     else
19298       # We preserve .a as extension for shared libraries through AIX4.2
19299       # and later when we are not doing run time linking.
19300       library_names_spec='${libname}${release}.a $libname.a'
19301       soname_spec='${libname}${release}${shared_ext}$major'
19302     fi
19303     shlibpath_var=LIBPATH
19304   fi
19305   ;;
19306
19307 amigaos*)
19308   library_names_spec='$libname.ixlibrary $libname.a'
19309   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19310   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
19311   ;;
19312
19313 beos*)
19314   library_names_spec='${libname}${shared_ext}'
19315   dynamic_linker="$host_os ld.so"
19316   shlibpath_var=LIBRARY_PATH
19317   ;;
19318
19319 bsdi[45]*)
19320   version_type=linux
19321   need_version=no
19322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19323   soname_spec='${libname}${release}${shared_ext}$major'
19324   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19325   shlibpath_var=LD_LIBRARY_PATH
19326   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19327   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19328   # the default ld.so.conf also contains /usr/contrib/lib and
19329   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19330   # libtool to hard-code these into programs
19331   ;;
19332
19333 cygwin* | mingw* | pw32*)
19334   version_type=windows
19335   shrext_cmds=".dll"
19336   need_version=no
19337   need_lib_prefix=no
19338
19339   case $GCC,$host_os in
19340   yes,cygwin* | yes,mingw* | yes,pw32*)
19341     library_names_spec='$libname.dll.a'
19342     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19343     postinstall_cmds='base_file=`basename \${file}`~
19344       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19345       dldir=$destdir/`dirname \$dlpath`~
19346       test -d \$dldir || mkdir -p \$dldir~
19347       $install_prog $dir/$dlname \$dldir/$dlname~
19348       chmod a+x \$dldir/$dlname'
19349     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19350       dlpath=$dir/\$dldll~
19351        $rm \$dlpath'
19352     shlibpath_overrides_runpath=yes
19353
19354     case $host_os in
19355     cygwin*)
19356       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19357       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19358       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19359       ;;
19360     mingw*)
19361       # MinGW DLLs use traditional 'lib' prefix
19362       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19363       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19364       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19365         # It is most probably a Windows format PATH printed by
19366         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19367         # path with ; separators, and with drive letters. We can handle the
19368         # drive letters (cygwin fileutils understands them), so leave them,
19369         # especially as we might pass files found there to a mingw objdump,
19370         # which wouldn't understand a cygwinified path. Ahh.
19371         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19372       else
19373         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19374       fi
19375       ;;
19376     pw32*)
19377       # pw32 DLLs use 'pw' prefix rather than 'lib'
19378       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19379       ;;
19380     esac
19381     ;;
19382
19383   *)
19384     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19385     ;;
19386   esac
19387   dynamic_linker='Win32 ld.exe'
19388   # FIXME: first we should search . and the directory the executable is in
19389   shlibpath_var=PATH
19390   ;;
19391
19392 darwin* | rhapsody*)
19393   dynamic_linker="$host_os dyld"
19394   version_type=darwin
19395   need_lib_prefix=no
19396   need_version=no
19397   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19398   soname_spec='${libname}${release}${major}$shared_ext'
19399   shlibpath_overrides_runpath=yes
19400   shlibpath_var=DYLD_LIBRARY_PATH
19401   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19402   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19403   if test "$GCC" = yes; then
19404     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19405   else
19406     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19407   fi
19408   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19409   ;;
19410
19411 dgux*)
19412   version_type=linux
19413   need_lib_prefix=no
19414   need_version=no
19415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19416   soname_spec='${libname}${release}${shared_ext}$major'
19417   shlibpath_var=LD_LIBRARY_PATH
19418   ;;
19419
19420 freebsd1*)
19421   dynamic_linker=no
19422   ;;
19423
19424 freebsd* | dragonfly*)
19425   # DragonFly does not have aout.  When/if they implement a new
19426   # versioning mechanism, adjust this.
19427   if test -x /usr/bin/objformat; then
19428     objformat=`/usr/bin/objformat`
19429   else
19430     case $host_os in
19431     freebsd[123]*) objformat=aout ;;
19432     *) objformat=elf ;;
19433     esac
19434   fi
19435   version_type=freebsd-$objformat
19436   case $version_type in
19437     freebsd-elf*)
19438       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19439       need_version=no
19440       need_lib_prefix=no
19441       ;;
19442     freebsd-*)
19443       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19444       need_version=yes
19445       ;;
19446   esac
19447   shlibpath_var=LD_LIBRARY_PATH
19448   case $host_os in
19449   freebsd2*)
19450     shlibpath_overrides_runpath=yes
19451     ;;
19452   freebsd3.[01]* | freebsdelf3.[01]*)
19453     shlibpath_overrides_runpath=yes
19454     hardcode_into_libs=yes
19455     ;;
19456   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19457   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19458     shlibpath_overrides_runpath=no
19459     hardcode_into_libs=yes
19460     ;;
19461   freebsd*) # from 4.6 on
19462     shlibpath_overrides_runpath=yes
19463     hardcode_into_libs=yes
19464     ;;
19465   esac
19466   ;;
19467
19468 gnu*)
19469   version_type=linux
19470   need_lib_prefix=no
19471   need_version=no
19472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19473   soname_spec='${libname}${release}${shared_ext}$major'
19474   shlibpath_var=LD_LIBRARY_PATH
19475   hardcode_into_libs=yes
19476   ;;
19477
19478 hpux9* | hpux10* | hpux11*)
19479   # Give a soname corresponding to the major version so that dld.sl refuses to
19480   # link against other versions.
19481   version_type=sunos
19482   need_lib_prefix=no
19483   need_version=no
19484   case $host_cpu in
19485   ia64*)
19486     shrext_cmds='.so'
19487     hardcode_into_libs=yes
19488     dynamic_linker="$host_os dld.so"
19489     shlibpath_var=LD_LIBRARY_PATH
19490     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19491     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19492     soname_spec='${libname}${release}${shared_ext}$major'
19493     if test "X$HPUX_IA64_MODE" = X32; then
19494       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19495     else
19496       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19497     fi
19498     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19499     ;;
19500    hppa*64*)
19501      shrext_cmds='.sl'
19502      hardcode_into_libs=yes
19503      dynamic_linker="$host_os dld.sl"
19504      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19505      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19506      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19507      soname_spec='${libname}${release}${shared_ext}$major'
19508      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19509      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19510      ;;
19511    *)
19512     shrext_cmds='.sl'
19513     dynamic_linker="$host_os dld.sl"
19514     shlibpath_var=SHLIB_PATH
19515     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19516     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19517     soname_spec='${libname}${release}${shared_ext}$major'
19518     ;;
19519   esac
19520   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19521   postinstall_cmds='chmod 555 $lib'
19522   ;;
19523
19524 interix3*)
19525   version_type=linux
19526   need_lib_prefix=no
19527   need_version=no
19528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19529   soname_spec='${libname}${release}${shared_ext}$major'
19530   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19531   shlibpath_var=LD_LIBRARY_PATH
19532   shlibpath_overrides_runpath=no
19533   hardcode_into_libs=yes
19534   ;;
19535
19536 irix5* | irix6* | nonstopux*)
19537   case $host_os in
19538     nonstopux*) version_type=nonstopux ;;
19539     *)
19540         if test "$lt_cv_prog_gnu_ld" = yes; then
19541                 version_type=linux
19542         else
19543                 version_type=irix
19544         fi ;;
19545   esac
19546   need_lib_prefix=no
19547   need_version=no
19548   soname_spec='${libname}${release}${shared_ext}$major'
19549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19550   case $host_os in
19551   irix5* | nonstopux*)
19552     libsuff= shlibsuff=
19553     ;;
19554   *)
19555     case $LD in # libtool.m4 will add one of these switches to LD
19556     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19557       libsuff= shlibsuff= libmagic=32-bit;;
19558     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19559       libsuff=32 shlibsuff=N32 libmagic=N32;;
19560     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19561       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19562     *) libsuff= shlibsuff= libmagic=never-match;;
19563     esac
19564     ;;
19565   esac
19566   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19567   shlibpath_overrides_runpath=no
19568   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19569   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19570   hardcode_into_libs=yes
19571   ;;
19572
19573 # No shared lib support for Linux oldld, aout, or coff.
19574 linux*oldld* | linux*aout* | linux*coff*)
19575   dynamic_linker=no
19576   ;;
19577
19578 # This must be Linux ELF.
19579 linux* | k*bsd*-gnu)
19580   version_type=linux
19581   need_lib_prefix=no
19582   need_version=no
19583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19584   soname_spec='${libname}${release}${shared_ext}$major'
19585   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19586   shlibpath_var=LD_LIBRARY_PATH
19587   shlibpath_overrides_runpath=no
19588   # This implies no fast_install, which is unacceptable.
19589   # Some rework will be needed to allow for fast_install
19590   # before this can be enabled.
19591   hardcode_into_libs=yes
19592
19593   # Append ld.so.conf contents to the search path
19594   if test -f /etc/ld.so.conf; then
19595     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19596     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19597   fi
19598
19599   # We used to test for /lib/ld.so.1 and disable shared libraries on
19600   # powerpc, because MkLinux only supported shared libraries with the
19601   # GNU dynamic linker.  Since this was broken with cross compilers,
19602   # most powerpc-linux boxes support dynamic linking these days and
19603   # people can always --disable-shared, the test was removed, and we
19604   # assume the GNU/Linux dynamic linker is in use.
19605   dynamic_linker='GNU/Linux ld.so'
19606   ;;
19607
19608 netbsdelf*-gnu)
19609   version_type=linux
19610   need_lib_prefix=no
19611   need_version=no
19612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19613   soname_spec='${libname}${release}${shared_ext}$major'
19614   shlibpath_var=LD_LIBRARY_PATH
19615   shlibpath_overrides_runpath=no
19616   hardcode_into_libs=yes
19617   dynamic_linker='NetBSD ld.elf_so'
19618   ;;
19619
19620 netbsd*)
19621   version_type=sunos
19622   need_lib_prefix=no
19623   need_version=no
19624   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19625     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19626     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19627     dynamic_linker='NetBSD (a.out) ld.so'
19628   else
19629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19630     soname_spec='${libname}${release}${shared_ext}$major'
19631     dynamic_linker='NetBSD ld.elf_so'
19632   fi
19633   shlibpath_var=LD_LIBRARY_PATH
19634   shlibpath_overrides_runpath=yes
19635   hardcode_into_libs=yes
19636   ;;
19637
19638 newsos6)
19639   version_type=linux
19640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19641   shlibpath_var=LD_LIBRARY_PATH
19642   shlibpath_overrides_runpath=yes
19643   ;;
19644
19645 nto-qnx*)
19646   version_type=linux
19647   need_lib_prefix=no
19648   need_version=no
19649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19650   soname_spec='${libname}${release}${shared_ext}$major'
19651   shlibpath_var=LD_LIBRARY_PATH
19652   shlibpath_overrides_runpath=yes
19653   ;;
19654
19655 openbsd*)
19656   version_type=sunos
19657   sys_lib_dlsearch_path_spec="/usr/lib"
19658   need_lib_prefix=no
19659   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19660   case $host_os in
19661     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19662     *)                         need_version=no  ;;
19663   esac
19664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19665   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19666   shlibpath_var=LD_LIBRARY_PATH
19667   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19668     case $host_os in
19669       openbsd2.[89] | openbsd2.[89].*)
19670         shlibpath_overrides_runpath=no
19671         ;;
19672       *)
19673         shlibpath_overrides_runpath=yes
19674         ;;
19675       esac
19676   else
19677     shlibpath_overrides_runpath=yes
19678   fi
19679   ;;
19680
19681 os2*)
19682   libname_spec='$name'
19683   shrext_cmds=".dll"
19684   need_lib_prefix=no
19685   library_names_spec='$libname${shared_ext} $libname.a'
19686   dynamic_linker='OS/2 ld.exe'
19687   shlibpath_var=LIBPATH
19688   ;;
19689
19690 osf3* | osf4* | osf5*)
19691   version_type=osf
19692   need_lib_prefix=no
19693   need_version=no
19694   soname_spec='${libname}${release}${shared_ext}$major'
19695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19696   shlibpath_var=LD_LIBRARY_PATH
19697   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19698   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19699   ;;
19700
19701 solaris*)
19702   version_type=linux
19703   need_lib_prefix=no
19704   need_version=no
19705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19706   soname_spec='${libname}${release}${shared_ext}$major'
19707   shlibpath_var=LD_LIBRARY_PATH
19708   shlibpath_overrides_runpath=yes
19709   hardcode_into_libs=yes
19710   # ldd complains unless libraries are executable
19711   postinstall_cmds='chmod +x $lib'
19712   ;;
19713
19714 sunos4*)
19715   version_type=sunos
19716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19717   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19718   shlibpath_var=LD_LIBRARY_PATH
19719   shlibpath_overrides_runpath=yes
19720   if test "$with_gnu_ld" = yes; then
19721     need_lib_prefix=no
19722   fi
19723   need_version=yes
19724   ;;
19725
19726 sysv4 | sysv4.3*)
19727   version_type=linux
19728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19729   soname_spec='${libname}${release}${shared_ext}$major'
19730   shlibpath_var=LD_LIBRARY_PATH
19731   case $host_vendor in
19732     sni)
19733       shlibpath_overrides_runpath=no
19734       need_lib_prefix=no
19735       export_dynamic_flag_spec='${wl}-Blargedynsym'
19736       runpath_var=LD_RUN_PATH
19737       ;;
19738     siemens)
19739       need_lib_prefix=no
19740       ;;
19741     motorola)
19742       need_lib_prefix=no
19743       need_version=no
19744       shlibpath_overrides_runpath=no
19745       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19746       ;;
19747   esac
19748   ;;
19749
19750 sysv4*MP*)
19751   if test -d /usr/nec ;then
19752     version_type=linux
19753     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19754     soname_spec='$libname${shared_ext}.$major'
19755     shlibpath_var=LD_LIBRARY_PATH
19756   fi
19757   ;;
19758
19759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19760   version_type=freebsd-elf
19761   need_lib_prefix=no
19762   need_version=no
19763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19764   soname_spec='${libname}${release}${shared_ext}$major'
19765   shlibpath_var=LD_LIBRARY_PATH
19766   hardcode_into_libs=yes
19767   if test "$with_gnu_ld" = yes; then
19768     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19769     shlibpath_overrides_runpath=no
19770   else
19771     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19772     shlibpath_overrides_runpath=yes
19773     case $host_os in
19774       sco3.2v5*)
19775         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19776         ;;
19777     esac
19778   fi
19779   sys_lib_dlsearch_path_spec='/usr/lib'
19780   ;;
19781
19782 uts4*)
19783   version_type=linux
19784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19785   soname_spec='${libname}${release}${shared_ext}$major'
19786   shlibpath_var=LD_LIBRARY_PATH
19787   ;;
19788
19789 *)
19790   dynamic_linker=no
19791   ;;
19792 esac
19793 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19794 echo "${ECHO_T}$dynamic_linker" >&6; }
19795 test "$dynamic_linker" = no && can_build_shared=no
19796
19797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19798 if test "$GCC" = yes; then
19799   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19800 fi
19801
19802 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19803 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19804 hardcode_action_GCJ=
19805 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19806    test -n "$runpath_var_GCJ" || \
19807    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19808
19809   # We can hardcode non-existant directories.
19810   if test "$hardcode_direct_GCJ" != no &&
19811      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19812      # have to relink, otherwise we might link with an installed library
19813      # when we should be linking with a yet-to-be-installed one
19814      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19815      test "$hardcode_minus_L_GCJ" != no; then
19816     # Linking always hardcodes the temporary library directory.
19817     hardcode_action_GCJ=relink
19818   else
19819     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19820     hardcode_action_GCJ=immediate
19821   fi
19822 else
19823   # We cannot hardcode anything, or else we can only hardcode existing
19824   # directories.
19825   hardcode_action_GCJ=unsupported
19826 fi
19827 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19828 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19829
19830 if test "$hardcode_action_GCJ" = relink; then
19831   # Fast installation is not supported
19832   enable_fast_install=no
19833 elif test "$shlibpath_overrides_runpath" = yes ||
19834      test "$enable_shared" = no; then
19835   # Fast installation is not necessary
19836   enable_fast_install=needless
19837 fi
19838
19839
19840 # The else clause should only fire when bootstrapping the
19841 # libtool distribution, otherwise you forgot to ship ltmain.sh
19842 # with your package, and you will get complaints that there are
19843 # no rules to generate ltmain.sh.
19844 if test -f "$ltmain"; then
19845   # See if we are running on zsh, and set the options which allow our commands through
19846   # without removal of \ escapes.
19847   if test -n "${ZSH_VERSION+set}" ; then
19848     setopt NO_GLOB_SUBST
19849   fi
19850   # Now quote all the things that may contain metacharacters while being
19851   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19852   # variables and quote the copies for generation of the libtool script.
19853   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19854     SED SHELL STRIP \
19855     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19856     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19857     deplibs_check_method reload_flag reload_cmds need_locks \
19858     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19859     lt_cv_sys_global_symbol_to_c_name_address \
19860     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19861     old_postinstall_cmds old_postuninstall_cmds \
19862     compiler_GCJ \
19863     CC_GCJ \
19864     LD_GCJ \
19865     lt_prog_compiler_wl_GCJ \
19866     lt_prog_compiler_pic_GCJ \
19867     lt_prog_compiler_static_GCJ \
19868     lt_prog_compiler_no_builtin_flag_GCJ \
19869     export_dynamic_flag_spec_GCJ \
19870     thread_safe_flag_spec_GCJ \
19871     whole_archive_flag_spec_GCJ \
19872     enable_shared_with_static_runtimes_GCJ \
19873     old_archive_cmds_GCJ \
19874     old_archive_from_new_cmds_GCJ \
19875     predep_objects_GCJ \
19876     postdep_objects_GCJ \
19877     predeps_GCJ \
19878     postdeps_GCJ \
19879     compiler_lib_search_path_GCJ \
19880     archive_cmds_GCJ \
19881     archive_expsym_cmds_GCJ \
19882     postinstall_cmds_GCJ \
19883     postuninstall_cmds_GCJ \
19884     old_archive_from_expsyms_cmds_GCJ \
19885     allow_undefined_flag_GCJ \
19886     no_undefined_flag_GCJ \
19887     export_symbols_cmds_GCJ \
19888     hardcode_libdir_flag_spec_GCJ \
19889     hardcode_libdir_flag_spec_ld_GCJ \
19890     hardcode_libdir_separator_GCJ \
19891     hardcode_automatic_GCJ \
19892     module_cmds_GCJ \
19893     module_expsym_cmds_GCJ \
19894     lt_cv_prog_compiler_c_o_GCJ \
19895     exclude_expsyms_GCJ \
19896     include_expsyms_GCJ; do
19897
19898     case $var in
19899     old_archive_cmds_GCJ | \
19900     old_archive_from_new_cmds_GCJ | \
19901     archive_cmds_GCJ | \
19902     archive_expsym_cmds_GCJ | \
19903     module_cmds_GCJ | \
19904     module_expsym_cmds_GCJ | \
19905     old_archive_from_expsyms_cmds_GCJ | \
19906     export_symbols_cmds_GCJ | \
19907     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19908     postinstall_cmds | postuninstall_cmds | \
19909     old_postinstall_cmds | old_postuninstall_cmds | \
19910     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19911       # Double-quote double-evaled strings.
19912       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19913       ;;
19914     *)
19915       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19916       ;;
19917     esac
19918   done
19919
19920   case $lt_echo in
19921   *'\$0 --fallback-echo"')
19922     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19923     ;;
19924   esac
19925
19926 cfgfile="$ofile"
19927
19928   cat <<__EOF__ >> "$cfgfile"
19929 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19930
19931 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19932
19933 # Shell to use when invoking shell scripts.
19934 SHELL=$lt_SHELL
19935
19936 # Whether or not to build shared libraries.
19937 build_libtool_libs=$enable_shared
19938
19939 # Whether or not to build static libraries.
19940 build_old_libs=$enable_static
19941
19942 # Whether or not to add -lc for building shared libraries.
19943 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19944
19945 # Whether or not to disallow shared libs when runtime libs are static
19946 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19947
19948 # Whether or not to optimize for fast installation.
19949 fast_install=$enable_fast_install
19950
19951 # The host system.
19952 host_alias=$host_alias
19953 host=$host
19954 host_os=$host_os
19955
19956 # The build system.
19957 build_alias=$build_alias
19958 build=$build
19959 build_os=$build_os
19960
19961 # An echo program that does not interpret backslashes.
19962 echo=$lt_echo
19963
19964 # The archiver.
19965 AR=$lt_AR
19966 AR_FLAGS=$lt_AR_FLAGS
19967
19968 # A C compiler.
19969 LTCC=$lt_LTCC
19970
19971 # LTCC compiler flags.
19972 LTCFLAGS=$lt_LTCFLAGS
19973
19974 # A language-specific compiler.
19975 CC=$lt_compiler_GCJ
19976
19977 # Is the compiler the GNU C compiler?
19978 with_gcc=$GCC_GCJ
19979
19980 # An ERE matcher.
19981 EGREP=$lt_EGREP
19982
19983 # The linker used to build libraries.
19984 LD=$lt_LD_GCJ
19985
19986 # Whether we need hard or soft links.
19987 LN_S=$lt_LN_S
19988
19989 # A BSD-compatible nm program.
19990 NM=$lt_NM
19991
19992 # A symbol stripping program
19993 STRIP=$lt_STRIP
19994
19995 # Used to examine libraries when file_magic_cmd begins "file"
19996 MAGIC_CMD=$MAGIC_CMD
19997
19998 # Used on cygwin: DLL creation program.
19999 DLLTOOL="$DLLTOOL"
20000
20001 # Used on cygwin: object dumper.
20002 OBJDUMP="$OBJDUMP"
20003
20004 # Used on cygwin: assembler.
20005 AS="$AS"
20006
20007 # The name of the directory that contains temporary libtool files.
20008 objdir=$objdir
20009
20010 # How to create reloadable object files.
20011 reload_flag=$lt_reload_flag
20012 reload_cmds=$lt_reload_cmds
20013
20014 # How to pass a linker flag through the compiler.
20015 wl=$lt_lt_prog_compiler_wl_GCJ
20016
20017 # Object file suffix (normally "o").
20018 objext="$ac_objext"
20019
20020 # Old archive suffix (normally "a").
20021 libext="$libext"
20022
20023 # Shared library suffix (normally ".so").
20024 shrext_cmds='$shrext_cmds'
20025
20026 # Executable file suffix (normally "").
20027 exeext="$exeext"
20028
20029 # Additional compiler flags for building library objects.
20030 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20031 pic_mode=$pic_mode
20032
20033 # What is the maximum length of a command?
20034 max_cmd_len=$lt_cv_sys_max_cmd_len
20035
20036 # Does compiler simultaneously support -c and -o options?
20037 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20038
20039 # Must we lock files when doing compilation?
20040 need_locks=$lt_need_locks
20041
20042 # Do we need the lib prefix for modules?
20043 need_lib_prefix=$need_lib_prefix
20044
20045 # Do we need a version for libraries?
20046 need_version=$need_version
20047
20048 # Whether dlopen is supported.
20049 dlopen_support=$enable_dlopen
20050
20051 # Whether dlopen of programs is supported.
20052 dlopen_self=$enable_dlopen_self
20053
20054 # Whether dlopen of statically linked programs is supported.
20055 dlopen_self_static=$enable_dlopen_self_static
20056
20057 # Compiler flag to prevent dynamic linking.
20058 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20059
20060 # Compiler flag to turn off builtin functions.
20061 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20062
20063 # Compiler flag to allow reflexive dlopens.
20064 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20065
20066 # Compiler flag to generate shared objects directly from archives.
20067 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20068
20069 # Compiler flag to generate thread-safe objects.
20070 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20071
20072 # Library versioning type.
20073 version_type=$version_type
20074
20075 # Format of library name prefix.
20076 libname_spec=$lt_libname_spec
20077
20078 # List of archive names.  First name is the real one, the rest are links.
20079 # The last name is the one that the linker finds with -lNAME.
20080 library_names_spec=$lt_library_names_spec
20081
20082 # The coded name of the library, if different from the real name.
20083 soname_spec=$lt_soname_spec
20084
20085 # Commands used to build and install an old-style archive.
20086 RANLIB=$lt_RANLIB
20087 old_archive_cmds=$lt_old_archive_cmds_GCJ
20088 old_postinstall_cmds=$lt_old_postinstall_cmds
20089 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20090
20091 # Create an old-style archive from a shared archive.
20092 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20093
20094 # Create a temporary old-style archive to link instead of a shared archive.
20095 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20096
20097 # Commands used to build and install a shared archive.
20098 archive_cmds=$lt_archive_cmds_GCJ
20099 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20100 postinstall_cmds=$lt_postinstall_cmds
20101 postuninstall_cmds=$lt_postuninstall_cmds
20102
20103 # Commands used to build a loadable module (assumed same as above if empty)
20104 module_cmds=$lt_module_cmds_GCJ
20105 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20106
20107 # Commands to strip libraries.
20108 old_striplib=$lt_old_striplib
20109 striplib=$lt_striplib
20110
20111 # Dependencies to place before the objects being linked to create a
20112 # shared library.
20113 predep_objects=$lt_predep_objects_GCJ
20114
20115 # Dependencies to place after the objects being linked to create a
20116 # shared library.
20117 postdep_objects=$lt_postdep_objects_GCJ
20118
20119 # Dependencies to place before the objects being linked to create a
20120 # shared library.
20121 predeps=$lt_predeps_GCJ
20122
20123 # Dependencies to place after the objects being linked to create a
20124 # shared library.
20125 postdeps=$lt_postdeps_GCJ
20126
20127 # The library search path used internally by the compiler when linking
20128 # a shared library.
20129 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20130
20131 # Method to check whether dependent libraries are shared objects.
20132 deplibs_check_method=$lt_deplibs_check_method
20133
20134 # Command to use when deplibs_check_method == file_magic.
20135 file_magic_cmd=$lt_file_magic_cmd
20136
20137 # Flag that allows shared libraries with undefined symbols to be built.
20138 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20139
20140 # Flag that forces no undefined symbols.
20141 no_undefined_flag=$lt_no_undefined_flag_GCJ
20142
20143 # Commands used to finish a libtool library installation in a directory.
20144 finish_cmds=$lt_finish_cmds
20145
20146 # Same as above, but a single script fragment to be evaled but not shown.
20147 finish_eval=$lt_finish_eval
20148
20149 # Take the output of nm and produce a listing of raw symbols and C names.
20150 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20151
20152 # Transform the output of nm in a proper C declaration
20153 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20154
20155 # Transform the output of nm in a C name address pair
20156 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20157
20158 # This is the shared library runtime path variable.
20159 runpath_var=$runpath_var
20160
20161 # This is the shared library path variable.
20162 shlibpath_var=$shlibpath_var
20163
20164 # Is shlibpath searched before the hard-coded library search path?
20165 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20166
20167 # How to hardcode a shared library path into an executable.
20168 hardcode_action=$hardcode_action_GCJ
20169
20170 # Whether we should hardcode library paths into libraries.
20171 hardcode_into_libs=$hardcode_into_libs
20172
20173 # Flag to hardcode \$libdir into a binary during linking.
20174 # This must work even if \$libdir does not exist.
20175 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20176
20177 # If ld is used when linking, flag to hardcode \$libdir into
20178 # a binary during linking. This must work even if \$libdir does
20179 # not exist.
20180 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20181
20182 # Whether we need a single -rpath flag with a separated argument.
20183 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20184
20185 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20186 # resulting binary.
20187 hardcode_direct=$hardcode_direct_GCJ
20188
20189 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20190 # resulting binary.
20191 hardcode_minus_L=$hardcode_minus_L_GCJ
20192
20193 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20194 # the resulting binary.
20195 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20196
20197 # Set to yes if building a shared library automatically hardcodes DIR into the library
20198 # and all subsequent libraries and executables linked against it.
20199 hardcode_automatic=$hardcode_automatic_GCJ
20200
20201 # Variables whose values should be saved in libtool wrapper scripts and
20202 # restored at relink time.
20203 variables_saved_for_relink="$variables_saved_for_relink"
20204
20205 # Whether libtool must link a program against all its dependency libraries.
20206 link_all_deplibs=$link_all_deplibs_GCJ
20207
20208 # Compile-time system search path for libraries
20209 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20210
20211 # Run-time system search path for libraries
20212 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20213
20214 # Fix the shell variable \$srcfile for the compiler.
20215 fix_srcfile_path="$fix_srcfile_path_GCJ"
20216
20217 # Set to yes if exported symbols are required.
20218 always_export_symbols=$always_export_symbols_GCJ
20219
20220 # The commands to list exported symbols.
20221 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20222
20223 # The commands to extract the exported symbol list from a shared archive.
20224 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20225
20226 # Symbols that should not be listed in the preloaded symbols.
20227 exclude_expsyms=$lt_exclude_expsyms_GCJ
20228
20229 # Symbols that must always be exported.
20230 include_expsyms=$lt_include_expsyms_GCJ
20231
20232 # ### END LIBTOOL TAG CONFIG: $tagname
20233
20234 __EOF__
20235
20236
20237 else
20238   # If there is no Makefile yet, we rely on a make rule to execute
20239   # `config.status --recheck' to rerun these tests and create the
20240   # libtool script then.
20241   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20242   if test -f "$ltmain_in"; then
20243     test -f Makefile && make "$ltmain"
20244   fi
20245 fi
20246
20247
20248 ac_ext=c
20249 ac_cpp='$CPP $CPPFLAGS'
20250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20253
20254 CC="$lt_save_CC"
20255
20256         else
20257           tagname=""
20258         fi
20259         ;;
20260
20261       RC)
20262
20263
20264 # Source file extension for RC test sources.
20265 ac_ext=rc
20266
20267 # Object file extension for compiled RC test sources.
20268 objext=o
20269 objext_RC=$objext
20270
20271 # Code to be used in simple compile tests
20272 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20273
20274 # Code to be used in simple link tests
20275 lt_simple_link_test_code="$lt_simple_compile_test_code"
20276
20277 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20278
20279 # If no C compiler was specified, use CC.
20280 LTCC=${LTCC-"$CC"}
20281
20282 # If no C compiler flags were specified, use CFLAGS.
20283 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20284
20285 # Allow CC to be a program name with arguments.
20286 compiler=$CC
20287
20288
20289 # save warnings/boilerplate of simple test code
20290 ac_outfile=conftest.$ac_objext
20291 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20292 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20293 _lt_compiler_boilerplate=`cat conftest.err`
20294 $rm conftest*
20295
20296 ac_outfile=conftest.$ac_objext
20297 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20298 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20299 _lt_linker_boilerplate=`cat conftest.err`
20300 $rm conftest*
20301
20302
20303 # Allow CC to be a program name with arguments.
20304 lt_save_CC="$CC"
20305 CC=${RC-"windres"}
20306 compiler=$CC
20307 compiler_RC=$CC
20308 for cc_temp in $compiler""; do
20309   case $cc_temp in
20310     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20311     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20312     \-*) ;;
20313     *) break;;
20314   esac
20315 done
20316 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20317
20318 lt_cv_prog_compiler_c_o_RC=yes
20319
20320 # The else clause should only fire when bootstrapping the
20321 # libtool distribution, otherwise you forgot to ship ltmain.sh
20322 # with your package, and you will get complaints that there are
20323 # no rules to generate ltmain.sh.
20324 if test -f "$ltmain"; then
20325   # See if we are running on zsh, and set the options which allow our commands through
20326   # without removal of \ escapes.
20327   if test -n "${ZSH_VERSION+set}" ; then
20328     setopt NO_GLOB_SUBST
20329   fi
20330   # Now quote all the things that may contain metacharacters while being
20331   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20332   # variables and quote the copies for generation of the libtool script.
20333   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20334     SED SHELL STRIP \
20335     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20336     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20337     deplibs_check_method reload_flag reload_cmds need_locks \
20338     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20339     lt_cv_sys_global_symbol_to_c_name_address \
20340     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20341     old_postinstall_cmds old_postuninstall_cmds \
20342     compiler_RC \
20343     CC_RC \
20344     LD_RC \
20345     lt_prog_compiler_wl_RC \
20346     lt_prog_compiler_pic_RC \
20347     lt_prog_compiler_static_RC \
20348     lt_prog_compiler_no_builtin_flag_RC \
20349     export_dynamic_flag_spec_RC \
20350     thread_safe_flag_spec_RC \
20351     whole_archive_flag_spec_RC \
20352     enable_shared_with_static_runtimes_RC \
20353     old_archive_cmds_RC \
20354     old_archive_from_new_cmds_RC \
20355     predep_objects_RC \
20356     postdep_objects_RC \
20357     predeps_RC \
20358     postdeps_RC \
20359     compiler_lib_search_path_RC \
20360     archive_cmds_RC \
20361     archive_expsym_cmds_RC \
20362     postinstall_cmds_RC \
20363     postuninstall_cmds_RC \
20364     old_archive_from_expsyms_cmds_RC \
20365     allow_undefined_flag_RC \
20366     no_undefined_flag_RC \
20367     export_symbols_cmds_RC \
20368     hardcode_libdir_flag_spec_RC \
20369     hardcode_libdir_flag_spec_ld_RC \
20370     hardcode_libdir_separator_RC \
20371     hardcode_automatic_RC \
20372     module_cmds_RC \
20373     module_expsym_cmds_RC \
20374     lt_cv_prog_compiler_c_o_RC \
20375     exclude_expsyms_RC \
20376     include_expsyms_RC; do
20377
20378     case $var in
20379     old_archive_cmds_RC | \
20380     old_archive_from_new_cmds_RC | \
20381     archive_cmds_RC | \
20382     archive_expsym_cmds_RC | \
20383     module_cmds_RC | \
20384     module_expsym_cmds_RC | \
20385     old_archive_from_expsyms_cmds_RC | \
20386     export_symbols_cmds_RC | \
20387     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20388     postinstall_cmds | postuninstall_cmds | \
20389     old_postinstall_cmds | old_postuninstall_cmds | \
20390     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20391       # Double-quote double-evaled strings.
20392       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20393       ;;
20394     *)
20395       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20396       ;;
20397     esac
20398   done
20399
20400   case $lt_echo in
20401   *'\$0 --fallback-echo"')
20402     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20403     ;;
20404   esac
20405
20406 cfgfile="$ofile"
20407
20408   cat <<__EOF__ >> "$cfgfile"
20409 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20410
20411 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20412
20413 # Shell to use when invoking shell scripts.
20414 SHELL=$lt_SHELL
20415
20416 # Whether or not to build shared libraries.
20417 build_libtool_libs=$enable_shared
20418
20419 # Whether or not to build static libraries.
20420 build_old_libs=$enable_static
20421
20422 # Whether or not to add -lc for building shared libraries.
20423 build_libtool_need_lc=$archive_cmds_need_lc_RC
20424
20425 # Whether or not to disallow shared libs when runtime libs are static
20426 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20427
20428 # Whether or not to optimize for fast installation.
20429 fast_install=$enable_fast_install
20430
20431 # The host system.
20432 host_alias=$host_alias
20433 host=$host
20434 host_os=$host_os
20435
20436 # The build system.
20437 build_alias=$build_alias
20438 build=$build
20439 build_os=$build_os
20440
20441 # An echo program that does not interpret backslashes.
20442 echo=$lt_echo
20443
20444 # The archiver.
20445 AR=$lt_AR
20446 AR_FLAGS=$lt_AR_FLAGS
20447
20448 # A C compiler.
20449 LTCC=$lt_LTCC
20450
20451 # LTCC compiler flags.
20452 LTCFLAGS=$lt_LTCFLAGS
20453
20454 # A language-specific compiler.
20455 CC=$lt_compiler_RC
20456
20457 # Is the compiler the GNU C compiler?
20458 with_gcc=$GCC_RC
20459
20460 # An ERE matcher.
20461 EGREP=$lt_EGREP
20462
20463 # The linker used to build libraries.
20464 LD=$lt_LD_RC
20465
20466 # Whether we need hard or soft links.
20467 LN_S=$lt_LN_S
20468
20469 # A BSD-compatible nm program.
20470 NM=$lt_NM
20471
20472 # A symbol stripping program
20473 STRIP=$lt_STRIP
20474
20475 # Used to examine libraries when file_magic_cmd begins "file"
20476 MAGIC_CMD=$MAGIC_CMD
20477
20478 # Used on cygwin: DLL creation program.
20479 DLLTOOL="$DLLTOOL"
20480
20481 # Used on cygwin: object dumper.
20482 OBJDUMP="$OBJDUMP"
20483
20484 # Used on cygwin: assembler.
20485 AS="$AS"
20486
20487 # The name of the directory that contains temporary libtool files.
20488 objdir=$objdir
20489
20490 # How to create reloadable object files.
20491 reload_flag=$lt_reload_flag
20492 reload_cmds=$lt_reload_cmds
20493
20494 # How to pass a linker flag through the compiler.
20495 wl=$lt_lt_prog_compiler_wl_RC
20496
20497 # Object file suffix (normally "o").
20498 objext="$ac_objext"
20499
20500 # Old archive suffix (normally "a").
20501 libext="$libext"
20502
20503 # Shared library suffix (normally ".so").
20504 shrext_cmds='$shrext_cmds'
20505
20506 # Executable file suffix (normally "").
20507 exeext="$exeext"
20508
20509 # Additional compiler flags for building library objects.
20510 pic_flag=$lt_lt_prog_compiler_pic_RC
20511 pic_mode=$pic_mode
20512
20513 # What is the maximum length of a command?
20514 max_cmd_len=$lt_cv_sys_max_cmd_len
20515
20516 # Does compiler simultaneously support -c and -o options?
20517 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20518
20519 # Must we lock files when doing compilation?
20520 need_locks=$lt_need_locks
20521
20522 # Do we need the lib prefix for modules?
20523 need_lib_prefix=$need_lib_prefix
20524
20525 # Do we need a version for libraries?
20526 need_version=$need_version
20527
20528 # Whether dlopen is supported.
20529 dlopen_support=$enable_dlopen
20530
20531 # Whether dlopen of programs is supported.
20532 dlopen_self=$enable_dlopen_self
20533
20534 # Whether dlopen of statically linked programs is supported.
20535 dlopen_self_static=$enable_dlopen_self_static
20536
20537 # Compiler flag to prevent dynamic linking.
20538 link_static_flag=$lt_lt_prog_compiler_static_RC
20539
20540 # Compiler flag to turn off builtin functions.
20541 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20542
20543 # Compiler flag to allow reflexive dlopens.
20544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20545
20546 # Compiler flag to generate shared objects directly from archives.
20547 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20548
20549 # Compiler flag to generate thread-safe objects.
20550 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20551
20552 # Library versioning type.
20553 version_type=$version_type
20554
20555 # Format of library name prefix.
20556 libname_spec=$lt_libname_spec
20557
20558 # List of archive names.  First name is the real one, the rest are links.
20559 # The last name is the one that the linker finds with -lNAME.
20560 library_names_spec=$lt_library_names_spec
20561
20562 # The coded name of the library, if different from the real name.
20563 soname_spec=$lt_soname_spec
20564
20565 # Commands used to build and install an old-style archive.
20566 RANLIB=$lt_RANLIB
20567 old_archive_cmds=$lt_old_archive_cmds_RC
20568 old_postinstall_cmds=$lt_old_postinstall_cmds
20569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20570
20571 # Create an old-style archive from a shared archive.
20572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20573
20574 # Create a temporary old-style archive to link instead of a shared archive.
20575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20576
20577 # Commands used to build and install a shared archive.
20578 archive_cmds=$lt_archive_cmds_RC
20579 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20580 postinstall_cmds=$lt_postinstall_cmds
20581 postuninstall_cmds=$lt_postuninstall_cmds
20582
20583 # Commands used to build a loadable module (assumed same as above if empty)
20584 module_cmds=$lt_module_cmds_RC
20585 module_expsym_cmds=$lt_module_expsym_cmds_RC
20586
20587 # Commands to strip libraries.
20588 old_striplib=$lt_old_striplib
20589 striplib=$lt_striplib
20590
20591 # Dependencies to place before the objects being linked to create a
20592 # shared library.
20593 predep_objects=$lt_predep_objects_RC
20594
20595 # Dependencies to place after the objects being linked to create a
20596 # shared library.
20597 postdep_objects=$lt_postdep_objects_RC
20598
20599 # Dependencies to place before the objects being linked to create a
20600 # shared library.
20601 predeps=$lt_predeps_RC
20602
20603 # Dependencies to place after the objects being linked to create a
20604 # shared library.
20605 postdeps=$lt_postdeps_RC
20606
20607 # The library search path used internally by the compiler when linking
20608 # a shared library.
20609 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20610
20611 # Method to check whether dependent libraries are shared objects.
20612 deplibs_check_method=$lt_deplibs_check_method
20613
20614 # Command to use when deplibs_check_method == file_magic.
20615 file_magic_cmd=$lt_file_magic_cmd
20616
20617 # Flag that allows shared libraries with undefined symbols to be built.
20618 allow_undefined_flag=$lt_allow_undefined_flag_RC
20619
20620 # Flag that forces no undefined symbols.
20621 no_undefined_flag=$lt_no_undefined_flag_RC
20622
20623 # Commands used to finish a libtool library installation in a directory.
20624 finish_cmds=$lt_finish_cmds
20625
20626 # Same as above, but a single script fragment to be evaled but not shown.
20627 finish_eval=$lt_finish_eval
20628
20629 # Take the output of nm and produce a listing of raw symbols and C names.
20630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20631
20632 # Transform the output of nm in a proper C declaration
20633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20634
20635 # Transform the output of nm in a C name address pair
20636 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20637
20638 # This is the shared library runtime path variable.
20639 runpath_var=$runpath_var
20640
20641 # This is the shared library path variable.
20642 shlibpath_var=$shlibpath_var
20643
20644 # Is shlibpath searched before the hard-coded library search path?
20645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20646
20647 # How to hardcode a shared library path into an executable.
20648 hardcode_action=$hardcode_action_RC
20649
20650 # Whether we should hardcode library paths into libraries.
20651 hardcode_into_libs=$hardcode_into_libs
20652
20653 # Flag to hardcode \$libdir into a binary during linking.
20654 # This must work even if \$libdir does not exist.
20655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20656
20657 # If ld is used when linking, flag to hardcode \$libdir into
20658 # a binary during linking. This must work even if \$libdir does
20659 # not exist.
20660 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20661
20662 # Whether we need a single -rpath flag with a separated argument.
20663 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20664
20665 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20666 # resulting binary.
20667 hardcode_direct=$hardcode_direct_RC
20668
20669 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20670 # resulting binary.
20671 hardcode_minus_L=$hardcode_minus_L_RC
20672
20673 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20674 # the resulting binary.
20675 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20676
20677 # Set to yes if building a shared library automatically hardcodes DIR into the library
20678 # and all subsequent libraries and executables linked against it.
20679 hardcode_automatic=$hardcode_automatic_RC
20680
20681 # Variables whose values should be saved in libtool wrapper scripts and
20682 # restored at relink time.
20683 variables_saved_for_relink="$variables_saved_for_relink"
20684
20685 # Whether libtool must link a program against all its dependency libraries.
20686 link_all_deplibs=$link_all_deplibs_RC
20687
20688 # Compile-time system search path for libraries
20689 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20690
20691 # Run-time system search path for libraries
20692 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20693
20694 # Fix the shell variable \$srcfile for the compiler.
20695 fix_srcfile_path="$fix_srcfile_path_RC"
20696
20697 # Set to yes if exported symbols are required.
20698 always_export_symbols=$always_export_symbols_RC
20699
20700 # The commands to list exported symbols.
20701 export_symbols_cmds=$lt_export_symbols_cmds_RC
20702
20703 # The commands to extract the exported symbol list from a shared archive.
20704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20705
20706 # Symbols that should not be listed in the preloaded symbols.
20707 exclude_expsyms=$lt_exclude_expsyms_RC
20708
20709 # Symbols that must always be exported.
20710 include_expsyms=$lt_include_expsyms_RC
20711
20712 # ### END LIBTOOL TAG CONFIG: $tagname
20713
20714 __EOF__
20715
20716
20717 else
20718   # If there is no Makefile yet, we rely on a make rule to execute
20719   # `config.status --recheck' to rerun these tests and create the
20720   # libtool script then.
20721   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20722   if test -f "$ltmain_in"; then
20723     test -f Makefile && make "$ltmain"
20724   fi
20725 fi
20726
20727
20728 ac_ext=c
20729 ac_cpp='$CPP $CPPFLAGS'
20730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20733
20734 CC="$lt_save_CC"
20735
20736         ;;
20737
20738       *)
20739         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20740 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20741    { (exit 1); exit 1; }; }
20742         ;;
20743       esac
20744
20745       # Append the new tag name to the list of available tags.
20746       if test -n "$tagname" ; then
20747       available_tags="$available_tags $tagname"
20748     fi
20749     fi
20750   done
20751   IFS="$lt_save_ifs"
20752
20753   # Now substitute the updated list of available tags.
20754   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20755     mv "${ofile}T" "$ofile"
20756     chmod +x "$ofile"
20757   else
20758     rm -f "${ofile}T"
20759     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20760 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20761    { (exit 1); exit 1; }; }
20762   fi
20763 fi
20764
20765
20766
20767 # This can be used to rebuild libtool when needed
20768 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20769
20770 # Always use our own libtool.
20771 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20772
20773 # Prevent multiple expansion
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794 if test "x$CC" != xcc; then
20795   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20796 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20797 else
20798   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20799 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20800 fi
20801 set dummy $CC; ac_cc=`echo $2 |
20802                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20803 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20804   echo $ECHO_N "(cached) $ECHO_C" >&6
20805 else
20806   cat >conftest.$ac_ext <<_ACEOF
20807 /* confdefs.h.  */
20808 _ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h.  */
20812
20813 int
20814 main ()
20815 {
20816
20817   ;
20818   return 0;
20819 }
20820 _ACEOF
20821 # Make sure it works both with $CC and with simple cc.
20822 # We do the test twice because some compilers refuse to overwrite an
20823 # existing .o file with -o, though they will create one.
20824 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20825 rm -f conftest2.*
20826 if { (case "(($ac_try" in
20827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20828   *) ac_try_echo=$ac_try;;
20829 esac
20830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20831   (eval "$ac_try") 2>&5
20832   ac_status=$?
20833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834   (exit $ac_status); } &&
20835    test -f conftest2.$ac_objext && { (case "(($ac_try" in
20836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837   *) ac_try_echo=$ac_try;;
20838 esac
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840   (eval "$ac_try") 2>&5
20841   ac_status=$?
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); };
20844 then
20845   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20846   if test "x$CC" != xcc; then
20847     # Test first that cc exists at all.
20848     if { ac_try='cc -c conftest.$ac_ext >&5'
20849   { (case "(($ac_try" in
20850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851   *) ac_try_echo=$ac_try;;
20852 esac
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854   (eval "$ac_try") 2>&5
20855   ac_status=$?
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); }; }; then
20858       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20859       rm -f conftest2.*
20860       if { (case "(($ac_try" in
20861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862   *) ac_try_echo=$ac_try;;
20863 esac
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865   (eval "$ac_try") 2>&5
20866   ac_status=$?
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); } &&
20869          test -f conftest2.$ac_objext && { (case "(($ac_try" in
20870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871   *) ac_try_echo=$ac_try;;
20872 esac
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874   (eval "$ac_try") 2>&5
20875   ac_status=$?
20876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877   (exit $ac_status); };
20878       then
20879         # cc works too.
20880         :
20881       else
20882         # cc exists but doesn't like -o.
20883         eval ac_cv_prog_cc_${ac_cc}_c_o=no
20884       fi
20885     fi
20886   fi
20887 else
20888   eval ac_cv_prog_cc_${ac_cc}_c_o=no
20889 fi
20890 rm -f core conftest*
20891
20892 fi
20893 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20894   { echo "$as_me:$LINENO: result: yes" >&5
20895 echo "${ECHO_T}yes" >&6; }
20896 else
20897   { echo "$as_me:$LINENO: result: no" >&5
20898 echo "${ECHO_T}no" >&6; }
20899
20900 cat >>confdefs.h <<\_ACEOF
20901 #define NO_MINUS_C_MINUS_O 1
20902 _ACEOF
20903
20904 fi
20905
20906 # FIXME: we rely on the cache variable name because
20907 # there is no other way.
20908 set dummy $CC
20909 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20910 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20911    # Losing compiler, so override with the script.
20912    # FIXME: It is wrong to rewrite CC.
20913    # But if we don't then we get into trouble of one sort or another.
20914    # A longer-term fix would be to have automake use am__CC in this case,
20915    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20916    CC="$am_aux_dir/compile $CC"
20917 fi
20918
20919
20920
20921 if test "x$cross_compiling" = "xno"; then
20922         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20923 else
20924         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20925 fi
20926
20927
20928
20929 if test -n "$ac_tool_prefix"; then
20930   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20931 set dummy ${ac_tool_prefix}ar; ac_word=$2
20932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20934 if test "${ac_cv_prog_AR+set}" = set; then
20935   echo $ECHO_N "(cached) $ECHO_C" >&6
20936 else
20937   if test -n "$AR"; then
20938   ac_cv_prog_AR="$AR" # Let the user override the test.
20939 else
20940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20941 for as_dir in $PATH
20942 do
20943   IFS=$as_save_IFS
20944   test -z "$as_dir" && as_dir=.
20945   for ac_exec_ext in '' $ac_executable_extensions; do
20946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20947     ac_cv_prog_AR="${ac_tool_prefix}ar"
20948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20949     break 2
20950   fi
20951 done
20952 done
20953 IFS=$as_save_IFS
20954
20955 fi
20956 fi
20957 AR=$ac_cv_prog_AR
20958 if test -n "$AR"; then
20959   { echo "$as_me:$LINENO: result: $AR" >&5
20960 echo "${ECHO_T}$AR" >&6; }
20961 else
20962   { echo "$as_me:$LINENO: result: no" >&5
20963 echo "${ECHO_T}no" >&6; }
20964 fi
20965
20966
20967 fi
20968 if test -z "$ac_cv_prog_AR"; then
20969   ac_ct_AR=$AR
20970   # Extract the first word of "ar", so it can be a program name with args.
20971 set dummy ar; ac_word=$2
20972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20974 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20975   echo $ECHO_N "(cached) $ECHO_C" >&6
20976 else
20977   if test -n "$ac_ct_AR"; then
20978   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20979 else
20980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20981 for as_dir in $PATH
20982 do
20983   IFS=$as_save_IFS
20984   test -z "$as_dir" && as_dir=.
20985   for ac_exec_ext in '' $ac_executable_extensions; do
20986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20987     ac_cv_prog_ac_ct_AR="ar"
20988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20989     break 2
20990   fi
20991 done
20992 done
20993 IFS=$as_save_IFS
20994
20995 fi
20996 fi
20997 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20998 if test -n "$ac_ct_AR"; then
20999   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21000 echo "${ECHO_T}$ac_ct_AR" >&6; }
21001 else
21002   { echo "$as_me:$LINENO: result: no" >&5
21003 echo "${ECHO_T}no" >&6; }
21004 fi
21005
21006   if test "x$ac_ct_AR" = x; then
21007     AR=""
21008   else
21009     case $cross_compiling:$ac_tool_warned in
21010 yes:)
21011 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21012 whose name does not start with the host triplet.  If you think this
21013 configuration is useful to you, please write to autoconf@gnu.org." >&5
21014 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21015 whose name does not start with the host triplet.  If you think this
21016 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21017 ac_tool_warned=yes ;;
21018 esac
21019     AR=$ac_ct_AR
21020   fi
21021 else
21022   AR="$ac_cv_prog_AR"
21023 fi
21024
21025 if test -n "$ac_tool_prefix"; then
21026   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21027 set dummy ${ac_tool_prefix}ld; ac_word=$2
21028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21030 if test "${ac_cv_prog_LD+set}" = set; then
21031   echo $ECHO_N "(cached) $ECHO_C" >&6
21032 else
21033   if test -n "$LD"; then
21034   ac_cv_prog_LD="$LD" # Let the user override the test.
21035 else
21036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21037 for as_dir in $PATH
21038 do
21039   IFS=$as_save_IFS
21040   test -z "$as_dir" && as_dir=.
21041   for ac_exec_ext in '' $ac_executable_extensions; do
21042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21043     ac_cv_prog_LD="${ac_tool_prefix}ld"
21044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21045     break 2
21046   fi
21047 done
21048 done
21049 IFS=$as_save_IFS
21050
21051 fi
21052 fi
21053 LD=$ac_cv_prog_LD
21054 if test -n "$LD"; then
21055   { echo "$as_me:$LINENO: result: $LD" >&5
21056 echo "${ECHO_T}$LD" >&6; }
21057 else
21058   { echo "$as_me:$LINENO: result: no" >&5
21059 echo "${ECHO_T}no" >&6; }
21060 fi
21061
21062
21063 fi
21064 if test -z "$ac_cv_prog_LD"; then
21065   ac_ct_LD=$LD
21066   # Extract the first word of "ld", so it can be a program name with args.
21067 set dummy ld; ac_word=$2
21068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21070 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21071   echo $ECHO_N "(cached) $ECHO_C" >&6
21072 else
21073   if test -n "$ac_ct_LD"; then
21074   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21075 else
21076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21077 for as_dir in $PATH
21078 do
21079   IFS=$as_save_IFS
21080   test -z "$as_dir" && as_dir=.
21081   for ac_exec_ext in '' $ac_executable_extensions; do
21082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21083     ac_cv_prog_ac_ct_LD="ld"
21084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21085     break 2
21086   fi
21087 done
21088 done
21089 IFS=$as_save_IFS
21090
21091 fi
21092 fi
21093 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21094 if test -n "$ac_ct_LD"; then
21095   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21096 echo "${ECHO_T}$ac_ct_LD" >&6; }
21097 else
21098   { echo "$as_me:$LINENO: result: no" >&5
21099 echo "${ECHO_T}no" >&6; }
21100 fi
21101
21102   if test "x$ac_ct_LD" = x; then
21103     LD=""
21104   else
21105     case $cross_compiling:$ac_tool_warned in
21106 yes:)
21107 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21108 whose name does not start with the host triplet.  If you think this
21109 configuration is useful to you, please write to autoconf@gnu.org." >&5
21110 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21111 whose name does not start with the host triplet.  If you think this
21112 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21113 ac_tool_warned=yes ;;
21114 esac
21115     LD=$ac_ct_LD
21116   fi
21117 else
21118   LD="$ac_cv_prog_LD"
21119 fi
21120
21121
21122 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21124 if test "${ac_cv_header_stdc+set}" = set; then
21125   echo $ECHO_N "(cached) $ECHO_C" >&6
21126 else
21127   cat >conftest.$ac_ext <<_ACEOF
21128 /* confdefs.h.  */
21129 _ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h.  */
21133 #include <stdlib.h>
21134 #include <stdarg.h>
21135 #include <string.h>
21136 #include <float.h>
21137
21138 int
21139 main ()
21140 {
21141
21142   ;
21143   return 0;
21144 }
21145 _ACEOF
21146 rm -f conftest.$ac_objext
21147 if { (ac_try="$ac_compile"
21148 case "(($ac_try" in
21149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150   *) ac_try_echo=$ac_try;;
21151 esac
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153   (eval "$ac_compile") 2>conftest.er1
21154   ac_status=$?
21155   grep -v '^ *+' conftest.er1 >conftest.err
21156   rm -f conftest.er1
21157   cat conftest.err >&5
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); } && {
21160          test -z "$ac_c_werror_flag" ||
21161          test ! -s conftest.err
21162        } && test -s conftest.$ac_objext; then
21163   ac_cv_header_stdc=yes
21164 else
21165   echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21167
21168         ac_cv_header_stdc=no
21169 fi
21170
21171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21172
21173 if test $ac_cv_header_stdc = yes; then
21174   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21175   cat >conftest.$ac_ext <<_ACEOF
21176 /* confdefs.h.  */
21177 _ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h.  */
21181 #include <string.h>
21182
21183 _ACEOF
21184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21185   $EGREP "memchr" >/dev/null 2>&1; then
21186   :
21187 else
21188   ac_cv_header_stdc=no
21189 fi
21190 rm -f conftest*
21191
21192 fi
21193
21194 if test $ac_cv_header_stdc = yes; then
21195   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21196   cat >conftest.$ac_ext <<_ACEOF
21197 /* confdefs.h.  */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h.  */
21202 #include <stdlib.h>
21203
21204 _ACEOF
21205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21206   $EGREP "free" >/dev/null 2>&1; then
21207   :
21208 else
21209   ac_cv_header_stdc=no
21210 fi
21211 rm -f conftest*
21212
21213 fi
21214
21215 if test $ac_cv_header_stdc = yes; then
21216   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21217   if test "$cross_compiling" = yes; then
21218   :
21219 else
21220   cat >conftest.$ac_ext <<_ACEOF
21221 /* confdefs.h.  */
21222 _ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h.  */
21226 #include <ctype.h>
21227 #include <stdlib.h>
21228 #if ((' ' & 0x0FF) == 0x020)
21229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21231 #else
21232 # define ISLOWER(c) \
21233                    (('a' <= (c) && (c) <= 'i') \
21234                      || ('j' <= (c) && (c) <= 'r') \
21235                      || ('s' <= (c) && (c) <= 'z'))
21236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21237 #endif
21238
21239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21240 int
21241 main ()
21242 {
21243   int i;
21244   for (i = 0; i < 256; i++)
21245     if (XOR (islower (i), ISLOWER (i))
21246         || toupper (i) != TOUPPER (i))
21247       return 2;
21248   return 0;
21249 }
21250 _ACEOF
21251 rm -f conftest$ac_exeext
21252 if { (ac_try="$ac_link"
21253 case "(($ac_try" in
21254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255   *) ac_try_echo=$ac_try;;
21256 esac
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258   (eval "$ac_link") 2>&5
21259   ac_status=$?
21260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21262   { (case "(($ac_try" in
21263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264   *) ac_try_echo=$ac_try;;
21265 esac
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267   (eval "$ac_try") 2>&5
21268   ac_status=$?
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); }; }; then
21271   :
21272 else
21273   echo "$as_me: program exited with status $ac_status" >&5
21274 echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21276
21277 ( exit $ac_status )
21278 ac_cv_header_stdc=no
21279 fi
21280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21281 fi
21282
21283
21284 fi
21285 fi
21286 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21287 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21288 if test $ac_cv_header_stdc = yes; then
21289
21290 cat >>confdefs.h <<\_ACEOF
21291 #define STDC_HEADERS 1
21292 _ACEOF
21293
21294 fi
21295
21296
21297   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21298 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21299   if test "${knfsd_cv_glibc2+set}" = set; then
21300   echo $ECHO_N "(cached) $ECHO_C" >&6
21301 else
21302   cat >conftest.$ac_ext <<_ACEOF
21303 /* confdefs.h.  */
21304 _ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h.  */
21308
21309       #include <features.h>
21310       #if !defined(__GLIBC__)
21311       # error Nope
21312       #endif
21313
21314 _ACEOF
21315 if { (ac_try="$ac_cpp conftest.$ac_ext"
21316 case "(($ac_try" in
21317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318   *) ac_try_echo=$ac_try;;
21319 esac
21320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21322   ac_status=$?
21323   grep -v '^ *+' conftest.er1 >conftest.err
21324   rm -f conftest.er1
21325   cat conftest.err >&5
21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327   (exit $ac_status); } >/dev/null && {
21328          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21329          test ! -s conftest.err
21330        }; then
21331   knfsd_cv_glibc2=yes
21332 else
21333   echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21335
21336   knfsd_cv_glibc2=no
21337 fi
21338
21339 rm -f conftest.err conftest.$ac_ext
21340 fi
21341
21342   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21343 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21344   if test $knfsd_cv_glibc2 = yes; then
21345     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21346     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21347   fi
21348
21349
21350   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21351 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21352   if test "${knfsd_cv_bsd_signals+set}" = set; then
21353   echo $ECHO_N "(cached) $ECHO_C" >&6
21354 else
21355   if test "$cross_compiling" = yes; then
21356
21357       case "$host_os" in
21358         *linux*) knfsd_cv_bsd_signals=no;;
21359         *bsd*)   knfsd_cv_bsd_signals=yes;;
21360         *)       { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21361 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21362    { (exit 1); exit 1; }; };;
21363       esac
21364
21365 else
21366   cat >conftest.$ac_ext <<_ACEOF
21367 /* confdefs.h.  */
21368 _ACEOF
21369 cat confdefs.h >>conftest.$ac_ext
21370 cat >>conftest.$ac_ext <<_ACEOF
21371 /* end confdefs.h.  */
21372
21373         #include <signal.h>
21374         #include <unistd.h>
21375         #include <sys/wait.h>
21376
21377         static int counter = 0;
21378         static RETSIGTYPE handler(int num) { counter++; }
21379
21380         int main()
21381         {
21382                 int     s;
21383                 if ((s = fork()) < 0) return 1;
21384                 if (s != 0) {
21385                         if (wait(&s) < 0) return 1;
21386                         return WIFSIGNALED(s)? 1 : 0;
21387                 }
21388
21389                 signal(SIGHUP, handler);
21390                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21391                 return (counter == 2)? 0 : 1;
21392         }
21393
21394 _ACEOF
21395 rm -f conftest$ac_exeext
21396 if { (ac_try="$ac_link"
21397 case "(($ac_try" in
21398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399   *) ac_try_echo=$ac_try;;
21400 esac
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402   (eval "$ac_link") 2>&5
21403   ac_status=$?
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21406   { (case "(($ac_try" in
21407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21408   *) ac_try_echo=$ac_try;;
21409 esac
21410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21411   (eval "$ac_try") 2>&5
21412   ac_status=$?
21413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414   (exit $ac_status); }; }; then
21415   knfsd_cv_bsd_signals=yes
21416 else
21417   echo "$as_me: program exited with status $ac_status" >&5
21418 echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21420
21421 ( exit $ac_status )
21422 knfsd_cv_bsd_signals=no
21423 fi
21424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21425 fi
21426
21427
21428 fi
21429      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21430 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21431     test $knfsd_cv_bsd_signals = yes &&
21432 cat >>confdefs.h <<\_ACEOF
21433 #define HAVE_BSD_SIGNALS 1
21434 _ACEOF
21435
21436
21437
21438 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21439 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21440 if test "${ac_cv_func_gethostbyname+set}" = set; then
21441   echo $ECHO_N "(cached) $ECHO_C" >&6
21442 else
21443   cat >conftest.$ac_ext <<_ACEOF
21444 /* confdefs.h.  */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h.  */
21449 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21451 #define gethostbyname innocuous_gethostbyname
21452
21453 /* System header to define __stub macros and hopefully few prototypes,
21454     which can conflict with char gethostbyname (); below.
21455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21456     <limits.h> exists even on freestanding compilers.  */
21457
21458 #ifdef __STDC__
21459 # include <limits.h>
21460 #else
21461 # include <assert.h>
21462 #endif
21463
21464 #undef gethostbyname
21465
21466 /* Override any GCC internal prototype to avoid an error.
21467    Use char because int might match the return type of a GCC
21468    builtin and then its argument prototype would still apply.  */
21469 #ifdef __cplusplus
21470 extern "C"
21471 #endif
21472 char gethostbyname ();
21473 /* The GNU C library defines this for functions which it implements
21474     to always fail with ENOSYS.  Some functions are actually named
21475     something starting with __ and the normal name is an alias.  */
21476 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21477 choke me
21478 #endif
21479
21480 int
21481 main ()
21482 {
21483 return gethostbyname ();
21484   ;
21485   return 0;
21486 }
21487 _ACEOF
21488 rm -f conftest.$ac_objext conftest$ac_exeext
21489 if { (ac_try="$ac_link"
21490 case "(($ac_try" in
21491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492   *) ac_try_echo=$ac_try;;
21493 esac
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495   (eval "$ac_link") 2>conftest.er1
21496   ac_status=$?
21497   grep -v '^ *+' conftest.er1 >conftest.err
21498   rm -f conftest.er1
21499   cat conftest.err >&5
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); } && {
21502          test -z "$ac_c_werror_flag" ||
21503          test ! -s conftest.err
21504        } && test -s conftest$ac_exeext &&
21505        $as_test_x conftest$ac_exeext; then
21506   ac_cv_func_gethostbyname=yes
21507 else
21508   echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21510
21511         ac_cv_func_gethostbyname=no
21512 fi
21513
21514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21515       conftest$ac_exeext conftest.$ac_ext
21516 fi
21517 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21518 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21519 if test $ac_cv_func_gethostbyname = yes; then
21520   :
21521 else
21522   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21523 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21524 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21525   echo $ECHO_N "(cached) $ECHO_C" >&6
21526 else
21527   ac_check_lib_save_LIBS=$LIBS
21528 LIBS="-lnsl  $LIBS"
21529 cat >conftest.$ac_ext <<_ACEOF
21530 /* confdefs.h.  */
21531 _ACEOF
21532 cat confdefs.h >>conftest.$ac_ext
21533 cat >>conftest.$ac_ext <<_ACEOF
21534 /* end confdefs.h.  */
21535
21536 /* Override any GCC internal prototype to avoid an error.
21537    Use char because int might match the return type of a GCC
21538    builtin and then its argument prototype would still apply.  */
21539 #ifdef __cplusplus
21540 extern "C"
21541 #endif
21542 char gethostbyname ();
21543 int
21544 main ()
21545 {
21546 return gethostbyname ();
21547   ;
21548   return 0;
21549 }
21550 _ACEOF
21551 rm -f conftest.$ac_objext conftest$ac_exeext
21552 if { (ac_try="$ac_link"
21553 case "(($ac_try" in
21554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555   *) ac_try_echo=$ac_try;;
21556 esac
21557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21558   (eval "$ac_link") 2>conftest.er1
21559   ac_status=$?
21560   grep -v '^ *+' conftest.er1 >conftest.err
21561   rm -f conftest.er1
21562   cat conftest.err >&5
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); } && {
21565          test -z "$ac_c_werror_flag" ||
21566          test ! -s conftest.err
21567        } && test -s conftest$ac_exeext &&
21568        $as_test_x conftest$ac_exeext; then
21569   ac_cv_lib_nsl_gethostbyname=yes
21570 else
21571   echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21573
21574         ac_cv_lib_nsl_gethostbyname=no
21575 fi
21576
21577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21578       conftest$ac_exeext conftest.$ac_ext
21579 LIBS=$ac_check_lib_save_LIBS
21580 fi
21581 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21582 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21583 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21584   LIBNSL="-lnsl"
21585 fi
21586
21587 fi
21588
21589
21590
21591 { echo "$as_me:$LINENO: checking for connect" >&5
21592 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21593 if test "${ac_cv_func_connect+set}" = set; then
21594   echo $ECHO_N "(cached) $ECHO_C" >&6
21595 else
21596   cat >conftest.$ac_ext <<_ACEOF
21597 /* confdefs.h.  */
21598 _ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h.  */
21602 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21604 #define connect innocuous_connect
21605
21606 /* System header to define __stub macros and hopefully few prototypes,
21607     which can conflict with char connect (); below.
21608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21609     <limits.h> exists even on freestanding compilers.  */
21610
21611 #ifdef __STDC__
21612 # include <limits.h>
21613 #else
21614 # include <assert.h>
21615 #endif
21616
21617 #undef connect
21618
21619 /* Override any GCC internal prototype to avoid an error.
21620    Use char because int might match the return type of a GCC
21621    builtin and then its argument prototype would still apply.  */
21622 #ifdef __cplusplus
21623 extern "C"
21624 #endif
21625 char connect ();
21626 /* The GNU C library defines this for functions which it implements
21627     to always fail with ENOSYS.  Some functions are actually named
21628     something starting with __ and the normal name is an alias.  */
21629 #if defined __stub_connect || defined __stub___connect
21630 choke me
21631 #endif
21632
21633 int
21634 main ()
21635 {
21636 return connect ();
21637   ;
21638   return 0;
21639 }
21640 _ACEOF
21641 rm -f conftest.$ac_objext conftest$ac_exeext
21642 if { (ac_try="$ac_link"
21643 case "(($ac_try" in
21644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645   *) ac_try_echo=$ac_try;;
21646 esac
21647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21648   (eval "$ac_link") 2>conftest.er1
21649   ac_status=$?
21650   grep -v '^ *+' conftest.er1 >conftest.err
21651   rm -f conftest.er1
21652   cat conftest.err >&5
21653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654   (exit $ac_status); } && {
21655          test -z "$ac_c_werror_flag" ||
21656          test ! -s conftest.err
21657        } && test -s conftest$ac_exeext &&
21658        $as_test_x conftest$ac_exeext; then
21659   ac_cv_func_connect=yes
21660 else
21661   echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21663
21664         ac_cv_func_connect=no
21665 fi
21666
21667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21668       conftest$ac_exeext conftest.$ac_ext
21669 fi
21670 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21671 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21672 if test $ac_cv_func_connect = yes; then
21673   :
21674 else
21675   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21676 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21677 if test "${ac_cv_lib_socket_connect+set}" = set; then
21678   echo $ECHO_N "(cached) $ECHO_C" >&6
21679 else
21680   ac_check_lib_save_LIBS=$LIBS
21681 LIBS="-lsocket $LIBNSL $LIBS"
21682 cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h.  */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h.  */
21688
21689 /* Override any GCC internal prototype to avoid an error.
21690    Use char because int might match the return type of a GCC
21691    builtin and then its argument prototype would still apply.  */
21692 #ifdef __cplusplus
21693 extern "C"
21694 #endif
21695 char connect ();
21696 int
21697 main ()
21698 {
21699 return connect ();
21700   ;
21701   return 0;
21702 }
21703 _ACEOF
21704 rm -f conftest.$ac_objext conftest$ac_exeext
21705 if { (ac_try="$ac_link"
21706 case "(($ac_try" in
21707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708   *) ac_try_echo=$ac_try;;
21709 esac
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711   (eval "$ac_link") 2>conftest.er1
21712   ac_status=$?
21713   grep -v '^ *+' conftest.er1 >conftest.err
21714   rm -f conftest.er1
21715   cat conftest.err >&5
21716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717   (exit $ac_status); } && {
21718          test -z "$ac_c_werror_flag" ||
21719          test ! -s conftest.err
21720        } && test -s conftest$ac_exeext &&
21721        $as_test_x conftest$ac_exeext; then
21722   ac_cv_lib_socket_connect=yes
21723 else
21724   echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21726
21727         ac_cv_lib_socket_connect=no
21728 fi
21729
21730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21731       conftest$ac_exeext conftest.$ac_ext
21732 LIBS=$ac_check_lib_save_LIBS
21733 fi
21734 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21735 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21736 if test $ac_cv_lib_socket_connect = yes; then
21737   LIBSOCKET="-lsocket"
21738 else
21739   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21740 echo "$as_me: error: Function 'socket' not found." >&2;}
21741    { (exit 1); exit 1; }; }
21742 fi
21743
21744 fi
21745
21746
21747 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21748 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21749 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21750   echo $ECHO_N "(cached) $ECHO_C" >&6
21751 else
21752   ac_check_lib_save_LIBS=$LIBS
21753 LIBS="-lcrypt  $LIBS"
21754 cat >conftest.$ac_ext <<_ACEOF
21755 /* confdefs.h.  */
21756 _ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h.  */
21760
21761 /* Override any GCC internal prototype to avoid an error.
21762    Use char because int might match the return type of a GCC
21763    builtin and then its argument prototype would still apply.  */
21764 #ifdef __cplusplus
21765 extern "C"
21766 #endif
21767 char crypt ();
21768 int
21769 main ()
21770 {
21771 return crypt ();
21772   ;
21773   return 0;
21774 }
21775 _ACEOF
21776 rm -f conftest.$ac_objext conftest$ac_exeext
21777 if { (ac_try="$ac_link"
21778 case "(($ac_try" in
21779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780   *) ac_try_echo=$ac_try;;
21781 esac
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783   (eval "$ac_link") 2>conftest.er1
21784   ac_status=$?
21785   grep -v '^ *+' conftest.er1 >conftest.err
21786   rm -f conftest.er1
21787   cat conftest.err >&5
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); } && {
21790          test -z "$ac_c_werror_flag" ||
21791          test ! -s conftest.err
21792        } && test -s conftest$ac_exeext &&
21793        $as_test_x conftest$ac_exeext; then
21794   ac_cv_lib_crypt_crypt=yes
21795 else
21796   echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21798
21799         ac_cv_lib_crypt_crypt=no
21800 fi
21801
21802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21803       conftest$ac_exeext conftest.$ac_ext
21804 LIBS=$ac_check_lib_save_LIBS
21805 fi
21806 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21807 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21808 if test $ac_cv_lib_crypt_crypt = yes; then
21809   LIBCRYPT="-lcrypt"
21810 fi
21811
21812 if test "$enable_nfsv4" = yes; then
21813     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21814 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21815 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21816   echo $ECHO_N "(cached) $ECHO_C" >&6
21817 else
21818   ac_check_lib_save_LIBS=$LIBS
21819 LIBS="-levent  $LIBS"
21820 cat >conftest.$ac_ext <<_ACEOF
21821 /* confdefs.h.  */
21822 _ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h.  */
21826
21827 /* Override any GCC internal prototype to avoid an error.
21828    Use char because int might match the return type of a GCC
21829    builtin and then its argument prototype would still apply.  */
21830 #ifdef __cplusplus
21831 extern "C"
21832 #endif
21833 char event_dispatch ();
21834 int
21835 main ()
21836 {
21837 return event_dispatch ();
21838   ;
21839   return 0;
21840 }
21841 _ACEOF
21842 rm -f conftest.$ac_objext conftest$ac_exeext
21843 if { (ac_try="$ac_link"
21844 case "(($ac_try" in
21845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846   *) ac_try_echo=$ac_try;;
21847 esac
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849   (eval "$ac_link") 2>conftest.er1
21850   ac_status=$?
21851   grep -v '^ *+' conftest.er1 >conftest.err
21852   rm -f conftest.er1
21853   cat conftest.err >&5
21854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855   (exit $ac_status); } && {
21856          test -z "$ac_c_werror_flag" ||
21857          test ! -s conftest.err
21858        } && test -s conftest$ac_exeext &&
21859        $as_test_x conftest$ac_exeext; then
21860   ac_cv_lib_event_event_dispatch=yes
21861 else
21862   echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21864
21865         ac_cv_lib_event_event_dispatch=no
21866 fi
21867
21868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21869       conftest$ac_exeext conftest.$ac_ext
21870 LIBS=$ac_check_lib_save_LIBS
21871 fi
21872 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21873 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21874 if test $ac_cv_lib_event_event_dispatch = yes; then
21875   libevent=1
21876 else
21877   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21878 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21879    { (exit 1); exit 1; }; }
21880 fi
21881
21882     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21883 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21884 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21885   echo $ECHO_N "(cached) $ECHO_C" >&6
21886 else
21887   ac_check_lib_save_LIBS=$LIBS
21888 LIBS="-lnfsidmap  $LIBS"
21889 cat >conftest.$ac_ext <<_ACEOF
21890 /* confdefs.h.  */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h.  */
21895
21896 /* Override any GCC internal prototype to avoid an error.
21897    Use char because int might match the return type of a GCC
21898    builtin and then its argument prototype would still apply.  */
21899 #ifdef __cplusplus
21900 extern "C"
21901 #endif
21902 char nfs4_init_name_mapping ();
21903 int
21904 main ()
21905 {
21906 return nfs4_init_name_mapping ();
21907   ;
21908   return 0;
21909 }
21910 _ACEOF
21911 rm -f conftest.$ac_objext conftest$ac_exeext
21912 if { (ac_try="$ac_link"
21913 case "(($ac_try" in
21914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21915   *) ac_try_echo=$ac_try;;
21916 esac
21917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21918   (eval "$ac_link") 2>conftest.er1
21919   ac_status=$?
21920   grep -v '^ *+' conftest.er1 >conftest.err
21921   rm -f conftest.er1
21922   cat conftest.err >&5
21923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); } && {
21925          test -z "$ac_c_werror_flag" ||
21926          test ! -s conftest.err
21927        } && test -s conftest$ac_exeext &&
21928        $as_test_x conftest$ac_exeext; then
21929   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21930 else
21931   echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21933
21934         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21935 fi
21936
21937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21938       conftest$ac_exeext conftest.$ac_ext
21939 LIBS=$ac_check_lib_save_LIBS
21940 fi
21941 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21942 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21943 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21944   libnfsidmap=1
21945 else
21946   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21947 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21948    { (exit 1); exit 1; }; }
21949 fi
21950
21951
21952 for ac_header in event.h
21953 do
21954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21956   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959   echo $ECHO_N "(cached) $ECHO_C" >&6
21960 fi
21961 ac_res=`eval echo '${'$as_ac_Header'}'`
21962                { echo "$as_me:$LINENO: result: $ac_res" >&5
21963 echo "${ECHO_T}$ac_res" >&6; }
21964 else
21965   # Is the header compilable?
21966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21968 cat >conftest.$ac_ext <<_ACEOF
21969 /* confdefs.h.  */
21970 _ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h.  */
21974 $ac_includes_default
21975 #include <$ac_header>
21976 _ACEOF
21977 rm -f conftest.$ac_objext
21978 if { (ac_try="$ac_compile"
21979 case "(($ac_try" in
21980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981   *) ac_try_echo=$ac_try;;
21982 esac
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984   (eval "$ac_compile") 2>conftest.er1
21985   ac_status=$?
21986   grep -v '^ *+' conftest.er1 >conftest.err
21987   rm -f conftest.er1
21988   cat conftest.err >&5
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); } && {
21991          test -z "$ac_c_werror_flag" ||
21992          test ! -s conftest.err
21993        } && test -s conftest.$ac_objext; then
21994   ac_header_compiler=yes
21995 else
21996   echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21998
21999         ac_header_compiler=no
22000 fi
22001
22002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22004 echo "${ECHO_T}$ac_header_compiler" >&6; }
22005
22006 # Is the header present?
22007 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h.  */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h.  */
22015 #include <$ac_header>
22016 _ACEOF
22017 if { (ac_try="$ac_cpp conftest.$ac_ext"
22018 case "(($ac_try" in
22019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22020   *) ac_try_echo=$ac_try;;
22021 esac
22022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22024   ac_status=$?
22025   grep -v '^ *+' conftest.er1 >conftest.err
22026   rm -f conftest.er1
22027   cat conftest.err >&5
22028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029   (exit $ac_status); } >/dev/null && {
22030          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22031          test ! -s conftest.err
22032        }; then
22033   ac_header_preproc=yes
22034 else
22035   echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22037
22038   ac_header_preproc=no
22039 fi
22040
22041 rm -f conftest.err conftest.$ac_ext
22042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22043 echo "${ECHO_T}$ac_header_preproc" >&6; }
22044
22045 # So?  What about this header?
22046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22047   yes:no: )
22048     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22052     ac_header_preproc=yes
22053     ;;
22054   no:yes:* )
22055     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22057     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22058 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22059     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22061     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22062 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22065     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22067     ( cat <<\_ASBOX
22068 ## ------------------------------- ##
22069 ## Report this to nfs@lists.sf.net ##
22070 ## ------------------------------- ##
22071 _ASBOX
22072      ) | sed "s/^/$as_me: WARNING:     /" >&2
22073     ;;
22074 esac
22075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22078   echo $ECHO_N "(cached) $ECHO_C" >&6
22079 else
22080   eval "$as_ac_Header=\$ac_header_preproc"
22081 fi
22082 ac_res=`eval echo '${'$as_ac_Header'}'`
22083                { echo "$as_me:$LINENO: result: $ac_res" >&5
22084 echo "${ECHO_T}$ac_res" >&6; }
22085
22086 fi
22087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22088   cat >>confdefs.h <<_ACEOF
22089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22090 _ACEOF
22091
22092 else
22093   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22094 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22095    { (exit 1); exit 1; }; }
22096 fi
22097
22098 done
22099
22100
22101 for ac_header in nfsidmap.h
22102 do
22103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22105   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22108   echo $ECHO_N "(cached) $ECHO_C" >&6
22109 fi
22110 ac_res=`eval echo '${'$as_ac_Header'}'`
22111                { echo "$as_me:$LINENO: result: $ac_res" >&5
22112 echo "${ECHO_T}$ac_res" >&6; }
22113 else
22114   # Is the header compilable?
22115 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22117 cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h.  */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h.  */
22123 $ac_includes_default
22124 #include <$ac_header>
22125 _ACEOF
22126 rm -f conftest.$ac_objext
22127 if { (ac_try="$ac_compile"
22128 case "(($ac_try" in
22129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130   *) ac_try_echo=$ac_try;;
22131 esac
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133   (eval "$ac_compile") 2>conftest.er1
22134   ac_status=$?
22135   grep -v '^ *+' conftest.er1 >conftest.err
22136   rm -f conftest.er1
22137   cat conftest.err >&5
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); } && {
22140          test -z "$ac_c_werror_flag" ||
22141          test ! -s conftest.err
22142        } && test -s conftest.$ac_objext; then
22143   ac_header_compiler=yes
22144 else
22145   echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22147
22148         ac_header_compiler=no
22149 fi
22150
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22153 echo "${ECHO_T}$ac_header_compiler" >&6; }
22154
22155 # Is the header present?
22156 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22158 cat >conftest.$ac_ext <<_ACEOF
22159 /* confdefs.h.  */
22160 _ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h.  */
22164 #include <$ac_header>
22165 _ACEOF
22166 if { (ac_try="$ac_cpp conftest.$ac_ext"
22167 case "(($ac_try" in
22168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169   *) ac_try_echo=$ac_try;;
22170 esac
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22173   ac_status=$?
22174   grep -v '^ *+' conftest.er1 >conftest.err
22175   rm -f conftest.er1
22176   cat conftest.err >&5
22177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); } >/dev/null && {
22179          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22180          test ! -s conftest.err
22181        }; then
22182   ac_header_preproc=yes
22183 else
22184   echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187   ac_header_preproc=no
22188 fi
22189
22190 rm -f conftest.err conftest.$ac_ext
22191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22192 echo "${ECHO_T}$ac_header_preproc" >&6; }
22193
22194 # So?  What about this header?
22195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22196   yes:no: )
22197     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22201     ac_header_preproc=yes
22202     ;;
22203   no:yes:* )
22204     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22206     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22207 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22208     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22210     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22211 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22214     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22216     ( cat <<\_ASBOX
22217 ## ------------------------------- ##
22218 ## Report this to nfs@lists.sf.net ##
22219 ## ------------------------------- ##
22220 _ASBOX
22221      ) | sed "s/^/$as_me: WARNING:     /" >&2
22222     ;;
22223 esac
22224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22227   echo $ECHO_N "(cached) $ECHO_C" >&6
22228 else
22229   eval "$as_ac_Header=\$ac_header_preproc"
22230 fi
22231 ac_res=`eval echo '${'$as_ac_Header'}'`
22232                { echo "$as_me:$LINENO: result: $ac_res" >&5
22233 echo "${ECHO_T}$ac_res" >&6; }
22234
22235 fi
22236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22237   cat >>confdefs.h <<_ACEOF
22238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22239 _ACEOF
22240
22241 else
22242   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22243 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22244    { (exit 1); exit 1; }; }
22245 fi
22246
22247 done
22248
22249             if test "$enable_gss" = yes; then
22250
22251
22252 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22253         if test -n "$ac_tool_prefix"; then
22254   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22255 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22258 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22259   echo $ECHO_N "(cached) $ECHO_C" >&6
22260 else
22261   case $PKG_CONFIG in
22262   [\\/]* | ?:[\\/]*)
22263   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22264   ;;
22265   *)
22266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22267 for as_dir in $PATH
22268 do
22269   IFS=$as_save_IFS
22270   test -z "$as_dir" && as_dir=.
22271   for ac_exec_ext in '' $ac_executable_extensions; do
22272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22273     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22275     break 2
22276   fi
22277 done
22278 done
22279 IFS=$as_save_IFS
22280
22281   ;;
22282 esac
22283 fi
22284 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22285 if test -n "$PKG_CONFIG"; then
22286   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22287 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22288 else
22289   { echo "$as_me:$LINENO: result: no" >&5
22290 echo "${ECHO_T}no" >&6; }
22291 fi
22292
22293
22294 fi
22295 if test -z "$ac_cv_path_PKG_CONFIG"; then
22296   ac_pt_PKG_CONFIG=$PKG_CONFIG
22297   # Extract the first word of "pkg-config", so it can be a program name with args.
22298 set dummy pkg-config; ac_word=$2
22299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22301 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22302   echo $ECHO_N "(cached) $ECHO_C" >&6
22303 else
22304   case $ac_pt_PKG_CONFIG in
22305   [\\/]* | ?:[\\/]*)
22306   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22307   ;;
22308   *)
22309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22310 for as_dir in $PATH
22311 do
22312   IFS=$as_save_IFS
22313   test -z "$as_dir" && as_dir=.
22314   for ac_exec_ext in '' $ac_executable_extensions; do
22315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22316     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22318     break 2
22319   fi
22320 done
22321 done
22322 IFS=$as_save_IFS
22323
22324   ;;
22325 esac
22326 fi
22327 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22328 if test -n "$ac_pt_PKG_CONFIG"; then
22329   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22330 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22331 else
22332   { echo "$as_me:$LINENO: result: no" >&5
22333 echo "${ECHO_T}no" >&6; }
22334 fi
22335
22336   if test "x$ac_pt_PKG_CONFIG" = x; then
22337     PKG_CONFIG=""
22338   else
22339     case $cross_compiling:$ac_tool_warned in
22340 yes:)
22341 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22342 whose name does not start with the host triplet.  If you think this
22343 configuration is useful to you, please write to autoconf@gnu.org." >&5
22344 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22345 whose name does not start with the host triplet.  If you think this
22346 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22347 ac_tool_warned=yes ;;
22348 esac
22349     PKG_CONFIG=$ac_pt_PKG_CONFIG
22350   fi
22351 else
22352   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22353 fi
22354
22355 fi
22356 if test -n "$PKG_CONFIG"; then
22357         _pkg_min_version=0.9.0
22358         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22359 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22360         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22361                 { echo "$as_me:$LINENO: result: yes" >&5
22362 echo "${ECHO_T}yes" >&6; }
22363         else
22364                 { echo "$as_me:$LINENO: result: no" >&5
22365 echo "${ECHO_T}no" >&6; }
22366                 PKG_CONFIG=""
22367         fi
22368
22369 fi
22370
22371 pkg_failed=no
22372 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22373 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22374
22375 if test -n "$PKG_CONFIG"; then
22376     if test -n "$RPCSECGSS_CFLAGS"; then
22377         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22378     else
22379         if test -n "$PKG_CONFIG" && \
22380     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22381   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22382   ac_status=$?
22383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384   (exit $ac_status); }; then
22385   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22386 else
22387   pkg_failed=yes
22388 fi
22389     fi
22390 else
22391         pkg_failed=untried
22392 fi
22393 if test -n "$PKG_CONFIG"; then
22394     if test -n "$RPCSECGSS_LIBS"; then
22395         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22396     else
22397         if test -n "$PKG_CONFIG" && \
22398     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22399   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22400   ac_status=$?
22401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402   (exit $ac_status); }; then
22403   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22404 else
22405   pkg_failed=yes
22406 fi
22407     fi
22408 else
22409         pkg_failed=untried
22410 fi
22411
22412
22413
22414 if test $pkg_failed = yes; then
22415
22416 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22417         _pkg_short_errors_supported=yes
22418 else
22419         _pkg_short_errors_supported=no
22420 fi
22421         if test $_pkg_short_errors_supported = yes; then
22422                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22423         else
22424                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22425         fi
22426         # Put the nasty error message in config.log where it belongs
22427         echo "$RPCSECGSS_PKG_ERRORS" >&5
22428
22429         { echo "$as_me:$LINENO: result: no" >&5
22430 echo "${ECHO_T}no" >&6; }
22431                 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22432 echo "$as_me: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22433    { (exit 1); exit 1; }; }
22434
22435
22436 elif test $pkg_failed = untried; then
22437         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22438 echo "$as_me: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22439    { (exit 1); exit 1; }; }
22440
22441
22442 else
22443         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22444         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22445         { echo "$as_me:$LINENO: result: yes" >&5
22446 echo "${ECHO_T}yes" >&6; }
22447         :
22448 fi
22449
22450 pkg_failed=no
22451 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
22452 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22453
22454 if test -n "$PKG_CONFIG"; then
22455     if test -n "$GSSAPI_CFLAGS"; then
22456         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22457     else
22458         if test -n "$PKG_CONFIG" && \
22459     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.11\"") >&5
22460   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.11") 2>&5
22461   ac_status=$?
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); }; then
22464   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.11" 2>/dev/null`
22465 else
22466   pkg_failed=yes
22467 fi
22468     fi
22469 else
22470         pkg_failed=untried
22471 fi
22472 if test -n "$PKG_CONFIG"; then
22473     if test -n "$GSSAPI_LIBS"; then
22474         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22475     else
22476         if test -n "$PKG_CONFIG" && \
22477     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.11\"") >&5
22478   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.11") 2>&5
22479   ac_status=$?
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); }; then
22482   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.11" 2>/dev/null`
22483 else
22484   pkg_failed=yes
22485 fi
22486     fi
22487 else
22488         pkg_failed=untried
22489 fi
22490
22491
22492
22493 if test $pkg_failed = yes; then
22494
22495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22496         _pkg_short_errors_supported=yes
22497 else
22498         _pkg_short_errors_supported=no
22499 fi
22500         if test $_pkg_short_errors_supported = yes; then
22501                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.11"`
22502         else
22503                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.11"`
22504         fi
22505         # Put the nasty error message in config.log where it belongs
22506         echo "$GSSAPI_PKG_ERRORS" >&5
22507
22508         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.11) were not met:
22509
22510 $GSSAPI_PKG_ERRORS
22511
22512 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22513 installed software in a non-standard prefix.
22514
22515 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22516 and GSSAPI_LIBS to avoid the need to call pkg-config.
22517 See the pkg-config man page for more details.
22518 " >&5
22519 echo "$as_me: error: Package requirements (libgssapi >= 0.11) were not met:
22520
22521 $GSSAPI_PKG_ERRORS
22522
22523 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22524 installed software in a non-standard prefix.
22525
22526 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22527 and GSSAPI_LIBS to avoid the need to call pkg-config.
22528 See the pkg-config man page for more details.
22529 " >&2;}
22530    { (exit 1); exit 1; }; }
22531 elif test $pkg_failed = untried; then
22532         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22533 is in your PATH or set the PKG_CONFIG environment variable to the full
22534 path to pkg-config.
22535
22536 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22537 and GSSAPI_LIBS to avoid the need to call pkg-config.
22538 See the pkg-config man page for more details.
22539
22540 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22541 See \`config.log' for more details." >&5
22542 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22543 is in your PATH or set the PKG_CONFIG environment variable to the full
22544 path to pkg-config.
22545
22546 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22547 and GSSAPI_LIBS to avoid the need to call pkg-config.
22548 See the pkg-config man page for more details.
22549
22550 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22551 See \`config.log' for more details." >&2;}
22552    { (exit 1); exit 1; }; }
22553 else
22554         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22555         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22556         { echo "$as_me:$LINENO: result: yes" >&5
22557 echo "${ECHO_T}yes" >&6; }
22558         :
22559 fi
22560     fi
22561
22562 fi
22563 if test "$knfsd_cv_glibc2" = no; then
22564     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22565 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22566 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22567   echo $ECHO_N "(cached) $ECHO_C" >&6
22568 else
22569   ac_check_lib_save_LIBS=$LIBS
22570 LIBS="-lbsd  $LIBS"
22571 cat >conftest.$ac_ext <<_ACEOF
22572 /* confdefs.h.  */
22573 _ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h.  */
22577
22578 /* Override any GCC internal prototype to avoid an error.
22579    Use char because int might match the return type of a GCC
22580    builtin and then its argument prototype would still apply.  */
22581 #ifdef __cplusplus
22582 extern "C"
22583 #endif
22584 char daemon ();
22585 int
22586 main ()
22587 {
22588 return daemon ();
22589   ;
22590   return 0;
22591 }
22592 _ACEOF
22593 rm -f conftest.$ac_objext conftest$ac_exeext
22594 if { (ac_try="$ac_link"
22595 case "(($ac_try" in
22596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597   *) ac_try_echo=$ac_try;;
22598 esac
22599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600   (eval "$ac_link") 2>conftest.er1
22601   ac_status=$?
22602   grep -v '^ *+' conftest.er1 >conftest.err
22603   rm -f conftest.er1
22604   cat conftest.err >&5
22605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606   (exit $ac_status); } && {
22607          test -z "$ac_c_werror_flag" ||
22608          test ! -s conftest.err
22609        } && test -s conftest$ac_exeext &&
22610        $as_test_x conftest$ac_exeext; then
22611   ac_cv_lib_bsd_daemon=yes
22612 else
22613   echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22615
22616         ac_cv_lib_bsd_daemon=no
22617 fi
22618
22619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22620       conftest$ac_exeext conftest.$ac_ext
22621 LIBS=$ac_check_lib_save_LIBS
22622 fi
22623 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22624 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22625 if test $ac_cv_lib_bsd_daemon = yes; then
22626   LIBBSD="-lbsd"
22627 fi
22628
22629 fi
22630
22631 if test "$choose_blkid" != no; then
22632    { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22633 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22634 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22635   echo $ECHO_N "(cached) $ECHO_C" >&6
22636 else
22637   ac_check_lib_save_LIBS=$LIBS
22638 LIBS="-lblkid  $LIBS"
22639 cat >conftest.$ac_ext <<_ACEOF
22640 /* confdefs.h.  */
22641 _ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h.  */
22645
22646 /* Override any GCC internal prototype to avoid an error.
22647    Use char because int might match the return type of a GCC
22648    builtin and then its argument prototype would still apply.  */
22649 #ifdef __cplusplus
22650 extern "C"
22651 #endif
22652 char blkid_get_library_version ();
22653 int
22654 main ()
22655 {
22656 return blkid_get_library_version ();
22657   ;
22658   return 0;
22659 }
22660 _ACEOF
22661 rm -f conftest.$ac_objext conftest$ac_exeext
22662 if { (ac_try="$ac_link"
22663 case "(($ac_try" in
22664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665   *) ac_try_echo=$ac_try;;
22666 esac
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668   (eval "$ac_link") 2>conftest.er1
22669   ac_status=$?
22670   grep -v '^ *+' conftest.er1 >conftest.err
22671   rm -f conftest.er1
22672   cat conftest.err >&5
22673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674   (exit $ac_status); } && {
22675          test -z "$ac_c_werror_flag" ||
22676          test ! -s conftest.err
22677        } && test -s conftest$ac_exeext &&
22678        $as_test_x conftest$ac_exeext; then
22679   ac_cv_lib_blkid_blkid_get_library_version=yes
22680 else
22681   echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22683
22684         ac_cv_lib_blkid_blkid_get_library_version=no
22685 fi
22686
22687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22688       conftest$ac_exeext conftest.$ac_ext
22689 LIBS=$ac_check_lib_save_LIBS
22690 fi
22691 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22692 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22693 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22694   LIBBLKID="-lblkid"
22695 else
22696   { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22697 echo "$as_me: error: libblkid needed" >&2;}
22698    { (exit 1); exit 1; }; }
22699 fi
22700
22701    if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22702   { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22703 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22704 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22705   echo $ECHO_N "(cached) $ECHO_C" >&6
22706 fi
22707 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22708 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22709 else
22710   # Is the header compilable?
22711 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22712 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22713 cat >conftest.$ac_ext <<_ACEOF
22714 /* confdefs.h.  */
22715 _ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h.  */
22719 $ac_includes_default
22720 #include <blkid/blkid.h>
22721 _ACEOF
22722 rm -f conftest.$ac_objext
22723 if { (ac_try="$ac_compile"
22724 case "(($ac_try" in
22725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726   *) ac_try_echo=$ac_try;;
22727 esac
22728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22729   (eval "$ac_compile") 2>conftest.er1
22730   ac_status=$?
22731   grep -v '^ *+' conftest.er1 >conftest.err
22732   rm -f conftest.er1
22733   cat conftest.err >&5
22734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735   (exit $ac_status); } && {
22736          test -z "$ac_c_werror_flag" ||
22737          test ! -s conftest.err
22738        } && test -s conftest.$ac_objext; then
22739   ac_header_compiler=yes
22740 else
22741   echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22743
22744         ac_header_compiler=no
22745 fi
22746
22747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22749 echo "${ECHO_T}$ac_header_compiler" >&6; }
22750
22751 # Is the header present?
22752 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
22753 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
22754 cat >conftest.$ac_ext <<_ACEOF
22755 /* confdefs.h.  */
22756 _ACEOF
22757 cat confdefs.h >>conftest.$ac_ext
22758 cat >>conftest.$ac_ext <<_ACEOF
22759 /* end confdefs.h.  */
22760 #include <blkid/blkid.h>
22761 _ACEOF
22762 if { (ac_try="$ac_cpp conftest.$ac_ext"
22763 case "(($ac_try" in
22764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765   *) ac_try_echo=$ac_try;;
22766 esac
22767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22768   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22769   ac_status=$?
22770   grep -v '^ *+' conftest.er1 >conftest.err
22771   rm -f conftest.er1
22772   cat conftest.err >&5
22773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774   (exit $ac_status); } >/dev/null && {
22775          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22776          test ! -s conftest.err
22777        }; then
22778   ac_header_preproc=yes
22779 else
22780   echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22782
22783   ac_header_preproc=no
22784 fi
22785
22786 rm -f conftest.err conftest.$ac_ext
22787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22788 echo "${ECHO_T}$ac_header_preproc" >&6; }
22789
22790 # So?  What about this header?
22791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22792   yes:no: )
22793     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
22794 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22795     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
22796 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
22797     ac_header_preproc=yes
22798     ;;
22799   no:yes:* )
22800     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
22801 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
22802     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
22803 echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
22804     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
22805 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
22806     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
22807 echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22808     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
22809 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
22810     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
22811 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
22812     ( cat <<\_ASBOX
22813 ## ------------------------------- ##
22814 ## Report this to nfs@lists.sf.net ##
22815 ## ------------------------------- ##
22816 _ASBOX
22817      ) | sed "s/^/$as_me: WARNING:     /" >&2
22818     ;;
22819 esac
22820 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22821 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22822 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22823   echo $ECHO_N "(cached) $ECHO_C" >&6
22824 else
22825   ac_cv_header_blkid_blkid_h=$ac_header_preproc
22826 fi
22827 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22828 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22829
22830 fi
22831 if test $ac_cv_header_blkid_blkid_h = yes; then
22832   :
22833 else
22834   { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
22835 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
22836    { (exit 1); exit 1; }; }
22837 fi
22838
22839
22840
22841   { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
22842 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
22843   if test "${libblkid_is_recent+set}" = set; then
22844   echo $ECHO_N "(cached) $ECHO_C" >&6
22845 else
22846
22847     saved_LIBS="$LIBS"
22848     LIBS=-lblkid
22849     if test "$cross_compiling" = yes; then
22850   libblkid_is_recent=unknown
22851 else
22852   cat >conftest.$ac_ext <<_ACEOF
22853 /* confdefs.h.  */
22854 _ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h.  */
22858
22859         #include <blkid/blkid.h>
22860         int main()
22861         {
22862                 int vers = blkid_get_library_version(0, 0);
22863                 return vers >= 140 ? 0 : 1;
22864         }
22865
22866 _ACEOF
22867 rm -f conftest$ac_exeext
22868 if { (ac_try="$ac_link"
22869 case "(($ac_try" in
22870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22871   *) ac_try_echo=$ac_try;;
22872 esac
22873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22874   (eval "$ac_link") 2>&5
22875   ac_status=$?
22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22878   { (case "(($ac_try" in
22879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880   *) ac_try_echo=$ac_try;;
22881 esac
22882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22883   (eval "$ac_try") 2>&5
22884   ac_status=$?
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); }; }; then
22887   libblkid_is_recent=yes
22888 else
22889   echo "$as_me: program exited with status $ac_status" >&5
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893 ( exit $ac_status )
22894 libblkid_is_recent=no
22895 fi
22896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22897 fi
22898
22899
22900     LIBS="$saved_LIBS"
22901
22902 fi
22903   { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
22904 echo "${ECHO_T}$libblkid_is_recent" >&6; }
22905
22906    if test $choose_blkid = yes; then
22907       use_blkid=1
22908       test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
22909 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
22910    else
22911       if test $libblkid_is_recent = yes
22912       then use_blkid=1
22913       else use_blkid=0
22914            { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
22915 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
22916       fi
22917     fi
22918
22919 cat >>confdefs.h <<_ACEOF
22920 #define USE_BLKID $use_blkid
22921 _ACEOF
22922
22923 fi
22924
22925
22926
22927
22928
22929 if test "$enable_gss" = yes; then
22930
22931 for ac_header in nfsidmap.h
22932 do
22933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22935   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22938   echo $ECHO_N "(cached) $ECHO_C" >&6
22939 fi
22940 ac_res=`eval echo '${'$as_ac_Header'}'`
22941                { echo "$as_me:$LINENO: result: $ac_res" >&5
22942 echo "${ECHO_T}$ac_res" >&6; }
22943 else
22944   # Is the header compilable?
22945 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22947 cat >conftest.$ac_ext <<_ACEOF
22948 /* confdefs.h.  */
22949 _ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h.  */
22953 $ac_includes_default
22954 #include <$ac_header>
22955 _ACEOF
22956 rm -f conftest.$ac_objext
22957 if { (ac_try="$ac_compile"
22958 case "(($ac_try" in
22959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22960   *) ac_try_echo=$ac_try;;
22961 esac
22962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22963   (eval "$ac_compile") 2>conftest.er1
22964   ac_status=$?
22965   grep -v '^ *+' conftest.er1 >conftest.err
22966   rm -f conftest.er1
22967   cat conftest.err >&5
22968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969   (exit $ac_status); } && {
22970          test -z "$ac_c_werror_flag" ||
22971          test ! -s conftest.err
22972        } && test -s conftest.$ac_objext; then
22973   ac_header_compiler=yes
22974 else
22975   echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22977
22978         ac_header_compiler=no
22979 fi
22980
22981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22983 echo "${ECHO_T}$ac_header_compiler" >&6; }
22984
22985 # Is the header present?
22986 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22988 cat >conftest.$ac_ext <<_ACEOF
22989 /* confdefs.h.  */
22990 _ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h.  */
22994 #include <$ac_header>
22995 _ACEOF
22996 if { (ac_try="$ac_cpp conftest.$ac_ext"
22997 case "(($ac_try" in
22998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999   *) ac_try_echo=$ac_try;;
23000 esac
23001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23003   ac_status=$?
23004   grep -v '^ *+' conftest.er1 >conftest.err
23005   rm -f conftest.er1
23006   cat conftest.err >&5
23007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008   (exit $ac_status); } >/dev/null && {
23009          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23010          test ! -s conftest.err
23011        }; then
23012   ac_header_preproc=yes
23013 else
23014   echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23016
23017   ac_header_preproc=no
23018 fi
23019
23020 rm -f conftest.err conftest.$ac_ext
23021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23022 echo "${ECHO_T}$ac_header_preproc" >&6; }
23023
23024 # So?  What about this header?
23025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23026   yes:no: )
23027     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23031     ac_header_preproc=yes
23032     ;;
23033   no:yes:* )
23034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23036     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23037 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23038     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23040     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23041 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23044     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23046     ( cat <<\_ASBOX
23047 ## ------------------------------- ##
23048 ## Report this to nfs@lists.sf.net ##
23049 ## ------------------------------- ##
23050 _ASBOX
23051      ) | sed "s/^/$as_me: WARNING:     /" >&2
23052     ;;
23053 esac
23054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23057   echo $ECHO_N "(cached) $ECHO_C" >&6
23058 else
23059   eval "$as_ac_Header=\$ac_header_preproc"
23060 fi
23061 ac_res=`eval echo '${'$as_ac_Header'}'`
23062                { echo "$as_me:$LINENO: result: $ac_res" >&5
23063 echo "${ECHO_T}$ac_res" >&6; }
23064
23065 fi
23066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23067   cat >>confdefs.h <<_ACEOF
23068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23069 _ACEOF
23070
23071 else
23072   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23073 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23074    { (exit 1); exit 1; }; }
23075 fi
23076
23077 done
23078
23079
23080 for ac_header in spkm3.h
23081 do
23082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23084   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23087   echo $ECHO_N "(cached) $ECHO_C" >&6
23088 fi
23089 ac_res=`eval echo '${'$as_ac_Header'}'`
23090                { echo "$as_me:$LINENO: result: $ac_res" >&5
23091 echo "${ECHO_T}$ac_res" >&6; }
23092 else
23093   # Is the header compilable?
23094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23096 cat >conftest.$ac_ext <<_ACEOF
23097 /* confdefs.h.  */
23098 _ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h.  */
23102 $ac_includes_default
23103 #include <$ac_header>
23104 _ACEOF
23105 rm -f conftest.$ac_objext
23106 if { (ac_try="$ac_compile"
23107 case "(($ac_try" in
23108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23109   *) ac_try_echo=$ac_try;;
23110 esac
23111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23112   (eval "$ac_compile") 2>conftest.er1
23113   ac_status=$?
23114   grep -v '^ *+' conftest.er1 >conftest.err
23115   rm -f conftest.er1
23116   cat conftest.err >&5
23117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118   (exit $ac_status); } && {
23119          test -z "$ac_c_werror_flag" ||
23120          test ! -s conftest.err
23121        } && test -s conftest.$ac_objext; then
23122   ac_header_compiler=yes
23123 else
23124   echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23126
23127         ac_header_compiler=no
23128 fi
23129
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23132 echo "${ECHO_T}$ac_header_compiler" >&6; }
23133
23134 # Is the header present?
23135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23137 cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h.  */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h.  */
23143 #include <$ac_header>
23144 _ACEOF
23145 if { (ac_try="$ac_cpp conftest.$ac_ext"
23146 case "(($ac_try" in
23147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148   *) ac_try_echo=$ac_try;;
23149 esac
23150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23151   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23152   ac_status=$?
23153   grep -v '^ *+' conftest.er1 >conftest.err
23154   rm -f conftest.er1
23155   cat conftest.err >&5
23156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157   (exit $ac_status); } >/dev/null && {
23158          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23159          test ! -s conftest.err
23160        }; then
23161   ac_header_preproc=yes
23162 else
23163   echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23165
23166   ac_header_preproc=no
23167 fi
23168
23169 rm -f conftest.err conftest.$ac_ext
23170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23171 echo "${ECHO_T}$ac_header_preproc" >&6; }
23172
23173 # So?  What about this header?
23174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23175   yes:no: )
23176     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23180     ac_header_preproc=yes
23181     ;;
23182   no:yes:* )
23183     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23185     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23186 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23187     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23189     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23190 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23193     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23195     ( cat <<\_ASBOX
23196 ## ------------------------------- ##
23197 ## Report this to nfs@lists.sf.net ##
23198 ## ------------------------------- ##
23199 _ASBOX
23200      ) | sed "s/^/$as_me: WARNING:     /" >&2
23201     ;;
23202 esac
23203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23206   echo $ECHO_N "(cached) $ECHO_C" >&6
23207 else
23208   eval "$as_ac_Header=\$ac_header_preproc"
23209 fi
23210 ac_res=`eval echo '${'$as_ac_Header'}'`
23211                { echo "$as_me:$LINENO: result: $ac_res" >&5
23212 echo "${ECHO_T}$ac_res" >&6; }
23213
23214 fi
23215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23216   cat >>confdefs.h <<_ACEOF
23217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23218 _ACEOF
23219
23220 else
23221   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23222 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23223 fi
23224
23225 done
23226
23227     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23228 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23229 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23230   echo $ECHO_N "(cached) $ECHO_C" >&6
23231 else
23232   ac_check_lib_save_LIBS=$LIBS
23233 LIBS="-lnfsidmap  $LIBS"
23234 cat >conftest.$ac_ext <<_ACEOF
23235 /* confdefs.h.  */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h.  */
23240
23241 /* Override any GCC internal prototype to avoid an error.
23242    Use char because int might match the return type of a GCC
23243    builtin and then its argument prototype would still apply.  */
23244 #ifdef __cplusplus
23245 extern "C"
23246 #endif
23247 char nfs4_set_debug ();
23248 int
23249 main ()
23250 {
23251 return nfs4_set_debug ();
23252   ;
23253   return 0;
23254 }
23255 _ACEOF
23256 rm -f conftest.$ac_objext conftest$ac_exeext
23257 if { (ac_try="$ac_link"
23258 case "(($ac_try" in
23259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23260   *) ac_try_echo=$ac_try;;
23261 esac
23262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23263   (eval "$ac_link") 2>conftest.er1
23264   ac_status=$?
23265   grep -v '^ *+' conftest.er1 >conftest.err
23266   rm -f conftest.er1
23267   cat conftest.err >&5
23268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269   (exit $ac_status); } && {
23270          test -z "$ac_c_werror_flag" ||
23271          test ! -s conftest.err
23272        } && test -s conftest$ac_exeext &&
23273        $as_test_x conftest$ac_exeext; then
23274   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23275 else
23276   echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23278
23279         ac_cv_lib_nfsidmap_nfs4_set_debug=no
23280 fi
23281
23282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23283       conftest$ac_exeext conftest.$ac_ext
23284 LIBS=$ac_check_lib_save_LIBS
23285 fi
23286 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23287 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23288 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23289
23290 cat >>confdefs.h <<\_ACEOF
23291 #define HAVE_NFS4_SET_DEBUG 1
23292 _ACEOF
23293
23294 fi
23295
23296
23297
23298   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23299 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23300
23301 # Check whether --with-krb5 was given.
23302 if test "${with_krb5+set}" = set; then
23303   withval=$with_krb5;  case "$withval" in
23304     yes|no)
23305        krb5_with=""
23306        ;;
23307     *)
23308        krb5_with="$withval"
23309        ;;
23310     esac
23311
23312 fi
23313
23314
23315   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23316              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23317             K5CONFIG=""
23318     if test -f $dir/bin/krb5-config; then
23319       K5CONFIG=$dir/bin/krb5-config
23320     elif test -f "/usr/kerberos/bin/krb5-config"; then
23321       K5CONFIG="/usr/kerberos/bin/krb5-config"
23322     elif test -f "/usr/lib/mit/bin/krb5-config"; then
23323       K5CONFIG="/usr/lib/mit/bin/krb5-config"
23324     fi
23325     if test "$K5CONFIG" != ""; then
23326       KRBCFLAGS=`$K5CONFIG --cflags`
23327       KRBLIBS=`$K5CONFIG --libs gssapi`
23328       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23329
23330 cat >>confdefs.h <<_ACEOF
23331 #define KRB5_VERSION $K5VERS
23332 _ACEOF
23333
23334       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23335                 \( -f $dir/lib/libgssapi_krb5.a -o \
23336                    -f $dir/lib64/libgssapi_krb5.a -o \
23337                    -f $dir/lib64/libgssapi_krb5.so -o \
23338                    -f $dir/lib/libgssapi_krb5.so \) ; then
23339
23340 cat >>confdefs.h <<\_ACEOF
23341 #define HAVE_KRB5 1
23342 _ACEOF
23343
23344          KRBDIR="$dir"
23345                      if test $K5VERS -le 131; then
23346
23347 cat >>confdefs.h <<\_ACEOF
23348 #define USE_GSS_KRB5_CCACHE_NAME 1
23349 _ACEOF
23350
23351          fi
23352          gssapi_lib=gssapi_krb5
23353          break
23354                   elif test \( -f $dir/include/heim_err.h -o\
23355                  -f $dir/include/heimdal/heim_err.h \) -a \
23356                 -f $dir/lib/libroken.a; then
23357
23358 cat >>confdefs.h <<\_ACEOF
23359 #define HAVE_HEIMDAL 1
23360 _ACEOF
23361
23362          KRBDIR="$dir"
23363          gssapi_lib=gssapi
23364         break
23365       fi
23366     fi
23367   done
23368     if test "x$KRBDIR" = "x"; then
23369     if test "x$krb5_with" = "x"; then
23370       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23371 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23372    { (exit 1); exit 1; }; }
23373     else
23374       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23375 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23376    { (exit 1); exit 1; }; }
23377     fi
23378   fi
23379   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23380 echo "${ECHO_T}$KRBDIR" >&6; }
23381
23382     echo "The current KRBDIR is $KRBDIR"
23383   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23384        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23385     KRBLDFLAGS="";
23386   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23387     KRBLDFLAGS="";
23388   else
23389     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23390   fi
23391
23392     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23393 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23394 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23395 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23396   echo $ECHO_N "(cached) $ECHO_C" >&6
23397 else
23398   ac_check_lib_save_LIBS=$LIBS
23399 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23400 cat >conftest.$ac_ext <<_ACEOF
23401 /* confdefs.h.  */
23402 _ACEOF
23403 cat confdefs.h >>conftest.$ac_ext
23404 cat >>conftest.$ac_ext <<_ACEOF
23405 /* end confdefs.h.  */
23406
23407 /* Override any GCC internal prototype to avoid an error.
23408    Use char because int might match the return type of a GCC
23409    builtin and then its argument prototype would still apply.  */
23410 #ifdef __cplusplus
23411 extern "C"
23412 #endif
23413 char gss_krb5_export_lucid_sec_context ();
23414 int
23415 main ()
23416 {
23417 return gss_krb5_export_lucid_sec_context ();
23418   ;
23419   return 0;
23420 }
23421 _ACEOF
23422 rm -f conftest.$ac_objext conftest$ac_exeext
23423 if { (ac_try="$ac_link"
23424 case "(($ac_try" in
23425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23426   *) ac_try_echo=$ac_try;;
23427 esac
23428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23429   (eval "$ac_link") 2>conftest.er1
23430   ac_status=$?
23431   grep -v '^ *+' conftest.er1 >conftest.err
23432   rm -f conftest.er1
23433   cat conftest.err >&5
23434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435   (exit $ac_status); } && {
23436          test -z "$ac_c_werror_flag" ||
23437          test ! -s conftest.err
23438        } && test -s conftest$ac_exeext &&
23439        $as_test_x conftest$ac_exeext; then
23440   eval "$as_ac_Lib=yes"
23441 else
23442   echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23444
23445         eval "$as_ac_Lib=no"
23446 fi
23447
23448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23449       conftest$ac_exeext conftest.$ac_ext
23450 LIBS=$ac_check_lib_save_LIBS
23451 fi
23452 ac_res=`eval echo '${'$as_ac_Lib'}'`
23453                { echo "$as_me:$LINENO: result: $ac_res" >&5
23454 echo "${ECHO_T}$ac_res" >&6; }
23455 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23456
23457 cat >>confdefs.h <<\_ACEOF
23458 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23459 _ACEOF
23460
23461 fi
23462
23463   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23464 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23465 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23466 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23467   echo $ECHO_N "(cached) $ECHO_C" >&6
23468 else
23469   ac_check_lib_save_LIBS=$LIBS
23470 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23471 cat >conftest.$ac_ext <<_ACEOF
23472 /* confdefs.h.  */
23473 _ACEOF
23474 cat confdefs.h >>conftest.$ac_ext
23475 cat >>conftest.$ac_ext <<_ACEOF
23476 /* end confdefs.h.  */
23477
23478 /* Override any GCC internal prototype to avoid an error.
23479    Use char because int might match the return type of a GCC
23480    builtin and then its argument prototype would still apply.  */
23481 #ifdef __cplusplus
23482 extern "C"
23483 #endif
23484 char gss_krb5_set_allowable_enctypes ();
23485 int
23486 main ()
23487 {
23488 return gss_krb5_set_allowable_enctypes ();
23489   ;
23490   return 0;
23491 }
23492 _ACEOF
23493 rm -f conftest.$ac_objext conftest$ac_exeext
23494 if { (ac_try="$ac_link"
23495 case "(($ac_try" in
23496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23497   *) ac_try_echo=$ac_try;;
23498 esac
23499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23500   (eval "$ac_link") 2>conftest.er1
23501   ac_status=$?
23502   grep -v '^ *+' conftest.er1 >conftest.err
23503   rm -f conftest.er1
23504   cat conftest.err >&5
23505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506   (exit $ac_status); } && {
23507          test -z "$ac_c_werror_flag" ||
23508          test ! -s conftest.err
23509        } && test -s conftest$ac_exeext &&
23510        $as_test_x conftest$ac_exeext; then
23511   eval "$as_ac_Lib=yes"
23512 else
23513   echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23515
23516         eval "$as_ac_Lib=no"
23517 fi
23518
23519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23520       conftest$ac_exeext conftest.$ac_ext
23521 LIBS=$ac_check_lib_save_LIBS
23522 fi
23523 ac_res=`eval echo '${'$as_ac_Lib'}'`
23524                { echo "$as_me:$LINENO: result: $ac_res" >&5
23525 echo "${ECHO_T}$ac_res" >&6; }
23526 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23527
23528 cat >>confdefs.h <<\_ACEOF
23529 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23530 _ACEOF
23531
23532 fi
23533
23534   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23535 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23536 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23537 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23538   echo $ECHO_N "(cached) $ECHO_C" >&6
23539 else
23540   ac_check_lib_save_LIBS=$LIBS
23541 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23542 cat >conftest.$ac_ext <<_ACEOF
23543 /* confdefs.h.  */
23544 _ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h.  */
23548
23549 /* Override any GCC internal prototype to avoid an error.
23550    Use char because int might match the return type of a GCC
23551    builtin and then its argument prototype would still apply.  */
23552 #ifdef __cplusplus
23553 extern "C"
23554 #endif
23555 char gss_krb5_ccache_name ();
23556 int
23557 main ()
23558 {
23559 return gss_krb5_ccache_name ();
23560   ;
23561   return 0;
23562 }
23563 _ACEOF
23564 rm -f conftest.$ac_objext conftest$ac_exeext
23565 if { (ac_try="$ac_link"
23566 case "(($ac_try" in
23567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568   *) ac_try_echo=$ac_try;;
23569 esac
23570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23571   (eval "$ac_link") 2>conftest.er1
23572   ac_status=$?
23573   grep -v '^ *+' conftest.er1 >conftest.err
23574   rm -f conftest.er1
23575   cat conftest.err >&5
23576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577   (exit $ac_status); } && {
23578          test -z "$ac_c_werror_flag" ||
23579          test ! -s conftest.err
23580        } && test -s conftest$ac_exeext &&
23581        $as_test_x conftest$ac_exeext; then
23582   eval "$as_ac_Lib=yes"
23583 else
23584   echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23586
23587         eval "$as_ac_Lib=no"
23588 fi
23589
23590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23591       conftest$ac_exeext conftest.$ac_ext
23592 LIBS=$ac_check_lib_save_LIBS
23593 fi
23594 ac_res=`eval echo '${'$as_ac_Lib'}'`
23595                { echo "$as_me:$LINENO: result: $ac_res" >&5
23596 echo "${ECHO_T}$ac_res" >&6; }
23597 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23598
23599 cat >>confdefs.h <<\_ACEOF
23600 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23601 _ACEOF
23602
23603 fi
23604
23605
23606     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23607 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23608 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23609 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23610   echo $ECHO_N "(cached) $ECHO_C" >&6
23611 else
23612   ac_check_lib_save_LIBS=$LIBS
23613 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23614 cat >conftest.$ac_ext <<_ACEOF
23615 /* confdefs.h.  */
23616 _ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h.  */
23620
23621 /* Override any GCC internal prototype to avoid an error.
23622    Use char because int might match the return type of a GCC
23623    builtin and then its argument prototype would still apply.  */
23624 #ifdef __cplusplus
23625 extern "C"
23626 #endif
23627 char krb5_get_error_message ();
23628 int
23629 main ()
23630 {
23631 return krb5_get_error_message ();
23632   ;
23633   return 0;
23634 }
23635 _ACEOF
23636 rm -f conftest.$ac_objext conftest$ac_exeext
23637 if { (ac_try="$ac_link"
23638 case "(($ac_try" in
23639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640   *) ac_try_echo=$ac_try;;
23641 esac
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643   (eval "$ac_link") 2>conftest.er1
23644   ac_status=$?
23645   grep -v '^ *+' conftest.er1 >conftest.err
23646   rm -f conftest.er1
23647   cat conftest.err >&5
23648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649   (exit $ac_status); } && {
23650          test -z "$ac_c_werror_flag" ||
23651          test ! -s conftest.err
23652        } && test -s conftest$ac_exeext &&
23653        $as_test_x conftest$ac_exeext; then
23654   eval "$as_ac_Lib=yes"
23655 else
23656   echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23658
23659         eval "$as_ac_Lib=no"
23660 fi
23661
23662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23663       conftest$ac_exeext conftest.$ac_ext
23664 LIBS=$ac_check_lib_save_LIBS
23665 fi
23666 ac_res=`eval echo '${'$as_ac_Lib'}'`
23667                { echo "$as_me:$LINENO: result: $ac_res" >&5
23668 echo "${ECHO_T}$ac_res" >&6; }
23669 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23670
23671 cat >>confdefs.h <<\_ACEOF
23672 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
23673 _ACEOF
23674
23675 fi
23676
23677
23678     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23679 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23680 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23681 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23682   echo $ECHO_N "(cached) $ECHO_C" >&6
23683 else
23684   ac_check_lib_save_LIBS=$LIBS
23685 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23686 cat >conftest.$ac_ext <<_ACEOF
23687 /* confdefs.h.  */
23688 _ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h.  */
23692
23693 /* Override any GCC internal prototype to avoid an error.
23694    Use char because int might match the return type of a GCC
23695    builtin and then its argument prototype would still apply.  */
23696 #ifdef __cplusplus
23697 extern "C"
23698 #endif
23699 char krb5_get_init_creds_opt_set_addressless ();
23700 int
23701 main ()
23702 {
23703 return krb5_get_init_creds_opt_set_addressless ();
23704   ;
23705   return 0;
23706 }
23707 _ACEOF
23708 rm -f conftest.$ac_objext conftest$ac_exeext
23709 if { (ac_try="$ac_link"
23710 case "(($ac_try" in
23711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23712   *) ac_try_echo=$ac_try;;
23713 esac
23714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23715   (eval "$ac_link") 2>conftest.er1
23716   ac_status=$?
23717   grep -v '^ *+' conftest.er1 >conftest.err
23718   rm -f conftest.er1
23719   cat conftest.err >&5
23720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721   (exit $ac_status); } && {
23722          test -z "$ac_c_werror_flag" ||
23723          test ! -s conftest.err
23724        } && test -s conftest$ac_exeext &&
23725        $as_test_x conftest$ac_exeext; then
23726   eval "$as_ac_Lib=yes"
23727 else
23728   echo "$as_me: failed program was:" >&5
23729 sed 's/^/| /' conftest.$ac_ext >&5
23730
23731         eval "$as_ac_Lib=no"
23732 fi
23733
23734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23735       conftest$ac_exeext conftest.$ac_ext
23736 LIBS=$ac_check_lib_save_LIBS
23737 fi
23738 ac_res=`eval echo '${'$as_ac_Lib'}'`
23739                { echo "$as_me:$LINENO: result: $ac_res" >&5
23740 echo "${ECHO_T}$ac_res" >&6; }
23741 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23742
23743 cat >>confdefs.h <<\_ACEOF
23744 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
23745 _ACEOF
23746
23747 fi
23748
23749
23750     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23751     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23752 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23753   fi
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23764 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23765 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23766   echo $ECHO_N "(cached) $ECHO_C" >&6
23767 else
23768   ac_check_lib_save_LIBS=$LIBS
23769 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23770 cat >conftest.$ac_ext <<_ACEOF
23771 /* confdefs.h.  */
23772 _ACEOF
23773 cat confdefs.h >>conftest.$ac_ext
23774 cat >>conftest.$ac_ext <<_ACEOF
23775 /* end confdefs.h.  */
23776
23777 /* Override any GCC internal prototype to avoid an error.
23778    Use char because int might match the return type of a GCC
23779    builtin and then its argument prototype would still apply.  */
23780 #ifdef __cplusplus
23781 extern "C"
23782 #endif
23783 char authgss_create_default ();
23784 int
23785 main ()
23786 {
23787 return authgss_create_default ();
23788   ;
23789   return 0;
23790 }
23791 _ACEOF
23792 rm -f conftest.$ac_objext conftest$ac_exeext
23793 if { (ac_try="$ac_link"
23794 case "(($ac_try" in
23795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796   *) ac_try_echo=$ac_try;;
23797 esac
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799   (eval "$ac_link") 2>conftest.er1
23800   ac_status=$?
23801   grep -v '^ *+' conftest.er1 >conftest.err
23802   rm -f conftest.er1
23803   cat conftest.err >&5
23804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805   (exit $ac_status); } && {
23806          test -z "$ac_c_werror_flag" ||
23807          test ! -s conftest.err
23808        } && test -s conftest$ac_exeext &&
23809        $as_test_x conftest$ac_exeext; then
23810   ac_cv_lib_rpcsecgss_authgss_create_default=yes
23811 else
23812   echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23814
23815         ac_cv_lib_rpcsecgss_authgss_create_default=no
23816 fi
23817
23818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23819       conftest$ac_exeext conftest.$ac_ext
23820 LIBS=$ac_check_lib_save_LIBS
23821 fi
23822 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23823 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23824 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23825   librpcsecgss=1
23826 else
23827   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23828 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23829    { (exit 1); exit 1; }; }
23830 fi
23831
23832   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23833 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23834 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23835   echo $ECHO_N "(cached) $ECHO_C" >&6
23836 else
23837   ac_check_lib_save_LIBS=$LIBS
23838 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23839 cat >conftest.$ac_ext <<_ACEOF
23840 /* confdefs.h.  */
23841 _ACEOF
23842 cat confdefs.h >>conftest.$ac_ext
23843 cat >>conftest.$ac_ext <<_ACEOF
23844 /* end confdefs.h.  */
23845
23846 /* Override any GCC internal prototype to avoid an error.
23847    Use char because int might match the return type of a GCC
23848    builtin and then its argument prototype would still apply.  */
23849 #ifdef __cplusplus
23850 extern "C"
23851 #endif
23852 char authgss_set_debug_level ();
23853 int
23854 main ()
23855 {
23856 return authgss_set_debug_level ();
23857   ;
23858   return 0;
23859 }
23860 _ACEOF
23861 rm -f conftest.$ac_objext conftest$ac_exeext
23862 if { (ac_try="$ac_link"
23863 case "(($ac_try" in
23864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865   *) ac_try_echo=$ac_try;;
23866 esac
23867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23868   (eval "$ac_link") 2>conftest.er1
23869   ac_status=$?
23870   grep -v '^ *+' conftest.er1 >conftest.err
23871   rm -f conftest.er1
23872   cat conftest.err >&5
23873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874   (exit $ac_status); } && {
23875          test -z "$ac_c_werror_flag" ||
23876          test ! -s conftest.err
23877        } && test -s conftest$ac_exeext &&
23878        $as_test_x conftest$ac_exeext; then
23879   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23880 else
23881   echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23883
23884         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23885 fi
23886
23887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23888       conftest$ac_exeext conftest.$ac_ext
23889 LIBS=$ac_check_lib_save_LIBS
23890 fi
23891 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23892 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23893 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23894
23895 cat >>confdefs.h <<\_ACEOF
23896 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23897 _ACEOF
23898
23899 fi
23900
23901
23902 fi
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23928                  malloc.h memory.h netdb.h netinet/in.h paths.h \
23929                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23930                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23931                  syslog.h unistd.h com_err.h et/com_err.h \
23932                  ifaddrs.h
23933 do
23934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23936   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23939   echo $ECHO_N "(cached) $ECHO_C" >&6
23940 fi
23941 ac_res=`eval echo '${'$as_ac_Header'}'`
23942                { echo "$as_me:$LINENO: result: $ac_res" >&5
23943 echo "${ECHO_T}$ac_res" >&6; }
23944 else
23945   # Is the header compilable?
23946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23948 cat >conftest.$ac_ext <<_ACEOF
23949 /* confdefs.h.  */
23950 _ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h.  */
23954 $ac_includes_default
23955 #include <$ac_header>
23956 _ACEOF
23957 rm -f conftest.$ac_objext
23958 if { (ac_try="$ac_compile"
23959 case "(($ac_try" in
23960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23961   *) ac_try_echo=$ac_try;;
23962 esac
23963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23964   (eval "$ac_compile") 2>conftest.er1
23965   ac_status=$?
23966   grep -v '^ *+' conftest.er1 >conftest.err
23967   rm -f conftest.er1
23968   cat conftest.err >&5
23969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970   (exit $ac_status); } && {
23971          test -z "$ac_c_werror_flag" ||
23972          test ! -s conftest.err
23973        } && test -s conftest.$ac_objext; then
23974   ac_header_compiler=yes
23975 else
23976   echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.$ac_ext >&5
23978
23979         ac_header_compiler=no
23980 fi
23981
23982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23984 echo "${ECHO_T}$ac_header_compiler" >&6; }
23985
23986 # Is the header present?
23987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23989 cat >conftest.$ac_ext <<_ACEOF
23990 /* confdefs.h.  */
23991 _ACEOF
23992 cat confdefs.h >>conftest.$ac_ext
23993 cat >>conftest.$ac_ext <<_ACEOF
23994 /* end confdefs.h.  */
23995 #include <$ac_header>
23996 _ACEOF
23997 if { (ac_try="$ac_cpp conftest.$ac_ext"
23998 case "(($ac_try" in
23999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24000   *) ac_try_echo=$ac_try;;
24001 esac
24002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24004   ac_status=$?
24005   grep -v '^ *+' conftest.er1 >conftest.err
24006   rm -f conftest.er1
24007   cat conftest.err >&5
24008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009   (exit $ac_status); } >/dev/null && {
24010          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24011          test ! -s conftest.err
24012        }; then
24013   ac_header_preproc=yes
24014 else
24015   echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.$ac_ext >&5
24017
24018   ac_header_preproc=no
24019 fi
24020
24021 rm -f conftest.err conftest.$ac_ext
24022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24023 echo "${ECHO_T}$ac_header_preproc" >&6; }
24024
24025 # So?  What about this header?
24026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24027   yes:no: )
24028     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24032     ac_header_preproc=yes
24033     ;;
24034   no:yes:* )
24035     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24037     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24038 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24039     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24041     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24042 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24045     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24047     ( cat <<\_ASBOX
24048 ## ------------------------------- ##
24049 ## Report this to nfs@lists.sf.net ##
24050 ## ------------------------------- ##
24051 _ASBOX
24052      ) | sed "s/^/$as_me: WARNING:     /" >&2
24053     ;;
24054 esac
24055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24058   echo $ECHO_N "(cached) $ECHO_C" >&6
24059 else
24060   eval "$as_ac_Header=\$ac_header_preproc"
24061 fi
24062 ac_res=`eval echo '${'$as_ac_Header'}'`
24063                { echo "$as_me:$LINENO: result: $ac_res" >&5
24064 echo "${ECHO_T}$ac_res" >&6; }
24065
24066 fi
24067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24068   cat >>confdefs.h <<_ACEOF
24069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24070 _ACEOF
24071
24072 fi
24073
24074 done
24075
24076
24077 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24078 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24079 if test "${ac_cv_c_const+set}" = set; then
24080   echo $ECHO_N "(cached) $ECHO_C" >&6
24081 else
24082   cat >conftest.$ac_ext <<_ACEOF
24083 /* confdefs.h.  */
24084 _ACEOF
24085 cat confdefs.h >>conftest.$ac_ext
24086 cat >>conftest.$ac_ext <<_ACEOF
24087 /* end confdefs.h.  */
24088
24089 int
24090 main ()
24091 {
24092 /* FIXME: Include the comments suggested by Paul. */
24093 #ifndef __cplusplus
24094   /* Ultrix mips cc rejects this.  */
24095   typedef int charset[2];
24096   const charset cs;
24097   /* SunOS 4.1.1 cc rejects this.  */
24098   char const *const *pcpcc;
24099   char **ppc;
24100   /* NEC SVR4.0.2 mips cc rejects this.  */
24101   struct point {int x, y;};
24102   static struct point const zero = {0,0};
24103   /* AIX XL C 1.02.0.0 rejects this.
24104      It does not let you subtract one const X* pointer from another in
24105      an arm of an if-expression whose if-part is not a constant
24106      expression */
24107   const char *g = "string";
24108   pcpcc = &g + (g ? g-g : 0);
24109   /* HPUX 7.0 cc rejects these. */
24110   ++pcpcc;
24111   ppc = (char**) pcpcc;
24112   pcpcc = (char const *const *) ppc;
24113   { /* SCO 3.2v4 cc rejects this.  */
24114     char *t;
24115     char const *s = 0 ? (char *) 0 : (char const *) 0;
24116
24117     *t++ = 0;
24118     if (s) return 0;
24119   }
24120   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24121     int x[] = {25, 17};
24122     const int *foo = &x[0];
24123     ++foo;
24124   }
24125   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24126     typedef const int *iptr;
24127     iptr p = 0;
24128     ++p;
24129   }
24130   { /* AIX XL C 1.02.0.0 rejects this saying
24131        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24132     struct s { int j; const int *ap[3]; };
24133     struct s *b; b->j = 5;
24134   }
24135   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24136     const int foo = 10;
24137     if (!foo) return 0;
24138   }
24139   return !cs[0] && !zero.x;
24140 #endif
24141
24142   ;
24143   return 0;
24144 }
24145 _ACEOF
24146 rm -f conftest.$ac_objext
24147 if { (ac_try="$ac_compile"
24148 case "(($ac_try" in
24149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24150   *) ac_try_echo=$ac_try;;
24151 esac
24152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24153   (eval "$ac_compile") 2>conftest.er1
24154   ac_status=$?
24155   grep -v '^ *+' conftest.er1 >conftest.err
24156   rm -f conftest.er1
24157   cat conftest.err >&5
24158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159   (exit $ac_status); } && {
24160          test -z "$ac_c_werror_flag" ||
24161          test ! -s conftest.err
24162        } && test -s conftest.$ac_objext; then
24163   ac_cv_c_const=yes
24164 else
24165   echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24167
24168         ac_cv_c_const=no
24169 fi
24170
24171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24172 fi
24173 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24174 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24175 if test $ac_cv_c_const = no; then
24176
24177 cat >>confdefs.h <<\_ACEOF
24178 #define const
24179 _ACEOF
24180
24181 fi
24182
24183 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24184 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24185 if test "${ac_cv_type_uid_t+set}" = set; then
24186   echo $ECHO_N "(cached) $ECHO_C" >&6
24187 else
24188   cat >conftest.$ac_ext <<_ACEOF
24189 /* confdefs.h.  */
24190 _ACEOF
24191 cat confdefs.h >>conftest.$ac_ext
24192 cat >>conftest.$ac_ext <<_ACEOF
24193 /* end confdefs.h.  */
24194 #include <sys/types.h>
24195
24196 _ACEOF
24197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24198   $EGREP "uid_t" >/dev/null 2>&1; then
24199   ac_cv_type_uid_t=yes
24200 else
24201   ac_cv_type_uid_t=no
24202 fi
24203 rm -f conftest*
24204
24205 fi
24206 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24207 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24208 if test $ac_cv_type_uid_t = no; then
24209
24210 cat >>confdefs.h <<\_ACEOF
24211 #define uid_t int
24212 _ACEOF
24213
24214
24215 cat >>confdefs.h <<\_ACEOF
24216 #define gid_t int
24217 _ACEOF
24218
24219 fi
24220
24221 { echo "$as_me:$LINENO: checking for inline" >&5
24222 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24223 if test "${ac_cv_c_inline+set}" = set; then
24224   echo $ECHO_N "(cached) $ECHO_C" >&6
24225 else
24226   ac_cv_c_inline=no
24227 for ac_kw in inline __inline__ __inline; do
24228   cat >conftest.$ac_ext <<_ACEOF
24229 /* confdefs.h.  */
24230 _ACEOF
24231 cat confdefs.h >>conftest.$ac_ext
24232 cat >>conftest.$ac_ext <<_ACEOF
24233 /* end confdefs.h.  */
24234 #ifndef __cplusplus
24235 typedef int foo_t;
24236 static $ac_kw foo_t static_foo () {return 0; }
24237 $ac_kw foo_t foo () {return 0; }
24238 #endif
24239
24240 _ACEOF
24241 rm -f conftest.$ac_objext
24242 if { (ac_try="$ac_compile"
24243 case "(($ac_try" in
24244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245   *) ac_try_echo=$ac_try;;
24246 esac
24247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24248   (eval "$ac_compile") 2>conftest.er1
24249   ac_status=$?
24250   grep -v '^ *+' conftest.er1 >conftest.err
24251   rm -f conftest.er1
24252   cat conftest.err >&5
24253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254   (exit $ac_status); } && {
24255          test -z "$ac_c_werror_flag" ||
24256          test ! -s conftest.err
24257        } && test -s conftest.$ac_objext; then
24258   ac_cv_c_inline=$ac_kw
24259 else
24260   echo "$as_me: failed program was:" >&5
24261 sed 's/^/| /' conftest.$ac_ext >&5
24262
24263
24264 fi
24265
24266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24267   test "$ac_cv_c_inline" != no && break
24268 done
24269
24270 fi
24271 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24272 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24273
24274
24275 case $ac_cv_c_inline in
24276   inline | yes) ;;
24277   *)
24278     case $ac_cv_c_inline in
24279       no) ac_val=;;
24280       *) ac_val=$ac_cv_c_inline;;
24281     esac
24282     cat >>confdefs.h <<_ACEOF
24283 #ifndef __cplusplus
24284 #define inline $ac_val
24285 #endif
24286 _ACEOF
24287     ;;
24288 esac
24289
24290 { echo "$as_me:$LINENO: checking for off_t" >&5
24291 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24292 if test "${ac_cv_type_off_t+set}" = set; then
24293   echo $ECHO_N "(cached) $ECHO_C" >&6
24294 else
24295   cat >conftest.$ac_ext <<_ACEOF
24296 /* confdefs.h.  */
24297 _ACEOF
24298 cat confdefs.h >>conftest.$ac_ext
24299 cat >>conftest.$ac_ext <<_ACEOF
24300 /* end confdefs.h.  */
24301 $ac_includes_default
24302 typedef off_t ac__type_new_;
24303 int
24304 main ()
24305 {
24306 if ((ac__type_new_ *) 0)
24307   return 0;
24308 if (sizeof (ac__type_new_))
24309   return 0;
24310   ;
24311   return 0;
24312 }
24313 _ACEOF
24314 rm -f conftest.$ac_objext
24315 if { (ac_try="$ac_compile"
24316 case "(($ac_try" in
24317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318   *) ac_try_echo=$ac_try;;
24319 esac
24320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321   (eval "$ac_compile") 2>conftest.er1
24322   ac_status=$?
24323   grep -v '^ *+' conftest.er1 >conftest.err
24324   rm -f conftest.er1
24325   cat conftest.err >&5
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); } && {
24328          test -z "$ac_c_werror_flag" ||
24329          test ! -s conftest.err
24330        } && test -s conftest.$ac_objext; then
24331   ac_cv_type_off_t=yes
24332 else
24333   echo "$as_me: failed program was:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24335
24336         ac_cv_type_off_t=no
24337 fi
24338
24339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24340 fi
24341 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24342 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24343 if test $ac_cv_type_off_t = yes; then
24344   :
24345 else
24346
24347 cat >>confdefs.h <<_ACEOF
24348 #define off_t long int
24349 _ACEOF
24350
24351 fi
24352
24353 { echo "$as_me:$LINENO: checking for pid_t" >&5
24354 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24355 if test "${ac_cv_type_pid_t+set}" = set; then
24356   echo $ECHO_N "(cached) $ECHO_C" >&6
24357 else
24358   cat >conftest.$ac_ext <<_ACEOF
24359 /* confdefs.h.  */
24360 _ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h.  */
24364 $ac_includes_default
24365 typedef pid_t ac__type_new_;
24366 int
24367 main ()
24368 {
24369 if ((ac__type_new_ *) 0)
24370   return 0;
24371 if (sizeof (ac__type_new_))
24372   return 0;
24373   ;
24374   return 0;
24375 }
24376 _ACEOF
24377 rm -f conftest.$ac_objext
24378 if { (ac_try="$ac_compile"
24379 case "(($ac_try" in
24380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381   *) ac_try_echo=$ac_try;;
24382 esac
24383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24384   (eval "$ac_compile") 2>conftest.er1
24385   ac_status=$?
24386   grep -v '^ *+' conftest.er1 >conftest.err
24387   rm -f conftest.er1
24388   cat conftest.err >&5
24389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390   (exit $ac_status); } && {
24391          test -z "$ac_c_werror_flag" ||
24392          test ! -s conftest.err
24393        } && test -s conftest.$ac_objext; then
24394   ac_cv_type_pid_t=yes
24395 else
24396   echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24398
24399         ac_cv_type_pid_t=no
24400 fi
24401
24402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24403 fi
24404 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24405 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24406 if test $ac_cv_type_pid_t = yes; then
24407   :
24408 else
24409
24410 cat >>confdefs.h <<_ACEOF
24411 #define pid_t int
24412 _ACEOF
24413
24414 fi
24415
24416 { echo "$as_me:$LINENO: checking for size_t" >&5
24417 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24418 if test "${ac_cv_type_size_t+set}" = set; then
24419   echo $ECHO_N "(cached) $ECHO_C" >&6
24420 else
24421   cat >conftest.$ac_ext <<_ACEOF
24422 /* confdefs.h.  */
24423 _ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h.  */
24427 $ac_includes_default
24428 typedef size_t ac__type_new_;
24429 int
24430 main ()
24431 {
24432 if ((ac__type_new_ *) 0)
24433   return 0;
24434 if (sizeof (ac__type_new_))
24435   return 0;
24436   ;
24437   return 0;
24438 }
24439 _ACEOF
24440 rm -f conftest.$ac_objext
24441 if { (ac_try="$ac_compile"
24442 case "(($ac_try" in
24443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444   *) ac_try_echo=$ac_try;;
24445 esac
24446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24447   (eval "$ac_compile") 2>conftest.er1
24448   ac_status=$?
24449   grep -v '^ *+' conftest.er1 >conftest.err
24450   rm -f conftest.er1
24451   cat conftest.err >&5
24452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453   (exit $ac_status); } && {
24454          test -z "$ac_c_werror_flag" ||
24455          test ! -s conftest.err
24456        } && test -s conftest.$ac_objext; then
24457   ac_cv_type_size_t=yes
24458 else
24459   echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24461
24462         ac_cv_type_size_t=no
24463 fi
24464
24465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24466 fi
24467 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24468 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24469 if test $ac_cv_type_size_t = yes; then
24470   :
24471 else
24472
24473 cat >>confdefs.h <<_ACEOF
24474 #define size_t unsigned int
24475 _ACEOF
24476
24477 fi
24478
24479 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24480 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24481 if test "${ac_cv_header_time+set}" = set; then
24482   echo $ECHO_N "(cached) $ECHO_C" >&6
24483 else
24484   cat >conftest.$ac_ext <<_ACEOF
24485 /* confdefs.h.  */
24486 _ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h.  */
24490 #include <sys/types.h>
24491 #include <sys/time.h>
24492 #include <time.h>
24493
24494 int
24495 main ()
24496 {
24497 if ((struct tm *) 0)
24498 return 0;
24499   ;
24500   return 0;
24501 }
24502 _ACEOF
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507   *) ac_try_echo=$ac_try;;
24508 esac
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510   (eval "$ac_compile") 2>conftest.er1
24511   ac_status=$?
24512   grep -v '^ *+' conftest.er1 >conftest.err
24513   rm -f conftest.er1
24514   cat conftest.err >&5
24515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516   (exit $ac_status); } && {
24517          test -z "$ac_c_werror_flag" ||
24518          test ! -s conftest.err
24519        } && test -s conftest.$ac_objext; then
24520   ac_cv_header_time=yes
24521 else
24522   echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.$ac_ext >&5
24524
24525         ac_cv_header_time=no
24526 fi
24527
24528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24529 fi
24530 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24531 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24532 if test $ac_cv_header_time = yes; then
24533
24534 cat >>confdefs.h <<\_ACEOF
24535 #define TIME_WITH_SYS_TIME 1
24536 _ACEOF
24537
24538 fi
24539
24540 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24541 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24542 if test "${ac_cv_struct_tm+set}" = set; then
24543   echo $ECHO_N "(cached) $ECHO_C" >&6
24544 else
24545   cat >conftest.$ac_ext <<_ACEOF
24546 /* confdefs.h.  */
24547 _ACEOF
24548 cat confdefs.h >>conftest.$ac_ext
24549 cat >>conftest.$ac_ext <<_ACEOF
24550 /* end confdefs.h.  */
24551 #include <sys/types.h>
24552 #include <time.h>
24553
24554 int
24555 main ()
24556 {
24557 struct tm tm;
24558                                      int *p = &tm.tm_sec;
24559                                      return !p;
24560   ;
24561   return 0;
24562 }
24563 _ACEOF
24564 rm -f conftest.$ac_objext
24565 if { (ac_try="$ac_compile"
24566 case "(($ac_try" in
24567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24568   *) ac_try_echo=$ac_try;;
24569 esac
24570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24571   (eval "$ac_compile") 2>conftest.er1
24572   ac_status=$?
24573   grep -v '^ *+' conftest.er1 >conftest.err
24574   rm -f conftest.er1
24575   cat conftest.err >&5
24576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577   (exit $ac_status); } && {
24578          test -z "$ac_c_werror_flag" ||
24579          test ! -s conftest.err
24580        } && test -s conftest.$ac_objext; then
24581   ac_cv_struct_tm=time.h
24582 else
24583   echo "$as_me: failed program was:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24585
24586         ac_cv_struct_tm=sys/time.h
24587 fi
24588
24589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24590 fi
24591 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24592 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24593 if test $ac_cv_struct_tm = sys/time.h; then
24594
24595 cat >>confdefs.h <<\_ACEOF
24596 #define TM_IN_SYS_TIME 1
24597 _ACEOF
24598
24599 fi
24600
24601
24602 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24603 # for constant arguments.  Useless!
24604 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24605 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24606 if test "${ac_cv_working_alloca_h+set}" = set; then
24607   echo $ECHO_N "(cached) $ECHO_C" >&6
24608 else
24609   cat >conftest.$ac_ext <<_ACEOF
24610 /* confdefs.h.  */
24611 _ACEOF
24612 cat confdefs.h >>conftest.$ac_ext
24613 cat >>conftest.$ac_ext <<_ACEOF
24614 /* end confdefs.h.  */
24615 #include <alloca.h>
24616 int
24617 main ()
24618 {
24619 char *p = (char *) alloca (2 * sizeof (int));
24620                           if (p) return 0;
24621   ;
24622   return 0;
24623 }
24624 _ACEOF
24625 rm -f conftest.$ac_objext conftest$ac_exeext
24626 if { (ac_try="$ac_link"
24627 case "(($ac_try" in
24628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24629   *) ac_try_echo=$ac_try;;
24630 esac
24631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24632   (eval "$ac_link") 2>conftest.er1
24633   ac_status=$?
24634   grep -v '^ *+' conftest.er1 >conftest.err
24635   rm -f conftest.er1
24636   cat conftest.err >&5
24637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638   (exit $ac_status); } && {
24639          test -z "$ac_c_werror_flag" ||
24640          test ! -s conftest.err
24641        } && test -s conftest$ac_exeext &&
24642        $as_test_x conftest$ac_exeext; then
24643   ac_cv_working_alloca_h=yes
24644 else
24645   echo "$as_me: failed program was:" >&5
24646 sed 's/^/| /' conftest.$ac_ext >&5
24647
24648         ac_cv_working_alloca_h=no
24649 fi
24650
24651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24652       conftest$ac_exeext conftest.$ac_ext
24653 fi
24654 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24655 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24656 if test $ac_cv_working_alloca_h = yes; then
24657
24658 cat >>confdefs.h <<\_ACEOF
24659 #define HAVE_ALLOCA_H 1
24660 _ACEOF
24661
24662 fi
24663
24664 { echo "$as_me:$LINENO: checking for alloca" >&5
24665 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24666 if test "${ac_cv_func_alloca_works+set}" = set; then
24667   echo $ECHO_N "(cached) $ECHO_C" >&6
24668 else
24669   cat >conftest.$ac_ext <<_ACEOF
24670 /* confdefs.h.  */
24671 _ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h.  */
24675 #ifdef __GNUC__
24676 # define alloca __builtin_alloca
24677 #else
24678 # ifdef _MSC_VER
24679 #  include <malloc.h>
24680 #  define alloca _alloca
24681 # else
24682 #  ifdef HAVE_ALLOCA_H
24683 #   include <alloca.h>
24684 #  else
24685 #   ifdef _AIX
24686  #pragma alloca
24687 #   else
24688 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24689 char *alloca ();
24690 #    endif
24691 #   endif
24692 #  endif
24693 # endif
24694 #endif
24695
24696 int
24697 main ()
24698 {
24699 char *p = (char *) alloca (1);
24700                                     if (p) return 0;
24701   ;
24702   return 0;
24703 }
24704 _ACEOF
24705 rm -f conftest.$ac_objext conftest$ac_exeext
24706 if { (ac_try="$ac_link"
24707 case "(($ac_try" in
24708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24709   *) ac_try_echo=$ac_try;;
24710 esac
24711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24712   (eval "$ac_link") 2>conftest.er1
24713   ac_status=$?
24714   grep -v '^ *+' conftest.er1 >conftest.err
24715   rm -f conftest.er1
24716   cat conftest.err >&5
24717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718   (exit $ac_status); } && {
24719          test -z "$ac_c_werror_flag" ||
24720          test ! -s conftest.err
24721        } && test -s conftest$ac_exeext &&
24722        $as_test_x conftest$ac_exeext; then
24723   ac_cv_func_alloca_works=yes
24724 else
24725   echo "$as_me: failed program was:" >&5
24726 sed 's/^/| /' conftest.$ac_ext >&5
24727
24728         ac_cv_func_alloca_works=no
24729 fi
24730
24731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24732       conftest$ac_exeext conftest.$ac_ext
24733 fi
24734 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24735 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24736
24737 if test $ac_cv_func_alloca_works = yes; then
24738
24739 cat >>confdefs.h <<\_ACEOF
24740 #define HAVE_ALLOCA 1
24741 _ACEOF
24742
24743 else
24744   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24745 # that cause trouble.  Some versions do not even contain alloca or
24746 # contain a buggy version.  If you still want to use their alloca,
24747 # use ar to extract alloca.o from them instead of compiling alloca.c.
24748
24749 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24750
24751 cat >>confdefs.h <<\_ACEOF
24752 #define C_ALLOCA 1
24753 _ACEOF
24754
24755
24756 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24757 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24758 if test "${ac_cv_os_cray+set}" = set; then
24759   echo $ECHO_N "(cached) $ECHO_C" >&6
24760 else
24761   cat >conftest.$ac_ext <<_ACEOF
24762 /* confdefs.h.  */
24763 _ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h.  */
24767 #if defined CRAY && ! defined CRAY2
24768 webecray
24769 #else
24770 wenotbecray
24771 #endif
24772
24773 _ACEOF
24774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24775   $EGREP "webecray" >/dev/null 2>&1; then
24776   ac_cv_os_cray=yes
24777 else
24778   ac_cv_os_cray=no
24779 fi
24780 rm -f conftest*
24781
24782 fi
24783 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24784 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24785 if test $ac_cv_os_cray = yes; then
24786   for ac_func in _getb67 GETB67 getb67; do
24787     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24788 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24791   echo $ECHO_N "(cached) $ECHO_C" >&6
24792 else
24793   cat >conftest.$ac_ext <<_ACEOF
24794 /* confdefs.h.  */
24795 _ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h.  */
24799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24801 #define $ac_func innocuous_$ac_func
24802
24803 /* System header to define __stub macros and hopefully few prototypes,
24804     which can conflict with char $ac_func (); below.
24805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24806     <limits.h> exists even on freestanding compilers.  */
24807
24808 #ifdef __STDC__
24809 # include <limits.h>
24810 #else
24811 # include <assert.h>
24812 #endif
24813
24814 #undef $ac_func
24815
24816 /* Override any GCC internal prototype to avoid an error.
24817    Use char because int might match the return type of a GCC
24818    builtin and then its argument prototype would still apply.  */
24819 #ifdef __cplusplus
24820 extern "C"
24821 #endif
24822 char $ac_func ();
24823 /* The GNU C library defines this for functions which it implements
24824     to always fail with ENOSYS.  Some functions are actually named
24825     something starting with __ and the normal name is an alias.  */
24826 #if defined __stub_$ac_func || defined __stub___$ac_func
24827 choke me
24828 #endif
24829
24830 int
24831 main ()
24832 {
24833 return $ac_func ();
24834   ;
24835   return 0;
24836 }
24837 _ACEOF
24838 rm -f conftest.$ac_objext conftest$ac_exeext
24839 if { (ac_try="$ac_link"
24840 case "(($ac_try" in
24841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24842   *) ac_try_echo=$ac_try;;
24843 esac
24844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24845   (eval "$ac_link") 2>conftest.er1
24846   ac_status=$?
24847   grep -v '^ *+' conftest.er1 >conftest.err
24848   rm -f conftest.er1
24849   cat conftest.err >&5
24850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851   (exit $ac_status); } && {
24852          test -z "$ac_c_werror_flag" ||
24853          test ! -s conftest.err
24854        } && test -s conftest$ac_exeext &&
24855        $as_test_x conftest$ac_exeext; then
24856   eval "$as_ac_var=yes"
24857 else
24858   echo "$as_me: failed program was:" >&5
24859 sed 's/^/| /' conftest.$ac_ext >&5
24860
24861         eval "$as_ac_var=no"
24862 fi
24863
24864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24865       conftest$ac_exeext conftest.$ac_ext
24866 fi
24867 ac_res=`eval echo '${'$as_ac_var'}'`
24868                { echo "$as_me:$LINENO: result: $ac_res" >&5
24869 echo "${ECHO_T}$ac_res" >&6; }
24870 if test `eval echo '${'$as_ac_var'}'` = yes; then
24871
24872 cat >>confdefs.h <<_ACEOF
24873 #define CRAY_STACKSEG_END $ac_func
24874 _ACEOF
24875
24876     break
24877 fi
24878
24879   done
24880 fi
24881
24882 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24883 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24884 if test "${ac_cv_c_stack_direction+set}" = set; then
24885   echo $ECHO_N "(cached) $ECHO_C" >&6
24886 else
24887   if test "$cross_compiling" = yes; then
24888   ac_cv_c_stack_direction=0
24889 else
24890   cat >conftest.$ac_ext <<_ACEOF
24891 /* confdefs.h.  */
24892 _ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h.  */
24896 $ac_includes_default
24897 int
24898 find_stack_direction ()
24899 {
24900   static char *addr = 0;
24901   auto char dummy;
24902   if (addr == 0)
24903     {
24904       addr = &dummy;
24905       return find_stack_direction ();
24906     }
24907   else
24908     return (&dummy > addr) ? 1 : -1;
24909 }
24910
24911 int
24912 main ()
24913 {
24914   return find_stack_direction () < 0;
24915 }
24916 _ACEOF
24917 rm -f conftest$ac_exeext
24918 if { (ac_try="$ac_link"
24919 case "(($ac_try" in
24920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24921   *) ac_try_echo=$ac_try;;
24922 esac
24923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24924   (eval "$ac_link") 2>&5
24925   ac_status=$?
24926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24928   { (case "(($ac_try" in
24929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24930   *) ac_try_echo=$ac_try;;
24931 esac
24932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24933   (eval "$ac_try") 2>&5
24934   ac_status=$?
24935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936   (exit $ac_status); }; }; then
24937   ac_cv_c_stack_direction=1
24938 else
24939   echo "$as_me: program exited with status $ac_status" >&5
24940 echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24942
24943 ( exit $ac_status )
24944 ac_cv_c_stack_direction=-1
24945 fi
24946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24947 fi
24948
24949
24950 fi
24951 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24952 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24953
24954 cat >>confdefs.h <<_ACEOF
24955 #define STACK_DIRECTION $ac_cv_c_stack_direction
24956 _ACEOF
24957
24958
24959 fi
24960
24961
24962
24963
24964
24965
24966 ac_header_dirent=no
24967 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24968   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24969 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24970 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24972   echo $ECHO_N "(cached) $ECHO_C" >&6
24973 else
24974   cat >conftest.$ac_ext <<_ACEOF
24975 /* confdefs.h.  */
24976 _ACEOF
24977 cat confdefs.h >>conftest.$ac_ext
24978 cat >>conftest.$ac_ext <<_ACEOF
24979 /* end confdefs.h.  */
24980 #include <sys/types.h>
24981 #include <$ac_hdr>
24982
24983 int
24984 main ()
24985 {
24986 if ((DIR *) 0)
24987 return 0;
24988   ;
24989   return 0;
24990 }
24991 _ACEOF
24992 rm -f conftest.$ac_objext
24993 if { (ac_try="$ac_compile"
24994 case "(($ac_try" in
24995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996   *) ac_try_echo=$ac_try;;
24997 esac
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999   (eval "$ac_compile") 2>conftest.er1
25000   ac_status=$?
25001   grep -v '^ *+' conftest.er1 >conftest.err
25002   rm -f conftest.er1
25003   cat conftest.err >&5
25004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005   (exit $ac_status); } && {
25006          test -z "$ac_c_werror_flag" ||
25007          test ! -s conftest.err
25008        } && test -s conftest.$ac_objext; then
25009   eval "$as_ac_Header=yes"
25010 else
25011   echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25013
25014         eval "$as_ac_Header=no"
25015 fi
25016
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018 fi
25019 ac_res=`eval echo '${'$as_ac_Header'}'`
25020                { echo "$as_me:$LINENO: result: $ac_res" >&5
25021 echo "${ECHO_T}$ac_res" >&6; }
25022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25023   cat >>confdefs.h <<_ACEOF
25024 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25025 _ACEOF
25026
25027 ac_header_dirent=$ac_hdr; break
25028 fi
25029
25030 done
25031 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25032 if test $ac_header_dirent = dirent.h; then
25033   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25034 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25035 if test "${ac_cv_search_opendir+set}" = set; then
25036   echo $ECHO_N "(cached) $ECHO_C" >&6
25037 else
25038   ac_func_search_save_LIBS=$LIBS
25039 cat >conftest.$ac_ext <<_ACEOF
25040 /* confdefs.h.  */
25041 _ACEOF
25042 cat confdefs.h >>conftest.$ac_ext
25043 cat >>conftest.$ac_ext <<_ACEOF
25044 /* end confdefs.h.  */
25045
25046 /* Override any GCC internal prototype to avoid an error.
25047    Use char because int might match the return type of a GCC
25048    builtin and then its argument prototype would still apply.  */
25049 #ifdef __cplusplus
25050 extern "C"
25051 #endif
25052 char opendir ();
25053 int
25054 main ()
25055 {
25056 return opendir ();
25057   ;
25058   return 0;
25059 }
25060 _ACEOF
25061 for ac_lib in '' dir; do
25062   if test -z "$ac_lib"; then
25063     ac_res="none required"
25064   else
25065     ac_res=-l$ac_lib
25066     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25067   fi
25068   rm -f conftest.$ac_objext conftest$ac_exeext
25069 if { (ac_try="$ac_link"
25070 case "(($ac_try" in
25071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25072   *) ac_try_echo=$ac_try;;
25073 esac
25074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25075   (eval "$ac_link") 2>conftest.er1
25076   ac_status=$?
25077   grep -v '^ *+' conftest.er1 >conftest.err
25078   rm -f conftest.er1
25079   cat conftest.err >&5
25080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081   (exit $ac_status); } && {
25082          test -z "$ac_c_werror_flag" ||
25083          test ! -s conftest.err
25084        } && test -s conftest$ac_exeext &&
25085        $as_test_x conftest$ac_exeext; then
25086   ac_cv_search_opendir=$ac_res
25087 else
25088   echo "$as_me: failed program was:" >&5
25089 sed 's/^/| /' conftest.$ac_ext >&5
25090
25091
25092 fi
25093
25094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25095       conftest$ac_exeext
25096   if test "${ac_cv_search_opendir+set}" = set; then
25097   break
25098 fi
25099 done
25100 if test "${ac_cv_search_opendir+set}" = set; then
25101   :
25102 else
25103   ac_cv_search_opendir=no
25104 fi
25105 rm conftest.$ac_ext
25106 LIBS=$ac_func_search_save_LIBS
25107 fi
25108 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25109 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25110 ac_res=$ac_cv_search_opendir
25111 if test "$ac_res" != no; then
25112   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25113
25114 fi
25115
25116 else
25117   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25119 if test "${ac_cv_search_opendir+set}" = set; then
25120   echo $ECHO_N "(cached) $ECHO_C" >&6
25121 else
25122   ac_func_search_save_LIBS=$LIBS
25123 cat >conftest.$ac_ext <<_ACEOF
25124 /* confdefs.h.  */
25125 _ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h.  */
25129
25130 /* Override any GCC internal prototype to avoid an error.
25131    Use char because int might match the return type of a GCC
25132    builtin and then its argument prototype would still apply.  */
25133 #ifdef __cplusplus
25134 extern "C"
25135 #endif
25136 char opendir ();
25137 int
25138 main ()
25139 {
25140 return opendir ();
25141   ;
25142   return 0;
25143 }
25144 _ACEOF
25145 for ac_lib in '' x; do
25146   if test -z "$ac_lib"; then
25147     ac_res="none required"
25148   else
25149     ac_res=-l$ac_lib
25150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25151   fi
25152   rm -f conftest.$ac_objext conftest$ac_exeext
25153 if { (ac_try="$ac_link"
25154 case "(($ac_try" in
25155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156   *) ac_try_echo=$ac_try;;
25157 esac
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159   (eval "$ac_link") 2>conftest.er1
25160   ac_status=$?
25161   grep -v '^ *+' conftest.er1 >conftest.err
25162   rm -f conftest.er1
25163   cat conftest.err >&5
25164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165   (exit $ac_status); } && {
25166          test -z "$ac_c_werror_flag" ||
25167          test ! -s conftest.err
25168        } && test -s conftest$ac_exeext &&
25169        $as_test_x conftest$ac_exeext; then
25170   ac_cv_search_opendir=$ac_res
25171 else
25172   echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25174
25175
25176 fi
25177
25178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25179       conftest$ac_exeext
25180   if test "${ac_cv_search_opendir+set}" = set; then
25181   break
25182 fi
25183 done
25184 if test "${ac_cv_search_opendir+set}" = set; then
25185   :
25186 else
25187   ac_cv_search_opendir=no
25188 fi
25189 rm conftest.$ac_ext
25190 LIBS=$ac_func_search_save_LIBS
25191 fi
25192 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25193 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25194 ac_res=$ac_cv_search_opendir
25195 if test "$ac_res" != no; then
25196   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25197
25198 fi
25199
25200 fi
25201
25202 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25203 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25204 if test "${ac_cv_func_closedir_void+set}" = set; then
25205   echo $ECHO_N "(cached) $ECHO_C" >&6
25206 else
25207   if test "$cross_compiling" = yes; then
25208   ac_cv_func_closedir_void=yes
25209 else
25210   cat >conftest.$ac_ext <<_ACEOF
25211 /* confdefs.h.  */
25212 _ACEOF
25213 cat confdefs.h >>conftest.$ac_ext
25214 cat >>conftest.$ac_ext <<_ACEOF
25215 /* end confdefs.h.  */
25216 $ac_includes_default
25217 #include <$ac_header_dirent>
25218 #ifndef __cplusplus
25219 int closedir ();
25220 #endif
25221
25222 int
25223 main ()
25224 {
25225 return closedir (opendir (".")) != 0;
25226   ;
25227   return 0;
25228 }
25229 _ACEOF
25230 rm -f conftest$ac_exeext
25231 if { (ac_try="$ac_link"
25232 case "(($ac_try" in
25233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25234   *) ac_try_echo=$ac_try;;
25235 esac
25236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25237   (eval "$ac_link") 2>&5
25238   ac_status=$?
25239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25241   { (case "(($ac_try" in
25242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25243   *) ac_try_echo=$ac_try;;
25244 esac
25245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25246   (eval "$ac_try") 2>&5
25247   ac_status=$?
25248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249   (exit $ac_status); }; }; then
25250   ac_cv_func_closedir_void=no
25251 else
25252   echo "$as_me: program exited with status $ac_status" >&5
25253 echo "$as_me: failed program was:" >&5
25254 sed 's/^/| /' conftest.$ac_ext >&5
25255
25256 ( exit $ac_status )
25257 ac_cv_func_closedir_void=yes
25258 fi
25259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25260 fi
25261
25262
25263 fi
25264 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25265 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25266 if test $ac_cv_func_closedir_void = yes; then
25267
25268 cat >>confdefs.h <<\_ACEOF
25269 #define CLOSEDIR_VOID 1
25270 _ACEOF
25271
25272 fi
25273
25274 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25275 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25276 if test "${ac_cv_lib_error_at_line+set}" = set; then
25277   echo $ECHO_N "(cached) $ECHO_C" >&6
25278 else
25279   cat >conftest.$ac_ext <<_ACEOF
25280 /* confdefs.h.  */
25281 _ACEOF
25282 cat confdefs.h >>conftest.$ac_ext
25283 cat >>conftest.$ac_ext <<_ACEOF
25284 /* end confdefs.h.  */
25285 #include <error.h>
25286 int
25287 main ()
25288 {
25289 error_at_line (0, 0, "", 0, "an error occurred");
25290   ;
25291   return 0;
25292 }
25293 _ACEOF
25294 rm -f conftest.$ac_objext conftest$ac_exeext
25295 if { (ac_try="$ac_link"
25296 case "(($ac_try" in
25297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25298   *) ac_try_echo=$ac_try;;
25299 esac
25300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25301   (eval "$ac_link") 2>conftest.er1
25302   ac_status=$?
25303   grep -v '^ *+' conftest.er1 >conftest.err
25304   rm -f conftest.er1
25305   cat conftest.err >&5
25306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307   (exit $ac_status); } && {
25308          test -z "$ac_c_werror_flag" ||
25309          test ! -s conftest.err
25310        } && test -s conftest$ac_exeext &&
25311        $as_test_x conftest$ac_exeext; then
25312   ac_cv_lib_error_at_line=yes
25313 else
25314   echo "$as_me: failed program was:" >&5
25315 sed 's/^/| /' conftest.$ac_ext >&5
25316
25317         ac_cv_lib_error_at_line=no
25318 fi
25319
25320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25321       conftest$ac_exeext conftest.$ac_ext
25322 fi
25323 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25324 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25325 if test $ac_cv_lib_error_at_line = no; then
25326   case " $LIBOBJS " in
25327   *" error.$ac_objext "* ) ;;
25328   *) LIBOBJS="$LIBOBJS error.$ac_objext"
25329  ;;
25330 esac
25331
25332 fi
25333
25334
25335 for ac_header in vfork.h
25336 do
25337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25339   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25342   echo $ECHO_N "(cached) $ECHO_C" >&6
25343 fi
25344 ac_res=`eval echo '${'$as_ac_Header'}'`
25345                { echo "$as_me:$LINENO: result: $ac_res" >&5
25346 echo "${ECHO_T}$ac_res" >&6; }
25347 else
25348   # Is the header compilable?
25349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25351 cat >conftest.$ac_ext <<_ACEOF
25352 /* confdefs.h.  */
25353 _ACEOF
25354 cat confdefs.h >>conftest.$ac_ext
25355 cat >>conftest.$ac_ext <<_ACEOF
25356 /* end confdefs.h.  */
25357 $ac_includes_default
25358 #include <$ac_header>
25359 _ACEOF
25360 rm -f conftest.$ac_objext
25361 if { (ac_try="$ac_compile"
25362 case "(($ac_try" in
25363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25364   *) ac_try_echo=$ac_try;;
25365 esac
25366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25367   (eval "$ac_compile") 2>conftest.er1
25368   ac_status=$?
25369   grep -v '^ *+' conftest.er1 >conftest.err
25370   rm -f conftest.er1
25371   cat conftest.err >&5
25372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373   (exit $ac_status); } && {
25374          test -z "$ac_c_werror_flag" ||
25375          test ! -s conftest.err
25376        } && test -s conftest.$ac_objext; then
25377   ac_header_compiler=yes
25378 else
25379   echo "$as_me: failed program was:" >&5
25380 sed 's/^/| /' conftest.$ac_ext >&5
25381
25382         ac_header_compiler=no
25383 fi
25384
25385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25387 echo "${ECHO_T}$ac_header_compiler" >&6; }
25388
25389 # Is the header present?
25390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25392 cat >conftest.$ac_ext <<_ACEOF
25393 /* confdefs.h.  */
25394 _ACEOF
25395 cat confdefs.h >>conftest.$ac_ext
25396 cat >>conftest.$ac_ext <<_ACEOF
25397 /* end confdefs.h.  */
25398 #include <$ac_header>
25399 _ACEOF
25400 if { (ac_try="$ac_cpp conftest.$ac_ext"
25401 case "(($ac_try" in
25402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25403   *) ac_try_echo=$ac_try;;
25404 esac
25405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25407   ac_status=$?
25408   grep -v '^ *+' conftest.er1 >conftest.err
25409   rm -f conftest.er1
25410   cat conftest.err >&5
25411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412   (exit $ac_status); } >/dev/null && {
25413          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25414          test ! -s conftest.err
25415        }; then
25416   ac_header_preproc=yes
25417 else
25418   echo "$as_me: failed program was:" >&5
25419 sed 's/^/| /' conftest.$ac_ext >&5
25420
25421   ac_header_preproc=no
25422 fi
25423
25424 rm -f conftest.err conftest.$ac_ext
25425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25426 echo "${ECHO_T}$ac_header_preproc" >&6; }
25427
25428 # So?  What about this header?
25429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25430   yes:no: )
25431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25435     ac_header_preproc=yes
25436     ;;
25437   no:yes:* )
25438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25450     ( cat <<\_ASBOX
25451 ## ------------------------------- ##
25452 ## Report this to nfs@lists.sf.net ##
25453 ## ------------------------------- ##
25454 _ASBOX
25455      ) | sed "s/^/$as_me: WARNING:     /" >&2
25456     ;;
25457 esac
25458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25461   echo $ECHO_N "(cached) $ECHO_C" >&6
25462 else
25463   eval "$as_ac_Header=\$ac_header_preproc"
25464 fi
25465 ac_res=`eval echo '${'$as_ac_Header'}'`
25466                { echo "$as_me:$LINENO: result: $ac_res" >&5
25467 echo "${ECHO_T}$ac_res" >&6; }
25468
25469 fi
25470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25471   cat >>confdefs.h <<_ACEOF
25472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25473 _ACEOF
25474
25475 fi
25476
25477 done
25478
25479
25480
25481 for ac_func in fork vfork
25482 do
25483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25487   echo $ECHO_N "(cached) $ECHO_C" >&6
25488 else
25489   cat >conftest.$ac_ext <<_ACEOF
25490 /* confdefs.h.  */
25491 _ACEOF
25492 cat confdefs.h >>conftest.$ac_ext
25493 cat >>conftest.$ac_ext <<_ACEOF
25494 /* end confdefs.h.  */
25495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25497 #define $ac_func innocuous_$ac_func
25498
25499 /* System header to define __stub macros and hopefully few prototypes,
25500     which can conflict with char $ac_func (); below.
25501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25502     <limits.h> exists even on freestanding compilers.  */
25503
25504 #ifdef __STDC__
25505 # include <limits.h>
25506 #else
25507 # include <assert.h>
25508 #endif
25509
25510 #undef $ac_func
25511
25512 /* Override any GCC internal prototype to avoid an error.
25513    Use char because int might match the return type of a GCC
25514    builtin and then its argument prototype would still apply.  */
25515 #ifdef __cplusplus
25516 extern "C"
25517 #endif
25518 char $ac_func ();
25519 /* The GNU C library defines this for functions which it implements
25520     to always fail with ENOSYS.  Some functions are actually named
25521     something starting with __ and the normal name is an alias.  */
25522 #if defined __stub_$ac_func || defined __stub___$ac_func
25523 choke me
25524 #endif
25525
25526 int
25527 main ()
25528 {
25529 return $ac_func ();
25530   ;
25531   return 0;
25532 }
25533 _ACEOF
25534 rm -f conftest.$ac_objext conftest$ac_exeext
25535 if { (ac_try="$ac_link"
25536 case "(($ac_try" in
25537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25538   *) ac_try_echo=$ac_try;;
25539 esac
25540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25541   (eval "$ac_link") 2>conftest.er1
25542   ac_status=$?
25543   grep -v '^ *+' conftest.er1 >conftest.err
25544   rm -f conftest.er1
25545   cat conftest.err >&5
25546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547   (exit $ac_status); } && {
25548          test -z "$ac_c_werror_flag" ||
25549          test ! -s conftest.err
25550        } && test -s conftest$ac_exeext &&
25551        $as_test_x conftest$ac_exeext; then
25552   eval "$as_ac_var=yes"
25553 else
25554   echo "$as_me: failed program was:" >&5
25555 sed 's/^/| /' conftest.$ac_ext >&5
25556
25557         eval "$as_ac_var=no"
25558 fi
25559
25560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25561       conftest$ac_exeext conftest.$ac_ext
25562 fi
25563 ac_res=`eval echo '${'$as_ac_var'}'`
25564                { echo "$as_me:$LINENO: result: $ac_res" >&5
25565 echo "${ECHO_T}$ac_res" >&6; }
25566 if test `eval echo '${'$as_ac_var'}'` = yes; then
25567   cat >>confdefs.h <<_ACEOF
25568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25569 _ACEOF
25570
25571 fi
25572 done
25573
25574 if test "x$ac_cv_func_fork" = xyes; then
25575   { echo "$as_me:$LINENO: checking for working fork" >&5
25576 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25577 if test "${ac_cv_func_fork_works+set}" = set; then
25578   echo $ECHO_N "(cached) $ECHO_C" >&6
25579 else
25580   if test "$cross_compiling" = yes; then
25581   ac_cv_func_fork_works=cross
25582 else
25583   cat >conftest.$ac_ext <<_ACEOF
25584 /* confdefs.h.  */
25585 _ACEOF
25586 cat confdefs.h >>conftest.$ac_ext
25587 cat >>conftest.$ac_ext <<_ACEOF
25588 /* end confdefs.h.  */
25589 $ac_includes_default
25590 int
25591 main ()
25592 {
25593
25594           /* By Ruediger Kuhlmann. */
25595           return fork () < 0;
25596
25597   ;
25598   return 0;
25599 }
25600 _ACEOF
25601 rm -f conftest$ac_exeext
25602 if { (ac_try="$ac_link"
25603 case "(($ac_try" in
25604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605   *) ac_try_echo=$ac_try;;
25606 esac
25607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25608   (eval "$ac_link") 2>&5
25609   ac_status=$?
25610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25612   { (case "(($ac_try" in
25613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25614   *) ac_try_echo=$ac_try;;
25615 esac
25616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25617   (eval "$ac_try") 2>&5
25618   ac_status=$?
25619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620   (exit $ac_status); }; }; then
25621   ac_cv_func_fork_works=yes
25622 else
25623   echo "$as_me: program exited with status $ac_status" >&5
25624 echo "$as_me: failed program was:" >&5
25625 sed 's/^/| /' conftest.$ac_ext >&5
25626
25627 ( exit $ac_status )
25628 ac_cv_func_fork_works=no
25629 fi
25630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25631 fi
25632
25633
25634 fi
25635 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25636 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25637
25638 else
25639   ac_cv_func_fork_works=$ac_cv_func_fork
25640 fi
25641 if test "x$ac_cv_func_fork_works" = xcross; then
25642   case $host in
25643     *-*-amigaos* | *-*-msdosdjgpp*)
25644       # Override, as these systems have only a dummy fork() stub
25645       ac_cv_func_fork_works=no
25646       ;;
25647     *)
25648       ac_cv_func_fork_works=yes
25649       ;;
25650   esac
25651   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25652 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25653 fi
25654 ac_cv_func_vfork_works=$ac_cv_func_vfork
25655 if test "x$ac_cv_func_vfork" = xyes; then
25656   { echo "$as_me:$LINENO: checking for working vfork" >&5
25657 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25658 if test "${ac_cv_func_vfork_works+set}" = set; then
25659   echo $ECHO_N "(cached) $ECHO_C" >&6
25660 else
25661   if test "$cross_compiling" = yes; then
25662   ac_cv_func_vfork_works=cross
25663 else
25664   cat >conftest.$ac_ext <<_ACEOF
25665 /* confdefs.h.  */
25666 _ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h.  */
25670 /* Thanks to Paul Eggert for this test.  */
25671 $ac_includes_default
25672 #include <sys/wait.h>
25673 #ifdef HAVE_VFORK_H
25674 # include <vfork.h>
25675 #endif
25676 /* On some sparc systems, changes by the child to local and incoming
25677    argument registers are propagated back to the parent.  The compiler
25678    is told about this with #include <vfork.h>, but some compilers
25679    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25680    static variable whose address is put into a register that is
25681    clobbered by the vfork.  */
25682 static void
25683 #ifdef __cplusplus
25684 sparc_address_test (int arg)
25685 # else
25686 sparc_address_test (arg) int arg;
25687 #endif
25688 {
25689   static pid_t child;
25690   if (!child) {
25691     child = vfork ();
25692     if (child < 0) {
25693       perror ("vfork");
25694       _exit(2);
25695     }
25696     if (!child) {
25697       arg = getpid();
25698       write(-1, "", 0);
25699       _exit (arg);
25700     }
25701   }
25702 }
25703
25704 int
25705 main ()
25706 {
25707   pid_t parent = getpid ();
25708   pid_t child;
25709
25710   sparc_address_test (0);
25711
25712   child = vfork ();
25713
25714   if (child == 0) {
25715     /* Here is another test for sparc vfork register problems.  This
25716        test uses lots of local variables, at least as many local
25717        variables as main has allocated so far including compiler
25718        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25719        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25720        reuse the register of parent for one of the local variables,
25721        since it will think that parent can't possibly be used any more
25722        in this routine.  Assigning to the local variable will thus
25723        munge parent in the parent process.  */
25724     pid_t
25725       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25726       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25727     /* Convince the compiler that p..p7 are live; otherwise, it might
25728        use the same hardware register for all 8 local variables.  */
25729     if (p != p1 || p != p2 || p != p3 || p != p4
25730         || p != p5 || p != p6 || p != p7)
25731       _exit(1);
25732
25733     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25734        from child file descriptors.  If the child closes a descriptor
25735        before it execs or exits, this munges the parent's descriptor
25736        as well.  Test for this by closing stdout in the child.  */
25737     _exit(close(fileno(stdout)) != 0);
25738   } else {
25739     int status;
25740     struct stat st;
25741
25742     while (wait(&status) != child)
25743       ;
25744     return (
25745          /* Was there some problem with vforking?  */
25746          child < 0
25747
25748          /* Did the child fail?  (This shouldn't happen.)  */
25749          || status
25750
25751          /* Did the vfork/compiler bug occur?  */
25752          || parent != getpid()
25753
25754          /* Did the file descriptor bug occur?  */
25755          || fstat(fileno(stdout), &st) != 0
25756          );
25757   }
25758 }
25759 _ACEOF
25760 rm -f conftest$ac_exeext
25761 if { (ac_try="$ac_link"
25762 case "(($ac_try" in
25763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25764   *) ac_try_echo=$ac_try;;
25765 esac
25766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25767   (eval "$ac_link") 2>&5
25768   ac_status=$?
25769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25771   { (case "(($ac_try" in
25772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25773   *) ac_try_echo=$ac_try;;
25774 esac
25775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25776   (eval "$ac_try") 2>&5
25777   ac_status=$?
25778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779   (exit $ac_status); }; }; then
25780   ac_cv_func_vfork_works=yes
25781 else
25782   echo "$as_me: program exited with status $ac_status" >&5
25783 echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25785
25786 ( exit $ac_status )
25787 ac_cv_func_vfork_works=no
25788 fi
25789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25790 fi
25791
25792
25793 fi
25794 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25795 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25796
25797 fi;
25798 if test "x$ac_cv_func_fork_works" = xcross; then
25799   ac_cv_func_vfork_works=$ac_cv_func_vfork
25800   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25801 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25802 fi
25803
25804 if test "x$ac_cv_func_vfork_works" = xyes; then
25805
25806 cat >>confdefs.h <<\_ACEOF
25807 #define HAVE_WORKING_VFORK 1
25808 _ACEOF
25809
25810 else
25811
25812 cat >>confdefs.h <<\_ACEOF
25813 #define vfork fork
25814 _ACEOF
25815
25816 fi
25817 if test "x$ac_cv_func_fork_works" = xyes; then
25818
25819 cat >>confdefs.h <<\_ACEOF
25820 #define HAVE_WORKING_FORK 1
25821 _ACEOF
25822
25823 fi
25824
25825 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25826 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25827 if test "${ac_cv_type_getgroups+set}" = set; then
25828   echo $ECHO_N "(cached) $ECHO_C" >&6
25829 else
25830   if test "$cross_compiling" = yes; then
25831   ac_cv_type_getgroups=cross
25832 else
25833   cat >conftest.$ac_ext <<_ACEOF
25834 /* confdefs.h.  */
25835 _ACEOF
25836 cat confdefs.h >>conftest.$ac_ext
25837 cat >>conftest.$ac_ext <<_ACEOF
25838 /* end confdefs.h.  */
25839 /* Thanks to Mike Rendell for this test.  */
25840 $ac_includes_default
25841 #define NGID 256
25842 #undef MAX
25843 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25844
25845 int
25846 main ()
25847 {
25848   gid_t gidset[NGID];
25849   int i, n;
25850   union { gid_t gval; long int lval; }  val;
25851
25852   val.lval = -1;
25853   for (i = 0; i < NGID; i++)
25854     gidset[i] = val.gval;
25855   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25856                  gidset);
25857   /* Exit non-zero if getgroups seems to require an array of ints.  This
25858      happens when gid_t is short int but getgroups modifies an array
25859      of ints.  */
25860   return n > 0 && gidset[n] != val.gval;
25861 }
25862 _ACEOF
25863 rm -f conftest$ac_exeext
25864 if { (ac_try="$ac_link"
25865 case "(($ac_try" in
25866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25867   *) ac_try_echo=$ac_try;;
25868 esac
25869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25870   (eval "$ac_link") 2>&5
25871   ac_status=$?
25872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25874   { (case "(($ac_try" in
25875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25876   *) ac_try_echo=$ac_try;;
25877 esac
25878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25879   (eval "$ac_try") 2>&5
25880   ac_status=$?
25881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882   (exit $ac_status); }; }; then
25883   ac_cv_type_getgroups=gid_t
25884 else
25885   echo "$as_me: program exited with status $ac_status" >&5
25886 echo "$as_me: failed program was:" >&5
25887 sed 's/^/| /' conftest.$ac_ext >&5
25888
25889 ( exit $ac_status )
25890 ac_cv_type_getgroups=int
25891 fi
25892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25893 fi
25894
25895
25896 if test $ac_cv_type_getgroups = cross; then
25897         cat >conftest.$ac_ext <<_ACEOF
25898 /* confdefs.h.  */
25899 _ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h.  */
25903 #include <unistd.h>
25904
25905 _ACEOF
25906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25907   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25908   ac_cv_type_getgroups=gid_t
25909 else
25910   ac_cv_type_getgroups=int
25911 fi
25912 rm -f conftest*
25913
25914 fi
25915 fi
25916 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25917 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25918
25919 cat >>confdefs.h <<_ACEOF
25920 #define GETGROUPS_T $ac_cv_type_getgroups
25921 _ACEOF
25922
25923
25924 { echo "$as_me:$LINENO: checking for getgroups" >&5
25925 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25926 if test "${ac_cv_func_getgroups+set}" = set; then
25927   echo $ECHO_N "(cached) $ECHO_C" >&6
25928 else
25929   cat >conftest.$ac_ext <<_ACEOF
25930 /* confdefs.h.  */
25931 _ACEOF
25932 cat confdefs.h >>conftest.$ac_ext
25933 cat >>conftest.$ac_ext <<_ACEOF
25934 /* end confdefs.h.  */
25935 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25937 #define getgroups innocuous_getgroups
25938
25939 /* System header to define __stub macros and hopefully few prototypes,
25940     which can conflict with char getgroups (); below.
25941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25942     <limits.h> exists even on freestanding compilers.  */
25943
25944 #ifdef __STDC__
25945 # include <limits.h>
25946 #else
25947 # include <assert.h>
25948 #endif
25949
25950 #undef getgroups
25951
25952 /* Override any GCC internal prototype to avoid an error.
25953    Use char because int might match the return type of a GCC
25954    builtin and then its argument prototype would still apply.  */
25955 #ifdef __cplusplus
25956 extern "C"
25957 #endif
25958 char getgroups ();
25959 /* The GNU C library defines this for functions which it implements
25960     to always fail with ENOSYS.  Some functions are actually named
25961     something starting with __ and the normal name is an alias.  */
25962 #if defined __stub_getgroups || defined __stub___getgroups
25963 choke me
25964 #endif
25965
25966 int
25967 main ()
25968 {
25969 return getgroups ();
25970   ;
25971   return 0;
25972 }
25973 _ACEOF
25974 rm -f conftest.$ac_objext conftest$ac_exeext
25975 if { (ac_try="$ac_link"
25976 case "(($ac_try" in
25977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25978   *) ac_try_echo=$ac_try;;
25979 esac
25980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25981   (eval "$ac_link") 2>conftest.er1
25982   ac_status=$?
25983   grep -v '^ *+' conftest.er1 >conftest.err
25984   rm -f conftest.er1
25985   cat conftest.err >&5
25986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987   (exit $ac_status); } && {
25988          test -z "$ac_c_werror_flag" ||
25989          test ! -s conftest.err
25990        } && test -s conftest$ac_exeext &&
25991        $as_test_x conftest$ac_exeext; then
25992   ac_cv_func_getgroups=yes
25993 else
25994   echo "$as_me: failed program was:" >&5
25995 sed 's/^/| /' conftest.$ac_ext >&5
25996
25997         ac_cv_func_getgroups=no
25998 fi
25999
26000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26001       conftest$ac_exeext conftest.$ac_ext
26002 fi
26003 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26004 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26005
26006
26007 # If we don't yet have getgroups, see if it's in -lbsd.
26008 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26009 ac_save_LIBS=$LIBS
26010 if test $ac_cv_func_getgroups = no; then
26011   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26012 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26013 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26014   echo $ECHO_N "(cached) $ECHO_C" >&6
26015 else
26016   ac_check_lib_save_LIBS=$LIBS
26017 LIBS="-lbsd  $LIBS"
26018 cat >conftest.$ac_ext <<_ACEOF
26019 /* confdefs.h.  */
26020 _ACEOF
26021 cat confdefs.h >>conftest.$ac_ext
26022 cat >>conftest.$ac_ext <<_ACEOF
26023 /* end confdefs.h.  */
26024
26025 /* Override any GCC internal prototype to avoid an error.
26026    Use char because int might match the return type of a GCC
26027    builtin and then its argument prototype would still apply.  */
26028 #ifdef __cplusplus
26029 extern "C"
26030 #endif
26031 char getgroups ();
26032 int
26033 main ()
26034 {
26035 return getgroups ();
26036   ;
26037   return 0;
26038 }
26039 _ACEOF
26040 rm -f conftest.$ac_objext conftest$ac_exeext
26041 if { (ac_try="$ac_link"
26042 case "(($ac_try" in
26043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26044   *) ac_try_echo=$ac_try;;
26045 esac
26046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26047   (eval "$ac_link") 2>conftest.er1
26048   ac_status=$?
26049   grep -v '^ *+' conftest.er1 >conftest.err
26050   rm -f conftest.er1
26051   cat conftest.err >&5
26052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053   (exit $ac_status); } && {
26054          test -z "$ac_c_werror_flag" ||
26055          test ! -s conftest.err
26056        } && test -s conftest$ac_exeext &&
26057        $as_test_x conftest$ac_exeext; then
26058   ac_cv_lib_bsd_getgroups=yes
26059 else
26060   echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26062
26063         ac_cv_lib_bsd_getgroups=no
26064 fi
26065
26066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26067       conftest$ac_exeext conftest.$ac_ext
26068 LIBS=$ac_check_lib_save_LIBS
26069 fi
26070 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26071 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26072 if test $ac_cv_lib_bsd_getgroups = yes; then
26073   GETGROUPS_LIB=-lbsd
26074 fi
26075
26076 fi
26077
26078 # Run the program to test the functionality of the system-supplied
26079 # getgroups function only if there is such a function.
26080 if test $ac_cv_func_getgroups = yes; then
26081   { echo "$as_me:$LINENO: checking for working getgroups" >&5
26082 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26083 if test "${ac_cv_func_getgroups_works+set}" = set; then
26084   echo $ECHO_N "(cached) $ECHO_C" >&6
26085 else
26086   if test "$cross_compiling" = yes; then
26087   ac_cv_func_getgroups_works=no
26088 else
26089   cat >conftest.$ac_ext <<_ACEOF
26090 /* confdefs.h.  */
26091 _ACEOF
26092 cat confdefs.h >>conftest.$ac_ext
26093 cat >>conftest.$ac_ext <<_ACEOF
26094 /* end confdefs.h.  */
26095 $ac_includes_default
26096 int
26097 main ()
26098 {
26099 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
26100        return getgroups (0, 0) == -1;
26101   ;
26102   return 0;
26103 }
26104 _ACEOF
26105 rm -f conftest$ac_exeext
26106 if { (ac_try="$ac_link"
26107 case "(($ac_try" in
26108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26109   *) ac_try_echo=$ac_try;;
26110 esac
26111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26112   (eval "$ac_link") 2>&5
26113   ac_status=$?
26114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26116   { (case "(($ac_try" in
26117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26118   *) ac_try_echo=$ac_try;;
26119 esac
26120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26121   (eval "$ac_try") 2>&5
26122   ac_status=$?
26123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124   (exit $ac_status); }; }; then
26125   ac_cv_func_getgroups_works=yes
26126 else
26127   echo "$as_me: program exited with status $ac_status" >&5
26128 echo "$as_me: failed program was:" >&5
26129 sed 's/^/| /' conftest.$ac_ext >&5
26130
26131 ( exit $ac_status )
26132 ac_cv_func_getgroups_works=no
26133 fi
26134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26135 fi
26136
26137
26138
26139 fi
26140 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26141 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26142   if test $ac_cv_func_getgroups_works = yes; then
26143
26144 cat >>confdefs.h <<\_ACEOF
26145 #define HAVE_GETGROUPS 1
26146 _ACEOF
26147
26148   fi
26149 fi
26150 LIBS=$ac_save_LIBS
26151
26152 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26153 # -lseq on Dynix/PTX, -lgen on Unixware.
26154 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26155 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26156 if test "${ac_cv_search_getmntent+set}" = set; then
26157   echo $ECHO_N "(cached) $ECHO_C" >&6
26158 else
26159   ac_func_search_save_LIBS=$LIBS
26160 cat >conftest.$ac_ext <<_ACEOF
26161 /* confdefs.h.  */
26162 _ACEOF
26163 cat confdefs.h >>conftest.$ac_ext
26164 cat >>conftest.$ac_ext <<_ACEOF
26165 /* end confdefs.h.  */
26166
26167 /* Override any GCC internal prototype to avoid an error.
26168    Use char because int might match the return type of a GCC
26169    builtin and then its argument prototype would still apply.  */
26170 #ifdef __cplusplus
26171 extern "C"
26172 #endif
26173 char getmntent ();
26174 int
26175 main ()
26176 {
26177 return getmntent ();
26178   ;
26179   return 0;
26180 }
26181 _ACEOF
26182 for ac_lib in '' sun seq gen; do
26183   if test -z "$ac_lib"; then
26184     ac_res="none required"
26185   else
26186     ac_res=-l$ac_lib
26187     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26188   fi
26189   rm -f conftest.$ac_objext conftest$ac_exeext
26190 if { (ac_try="$ac_link"
26191 case "(($ac_try" in
26192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26193   *) ac_try_echo=$ac_try;;
26194 esac
26195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26196   (eval "$ac_link") 2>conftest.er1
26197   ac_status=$?
26198   grep -v '^ *+' conftest.er1 >conftest.err
26199   rm -f conftest.er1
26200   cat conftest.err >&5
26201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202   (exit $ac_status); } && {
26203          test -z "$ac_c_werror_flag" ||
26204          test ! -s conftest.err
26205        } && test -s conftest$ac_exeext &&
26206        $as_test_x conftest$ac_exeext; then
26207   ac_cv_search_getmntent=$ac_res
26208 else
26209   echo "$as_me: failed program was:" >&5
26210 sed 's/^/| /' conftest.$ac_ext >&5
26211
26212
26213 fi
26214
26215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26216       conftest$ac_exeext
26217   if test "${ac_cv_search_getmntent+set}" = set; then
26218   break
26219 fi
26220 done
26221 if test "${ac_cv_search_getmntent+set}" = set; then
26222   :
26223 else
26224   ac_cv_search_getmntent=no
26225 fi
26226 rm conftest.$ac_ext
26227 LIBS=$ac_func_search_save_LIBS
26228 fi
26229 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26230 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26231 ac_res=$ac_cv_search_getmntent
26232 if test "$ac_res" != no; then
26233   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26234   ac_cv_func_getmntent=yes
26235
26236 cat >>confdefs.h <<\_ACEOF
26237 #define HAVE_GETMNTENT 1
26238 _ACEOF
26239
26240 else
26241   ac_cv_func_getmntent=no
26242 fi
26243
26244
26245 if test $ac_cv_c_compiler_gnu = yes; then
26246     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26247 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26248 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26249   echo $ECHO_N "(cached) $ECHO_C" >&6
26250 else
26251     ac_pattern="Autoconf.*'x'"
26252   cat >conftest.$ac_ext <<_ACEOF
26253 /* confdefs.h.  */
26254 _ACEOF
26255 cat confdefs.h >>conftest.$ac_ext
26256 cat >>conftest.$ac_ext <<_ACEOF
26257 /* end confdefs.h.  */
26258 #include <sgtty.h>
26259 Autoconf TIOCGETP
26260 _ACEOF
26261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26262   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26263   ac_cv_prog_gcc_traditional=yes
26264 else
26265   ac_cv_prog_gcc_traditional=no
26266 fi
26267 rm -f conftest*
26268
26269
26270   if test $ac_cv_prog_gcc_traditional = no; then
26271     cat >conftest.$ac_ext <<_ACEOF
26272 /* confdefs.h.  */
26273 _ACEOF
26274 cat confdefs.h >>conftest.$ac_ext
26275 cat >>conftest.$ac_ext <<_ACEOF
26276 /* end confdefs.h.  */
26277 #include <termio.h>
26278 Autoconf TCGETA
26279 _ACEOF
26280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26281   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26282   ac_cv_prog_gcc_traditional=yes
26283 fi
26284 rm -f conftest*
26285
26286   fi
26287 fi
26288 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26289 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26290   if test $ac_cv_prog_gcc_traditional = yes; then
26291     CC="$CC -traditional"
26292   fi
26293 fi
26294
26295 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26296 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26297 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26298   echo $ECHO_N "(cached) $ECHO_C" >&6
26299 else
26300   rm -f conftest.sym conftest.file
26301 echo >conftest.file
26302 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26303   if test "$cross_compiling" = yes; then
26304   ac_cv_func_lstat_dereferences_slashed_symlink=no
26305 else
26306   cat >conftest.$ac_ext <<_ACEOF
26307 /* confdefs.h.  */
26308 _ACEOF
26309 cat confdefs.h >>conftest.$ac_ext
26310 cat >>conftest.$ac_ext <<_ACEOF
26311 /* end confdefs.h.  */
26312 $ac_includes_default
26313 int
26314 main ()
26315 {
26316 struct stat sbuf;
26317      /* Linux will dereference the symlink and fail.
26318         That is better in the sense that it means we will not
26319         have to compile and use the lstat wrapper.  */
26320      return lstat ("conftest.sym/", &sbuf) == 0;
26321   ;
26322   return 0;
26323 }
26324 _ACEOF
26325 rm -f conftest$ac_exeext
26326 if { (ac_try="$ac_link"
26327 case "(($ac_try" in
26328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26329   *) ac_try_echo=$ac_try;;
26330 esac
26331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26332   (eval "$ac_link") 2>&5
26333   ac_status=$?
26334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26336   { (case "(($ac_try" in
26337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26338   *) ac_try_echo=$ac_try;;
26339 esac
26340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26341   (eval "$ac_try") 2>&5
26342   ac_status=$?
26343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344   (exit $ac_status); }; }; then
26345   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26346 else
26347   echo "$as_me: program exited with status $ac_status" >&5
26348 echo "$as_me: failed program was:" >&5
26349 sed 's/^/| /' conftest.$ac_ext >&5
26350
26351 ( exit $ac_status )
26352 ac_cv_func_lstat_dereferences_slashed_symlink=no
26353 fi
26354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26355 fi
26356
26357
26358 else
26359   # If the `ln -s' command failed, then we probably don't even
26360   # have an lstat function.
26361   ac_cv_func_lstat_dereferences_slashed_symlink=no
26362 fi
26363 rm -f conftest.sym conftest.file
26364
26365 fi
26366 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26367 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26368
26369 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26370
26371 cat >>confdefs.h <<_ACEOF
26372 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26373 _ACEOF
26374
26375
26376 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26377   case " $LIBOBJS " in
26378   *" lstat.$ac_objext "* ) ;;
26379   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26380  ;;
26381 esac
26382
26383 fi
26384
26385 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26386 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26387 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26388   echo $ECHO_N "(cached) $ECHO_C" >&6
26389 else
26390   if test "$cross_compiling" = yes; then
26391   ac_cv_func_lstat_empty_string_bug=yes
26392 else
26393   cat >conftest.$ac_ext <<_ACEOF
26394 /* confdefs.h.  */
26395 _ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h.  */
26399 $ac_includes_default
26400 int
26401 main ()
26402 {
26403 struct stat sbuf;
26404   return lstat ("", &sbuf) == 0;
26405   ;
26406   return 0;
26407 }
26408 _ACEOF
26409 rm -f conftest$ac_exeext
26410 if { (ac_try="$ac_link"
26411 case "(($ac_try" in
26412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26413   *) ac_try_echo=$ac_try;;
26414 esac
26415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26416   (eval "$ac_link") 2>&5
26417   ac_status=$?
26418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26420   { (case "(($ac_try" in
26421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26422   *) ac_try_echo=$ac_try;;
26423 esac
26424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26425   (eval "$ac_try") 2>&5
26426   ac_status=$?
26427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428   (exit $ac_status); }; }; then
26429   ac_cv_func_lstat_empty_string_bug=no
26430 else
26431   echo "$as_me: program exited with status $ac_status" >&5
26432 echo "$as_me: failed program was:" >&5
26433 sed 's/^/| /' conftest.$ac_ext >&5
26434
26435 ( exit $ac_status )
26436 ac_cv_func_lstat_empty_string_bug=yes
26437 fi
26438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26439 fi
26440
26441
26442 fi
26443 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26444 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26445 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26446   case " $LIBOBJS " in
26447   *" lstat.$ac_objext "* ) ;;
26448   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26449  ;;
26450 esac
26451
26452
26453 cat >>confdefs.h <<_ACEOF
26454 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26455 _ACEOF
26456
26457 fi
26458
26459 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26460 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26461 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26462   echo $ECHO_N "(cached) $ECHO_C" >&6
26463 else
26464   rm -f conftest.sym conftest.file
26465 echo >conftest.file
26466 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26467   if test "$cross_compiling" = yes; then
26468   ac_cv_func_lstat_dereferences_slashed_symlink=no
26469 else
26470   cat >conftest.$ac_ext <<_ACEOF
26471 /* confdefs.h.  */
26472 _ACEOF
26473 cat confdefs.h >>conftest.$ac_ext
26474 cat >>conftest.$ac_ext <<_ACEOF
26475 /* end confdefs.h.  */
26476 $ac_includes_default
26477 int
26478 main ()
26479 {
26480 struct stat sbuf;
26481      /* Linux will dereference the symlink and fail.
26482         That is better in the sense that it means we will not
26483         have to compile and use the lstat wrapper.  */
26484      return lstat ("conftest.sym/", &sbuf) == 0;
26485   ;
26486   return 0;
26487 }
26488 _ACEOF
26489 rm -f conftest$ac_exeext
26490 if { (ac_try="$ac_link"
26491 case "(($ac_try" in
26492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26493   *) ac_try_echo=$ac_try;;
26494 esac
26495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26496   (eval "$ac_link") 2>&5
26497   ac_status=$?
26498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26500   { (case "(($ac_try" in
26501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26502   *) ac_try_echo=$ac_try;;
26503 esac
26504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26505   (eval "$ac_try") 2>&5
26506   ac_status=$?
26507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508   (exit $ac_status); }; }; then
26509   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26510 else
26511   echo "$as_me: program exited with status $ac_status" >&5
26512 echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26514
26515 ( exit $ac_status )
26516 ac_cv_func_lstat_dereferences_slashed_symlink=no
26517 fi
26518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26519 fi
26520
26521
26522 else
26523   # If the `ln -s' command failed, then we probably don't even
26524   # have an lstat function.
26525   ac_cv_func_lstat_dereferences_slashed_symlink=no
26526 fi
26527 rm -f conftest.sym conftest.file
26528
26529 fi
26530 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26531 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26532
26533 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26534
26535 cat >>confdefs.h <<_ACEOF
26536 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26537 _ACEOF
26538
26539
26540 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26541   case " $LIBOBJS " in
26542   *" lstat.$ac_objext "* ) ;;
26543   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26544  ;;
26545 esac
26546
26547 fi
26548
26549 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26550 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26551 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26552   echo $ECHO_N "(cached) $ECHO_C" >&6
26553 else
26554   cat >conftest.$ac_ext <<_ACEOF
26555 /* confdefs.h.  */
26556 _ACEOF
26557 cat confdefs.h >>conftest.$ac_ext
26558 cat >>conftest.$ac_ext <<_ACEOF
26559 /* end confdefs.h.  */
26560 #include <sys/types.h>
26561 int
26562 main ()
26563 {
26564 return makedev(0, 0);
26565   ;
26566   return 0;
26567 }
26568 _ACEOF
26569 rm -f conftest.$ac_objext conftest$ac_exeext
26570 if { (ac_try="$ac_link"
26571 case "(($ac_try" in
26572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26573   *) ac_try_echo=$ac_try;;
26574 esac
26575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26576   (eval "$ac_link") 2>conftest.er1
26577   ac_status=$?
26578   grep -v '^ *+' conftest.er1 >conftest.err
26579   rm -f conftest.er1
26580   cat conftest.err >&5
26581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582   (exit $ac_status); } && {
26583          test -z "$ac_c_werror_flag" ||
26584          test ! -s conftest.err
26585        } && test -s conftest$ac_exeext &&
26586        $as_test_x conftest$ac_exeext; then
26587   ac_cv_header_sys_types_h_makedev=yes
26588 else
26589   echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26591
26592         ac_cv_header_sys_types_h_makedev=no
26593 fi
26594
26595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26596       conftest$ac_exeext conftest.$ac_ext
26597
26598 fi
26599 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26600 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26601
26602 if test $ac_cv_header_sys_types_h_makedev = no; then
26603 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26604   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26605 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26606 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26607   echo $ECHO_N "(cached) $ECHO_C" >&6
26608 fi
26609 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26610 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26611 else
26612   # Is the header compilable?
26613 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26614 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26615 cat >conftest.$ac_ext <<_ACEOF
26616 /* confdefs.h.  */
26617 _ACEOF
26618 cat confdefs.h >>conftest.$ac_ext
26619 cat >>conftest.$ac_ext <<_ACEOF
26620 /* end confdefs.h.  */
26621 $ac_includes_default
26622 #include <sys/mkdev.h>
26623 _ACEOF
26624 rm -f conftest.$ac_objext
26625 if { (ac_try="$ac_compile"
26626 case "(($ac_try" in
26627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628   *) ac_try_echo=$ac_try;;
26629 esac
26630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26631   (eval "$ac_compile") 2>conftest.er1
26632   ac_status=$?
26633   grep -v '^ *+' conftest.er1 >conftest.err
26634   rm -f conftest.er1
26635   cat conftest.err >&5
26636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637   (exit $ac_status); } && {
26638          test -z "$ac_c_werror_flag" ||
26639          test ! -s conftest.err
26640        } && test -s conftest.$ac_objext; then
26641   ac_header_compiler=yes
26642 else
26643   echo "$as_me: failed program was:" >&5
26644 sed 's/^/| /' conftest.$ac_ext >&5
26645
26646         ac_header_compiler=no
26647 fi
26648
26649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26651 echo "${ECHO_T}$ac_header_compiler" >&6; }
26652
26653 # Is the header present?
26654 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26655 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26656 cat >conftest.$ac_ext <<_ACEOF
26657 /* confdefs.h.  */
26658 _ACEOF
26659 cat confdefs.h >>conftest.$ac_ext
26660 cat >>conftest.$ac_ext <<_ACEOF
26661 /* end confdefs.h.  */
26662 #include <sys/mkdev.h>
26663 _ACEOF
26664 if { (ac_try="$ac_cpp conftest.$ac_ext"
26665 case "(($ac_try" in
26666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26667   *) ac_try_echo=$ac_try;;
26668 esac
26669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26671   ac_status=$?
26672   grep -v '^ *+' conftest.er1 >conftest.err
26673   rm -f conftest.er1
26674   cat conftest.err >&5
26675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676   (exit $ac_status); } >/dev/null && {
26677          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26678          test ! -s conftest.err
26679        }; then
26680   ac_header_preproc=yes
26681 else
26682   echo "$as_me: failed program was:" >&5
26683 sed 's/^/| /' conftest.$ac_ext >&5
26684
26685   ac_header_preproc=no
26686 fi
26687
26688 rm -f conftest.err conftest.$ac_ext
26689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26690 echo "${ECHO_T}$ac_header_preproc" >&6; }
26691
26692 # So?  What about this header?
26693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26694   yes:no: )
26695     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26696 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26697     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26698 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26699     ac_header_preproc=yes
26700     ;;
26701   no:yes:* )
26702     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26703 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26704     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
26705 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
26706     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26707 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26708     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
26709 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26710     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26711 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26712     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26713 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26714     ( cat <<\_ASBOX
26715 ## ------------------------------- ##
26716 ## Report this to nfs@lists.sf.net ##
26717 ## ------------------------------- ##
26718 _ASBOX
26719      ) | sed "s/^/$as_me: WARNING:     /" >&2
26720     ;;
26721 esac
26722 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26723 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26724 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26725   echo $ECHO_N "(cached) $ECHO_C" >&6
26726 else
26727   ac_cv_header_sys_mkdev_h=$ac_header_preproc
26728 fi
26729 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26730 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26731
26732 fi
26733 if test $ac_cv_header_sys_mkdev_h = yes; then
26734
26735 cat >>confdefs.h <<\_ACEOF
26736 #define MAJOR_IN_MKDEV 1
26737 _ACEOF
26738
26739 fi
26740
26741
26742
26743   if test $ac_cv_header_sys_mkdev_h = no; then
26744     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26745   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26746 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26747 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26748   echo $ECHO_N "(cached) $ECHO_C" >&6
26749 fi
26750 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26751 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26752 else
26753   # Is the header compilable?
26754 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26755 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26756 cat >conftest.$ac_ext <<_ACEOF
26757 /* confdefs.h.  */
26758 _ACEOF
26759 cat confdefs.h >>conftest.$ac_ext
26760 cat >>conftest.$ac_ext <<_ACEOF
26761 /* end confdefs.h.  */
26762 $ac_includes_default
26763 #include <sys/sysmacros.h>
26764 _ACEOF
26765 rm -f conftest.$ac_objext
26766 if { (ac_try="$ac_compile"
26767 case "(($ac_try" in
26768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26769   *) ac_try_echo=$ac_try;;
26770 esac
26771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26772   (eval "$ac_compile") 2>conftest.er1
26773   ac_status=$?
26774   grep -v '^ *+' conftest.er1 >conftest.err
26775   rm -f conftest.er1
26776   cat conftest.err >&5
26777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778   (exit $ac_status); } && {
26779          test -z "$ac_c_werror_flag" ||
26780          test ! -s conftest.err
26781        } && test -s conftest.$ac_objext; then
26782   ac_header_compiler=yes
26783 else
26784   echo "$as_me: failed program was:" >&5
26785 sed 's/^/| /' conftest.$ac_ext >&5
26786
26787         ac_header_compiler=no
26788 fi
26789
26790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26792 echo "${ECHO_T}$ac_header_compiler" >&6; }
26793
26794 # Is the header present?
26795 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
26796 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
26797 cat >conftest.$ac_ext <<_ACEOF
26798 /* confdefs.h.  */
26799 _ACEOF
26800 cat confdefs.h >>conftest.$ac_ext
26801 cat >>conftest.$ac_ext <<_ACEOF
26802 /* end confdefs.h.  */
26803 #include <sys/sysmacros.h>
26804 _ACEOF
26805 if { (ac_try="$ac_cpp conftest.$ac_ext"
26806 case "(($ac_try" in
26807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26808   *) ac_try_echo=$ac_try;;
26809 esac
26810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26811   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26812   ac_status=$?
26813   grep -v '^ *+' conftest.er1 >conftest.err
26814   rm -f conftest.er1
26815   cat conftest.err >&5
26816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817   (exit $ac_status); } >/dev/null && {
26818          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26819          test ! -s conftest.err
26820        }; then
26821   ac_header_preproc=yes
26822 else
26823   echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26825
26826   ac_header_preproc=no
26827 fi
26828
26829 rm -f conftest.err conftest.$ac_ext
26830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26831 echo "${ECHO_T}$ac_header_preproc" >&6; }
26832
26833 # So?  What about this header?
26834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26835   yes:no: )
26836     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
26837 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26838     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
26839 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
26840     ac_header_preproc=yes
26841     ;;
26842   no:yes:* )
26843     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
26844 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
26845     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
26846 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
26847     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
26848 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
26849     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
26850 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26851     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
26852 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
26853     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
26854 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
26855     ( cat <<\_ASBOX
26856 ## ------------------------------- ##
26857 ## Report this to nfs@lists.sf.net ##
26858 ## ------------------------------- ##
26859 _ASBOX
26860      ) | sed "s/^/$as_me: WARNING:     /" >&2
26861     ;;
26862 esac
26863 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26864 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26865 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26866   echo $ECHO_N "(cached) $ECHO_C" >&6
26867 else
26868   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
26869 fi
26870 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26871 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26872
26873 fi
26874 if test $ac_cv_header_sys_sysmacros_h = yes; then
26875
26876 cat >>confdefs.h <<\_ACEOF
26877 #define MAJOR_IN_SYSMACROS 1
26878 _ACEOF
26879
26880 fi
26881
26882
26883   fi
26884 fi
26885
26886 #AC_FUNC_MALLOC
26887 { echo "$as_me:$LINENO: checking for working memcmp" >&5
26888 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
26889 if test "${ac_cv_func_memcmp_working+set}" = set; then
26890   echo $ECHO_N "(cached) $ECHO_C" >&6
26891 else
26892   if test "$cross_compiling" = yes; then
26893   ac_cv_func_memcmp_working=no
26894 else
26895   cat >conftest.$ac_ext <<_ACEOF
26896 /* confdefs.h.  */
26897 _ACEOF
26898 cat confdefs.h >>conftest.$ac_ext
26899 cat >>conftest.$ac_ext <<_ACEOF
26900 /* end confdefs.h.  */
26901 $ac_includes_default
26902 int
26903 main ()
26904 {
26905
26906   /* Some versions of memcmp are not 8-bit clean.  */
26907   char c0 = '\100', c1 = '\200', c2 = '\201';
26908   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
26909     return 1;
26910
26911   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
26912      or more and with at least one buffer not starting on a 4-byte boundary.
26913      William Lewis provided this test program.   */
26914   {
26915     char foo[21];
26916     char bar[21];
26917     int i;
26918     for (i = 0; i < 4; i++)
26919       {
26920         char *a = foo + i;
26921         char *b = bar + i;
26922         strcpy (a, "--------01111111");
26923         strcpy (b, "--------10000000");
26924         if (memcmp (a, b, 16) >= 0)
26925           return 1;
26926       }
26927     return 0;
26928   }
26929
26930   ;
26931   return 0;
26932 }
26933 _ACEOF
26934 rm -f conftest$ac_exeext
26935 if { (ac_try="$ac_link"
26936 case "(($ac_try" in
26937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938   *) ac_try_echo=$ac_try;;
26939 esac
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941   (eval "$ac_link") 2>&5
26942   ac_status=$?
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26945   { (case "(($ac_try" in
26946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947   *) ac_try_echo=$ac_try;;
26948 esac
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950   (eval "$ac_try") 2>&5
26951   ac_status=$?
26952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953   (exit $ac_status); }; }; then
26954   ac_cv_func_memcmp_working=yes
26955 else
26956   echo "$as_me: program exited with status $ac_status" >&5
26957 echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26959
26960 ( exit $ac_status )
26961 ac_cv_func_memcmp_working=no
26962 fi
26963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26964 fi
26965
26966
26967 fi
26968 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
26969 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
26970 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
26971   *" memcmp.$ac_objext "* ) ;;
26972   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
26973  ;;
26974 esac
26975
26976
26977 #AC_FUNC_REALLOC
26978
26979
26980 for ac_header in sys/select.h sys/socket.h
26981 do
26982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26984   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26987   echo $ECHO_N "(cached) $ECHO_C" >&6
26988 fi
26989 ac_res=`eval echo '${'$as_ac_Header'}'`
26990                { echo "$as_me:$LINENO: result: $ac_res" >&5
26991 echo "${ECHO_T}$ac_res" >&6; }
26992 else
26993   # Is the header compilable?
26994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26996 cat >conftest.$ac_ext <<_ACEOF
26997 /* confdefs.h.  */
26998 _ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h.  */
27002 $ac_includes_default
27003 #include <$ac_header>
27004 _ACEOF
27005 rm -f conftest.$ac_objext
27006 if { (ac_try="$ac_compile"
27007 case "(($ac_try" in
27008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27009   *) ac_try_echo=$ac_try;;
27010 esac
27011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27012   (eval "$ac_compile") 2>conftest.er1
27013   ac_status=$?
27014   grep -v '^ *+' conftest.er1 >conftest.err
27015   rm -f conftest.er1
27016   cat conftest.err >&5
27017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018   (exit $ac_status); } && {
27019          test -z "$ac_c_werror_flag" ||
27020          test ! -s conftest.err
27021        } && test -s conftest.$ac_objext; then
27022   ac_header_compiler=yes
27023 else
27024   echo "$as_me: failed program was:" >&5
27025 sed 's/^/| /' conftest.$ac_ext >&5
27026
27027         ac_header_compiler=no
27028 fi
27029
27030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27032 echo "${ECHO_T}$ac_header_compiler" >&6; }
27033
27034 # Is the header present?
27035 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27037 cat >conftest.$ac_ext <<_ACEOF
27038 /* confdefs.h.  */
27039 _ACEOF
27040 cat confdefs.h >>conftest.$ac_ext
27041 cat >>conftest.$ac_ext <<_ACEOF
27042 /* end confdefs.h.  */
27043 #include <$ac_header>
27044 _ACEOF
27045 if { (ac_try="$ac_cpp conftest.$ac_ext"
27046 case "(($ac_try" in
27047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27048   *) ac_try_echo=$ac_try;;
27049 esac
27050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27052   ac_status=$?
27053   grep -v '^ *+' conftest.er1 >conftest.err
27054   rm -f conftest.er1
27055   cat conftest.err >&5
27056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057   (exit $ac_status); } >/dev/null && {
27058          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27059          test ! -s conftest.err
27060        }; then
27061   ac_header_preproc=yes
27062 else
27063   echo "$as_me: failed program was:" >&5
27064 sed 's/^/| /' conftest.$ac_ext >&5
27065
27066   ac_header_preproc=no
27067 fi
27068
27069 rm -f conftest.err conftest.$ac_ext
27070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27071 echo "${ECHO_T}$ac_header_preproc" >&6; }
27072
27073 # So?  What about this header?
27074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27075   yes:no: )
27076     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27080     ac_header_preproc=yes
27081     ;;
27082   no:yes:* )
27083     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27085     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27086 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27087     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27089     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27090 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27093     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27095     ( cat <<\_ASBOX
27096 ## ------------------------------- ##
27097 ## Report this to nfs@lists.sf.net ##
27098 ## ------------------------------- ##
27099 _ASBOX
27100      ) | sed "s/^/$as_me: WARNING:     /" >&2
27101     ;;
27102 esac
27103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27106   echo $ECHO_N "(cached) $ECHO_C" >&6
27107 else
27108   eval "$as_ac_Header=\$ac_header_preproc"
27109 fi
27110 ac_res=`eval echo '${'$as_ac_Header'}'`
27111                { echo "$as_me:$LINENO: result: $ac_res" >&5
27112 echo "${ECHO_T}$ac_res" >&6; }
27113
27114 fi
27115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27116   cat >>confdefs.h <<_ACEOF
27117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27118 _ACEOF
27119
27120 fi
27121
27122 done
27123
27124 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27125 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27126 if test "${ac_cv_func_select_args+set}" = set; then
27127   echo $ECHO_N "(cached) $ECHO_C" >&6
27128 else
27129   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27130  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27131   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27132    cat >conftest.$ac_ext <<_ACEOF
27133 /* confdefs.h.  */
27134 _ACEOF
27135 cat confdefs.h >>conftest.$ac_ext
27136 cat >>conftest.$ac_ext <<_ACEOF
27137 /* end confdefs.h.  */
27138 $ac_includes_default
27139 #ifdef HAVE_SYS_SELECT_H
27140 # include <sys/select.h>
27141 #endif
27142 #ifdef HAVE_SYS_SOCKET_H
27143 # include <sys/socket.h>
27144 #endif
27145
27146 int
27147 main ()
27148 {
27149 extern int select ($ac_arg1,
27150                                             $ac_arg234, $ac_arg234, $ac_arg234,
27151                                             $ac_arg5);
27152   ;
27153   return 0;
27154 }
27155 _ACEOF
27156 rm -f conftest.$ac_objext
27157 if { (ac_try="$ac_compile"
27158 case "(($ac_try" in
27159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160   *) ac_try_echo=$ac_try;;
27161 esac
27162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27163   (eval "$ac_compile") 2>conftest.er1
27164   ac_status=$?
27165   grep -v '^ *+' conftest.er1 >conftest.err
27166   rm -f conftest.er1
27167   cat conftest.err >&5
27168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169   (exit $ac_status); } && {
27170          test -z "$ac_c_werror_flag" ||
27171          test ! -s conftest.err
27172        } && test -s conftest.$ac_objext; then
27173   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27174 else
27175   echo "$as_me: failed program was:" >&5
27176 sed 's/^/| /' conftest.$ac_ext >&5
27177
27178
27179 fi
27180
27181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27182   done
27183  done
27184 done
27185 # Provide a safe default value.
27186 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27187
27188 fi
27189 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27190 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27191 ac_save_IFS=$IFS; IFS=','
27192 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27193 IFS=$ac_save_IFS
27194 shift
27195
27196 cat >>confdefs.h <<_ACEOF
27197 #define SELECT_TYPE_ARG1 $1
27198 _ACEOF
27199
27200
27201 cat >>confdefs.h <<_ACEOF
27202 #define SELECT_TYPE_ARG234 ($2)
27203 _ACEOF
27204
27205
27206 cat >>confdefs.h <<_ACEOF
27207 #define SELECT_TYPE_ARG5 ($3)
27208 _ACEOF
27209
27210 rm -f conftest*
27211
27212 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27213 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27214 if test "${ac_cv_type_signal+set}" = set; then
27215   echo $ECHO_N "(cached) $ECHO_C" >&6
27216 else
27217   cat >conftest.$ac_ext <<_ACEOF
27218 /* confdefs.h.  */
27219 _ACEOF
27220 cat confdefs.h >>conftest.$ac_ext
27221 cat >>conftest.$ac_ext <<_ACEOF
27222 /* end confdefs.h.  */
27223 #include <sys/types.h>
27224 #include <signal.h>
27225
27226 int
27227 main ()
27228 {
27229 return *(signal (0, 0)) (0) == 1;
27230   ;
27231   return 0;
27232 }
27233 _ACEOF
27234 rm -f conftest.$ac_objext
27235 if { (ac_try="$ac_compile"
27236 case "(($ac_try" in
27237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238   *) ac_try_echo=$ac_try;;
27239 esac
27240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27241   (eval "$ac_compile") 2>conftest.er1
27242   ac_status=$?
27243   grep -v '^ *+' conftest.er1 >conftest.err
27244   rm -f conftest.er1
27245   cat conftest.err >&5
27246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247   (exit $ac_status); } && {
27248          test -z "$ac_c_werror_flag" ||
27249          test ! -s conftest.err
27250        } && test -s conftest.$ac_objext; then
27251   ac_cv_type_signal=int
27252 else
27253   echo "$as_me: failed program was:" >&5
27254 sed 's/^/| /' conftest.$ac_ext >&5
27255
27256         ac_cv_type_signal=void
27257 fi
27258
27259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27260 fi
27261 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27262 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27263
27264 cat >>confdefs.h <<_ACEOF
27265 #define RETSIGTYPE $ac_cv_type_signal
27266 _ACEOF
27267
27268
27269 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27270 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27271 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27272   echo $ECHO_N "(cached) $ECHO_C" >&6
27273 else
27274   if test "$cross_compiling" = yes; then
27275   ac_cv_func_stat_empty_string_bug=yes
27276 else
27277   cat >conftest.$ac_ext <<_ACEOF
27278 /* confdefs.h.  */
27279 _ACEOF
27280 cat confdefs.h >>conftest.$ac_ext
27281 cat >>conftest.$ac_ext <<_ACEOF
27282 /* end confdefs.h.  */
27283 $ac_includes_default
27284 int
27285 main ()
27286 {
27287 struct stat sbuf;
27288   return stat ("", &sbuf) == 0;
27289   ;
27290   return 0;
27291 }
27292 _ACEOF
27293 rm -f conftest$ac_exeext
27294 if { (ac_try="$ac_link"
27295 case "(($ac_try" in
27296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297   *) ac_try_echo=$ac_try;;
27298 esac
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300   (eval "$ac_link") 2>&5
27301   ac_status=$?
27302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27304   { (case "(($ac_try" in
27305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306   *) ac_try_echo=$ac_try;;
27307 esac
27308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309   (eval "$ac_try") 2>&5
27310   ac_status=$?
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); }; }; then
27313   ac_cv_func_stat_empty_string_bug=no
27314 else
27315   echo "$as_me: program exited with status $ac_status" >&5
27316 echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27318
27319 ( exit $ac_status )
27320 ac_cv_func_stat_empty_string_bug=yes
27321 fi
27322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27323 fi
27324
27325
27326 fi
27327 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27328 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27329 if test $ac_cv_func_stat_empty_string_bug = yes; then
27330   case " $LIBOBJS " in
27331   *" stat.$ac_objext "* ) ;;
27332   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27333  ;;
27334 esac
27335
27336
27337 cat >>confdefs.h <<_ACEOF
27338 #define HAVE_STAT_EMPTY_STRING_BUG 1
27339 _ACEOF
27340
27341 fi
27342
27343
27344 for ac_func in vprintf
27345 do
27346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27350   echo $ECHO_N "(cached) $ECHO_C" >&6
27351 else
27352   cat >conftest.$ac_ext <<_ACEOF
27353 /* confdefs.h.  */
27354 _ACEOF
27355 cat confdefs.h >>conftest.$ac_ext
27356 cat >>conftest.$ac_ext <<_ACEOF
27357 /* end confdefs.h.  */
27358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27360 #define $ac_func innocuous_$ac_func
27361
27362 /* System header to define __stub macros and hopefully few prototypes,
27363     which can conflict with char $ac_func (); below.
27364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27365     <limits.h> exists even on freestanding compilers.  */
27366
27367 #ifdef __STDC__
27368 # include <limits.h>
27369 #else
27370 # include <assert.h>
27371 #endif
27372
27373 #undef $ac_func
27374
27375 /* Override any GCC internal prototype to avoid an error.
27376    Use char because int might match the return type of a GCC
27377    builtin and then its argument prototype would still apply.  */
27378 #ifdef __cplusplus
27379 extern "C"
27380 #endif
27381 char $ac_func ();
27382 /* The GNU C library defines this for functions which it implements
27383     to always fail with ENOSYS.  Some functions are actually named
27384     something starting with __ and the normal name is an alias.  */
27385 #if defined __stub_$ac_func || defined __stub___$ac_func
27386 choke me
27387 #endif
27388
27389 int
27390 main ()
27391 {
27392 return $ac_func ();
27393   ;
27394   return 0;
27395 }
27396 _ACEOF
27397 rm -f conftest.$ac_objext conftest$ac_exeext
27398 if { (ac_try="$ac_link"
27399 case "(($ac_try" in
27400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401   *) ac_try_echo=$ac_try;;
27402 esac
27403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404   (eval "$ac_link") 2>conftest.er1
27405   ac_status=$?
27406   grep -v '^ *+' conftest.er1 >conftest.err
27407   rm -f conftest.er1
27408   cat conftest.err >&5
27409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410   (exit $ac_status); } && {
27411          test -z "$ac_c_werror_flag" ||
27412          test ! -s conftest.err
27413        } && test -s conftest$ac_exeext &&
27414        $as_test_x conftest$ac_exeext; then
27415   eval "$as_ac_var=yes"
27416 else
27417   echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27419
27420         eval "$as_ac_var=no"
27421 fi
27422
27423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27424       conftest$ac_exeext conftest.$ac_ext
27425 fi
27426 ac_res=`eval echo '${'$as_ac_var'}'`
27427                { echo "$as_me:$LINENO: result: $ac_res" >&5
27428 echo "${ECHO_T}$ac_res" >&6; }
27429 if test `eval echo '${'$as_ac_var'}'` = yes; then
27430   cat >>confdefs.h <<_ACEOF
27431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27432 _ACEOF
27433
27434 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27435 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27436 if test "${ac_cv_func__doprnt+set}" = set; then
27437   echo $ECHO_N "(cached) $ECHO_C" >&6
27438 else
27439   cat >conftest.$ac_ext <<_ACEOF
27440 /* confdefs.h.  */
27441 _ACEOF
27442 cat confdefs.h >>conftest.$ac_ext
27443 cat >>conftest.$ac_ext <<_ACEOF
27444 /* end confdefs.h.  */
27445 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27447 #define _doprnt innocuous__doprnt
27448
27449 /* System header to define __stub macros and hopefully few prototypes,
27450     which can conflict with char _doprnt (); below.
27451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27452     <limits.h> exists even on freestanding compilers.  */
27453
27454 #ifdef __STDC__
27455 # include <limits.h>
27456 #else
27457 # include <assert.h>
27458 #endif
27459
27460 #undef _doprnt
27461
27462 /* Override any GCC internal prototype to avoid an error.
27463    Use char because int might match the return type of a GCC
27464    builtin and then its argument prototype would still apply.  */
27465 #ifdef __cplusplus
27466 extern "C"
27467 #endif
27468 char _doprnt ();
27469 /* The GNU C library defines this for functions which it implements
27470     to always fail with ENOSYS.  Some functions are actually named
27471     something starting with __ and the normal name is an alias.  */
27472 #if defined __stub__doprnt || defined __stub____doprnt
27473 choke me
27474 #endif
27475
27476 int
27477 main ()
27478 {
27479 return _doprnt ();
27480   ;
27481   return 0;
27482 }
27483 _ACEOF
27484 rm -f conftest.$ac_objext conftest$ac_exeext
27485 if { (ac_try="$ac_link"
27486 case "(($ac_try" in
27487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488   *) ac_try_echo=$ac_try;;
27489 esac
27490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491   (eval "$ac_link") 2>conftest.er1
27492   ac_status=$?
27493   grep -v '^ *+' conftest.er1 >conftest.err
27494   rm -f conftest.er1
27495   cat conftest.err >&5
27496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497   (exit $ac_status); } && {
27498          test -z "$ac_c_werror_flag" ||
27499          test ! -s conftest.err
27500        } && test -s conftest$ac_exeext &&
27501        $as_test_x conftest$ac_exeext; then
27502   ac_cv_func__doprnt=yes
27503 else
27504   echo "$as_me: failed program was:" >&5
27505 sed 's/^/| /' conftest.$ac_ext >&5
27506
27507         ac_cv_func__doprnt=no
27508 fi
27509
27510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27511       conftest$ac_exeext conftest.$ac_ext
27512 fi
27513 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27514 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27515 if test $ac_cv_func__doprnt = yes; then
27516
27517 cat >>confdefs.h <<\_ACEOF
27518 #define HAVE_DOPRNT 1
27519 _ACEOF
27520
27521 fi
27522
27523 fi
27524 done
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27557                gethostbyaddr gethostbyname gethostname getmntent \
27558                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27559                realpath rmdir select socket strcasecmp strchr strdup \
27560                strerror strrchr strtol strtoul sigprocmask
27561 do
27562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27566   echo $ECHO_N "(cached) $ECHO_C" >&6
27567 else
27568   cat >conftest.$ac_ext <<_ACEOF
27569 /* confdefs.h.  */
27570 _ACEOF
27571 cat confdefs.h >>conftest.$ac_ext
27572 cat >>conftest.$ac_ext <<_ACEOF
27573 /* end confdefs.h.  */
27574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27576 #define $ac_func innocuous_$ac_func
27577
27578 /* System header to define __stub macros and hopefully few prototypes,
27579     which can conflict with char $ac_func (); below.
27580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27581     <limits.h> exists even on freestanding compilers.  */
27582
27583 #ifdef __STDC__
27584 # include <limits.h>
27585 #else
27586 # include <assert.h>
27587 #endif
27588
27589 #undef $ac_func
27590
27591 /* Override any GCC internal prototype to avoid an error.
27592    Use char because int might match the return type of a GCC
27593    builtin and then its argument prototype would still apply.  */
27594 #ifdef __cplusplus
27595 extern "C"
27596 #endif
27597 char $ac_func ();
27598 /* The GNU C library defines this for functions which it implements
27599     to always fail with ENOSYS.  Some functions are actually named
27600     something starting with __ and the normal name is an alias.  */
27601 #if defined __stub_$ac_func || defined __stub___$ac_func
27602 choke me
27603 #endif
27604
27605 int
27606 main ()
27607 {
27608 return $ac_func ();
27609   ;
27610   return 0;
27611 }
27612 _ACEOF
27613 rm -f conftest.$ac_objext conftest$ac_exeext
27614 if { (ac_try="$ac_link"
27615 case "(($ac_try" in
27616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617   *) ac_try_echo=$ac_try;;
27618 esac
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620   (eval "$ac_link") 2>conftest.er1
27621   ac_status=$?
27622   grep -v '^ *+' conftest.er1 >conftest.err
27623   rm -f conftest.er1
27624   cat conftest.err >&5
27625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626   (exit $ac_status); } && {
27627          test -z "$ac_c_werror_flag" ||
27628          test ! -s conftest.err
27629        } && test -s conftest$ac_exeext &&
27630        $as_test_x conftest$ac_exeext; then
27631   eval "$as_ac_var=yes"
27632 else
27633   echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27635
27636         eval "$as_ac_var=no"
27637 fi
27638
27639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27640       conftest$ac_exeext conftest.$ac_ext
27641 fi
27642 ac_res=`eval echo '${'$as_ac_var'}'`
27643                { echo "$as_me:$LINENO: result: $ac_res" >&5
27644 echo "${ECHO_T}$ac_res" >&6; }
27645 if test `eval echo '${'$as_ac_var'}'` = yes; then
27646   cat >>confdefs.h <<_ACEOF
27647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27648 _ACEOF
27649
27650 fi
27651 done
27652
27653
27654
27655 { echo "$as_me:$LINENO: checking for short" >&5
27656 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27657 if test "${ac_cv_type_short+set}" = set; then
27658   echo $ECHO_N "(cached) $ECHO_C" >&6
27659 else
27660   cat >conftest.$ac_ext <<_ACEOF
27661 /* confdefs.h.  */
27662 _ACEOF
27663 cat confdefs.h >>conftest.$ac_ext
27664 cat >>conftest.$ac_ext <<_ACEOF
27665 /* end confdefs.h.  */
27666 $ac_includes_default
27667 typedef short ac__type_new_;
27668 int
27669 main ()
27670 {
27671 if ((ac__type_new_ *) 0)
27672   return 0;
27673 if (sizeof (ac__type_new_))
27674   return 0;
27675   ;
27676   return 0;
27677 }
27678 _ACEOF
27679 rm -f conftest.$ac_objext
27680 if { (ac_try="$ac_compile"
27681 case "(($ac_try" in
27682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27683   *) ac_try_echo=$ac_try;;
27684 esac
27685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27686   (eval "$ac_compile") 2>conftest.er1
27687   ac_status=$?
27688   grep -v '^ *+' conftest.er1 >conftest.err
27689   rm -f conftest.er1
27690   cat conftest.err >&5
27691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692   (exit $ac_status); } && {
27693          test -z "$ac_c_werror_flag" ||
27694          test ! -s conftest.err
27695        } && test -s conftest.$ac_objext; then
27696   ac_cv_type_short=yes
27697 else
27698   echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27700
27701         ac_cv_type_short=no
27702 fi
27703
27704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27705 fi
27706 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27707 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27708
27709 # The cast to long int works around a bug in the HP C Compiler
27710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27712 # This bug is HP SR number 8606223364.
27713 { echo "$as_me:$LINENO: checking size of short" >&5
27714 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27715 if test "${ac_cv_sizeof_short+set}" = set; then
27716   echo $ECHO_N "(cached) $ECHO_C" >&6
27717 else
27718   if test "$cross_compiling" = yes; then
27719   # Depending upon the size, compute the lo and hi bounds.
27720 cat >conftest.$ac_ext <<_ACEOF
27721 /* confdefs.h.  */
27722 _ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h.  */
27726 $ac_includes_default
27727    typedef short ac__type_sizeof_;
27728 int
27729 main ()
27730 {
27731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27732 test_array [0] = 0
27733
27734   ;
27735   return 0;
27736 }
27737 _ACEOF
27738 rm -f conftest.$ac_objext
27739 if { (ac_try="$ac_compile"
27740 case "(($ac_try" in
27741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27742   *) ac_try_echo=$ac_try;;
27743 esac
27744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27745   (eval "$ac_compile") 2>conftest.er1
27746   ac_status=$?
27747   grep -v '^ *+' conftest.er1 >conftest.err
27748   rm -f conftest.er1
27749   cat conftest.err >&5
27750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751   (exit $ac_status); } && {
27752          test -z "$ac_c_werror_flag" ||
27753          test ! -s conftest.err
27754        } && test -s conftest.$ac_objext; then
27755   ac_lo=0 ac_mid=0
27756   while :; do
27757     cat >conftest.$ac_ext <<_ACEOF
27758 /* confdefs.h.  */
27759 _ACEOF
27760 cat confdefs.h >>conftest.$ac_ext
27761 cat >>conftest.$ac_ext <<_ACEOF
27762 /* end confdefs.h.  */
27763 $ac_includes_default
27764    typedef short ac__type_sizeof_;
27765 int
27766 main ()
27767 {
27768 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27769 test_array [0] = 0
27770
27771   ;
27772   return 0;
27773 }
27774 _ACEOF
27775 rm -f conftest.$ac_objext
27776 if { (ac_try="$ac_compile"
27777 case "(($ac_try" in
27778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27779   *) ac_try_echo=$ac_try;;
27780 esac
27781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27782   (eval "$ac_compile") 2>conftest.er1
27783   ac_status=$?
27784   grep -v '^ *+' conftest.er1 >conftest.err
27785   rm -f conftest.er1
27786   cat conftest.err >&5
27787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788   (exit $ac_status); } && {
27789          test -z "$ac_c_werror_flag" ||
27790          test ! -s conftest.err
27791        } && test -s conftest.$ac_objext; then
27792   ac_hi=$ac_mid; break
27793 else
27794   echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27796
27797         ac_lo=`expr $ac_mid + 1`
27798                         if test $ac_lo -le $ac_mid; then
27799                           ac_lo= ac_hi=
27800                           break
27801                         fi
27802                         ac_mid=`expr 2 '*' $ac_mid + 1`
27803 fi
27804
27805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27806   done
27807 else
27808   echo "$as_me: failed program was:" >&5
27809 sed 's/^/| /' conftest.$ac_ext >&5
27810
27811         cat >conftest.$ac_ext <<_ACEOF
27812 /* confdefs.h.  */
27813 _ACEOF
27814 cat confdefs.h >>conftest.$ac_ext
27815 cat >>conftest.$ac_ext <<_ACEOF
27816 /* end confdefs.h.  */
27817 $ac_includes_default
27818    typedef short ac__type_sizeof_;
27819 int
27820 main ()
27821 {
27822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27823 test_array [0] = 0
27824
27825   ;
27826   return 0;
27827 }
27828 _ACEOF
27829 rm -f conftest.$ac_objext
27830 if { (ac_try="$ac_compile"
27831 case "(($ac_try" in
27832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27833   *) ac_try_echo=$ac_try;;
27834 esac
27835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27836   (eval "$ac_compile") 2>conftest.er1
27837   ac_status=$?
27838   grep -v '^ *+' conftest.er1 >conftest.err
27839   rm -f conftest.er1
27840   cat conftest.err >&5
27841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842   (exit $ac_status); } && {
27843          test -z "$ac_c_werror_flag" ||
27844          test ! -s conftest.err
27845        } && test -s conftest.$ac_objext; then
27846   ac_hi=-1 ac_mid=-1
27847   while :; do
27848     cat >conftest.$ac_ext <<_ACEOF
27849 /* confdefs.h.  */
27850 _ACEOF
27851 cat confdefs.h >>conftest.$ac_ext
27852 cat >>conftest.$ac_ext <<_ACEOF
27853 /* end confdefs.h.  */
27854 $ac_includes_default
27855    typedef short ac__type_sizeof_;
27856 int
27857 main ()
27858 {
27859 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27860 test_array [0] = 0
27861
27862   ;
27863   return 0;
27864 }
27865 _ACEOF
27866 rm -f conftest.$ac_objext
27867 if { (ac_try="$ac_compile"
27868 case "(($ac_try" in
27869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870   *) ac_try_echo=$ac_try;;
27871 esac
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873   (eval "$ac_compile") 2>conftest.er1
27874   ac_status=$?
27875   grep -v '^ *+' conftest.er1 >conftest.err
27876   rm -f conftest.er1
27877   cat conftest.err >&5
27878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879   (exit $ac_status); } && {
27880          test -z "$ac_c_werror_flag" ||
27881          test ! -s conftest.err
27882        } && test -s conftest.$ac_objext; then
27883   ac_lo=$ac_mid; break
27884 else
27885   echo "$as_me: failed program was:" >&5
27886 sed 's/^/| /' conftest.$ac_ext >&5
27887
27888         ac_hi=`expr '(' $ac_mid ')' - 1`
27889                         if test $ac_mid -le $ac_hi; then
27890                           ac_lo= ac_hi=
27891                           break
27892                         fi
27893                         ac_mid=`expr 2 '*' $ac_mid`
27894 fi
27895
27896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27897   done
27898 else
27899   echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27901
27902         ac_lo= ac_hi=
27903 fi
27904
27905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27906 fi
27907
27908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27909 # Binary search between lo and hi bounds.
27910 while test "x$ac_lo" != "x$ac_hi"; do
27911   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27912   cat >conftest.$ac_ext <<_ACEOF
27913 /* confdefs.h.  */
27914 _ACEOF
27915 cat confdefs.h >>conftest.$ac_ext
27916 cat >>conftest.$ac_ext <<_ACEOF
27917 /* end confdefs.h.  */
27918 $ac_includes_default
27919    typedef short ac__type_sizeof_;
27920 int
27921 main ()
27922 {
27923 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27924 test_array [0] = 0
27925
27926   ;
27927   return 0;
27928 }
27929 _ACEOF
27930 rm -f conftest.$ac_objext
27931 if { (ac_try="$ac_compile"
27932 case "(($ac_try" in
27933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27934   *) ac_try_echo=$ac_try;;
27935 esac
27936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27937   (eval "$ac_compile") 2>conftest.er1
27938   ac_status=$?
27939   grep -v '^ *+' conftest.er1 >conftest.err
27940   rm -f conftest.er1
27941   cat conftest.err >&5
27942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943   (exit $ac_status); } && {
27944          test -z "$ac_c_werror_flag" ||
27945          test ! -s conftest.err
27946        } && test -s conftest.$ac_objext; then
27947   ac_hi=$ac_mid
27948 else
27949   echo "$as_me: failed program was:" >&5
27950 sed 's/^/| /' conftest.$ac_ext >&5
27951
27952         ac_lo=`expr '(' $ac_mid ')' + 1`
27953 fi
27954
27955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27956 done
27957 case $ac_lo in
27958 ?*) ac_cv_sizeof_short=$ac_lo;;
27959 '') if test "$ac_cv_type_short" = yes; then
27960      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27961 See \`config.log' for more details." >&5
27962 echo "$as_me: error: cannot compute sizeof (short)
27963 See \`config.log' for more details." >&2;}
27964    { (exit 77); exit 77; }; }
27965    else
27966      ac_cv_sizeof_short=0
27967    fi ;;
27968 esac
27969 else
27970   cat >conftest.$ac_ext <<_ACEOF
27971 /* confdefs.h.  */
27972 _ACEOF
27973 cat confdefs.h >>conftest.$ac_ext
27974 cat >>conftest.$ac_ext <<_ACEOF
27975 /* end confdefs.h.  */
27976 $ac_includes_default
27977    typedef short ac__type_sizeof_;
27978 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27979 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27980 #include <stdio.h>
27981 #include <stdlib.h>
27982 int
27983 main ()
27984 {
27985
27986   FILE *f = fopen ("conftest.val", "w");
27987   if (! f)
27988     return 1;
27989   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27990     {
27991       long int i = longval ();
27992       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27993         return 1;
27994       fprintf (f, "%ld\n", i);
27995     }
27996   else
27997     {
27998       unsigned long int i = ulongval ();
27999       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28000         return 1;
28001       fprintf (f, "%lu\n", i);
28002     }
28003   return ferror (f) || fclose (f) != 0;
28004
28005   ;
28006   return 0;
28007 }
28008 _ACEOF
28009 rm -f conftest$ac_exeext
28010 if { (ac_try="$ac_link"
28011 case "(($ac_try" in
28012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013   *) ac_try_echo=$ac_try;;
28014 esac
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016   (eval "$ac_link") 2>&5
28017   ac_status=$?
28018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28020   { (case "(($ac_try" in
28021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28022   *) ac_try_echo=$ac_try;;
28023 esac
28024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28025   (eval "$ac_try") 2>&5
28026   ac_status=$?
28027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028   (exit $ac_status); }; }; then
28029   ac_cv_sizeof_short=`cat conftest.val`
28030 else
28031   echo "$as_me: program exited with status $ac_status" >&5
28032 echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28034
28035 ( exit $ac_status )
28036 if test "$ac_cv_type_short" = yes; then
28037      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28038 See \`config.log' for more details." >&5
28039 echo "$as_me: error: cannot compute sizeof (short)
28040 See \`config.log' for more details." >&2;}
28041    { (exit 77); exit 77; }; }
28042    else
28043      ac_cv_sizeof_short=0
28044    fi
28045 fi
28046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28047 fi
28048 rm -f conftest.val
28049 fi
28050 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28051 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28052
28053
28054
28055 cat >>confdefs.h <<_ACEOF
28056 #define SIZEOF_SHORT $ac_cv_sizeof_short
28057 _ACEOF
28058
28059
28060 { echo "$as_me:$LINENO: checking for int" >&5
28061 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28062 if test "${ac_cv_type_int+set}" = set; then
28063   echo $ECHO_N "(cached) $ECHO_C" >&6
28064 else
28065   cat >conftest.$ac_ext <<_ACEOF
28066 /* confdefs.h.  */
28067 _ACEOF
28068 cat confdefs.h >>conftest.$ac_ext
28069 cat >>conftest.$ac_ext <<_ACEOF
28070 /* end confdefs.h.  */
28071 $ac_includes_default
28072 typedef int ac__type_new_;
28073 int
28074 main ()
28075 {
28076 if ((ac__type_new_ *) 0)
28077   return 0;
28078 if (sizeof (ac__type_new_))
28079   return 0;
28080   ;
28081   return 0;
28082 }
28083 _ACEOF
28084 rm -f conftest.$ac_objext
28085 if { (ac_try="$ac_compile"
28086 case "(($ac_try" in
28087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088   *) ac_try_echo=$ac_try;;
28089 esac
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091   (eval "$ac_compile") 2>conftest.er1
28092   ac_status=$?
28093   grep -v '^ *+' conftest.er1 >conftest.err
28094   rm -f conftest.er1
28095   cat conftest.err >&5
28096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097   (exit $ac_status); } && {
28098          test -z "$ac_c_werror_flag" ||
28099          test ! -s conftest.err
28100        } && test -s conftest.$ac_objext; then
28101   ac_cv_type_int=yes
28102 else
28103   echo "$as_me: failed program was:" >&5
28104 sed 's/^/| /' conftest.$ac_ext >&5
28105
28106         ac_cv_type_int=no
28107 fi
28108
28109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28110 fi
28111 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28112 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28113
28114 # The cast to long int works around a bug in the HP C Compiler
28115 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28116 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28117 # This bug is HP SR number 8606223364.
28118 { echo "$as_me:$LINENO: checking size of int" >&5
28119 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28120 if test "${ac_cv_sizeof_int+set}" = set; then
28121   echo $ECHO_N "(cached) $ECHO_C" >&6
28122 else
28123   if test "$cross_compiling" = yes; then
28124   # Depending upon the size, compute the lo and hi bounds.
28125 cat >conftest.$ac_ext <<_ACEOF
28126 /* confdefs.h.  */
28127 _ACEOF
28128 cat confdefs.h >>conftest.$ac_ext
28129 cat >>conftest.$ac_ext <<_ACEOF
28130 /* end confdefs.h.  */
28131 $ac_includes_default
28132    typedef int ac__type_sizeof_;
28133 int
28134 main ()
28135 {
28136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28137 test_array [0] = 0
28138
28139   ;
28140   return 0;
28141 }
28142 _ACEOF
28143 rm -f conftest.$ac_objext
28144 if { (ac_try="$ac_compile"
28145 case "(($ac_try" in
28146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28147   *) ac_try_echo=$ac_try;;
28148 esac
28149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28150   (eval "$ac_compile") 2>conftest.er1
28151   ac_status=$?
28152   grep -v '^ *+' conftest.er1 >conftest.err
28153   rm -f conftest.er1
28154   cat conftest.err >&5
28155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156   (exit $ac_status); } && {
28157          test -z "$ac_c_werror_flag" ||
28158          test ! -s conftest.err
28159        } && test -s conftest.$ac_objext; then
28160   ac_lo=0 ac_mid=0
28161   while :; do
28162     cat >conftest.$ac_ext <<_ACEOF
28163 /* confdefs.h.  */
28164 _ACEOF
28165 cat confdefs.h >>conftest.$ac_ext
28166 cat >>conftest.$ac_ext <<_ACEOF
28167 /* end confdefs.h.  */
28168 $ac_includes_default
28169    typedef int ac__type_sizeof_;
28170 int
28171 main ()
28172 {
28173 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28174 test_array [0] = 0
28175
28176   ;
28177   return 0;
28178 }
28179 _ACEOF
28180 rm -f conftest.$ac_objext
28181 if { (ac_try="$ac_compile"
28182 case "(($ac_try" in
28183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28184   *) ac_try_echo=$ac_try;;
28185 esac
28186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28187   (eval "$ac_compile") 2>conftest.er1
28188   ac_status=$?
28189   grep -v '^ *+' conftest.er1 >conftest.err
28190   rm -f conftest.er1
28191   cat conftest.err >&5
28192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193   (exit $ac_status); } && {
28194          test -z "$ac_c_werror_flag" ||
28195          test ! -s conftest.err
28196        } && test -s conftest.$ac_objext; then
28197   ac_hi=$ac_mid; break
28198 else
28199   echo "$as_me: failed program was:" >&5
28200 sed 's/^/| /' conftest.$ac_ext >&5
28201
28202         ac_lo=`expr $ac_mid + 1`
28203                         if test $ac_lo -le $ac_mid; then
28204                           ac_lo= ac_hi=
28205                           break
28206                         fi
28207                         ac_mid=`expr 2 '*' $ac_mid + 1`
28208 fi
28209
28210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28211   done
28212 else
28213   echo "$as_me: failed program was:" >&5
28214 sed 's/^/| /' conftest.$ac_ext >&5
28215
28216         cat >conftest.$ac_ext <<_ACEOF
28217 /* confdefs.h.  */
28218 _ACEOF
28219 cat confdefs.h >>conftest.$ac_ext
28220 cat >>conftest.$ac_ext <<_ACEOF
28221 /* end confdefs.h.  */
28222 $ac_includes_default
28223    typedef int ac__type_sizeof_;
28224 int
28225 main ()
28226 {
28227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28228 test_array [0] = 0
28229
28230   ;
28231   return 0;
28232 }
28233 _ACEOF
28234 rm -f conftest.$ac_objext
28235 if { (ac_try="$ac_compile"
28236 case "(($ac_try" in
28237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238   *) ac_try_echo=$ac_try;;
28239 esac
28240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28241   (eval "$ac_compile") 2>conftest.er1
28242   ac_status=$?
28243   grep -v '^ *+' conftest.er1 >conftest.err
28244   rm -f conftest.er1
28245   cat conftest.err >&5
28246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247   (exit $ac_status); } && {
28248          test -z "$ac_c_werror_flag" ||
28249          test ! -s conftest.err
28250        } && test -s conftest.$ac_objext; then
28251   ac_hi=-1 ac_mid=-1
28252   while :; do
28253     cat >conftest.$ac_ext <<_ACEOF
28254 /* confdefs.h.  */
28255 _ACEOF
28256 cat confdefs.h >>conftest.$ac_ext
28257 cat >>conftest.$ac_ext <<_ACEOF
28258 /* end confdefs.h.  */
28259 $ac_includes_default
28260    typedef int ac__type_sizeof_;
28261 int
28262 main ()
28263 {
28264 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28265 test_array [0] = 0
28266
28267   ;
28268   return 0;
28269 }
28270 _ACEOF
28271 rm -f conftest.$ac_objext
28272 if { (ac_try="$ac_compile"
28273 case "(($ac_try" in
28274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275   *) ac_try_echo=$ac_try;;
28276 esac
28277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278   (eval "$ac_compile") 2>conftest.er1
28279   ac_status=$?
28280   grep -v '^ *+' conftest.er1 >conftest.err
28281   rm -f conftest.er1
28282   cat conftest.err >&5
28283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284   (exit $ac_status); } && {
28285          test -z "$ac_c_werror_flag" ||
28286          test ! -s conftest.err
28287        } && test -s conftest.$ac_objext; then
28288   ac_lo=$ac_mid; break
28289 else
28290   echo "$as_me: failed program was:" >&5
28291 sed 's/^/| /' conftest.$ac_ext >&5
28292
28293         ac_hi=`expr '(' $ac_mid ')' - 1`
28294                         if test $ac_mid -le $ac_hi; then
28295                           ac_lo= ac_hi=
28296                           break
28297                         fi
28298                         ac_mid=`expr 2 '*' $ac_mid`
28299 fi
28300
28301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28302   done
28303 else
28304   echo "$as_me: failed program was:" >&5
28305 sed 's/^/| /' conftest.$ac_ext >&5
28306
28307         ac_lo= ac_hi=
28308 fi
28309
28310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28311 fi
28312
28313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28314 # Binary search between lo and hi bounds.
28315 while test "x$ac_lo" != "x$ac_hi"; do
28316   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28317   cat >conftest.$ac_ext <<_ACEOF
28318 /* confdefs.h.  */
28319 _ACEOF
28320 cat confdefs.h >>conftest.$ac_ext
28321 cat >>conftest.$ac_ext <<_ACEOF
28322 /* end confdefs.h.  */
28323 $ac_includes_default
28324    typedef int ac__type_sizeof_;
28325 int
28326 main ()
28327 {
28328 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28329 test_array [0] = 0
28330
28331   ;
28332   return 0;
28333 }
28334 _ACEOF
28335 rm -f conftest.$ac_objext
28336 if { (ac_try="$ac_compile"
28337 case "(($ac_try" in
28338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28339   *) ac_try_echo=$ac_try;;
28340 esac
28341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28342   (eval "$ac_compile") 2>conftest.er1
28343   ac_status=$?
28344   grep -v '^ *+' conftest.er1 >conftest.err
28345   rm -f conftest.er1
28346   cat conftest.err >&5
28347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348   (exit $ac_status); } && {
28349          test -z "$ac_c_werror_flag" ||
28350          test ! -s conftest.err
28351        } && test -s conftest.$ac_objext; then
28352   ac_hi=$ac_mid
28353 else
28354   echo "$as_me: failed program was:" >&5
28355 sed 's/^/| /' conftest.$ac_ext >&5
28356
28357         ac_lo=`expr '(' $ac_mid ')' + 1`
28358 fi
28359
28360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28361 done
28362 case $ac_lo in
28363 ?*) ac_cv_sizeof_int=$ac_lo;;
28364 '') if test "$ac_cv_type_int" = yes; then
28365      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28366 See \`config.log' for more details." >&5
28367 echo "$as_me: error: cannot compute sizeof (int)
28368 See \`config.log' for more details." >&2;}
28369    { (exit 77); exit 77; }; }
28370    else
28371      ac_cv_sizeof_int=0
28372    fi ;;
28373 esac
28374 else
28375   cat >conftest.$ac_ext <<_ACEOF
28376 /* confdefs.h.  */
28377 _ACEOF
28378 cat confdefs.h >>conftest.$ac_ext
28379 cat >>conftest.$ac_ext <<_ACEOF
28380 /* end confdefs.h.  */
28381 $ac_includes_default
28382    typedef int ac__type_sizeof_;
28383 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28384 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28385 #include <stdio.h>
28386 #include <stdlib.h>
28387 int
28388 main ()
28389 {
28390
28391   FILE *f = fopen ("conftest.val", "w");
28392   if (! f)
28393     return 1;
28394   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28395     {
28396       long int i = longval ();
28397       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28398         return 1;
28399       fprintf (f, "%ld\n", i);
28400     }
28401   else
28402     {
28403       unsigned long int i = ulongval ();
28404       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28405         return 1;
28406       fprintf (f, "%lu\n", i);
28407     }
28408   return ferror (f) || fclose (f) != 0;
28409
28410   ;
28411   return 0;
28412 }
28413 _ACEOF
28414 rm -f conftest$ac_exeext
28415 if { (ac_try="$ac_link"
28416 case "(($ac_try" in
28417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28418   *) ac_try_echo=$ac_try;;
28419 esac
28420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28421   (eval "$ac_link") 2>&5
28422   ac_status=$?
28423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28425   { (case "(($ac_try" in
28426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427   *) ac_try_echo=$ac_try;;
28428 esac
28429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430   (eval "$ac_try") 2>&5
28431   ac_status=$?
28432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433   (exit $ac_status); }; }; then
28434   ac_cv_sizeof_int=`cat conftest.val`
28435 else
28436   echo "$as_me: program exited with status $ac_status" >&5
28437 echo "$as_me: failed program was:" >&5
28438 sed 's/^/| /' conftest.$ac_ext >&5
28439
28440 ( exit $ac_status )
28441 if test "$ac_cv_type_int" = yes; then
28442      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28443 See \`config.log' for more details." >&5
28444 echo "$as_me: error: cannot compute sizeof (int)
28445 See \`config.log' for more details." >&2;}
28446    { (exit 77); exit 77; }; }
28447    else
28448      ac_cv_sizeof_int=0
28449    fi
28450 fi
28451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28452 fi
28453 rm -f conftest.val
28454 fi
28455 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28456 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28457
28458
28459
28460 cat >>confdefs.h <<_ACEOF
28461 #define SIZEOF_INT $ac_cv_sizeof_int
28462 _ACEOF
28463
28464
28465 { echo "$as_me:$LINENO: checking for long" >&5
28466 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28467 if test "${ac_cv_type_long+set}" = set; then
28468   echo $ECHO_N "(cached) $ECHO_C" >&6
28469 else
28470   cat >conftest.$ac_ext <<_ACEOF
28471 /* confdefs.h.  */
28472 _ACEOF
28473 cat confdefs.h >>conftest.$ac_ext
28474 cat >>conftest.$ac_ext <<_ACEOF
28475 /* end confdefs.h.  */
28476 $ac_includes_default
28477 typedef long ac__type_new_;
28478 int
28479 main ()
28480 {
28481 if ((ac__type_new_ *) 0)
28482   return 0;
28483 if (sizeof (ac__type_new_))
28484   return 0;
28485   ;
28486   return 0;
28487 }
28488 _ACEOF
28489 rm -f conftest.$ac_objext
28490 if { (ac_try="$ac_compile"
28491 case "(($ac_try" in
28492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28493   *) ac_try_echo=$ac_try;;
28494 esac
28495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28496   (eval "$ac_compile") 2>conftest.er1
28497   ac_status=$?
28498   grep -v '^ *+' conftest.er1 >conftest.err
28499   rm -f conftest.er1
28500   cat conftest.err >&5
28501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502   (exit $ac_status); } && {
28503          test -z "$ac_c_werror_flag" ||
28504          test ! -s conftest.err
28505        } && test -s conftest.$ac_objext; then
28506   ac_cv_type_long=yes
28507 else
28508   echo "$as_me: failed program was:" >&5
28509 sed 's/^/| /' conftest.$ac_ext >&5
28510
28511         ac_cv_type_long=no
28512 fi
28513
28514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28515 fi
28516 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28517 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28518
28519 # The cast to long int works around a bug in the HP C Compiler
28520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28522 # This bug is HP SR number 8606223364.
28523 { echo "$as_me:$LINENO: checking size of long" >&5
28524 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28525 if test "${ac_cv_sizeof_long+set}" = set; then
28526   echo $ECHO_N "(cached) $ECHO_C" >&6
28527 else
28528   if test "$cross_compiling" = yes; then
28529   # Depending upon the size, compute the lo and hi bounds.
28530 cat >conftest.$ac_ext <<_ACEOF
28531 /* confdefs.h.  */
28532 _ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h.  */
28536 $ac_includes_default
28537    typedef long ac__type_sizeof_;
28538 int
28539 main ()
28540 {
28541 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28542 test_array [0] = 0
28543
28544   ;
28545   return 0;
28546 }
28547 _ACEOF
28548 rm -f conftest.$ac_objext
28549 if { (ac_try="$ac_compile"
28550 case "(($ac_try" in
28551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28552   *) ac_try_echo=$ac_try;;
28553 esac
28554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28555   (eval "$ac_compile") 2>conftest.er1
28556   ac_status=$?
28557   grep -v '^ *+' conftest.er1 >conftest.err
28558   rm -f conftest.er1
28559   cat conftest.err >&5
28560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561   (exit $ac_status); } && {
28562          test -z "$ac_c_werror_flag" ||
28563          test ! -s conftest.err
28564        } && test -s conftest.$ac_objext; then
28565   ac_lo=0 ac_mid=0
28566   while :; do
28567     cat >conftest.$ac_ext <<_ACEOF
28568 /* confdefs.h.  */
28569 _ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h.  */
28573 $ac_includes_default
28574    typedef long ac__type_sizeof_;
28575 int
28576 main ()
28577 {
28578 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28579 test_array [0] = 0
28580
28581   ;
28582   return 0;
28583 }
28584 _ACEOF
28585 rm -f conftest.$ac_objext
28586 if { (ac_try="$ac_compile"
28587 case "(($ac_try" in
28588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589   *) ac_try_echo=$ac_try;;
28590 esac
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592   (eval "$ac_compile") 2>conftest.er1
28593   ac_status=$?
28594   grep -v '^ *+' conftest.er1 >conftest.err
28595   rm -f conftest.er1
28596   cat conftest.err >&5
28597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598   (exit $ac_status); } && {
28599          test -z "$ac_c_werror_flag" ||
28600          test ! -s conftest.err
28601        } && test -s conftest.$ac_objext; then
28602   ac_hi=$ac_mid; break
28603 else
28604   echo "$as_me: failed program was:" >&5
28605 sed 's/^/| /' conftest.$ac_ext >&5
28606
28607         ac_lo=`expr $ac_mid + 1`
28608                         if test $ac_lo -le $ac_mid; then
28609                           ac_lo= ac_hi=
28610                           break
28611                         fi
28612                         ac_mid=`expr 2 '*' $ac_mid + 1`
28613 fi
28614
28615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28616   done
28617 else
28618   echo "$as_me: failed program was:" >&5
28619 sed 's/^/| /' conftest.$ac_ext >&5
28620
28621         cat >conftest.$ac_ext <<_ACEOF
28622 /* confdefs.h.  */
28623 _ACEOF
28624 cat confdefs.h >>conftest.$ac_ext
28625 cat >>conftest.$ac_ext <<_ACEOF
28626 /* end confdefs.h.  */
28627 $ac_includes_default
28628    typedef long ac__type_sizeof_;
28629 int
28630 main ()
28631 {
28632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28633 test_array [0] = 0
28634
28635   ;
28636   return 0;
28637 }
28638 _ACEOF
28639 rm -f conftest.$ac_objext
28640 if { (ac_try="$ac_compile"
28641 case "(($ac_try" in
28642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28643   *) ac_try_echo=$ac_try;;
28644 esac
28645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28646   (eval "$ac_compile") 2>conftest.er1
28647   ac_status=$?
28648   grep -v '^ *+' conftest.er1 >conftest.err
28649   rm -f conftest.er1
28650   cat conftest.err >&5
28651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652   (exit $ac_status); } && {
28653          test -z "$ac_c_werror_flag" ||
28654          test ! -s conftest.err
28655        } && test -s conftest.$ac_objext; then
28656   ac_hi=-1 ac_mid=-1
28657   while :; do
28658     cat >conftest.$ac_ext <<_ACEOF
28659 /* confdefs.h.  */
28660 _ACEOF
28661 cat confdefs.h >>conftest.$ac_ext
28662 cat >>conftest.$ac_ext <<_ACEOF
28663 /* end confdefs.h.  */
28664 $ac_includes_default
28665    typedef long ac__type_sizeof_;
28666 int
28667 main ()
28668 {
28669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28670 test_array [0] = 0
28671
28672   ;
28673   return 0;
28674 }
28675 _ACEOF
28676 rm -f conftest.$ac_objext
28677 if { (ac_try="$ac_compile"
28678 case "(($ac_try" in
28679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680   *) ac_try_echo=$ac_try;;
28681 esac
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683   (eval "$ac_compile") 2>conftest.er1
28684   ac_status=$?
28685   grep -v '^ *+' conftest.er1 >conftest.err
28686   rm -f conftest.er1
28687   cat conftest.err >&5
28688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689   (exit $ac_status); } && {
28690          test -z "$ac_c_werror_flag" ||
28691          test ! -s conftest.err
28692        } && test -s conftest.$ac_objext; then
28693   ac_lo=$ac_mid; break
28694 else
28695   echo "$as_me: failed program was:" >&5
28696 sed 's/^/| /' conftest.$ac_ext >&5
28697
28698         ac_hi=`expr '(' $ac_mid ')' - 1`
28699                         if test $ac_mid -le $ac_hi; then
28700                           ac_lo= ac_hi=
28701                           break
28702                         fi
28703                         ac_mid=`expr 2 '*' $ac_mid`
28704 fi
28705
28706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28707   done
28708 else
28709   echo "$as_me: failed program was:" >&5
28710 sed 's/^/| /' conftest.$ac_ext >&5
28711
28712         ac_lo= ac_hi=
28713 fi
28714
28715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28716 fi
28717
28718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28719 # Binary search between lo and hi bounds.
28720 while test "x$ac_lo" != "x$ac_hi"; do
28721   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28722   cat >conftest.$ac_ext <<_ACEOF
28723 /* confdefs.h.  */
28724 _ACEOF
28725 cat confdefs.h >>conftest.$ac_ext
28726 cat >>conftest.$ac_ext <<_ACEOF
28727 /* end confdefs.h.  */
28728 $ac_includes_default
28729    typedef long ac__type_sizeof_;
28730 int
28731 main ()
28732 {
28733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28734 test_array [0] = 0
28735
28736   ;
28737   return 0;
28738 }
28739 _ACEOF
28740 rm -f conftest.$ac_objext
28741 if { (ac_try="$ac_compile"
28742 case "(($ac_try" in
28743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28744   *) ac_try_echo=$ac_try;;
28745 esac
28746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28747   (eval "$ac_compile") 2>conftest.er1
28748   ac_status=$?
28749   grep -v '^ *+' conftest.er1 >conftest.err
28750   rm -f conftest.er1
28751   cat conftest.err >&5
28752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753   (exit $ac_status); } && {
28754          test -z "$ac_c_werror_flag" ||
28755          test ! -s conftest.err
28756        } && test -s conftest.$ac_objext; then
28757   ac_hi=$ac_mid
28758 else
28759   echo "$as_me: failed program was:" >&5
28760 sed 's/^/| /' conftest.$ac_ext >&5
28761
28762         ac_lo=`expr '(' $ac_mid ')' + 1`
28763 fi
28764
28765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28766 done
28767 case $ac_lo in
28768 ?*) ac_cv_sizeof_long=$ac_lo;;
28769 '') if test "$ac_cv_type_long" = yes; then
28770      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28771 See \`config.log' for more details." >&5
28772 echo "$as_me: error: cannot compute sizeof (long)
28773 See \`config.log' for more details." >&2;}
28774    { (exit 77); exit 77; }; }
28775    else
28776      ac_cv_sizeof_long=0
28777    fi ;;
28778 esac
28779 else
28780   cat >conftest.$ac_ext <<_ACEOF
28781 /* confdefs.h.  */
28782 _ACEOF
28783 cat confdefs.h >>conftest.$ac_ext
28784 cat >>conftest.$ac_ext <<_ACEOF
28785 /* end confdefs.h.  */
28786 $ac_includes_default
28787    typedef long ac__type_sizeof_;
28788 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28789 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28790 #include <stdio.h>
28791 #include <stdlib.h>
28792 int
28793 main ()
28794 {
28795
28796   FILE *f = fopen ("conftest.val", "w");
28797   if (! f)
28798     return 1;
28799   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28800     {
28801       long int i = longval ();
28802       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28803         return 1;
28804       fprintf (f, "%ld\n", i);
28805     }
28806   else
28807     {
28808       unsigned long int i = ulongval ();
28809       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28810         return 1;
28811       fprintf (f, "%lu\n", i);
28812     }
28813   return ferror (f) || fclose (f) != 0;
28814
28815   ;
28816   return 0;
28817 }
28818 _ACEOF
28819 rm -f conftest$ac_exeext
28820 if { (ac_try="$ac_link"
28821 case "(($ac_try" in
28822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28823   *) ac_try_echo=$ac_try;;
28824 esac
28825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28826   (eval "$ac_link") 2>&5
28827   ac_status=$?
28828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28830   { (case "(($ac_try" in
28831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832   *) ac_try_echo=$ac_try;;
28833 esac
28834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835   (eval "$ac_try") 2>&5
28836   ac_status=$?
28837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838   (exit $ac_status); }; }; then
28839   ac_cv_sizeof_long=`cat conftest.val`
28840 else
28841   echo "$as_me: program exited with status $ac_status" >&5
28842 echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28844
28845 ( exit $ac_status )
28846 if test "$ac_cv_type_long" = yes; then
28847      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28848 See \`config.log' for more details." >&5
28849 echo "$as_me: error: cannot compute sizeof (long)
28850 See \`config.log' for more details." >&2;}
28851    { (exit 77); exit 77; }; }
28852    else
28853      ac_cv_sizeof_long=0
28854    fi
28855 fi
28856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28857 fi
28858 rm -f conftest.val
28859 fi
28860 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28861 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
28862
28863
28864
28865 cat >>confdefs.h <<_ACEOF
28866 #define SIZEOF_LONG $ac_cv_sizeof_long
28867 _ACEOF
28868
28869
28870 { echo "$as_me:$LINENO: checking for size_t" >&5
28871 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28872 if test "${ac_cv_type_size_t+set}" = set; then
28873   echo $ECHO_N "(cached) $ECHO_C" >&6
28874 else
28875   cat >conftest.$ac_ext <<_ACEOF
28876 /* confdefs.h.  */
28877 _ACEOF
28878 cat confdefs.h >>conftest.$ac_ext
28879 cat >>conftest.$ac_ext <<_ACEOF
28880 /* end confdefs.h.  */
28881 $ac_includes_default
28882 typedef size_t ac__type_new_;
28883 int
28884 main ()
28885 {
28886 if ((ac__type_new_ *) 0)
28887   return 0;
28888 if (sizeof (ac__type_new_))
28889   return 0;
28890   ;
28891   return 0;
28892 }
28893 _ACEOF
28894 rm -f conftest.$ac_objext
28895 if { (ac_try="$ac_compile"
28896 case "(($ac_try" in
28897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898   *) ac_try_echo=$ac_try;;
28899 esac
28900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901   (eval "$ac_compile") 2>conftest.er1
28902   ac_status=$?
28903   grep -v '^ *+' conftest.er1 >conftest.err
28904   rm -f conftest.er1
28905   cat conftest.err >&5
28906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907   (exit $ac_status); } && {
28908          test -z "$ac_c_werror_flag" ||
28909          test ! -s conftest.err
28910        } && test -s conftest.$ac_objext; then
28911   ac_cv_type_size_t=yes
28912 else
28913   echo "$as_me: failed program was:" >&5
28914 sed 's/^/| /' conftest.$ac_ext >&5
28915
28916         ac_cv_type_size_t=no
28917 fi
28918
28919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28920 fi
28921 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28922 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28923
28924 # The cast to long int works around a bug in the HP C Compiler
28925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28927 # This bug is HP SR number 8606223364.
28928 { echo "$as_me:$LINENO: checking size of size_t" >&5
28929 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
28930 if test "${ac_cv_sizeof_size_t+set}" = set; then
28931   echo $ECHO_N "(cached) $ECHO_C" >&6
28932 else
28933   if test "$cross_compiling" = yes; then
28934   # Depending upon the size, compute the lo and hi bounds.
28935 cat >conftest.$ac_ext <<_ACEOF
28936 /* confdefs.h.  */
28937 _ACEOF
28938 cat confdefs.h >>conftest.$ac_ext
28939 cat >>conftest.$ac_ext <<_ACEOF
28940 /* end confdefs.h.  */
28941 $ac_includes_default
28942    typedef size_t ac__type_sizeof_;
28943 int
28944 main ()
28945 {
28946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28947 test_array [0] = 0
28948
28949   ;
28950   return 0;
28951 }
28952 _ACEOF
28953 rm -f conftest.$ac_objext
28954 if { (ac_try="$ac_compile"
28955 case "(($ac_try" in
28956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957   *) ac_try_echo=$ac_try;;
28958 esac
28959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960   (eval "$ac_compile") 2>conftest.er1
28961   ac_status=$?
28962   grep -v '^ *+' conftest.er1 >conftest.err
28963   rm -f conftest.er1
28964   cat conftest.err >&5
28965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966   (exit $ac_status); } && {
28967          test -z "$ac_c_werror_flag" ||
28968          test ! -s conftest.err
28969        } && test -s conftest.$ac_objext; then
28970   ac_lo=0 ac_mid=0
28971   while :; do
28972     cat >conftest.$ac_ext <<_ACEOF
28973 /* confdefs.h.  */
28974 _ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h.  */
28978 $ac_includes_default
28979    typedef size_t ac__type_sizeof_;
28980 int
28981 main ()
28982 {
28983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28984 test_array [0] = 0
28985
28986   ;
28987   return 0;
28988 }
28989 _ACEOF
28990 rm -f conftest.$ac_objext
28991 if { (ac_try="$ac_compile"
28992 case "(($ac_try" in
28993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28994   *) ac_try_echo=$ac_try;;
28995 esac
28996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28997   (eval "$ac_compile") 2>conftest.er1
28998   ac_status=$?
28999   grep -v '^ *+' conftest.er1 >conftest.err
29000   rm -f conftest.er1
29001   cat conftest.err >&5
29002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003   (exit $ac_status); } && {
29004          test -z "$ac_c_werror_flag" ||
29005          test ! -s conftest.err
29006        } && test -s conftest.$ac_objext; then
29007   ac_hi=$ac_mid; break
29008 else
29009   echo "$as_me: failed program was:" >&5
29010 sed 's/^/| /' conftest.$ac_ext >&5
29011
29012         ac_lo=`expr $ac_mid + 1`
29013                         if test $ac_lo -le $ac_mid; then
29014                           ac_lo= ac_hi=
29015                           break
29016                         fi
29017                         ac_mid=`expr 2 '*' $ac_mid + 1`
29018 fi
29019
29020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29021   done
29022 else
29023   echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29025
29026         cat >conftest.$ac_ext <<_ACEOF
29027 /* confdefs.h.  */
29028 _ACEOF
29029 cat confdefs.h >>conftest.$ac_ext
29030 cat >>conftest.$ac_ext <<_ACEOF
29031 /* end confdefs.h.  */
29032 $ac_includes_default
29033    typedef size_t ac__type_sizeof_;
29034 int
29035 main ()
29036 {
29037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29038 test_array [0] = 0
29039
29040   ;
29041   return 0;
29042 }
29043 _ACEOF
29044 rm -f conftest.$ac_objext
29045 if { (ac_try="$ac_compile"
29046 case "(($ac_try" in
29047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048   *) ac_try_echo=$ac_try;;
29049 esac
29050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29051   (eval "$ac_compile") 2>conftest.er1
29052   ac_status=$?
29053   grep -v '^ *+' conftest.er1 >conftest.err
29054   rm -f conftest.er1
29055   cat conftest.err >&5
29056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057   (exit $ac_status); } && {
29058          test -z "$ac_c_werror_flag" ||
29059          test ! -s conftest.err
29060        } && test -s conftest.$ac_objext; then
29061   ac_hi=-1 ac_mid=-1
29062   while :; do
29063     cat >conftest.$ac_ext <<_ACEOF
29064 /* confdefs.h.  */
29065 _ACEOF
29066 cat confdefs.h >>conftest.$ac_ext
29067 cat >>conftest.$ac_ext <<_ACEOF
29068 /* end confdefs.h.  */
29069 $ac_includes_default
29070    typedef size_t ac__type_sizeof_;
29071 int
29072 main ()
29073 {
29074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29075 test_array [0] = 0
29076
29077   ;
29078   return 0;
29079 }
29080 _ACEOF
29081 rm -f conftest.$ac_objext
29082 if { (ac_try="$ac_compile"
29083 case "(($ac_try" in
29084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29085   *) ac_try_echo=$ac_try;;
29086 esac
29087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29088   (eval "$ac_compile") 2>conftest.er1
29089   ac_status=$?
29090   grep -v '^ *+' conftest.er1 >conftest.err
29091   rm -f conftest.er1
29092   cat conftest.err >&5
29093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094   (exit $ac_status); } && {
29095          test -z "$ac_c_werror_flag" ||
29096          test ! -s conftest.err
29097        } && test -s conftest.$ac_objext; then
29098   ac_lo=$ac_mid; break
29099 else
29100   echo "$as_me: failed program was:" >&5
29101 sed 's/^/| /' conftest.$ac_ext >&5
29102
29103         ac_hi=`expr '(' $ac_mid ')' - 1`
29104                         if test $ac_mid -le $ac_hi; then
29105                           ac_lo= ac_hi=
29106                           break
29107                         fi
29108                         ac_mid=`expr 2 '*' $ac_mid`
29109 fi
29110
29111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29112   done
29113 else
29114   echo "$as_me: failed program was:" >&5
29115 sed 's/^/| /' conftest.$ac_ext >&5
29116
29117         ac_lo= ac_hi=
29118 fi
29119
29120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29121 fi
29122
29123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29124 # Binary search between lo and hi bounds.
29125 while test "x$ac_lo" != "x$ac_hi"; do
29126   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29127   cat >conftest.$ac_ext <<_ACEOF
29128 /* confdefs.h.  */
29129 _ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h.  */
29133 $ac_includes_default
29134    typedef size_t ac__type_sizeof_;
29135 int
29136 main ()
29137 {
29138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29139 test_array [0] = 0
29140
29141   ;
29142   return 0;
29143 }
29144 _ACEOF
29145 rm -f conftest.$ac_objext
29146 if { (ac_try="$ac_compile"
29147 case "(($ac_try" in
29148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29149   *) ac_try_echo=$ac_try;;
29150 esac
29151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29152   (eval "$ac_compile") 2>conftest.er1
29153   ac_status=$?
29154   grep -v '^ *+' conftest.er1 >conftest.err
29155   rm -f conftest.er1
29156   cat conftest.err >&5
29157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158   (exit $ac_status); } && {
29159          test -z "$ac_c_werror_flag" ||
29160          test ! -s conftest.err
29161        } && test -s conftest.$ac_objext; then
29162   ac_hi=$ac_mid
29163 else
29164   echo "$as_me: failed program was:" >&5
29165 sed 's/^/| /' conftest.$ac_ext >&5
29166
29167         ac_lo=`expr '(' $ac_mid ')' + 1`
29168 fi
29169
29170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29171 done
29172 case $ac_lo in
29173 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29174 '') if test "$ac_cv_type_size_t" = yes; then
29175      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29176 See \`config.log' for more details." >&5
29177 echo "$as_me: error: cannot compute sizeof (size_t)
29178 See \`config.log' for more details." >&2;}
29179    { (exit 77); exit 77; }; }
29180    else
29181      ac_cv_sizeof_size_t=0
29182    fi ;;
29183 esac
29184 else
29185   cat >conftest.$ac_ext <<_ACEOF
29186 /* confdefs.h.  */
29187 _ACEOF
29188 cat confdefs.h >>conftest.$ac_ext
29189 cat >>conftest.$ac_ext <<_ACEOF
29190 /* end confdefs.h.  */
29191 $ac_includes_default
29192    typedef size_t ac__type_sizeof_;
29193 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29194 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29195 #include <stdio.h>
29196 #include <stdlib.h>
29197 int
29198 main ()
29199 {
29200
29201   FILE *f = fopen ("conftest.val", "w");
29202   if (! f)
29203     return 1;
29204   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29205     {
29206       long int i = longval ();
29207       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29208         return 1;
29209       fprintf (f, "%ld\n", i);
29210     }
29211   else
29212     {
29213       unsigned long int i = ulongval ();
29214       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29215         return 1;
29216       fprintf (f, "%lu\n", i);
29217     }
29218   return ferror (f) || fclose (f) != 0;
29219
29220   ;
29221   return 0;
29222 }
29223 _ACEOF
29224 rm -f conftest$ac_exeext
29225 if { (ac_try="$ac_link"
29226 case "(($ac_try" in
29227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228   *) ac_try_echo=$ac_try;;
29229 esac
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231   (eval "$ac_link") 2>&5
29232   ac_status=$?
29233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29235   { (case "(($ac_try" in
29236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29237   *) ac_try_echo=$ac_try;;
29238 esac
29239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29240   (eval "$ac_try") 2>&5
29241   ac_status=$?
29242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243   (exit $ac_status); }; }; then
29244   ac_cv_sizeof_size_t=`cat conftest.val`
29245 else
29246   echo "$as_me: program exited with status $ac_status" >&5
29247 echo "$as_me: failed program was:" >&5
29248 sed 's/^/| /' conftest.$ac_ext >&5
29249
29250 ( exit $ac_status )
29251 if test "$ac_cv_type_size_t" = yes; then
29252      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29253 See \`config.log' for more details." >&5
29254 echo "$as_me: error: cannot compute sizeof (size_t)
29255 See \`config.log' for more details." >&2;}
29256    { (exit 77); exit 77; }; }
29257    else
29258      ac_cv_sizeof_size_t=0
29259    fi
29260 fi
29261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29262 fi
29263 rm -f conftest.val
29264 fi
29265 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29266 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29267
29268
29269
29270 cat >>confdefs.h <<_ACEOF
29271 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29272 _ACEOF
29273
29274
29275 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29276 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29277 if test "${ac_cv_type_socklen_t+set}" = set; then
29278   echo $ECHO_N "(cached) $ECHO_C" >&6
29279 else
29280   cat >conftest.$ac_ext <<_ACEOF
29281 /* confdefs.h.  */
29282 _ACEOF
29283 cat confdefs.h >>conftest.$ac_ext
29284 cat >>conftest.$ac_ext <<_ACEOF
29285 /* end confdefs.h.  */
29286 $ac_includes_default
29287 typedef socklen_t ac__type_new_;
29288 int
29289 main ()
29290 {
29291 if ((ac__type_new_ *) 0)
29292   return 0;
29293 if (sizeof (ac__type_new_))
29294   return 0;
29295   ;
29296   return 0;
29297 }
29298 _ACEOF
29299 rm -f conftest.$ac_objext
29300 if { (ac_try="$ac_compile"
29301 case "(($ac_try" in
29302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29303   *) ac_try_echo=$ac_try;;
29304 esac
29305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29306   (eval "$ac_compile") 2>conftest.er1
29307   ac_status=$?
29308   grep -v '^ *+' conftest.er1 >conftest.err
29309   rm -f conftest.er1
29310   cat conftest.err >&5
29311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312   (exit $ac_status); } && {
29313          test -z "$ac_c_werror_flag" ||
29314          test ! -s conftest.err
29315        } && test -s conftest.$ac_objext; then
29316   ac_cv_type_socklen_t=yes
29317 else
29318   echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29320
29321         ac_cv_type_socklen_t=no
29322 fi
29323
29324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29325 fi
29326 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29327 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29328
29329 # The cast to long int works around a bug in the HP C Compiler
29330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29332 # This bug is HP SR number 8606223364.
29333 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29334 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29335 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29336   echo $ECHO_N "(cached) $ECHO_C" >&6
29337 else
29338   if test "$cross_compiling" = yes; then
29339   # Depending upon the size, compute the lo and hi bounds.
29340 cat >conftest.$ac_ext <<_ACEOF
29341 /* confdefs.h.  */
29342 _ACEOF
29343 cat confdefs.h >>conftest.$ac_ext
29344 cat >>conftest.$ac_ext <<_ACEOF
29345 /* end confdefs.h.  */
29346 $ac_includes_default
29347    typedef socklen_t ac__type_sizeof_;
29348 int
29349 main ()
29350 {
29351 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29352 test_array [0] = 0
29353
29354   ;
29355   return 0;
29356 }
29357 _ACEOF
29358 rm -f conftest.$ac_objext
29359 if { (ac_try="$ac_compile"
29360 case "(($ac_try" in
29361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362   *) ac_try_echo=$ac_try;;
29363 esac
29364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365   (eval "$ac_compile") 2>conftest.er1
29366   ac_status=$?
29367   grep -v '^ *+' conftest.er1 >conftest.err
29368   rm -f conftest.er1
29369   cat conftest.err >&5
29370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371   (exit $ac_status); } && {
29372          test -z "$ac_c_werror_flag" ||
29373          test ! -s conftest.err
29374        } && test -s conftest.$ac_objext; then
29375   ac_lo=0 ac_mid=0
29376   while :; do
29377     cat >conftest.$ac_ext <<_ACEOF
29378 /* confdefs.h.  */
29379 _ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h.  */
29383 $ac_includes_default
29384    typedef socklen_t ac__type_sizeof_;
29385 int
29386 main ()
29387 {
29388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29389 test_array [0] = 0
29390
29391   ;
29392   return 0;
29393 }
29394 _ACEOF
29395 rm -f conftest.$ac_objext
29396 if { (ac_try="$ac_compile"
29397 case "(($ac_try" in
29398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29399   *) ac_try_echo=$ac_try;;
29400 esac
29401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29402   (eval "$ac_compile") 2>conftest.er1
29403   ac_status=$?
29404   grep -v '^ *+' conftest.er1 >conftest.err
29405   rm -f conftest.er1
29406   cat conftest.err >&5
29407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408   (exit $ac_status); } && {
29409          test -z "$ac_c_werror_flag" ||
29410          test ! -s conftest.err
29411        } && test -s conftest.$ac_objext; then
29412   ac_hi=$ac_mid; break
29413 else
29414   echo "$as_me: failed program was:" >&5
29415 sed 's/^/| /' conftest.$ac_ext >&5
29416
29417         ac_lo=`expr $ac_mid + 1`
29418                         if test $ac_lo -le $ac_mid; then
29419                           ac_lo= ac_hi=
29420                           break
29421                         fi
29422                         ac_mid=`expr 2 '*' $ac_mid + 1`
29423 fi
29424
29425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29426   done
29427 else
29428   echo "$as_me: failed program was:" >&5
29429 sed 's/^/| /' conftest.$ac_ext >&5
29430
29431         cat >conftest.$ac_ext <<_ACEOF
29432 /* confdefs.h.  */
29433 _ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h.  */
29437 $ac_includes_default
29438    typedef socklen_t ac__type_sizeof_;
29439 int
29440 main ()
29441 {
29442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29443 test_array [0] = 0
29444
29445   ;
29446   return 0;
29447 }
29448 _ACEOF
29449 rm -f conftest.$ac_objext
29450 if { (ac_try="$ac_compile"
29451 case "(($ac_try" in
29452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453   *) ac_try_echo=$ac_try;;
29454 esac
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456   (eval "$ac_compile") 2>conftest.er1
29457   ac_status=$?
29458   grep -v '^ *+' conftest.er1 >conftest.err
29459   rm -f conftest.er1
29460   cat conftest.err >&5
29461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462   (exit $ac_status); } && {
29463          test -z "$ac_c_werror_flag" ||
29464          test ! -s conftest.err
29465        } && test -s conftest.$ac_objext; then
29466   ac_hi=-1 ac_mid=-1
29467   while :; do
29468     cat >conftest.$ac_ext <<_ACEOF
29469 /* confdefs.h.  */
29470 _ACEOF
29471 cat confdefs.h >>conftest.$ac_ext
29472 cat >>conftest.$ac_ext <<_ACEOF
29473 /* end confdefs.h.  */
29474 $ac_includes_default
29475    typedef socklen_t ac__type_sizeof_;
29476 int
29477 main ()
29478 {
29479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29480 test_array [0] = 0
29481
29482   ;
29483   return 0;
29484 }
29485 _ACEOF
29486 rm -f conftest.$ac_objext
29487 if { (ac_try="$ac_compile"
29488 case "(($ac_try" in
29489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490   *) ac_try_echo=$ac_try;;
29491 esac
29492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493   (eval "$ac_compile") 2>conftest.er1
29494   ac_status=$?
29495   grep -v '^ *+' conftest.er1 >conftest.err
29496   rm -f conftest.er1
29497   cat conftest.err >&5
29498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499   (exit $ac_status); } && {
29500          test -z "$ac_c_werror_flag" ||
29501          test ! -s conftest.err
29502        } && test -s conftest.$ac_objext; then
29503   ac_lo=$ac_mid; break
29504 else
29505   echo "$as_me: failed program was:" >&5
29506 sed 's/^/| /' conftest.$ac_ext >&5
29507
29508         ac_hi=`expr '(' $ac_mid ')' - 1`
29509                         if test $ac_mid -le $ac_hi; then
29510                           ac_lo= ac_hi=
29511                           break
29512                         fi
29513                         ac_mid=`expr 2 '*' $ac_mid`
29514 fi
29515
29516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29517   done
29518 else
29519   echo "$as_me: failed program was:" >&5
29520 sed 's/^/| /' conftest.$ac_ext >&5
29521
29522         ac_lo= ac_hi=
29523 fi
29524
29525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29526 fi
29527
29528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29529 # Binary search between lo and hi bounds.
29530 while test "x$ac_lo" != "x$ac_hi"; do
29531   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29532   cat >conftest.$ac_ext <<_ACEOF
29533 /* confdefs.h.  */
29534 _ACEOF
29535 cat confdefs.h >>conftest.$ac_ext
29536 cat >>conftest.$ac_ext <<_ACEOF
29537 /* end confdefs.h.  */
29538 $ac_includes_default
29539    typedef socklen_t ac__type_sizeof_;
29540 int
29541 main ()
29542 {
29543 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29544 test_array [0] = 0
29545
29546   ;
29547   return 0;
29548 }
29549 _ACEOF
29550 rm -f conftest.$ac_objext
29551 if { (ac_try="$ac_compile"
29552 case "(($ac_try" in
29553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554   *) ac_try_echo=$ac_try;;
29555 esac
29556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557   (eval "$ac_compile") 2>conftest.er1
29558   ac_status=$?
29559   grep -v '^ *+' conftest.er1 >conftest.err
29560   rm -f conftest.er1
29561   cat conftest.err >&5
29562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563   (exit $ac_status); } && {
29564          test -z "$ac_c_werror_flag" ||
29565          test ! -s conftest.err
29566        } && test -s conftest.$ac_objext; then
29567   ac_hi=$ac_mid
29568 else
29569   echo "$as_me: failed program was:" >&5
29570 sed 's/^/| /' conftest.$ac_ext >&5
29571
29572         ac_lo=`expr '(' $ac_mid ')' + 1`
29573 fi
29574
29575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29576 done
29577 case $ac_lo in
29578 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29579 '') if test "$ac_cv_type_socklen_t" = yes; then
29580      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29581 See \`config.log' for more details." >&5
29582 echo "$as_me: error: cannot compute sizeof (socklen_t)
29583 See \`config.log' for more details." >&2;}
29584    { (exit 77); exit 77; }; }
29585    else
29586      ac_cv_sizeof_socklen_t=0
29587    fi ;;
29588 esac
29589 else
29590   cat >conftest.$ac_ext <<_ACEOF
29591 /* confdefs.h.  */
29592 _ACEOF
29593 cat confdefs.h >>conftest.$ac_ext
29594 cat >>conftest.$ac_ext <<_ACEOF
29595 /* end confdefs.h.  */
29596 $ac_includes_default
29597    typedef socklen_t ac__type_sizeof_;
29598 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29599 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29600 #include <stdio.h>
29601 #include <stdlib.h>
29602 int
29603 main ()
29604 {
29605
29606   FILE *f = fopen ("conftest.val", "w");
29607   if (! f)
29608     return 1;
29609   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29610     {
29611       long int i = longval ();
29612       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29613         return 1;
29614       fprintf (f, "%ld\n", i);
29615     }
29616   else
29617     {
29618       unsigned long int i = ulongval ();
29619       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29620         return 1;
29621       fprintf (f, "%lu\n", i);
29622     }
29623   return ferror (f) || fclose (f) != 0;
29624
29625   ;
29626   return 0;
29627 }
29628 _ACEOF
29629 rm -f conftest$ac_exeext
29630 if { (ac_try="$ac_link"
29631 case "(($ac_try" in
29632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29633   *) ac_try_echo=$ac_try;;
29634 esac
29635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29636   (eval "$ac_link") 2>&5
29637   ac_status=$?
29638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29640   { (case "(($ac_try" in
29641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642   *) ac_try_echo=$ac_try;;
29643 esac
29644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645   (eval "$ac_try") 2>&5
29646   ac_status=$?
29647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648   (exit $ac_status); }; }; then
29649   ac_cv_sizeof_socklen_t=`cat conftest.val`
29650 else
29651   echo "$as_me: program exited with status $ac_status" >&5
29652 echo "$as_me: failed program was:" >&5
29653 sed 's/^/| /' conftest.$ac_ext >&5
29654
29655 ( exit $ac_status )
29656 if test "$ac_cv_type_socklen_t" = yes; then
29657      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29658 See \`config.log' for more details." >&5
29659 echo "$as_me: error: cannot compute sizeof (socklen_t)
29660 See \`config.log' for more details." >&2;}
29661    { (exit 77); exit 77; }; }
29662    else
29663      ac_cv_sizeof_socklen_t=0
29664    fi
29665 fi
29666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29667 fi
29668 rm -f conftest.val
29669 fi
29670 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29671 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29672
29673
29674
29675 cat >>confdefs.h <<_ACEOF
29676 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29677 _ACEOF
29678
29679
29680
29681
29682
29683 cat >>confdefs.h <<_ACEOF
29684 #define NFS_STATEDIR "$statedir"
29685 _ACEOF
29686
29687
29688 if test "x$cross_compiling" = "xno"; then
29689         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29690         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29691         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29692         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29693 else
29694         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29695         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29696         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29697         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29698 fi
29699
29700
29701
29702
29703
29704
29705
29706
29707
29708
29709
29710 case $host in
29711   alpha*)
29712     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
29713   *)
29714     ARCHFLAGS="" ;;
29715 esac
29716
29717 my_am_cflags="-Wall $ARCHFLAGS -pipe"
29718
29719 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29720
29721 AM_CFLAGS="$my_am_cflags"
29722
29723
29724 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29725 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29726
29727
29728 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 tools/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/showmount/Makefile utils/statd/Makefile"
29729
29730 cat >confcache <<\_ACEOF
29731 # This file is a shell script that caches the results of configure
29732 # tests run on this system so they can be shared between configure
29733 # scripts and configure runs, see configure's option --config-cache.
29734 # It is not useful on other systems.  If it contains results you don't
29735 # want to keep, you may remove or edit it.
29736 #
29737 # config.status only pays attention to the cache file if you give it
29738 # the --recheck option to rerun configure.
29739 #
29740 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29741 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29742 # following values.
29743
29744 _ACEOF
29745
29746 # The following way of writing the cache mishandles newlines in values,
29747 # but we know of no workaround that is simple, portable, and efficient.
29748 # So, we kill variables containing newlines.
29749 # Ultrix sh set writes to stderr and can't be redirected directly,
29750 # and sets the high bit in the cache file unless we assign to the vars.
29751 (
29752   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29753     eval ac_val=\$$ac_var
29754     case $ac_val in #(
29755     *${as_nl}*)
29756       case $ac_var in #(
29757       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29758 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29759       esac
29760       case $ac_var in #(
29761       _ | IFS | as_nl) ;; #(
29762       *) $as_unset $ac_var ;;
29763       esac ;;
29764     esac
29765   done
29766
29767   (set) 2>&1 |
29768     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29769     *${as_nl}ac_space=\ *)
29770       # `set' does not quote correctly, so add quotes (double-quote
29771       # substitution turns \\\\ into \\, and sed turns \\ into \).
29772       sed -n \
29773         "s/'/'\\\\''/g;
29774           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29775       ;; #(
29776     *)
29777       # `set' quotes correctly as required by POSIX, so do not add quotes.
29778       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29779       ;;
29780     esac |
29781     sort
29782 ) |
29783   sed '
29784      /^ac_cv_env_/b end
29785      t clear
29786      :clear
29787      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29788      t end
29789      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29790      :end' >>confcache
29791 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29792   if test -w "$cache_file"; then
29793     test "x$cache_file" != "x/dev/null" &&
29794       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29795 echo "$as_me: updating cache $cache_file" >&6;}
29796     cat confcache >$cache_file
29797   else
29798     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29799 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29800   fi
29801 fi
29802 rm -f confcache
29803
29804 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29805 # Let make expand exec_prefix.
29806 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29807
29808 DEFS=-DHAVE_CONFIG_H
29809
29810 ac_libobjs=
29811 ac_ltlibobjs=
29812 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29813   # 1. Remove the extension, and $U if already installed.
29814   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29815   ac_i=`echo "$ac_i" | sed "$ac_script"`
29816   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29817   #    will be set to the directory where LIBOBJS objects are built.
29818   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29819   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29820 done
29821 LIBOBJS=$ac_libobjs
29822
29823 LTLIBOBJS=$ac_ltlibobjs
29824
29825
29826 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29827   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29828 Usually this means the macro was only invoked conditionally." >&5
29829 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29830 Usually this means the macro was only invoked conditionally." >&2;}
29831    { (exit 1); exit 1; }; }
29832 fi
29833 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
29834   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
29835 Usually this means the macro was only invoked conditionally." >&5
29836 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
29837 Usually this means the macro was only invoked conditionally." >&2;}
29838    { (exit 1); exit 1; }; }
29839 fi
29840 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
29841   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
29842 Usually this means the macro was only invoked conditionally." >&5
29843 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
29844 Usually this means the macro was only invoked conditionally." >&2;}
29845    { (exit 1); exit 1; }; }
29846 fi
29847 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
29848   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
29849 Usually this means the macro was only invoked conditionally." >&5
29850 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
29851 Usually this means the macro was only invoked conditionally." >&2;}
29852    { (exit 1); exit 1; }; }
29853 fi
29854 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
29855   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
29856 Usually this means the macro was only invoked conditionally." >&5
29857 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
29858 Usually this means the macro was only invoked conditionally." >&2;}
29859    { (exit 1); exit 1; }; }
29860 fi
29861 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29862   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29863 Usually this means the macro was only invoked conditionally." >&5
29864 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29865 Usually this means the macro was only invoked conditionally." >&2;}
29866    { (exit 1); exit 1; }; }
29867 fi
29868 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29869   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29870 Usually this means the macro was only invoked conditionally." >&5
29871 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29872 Usually this means the macro was only invoked conditionally." >&2;}
29873    { (exit 1); exit 1; }; }
29874 fi
29875 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29876   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29877 Usually this means the macro was only invoked conditionally." >&5
29878 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29879 Usually this means the macro was only invoked conditionally." >&2;}
29880    { (exit 1); exit 1; }; }
29881 fi
29882 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29883   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29884 Usually this means the macro was only invoked conditionally." >&5
29885 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29886 Usually this means the macro was only invoked conditionally." >&2;}
29887    { (exit 1); exit 1; }; }
29888 fi
29889
29890 : ${CONFIG_STATUS=./config.status}
29891 ac_clean_files_save=$ac_clean_files
29892 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29893 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29894 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29895 cat >$CONFIG_STATUS <<_ACEOF
29896 #! $SHELL
29897 # Generated by $as_me.
29898 # Run this file to recreate the current configuration.
29899 # Compiler output produced by configure, useful for debugging
29900 # configure, is in config.log if it exists.
29901
29902 debug=false
29903 ac_cs_recheck=false
29904 ac_cs_silent=false
29905 SHELL=\${CONFIG_SHELL-$SHELL}
29906 _ACEOF
29907
29908 cat >>$CONFIG_STATUS <<\_ACEOF
29909 ## --------------------- ##
29910 ## M4sh Initialization.  ##
29911 ## --------------------- ##
29912
29913 # Be more Bourne compatible
29914 DUALCASE=1; export DUALCASE # for MKS sh
29915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29916   emulate sh
29917   NULLCMD=:
29918   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29919   # is contrary to our usage.  Disable this feature.
29920   alias -g '${1+"$@"}'='"$@"'
29921   setopt NO_GLOB_SUBST
29922 else
29923   case `(set -o) 2>/dev/null` in
29924   *posix*) set -o posix ;;
29925 esac
29926
29927 fi
29928
29929
29930
29931
29932 # PATH needs CR
29933 # Avoid depending upon Character Ranges.
29934 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29935 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29936 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29937 as_cr_digits='0123456789'
29938 as_cr_alnum=$as_cr_Letters$as_cr_digits
29939
29940 # The user is always right.
29941 if test "${PATH_SEPARATOR+set}" != set; then
29942   echo "#! /bin/sh" >conf$$.sh
29943   echo  "exit 0"   >>conf$$.sh
29944   chmod +x conf$$.sh
29945   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29946     PATH_SEPARATOR=';'
29947   else
29948     PATH_SEPARATOR=:
29949   fi
29950   rm -f conf$$.sh
29951 fi
29952
29953 # Support unset when possible.
29954 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29955   as_unset=unset
29956 else
29957   as_unset=false
29958 fi
29959
29960
29961 # IFS
29962 # We need space, tab and new line, in precisely that order.  Quoting is
29963 # there to prevent editors from complaining about space-tab.
29964 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29965 # splitting by setting IFS to empty value.)
29966 as_nl='
29967 '
29968 IFS=" ""        $as_nl"
29969
29970 # Find who we are.  Look in the path if we contain no directory separator.
29971 case $0 in
29972   *[\\/]* ) as_myself=$0 ;;
29973   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29974 for as_dir in $PATH
29975 do
29976   IFS=$as_save_IFS
29977   test -z "$as_dir" && as_dir=.
29978   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29979 done
29980 IFS=$as_save_IFS
29981
29982      ;;
29983 esac
29984 # We did not find ourselves, most probably we were run as `sh COMMAND'
29985 # in which case we are not to be found in the path.
29986 if test "x$as_myself" = x; then
29987   as_myself=$0
29988 fi
29989 if test ! -f "$as_myself"; then
29990   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29991   { (exit 1); exit 1; }
29992 fi
29993
29994 # Work around bugs in pre-3.0 UWIN ksh.
29995 for as_var in ENV MAIL MAILPATH
29996 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29997 done
29998 PS1='$ '
29999 PS2='> '
30000 PS4='+ '
30001
30002 # NLS nuisances.
30003 for as_var in \
30004   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30005   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30006   LC_TELEPHONE LC_TIME
30007 do
30008   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30009     eval $as_var=C; export $as_var
30010   else
30011     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30012   fi
30013 done
30014
30015 # Required to use basename.
30016 if expr a : '\(a\)' >/dev/null 2>&1 &&
30017    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30018   as_expr=expr
30019 else
30020   as_expr=false
30021 fi
30022
30023 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30024   as_basename=basename
30025 else
30026   as_basename=false
30027 fi
30028
30029
30030 # Name of the executable.
30031 as_me=`$as_basename -- "$0" ||
30032 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30033          X"$0" : 'X\(//\)$' \| \
30034          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30035 echo X/"$0" |
30036     sed '/^.*\/\([^/][^/]*\)\/*$/{
30037             s//\1/
30038             q
30039           }
30040           /^X\/\(\/\/\)$/{
30041             s//\1/
30042             q
30043           }
30044           /^X\/\(\/\).*/{
30045             s//\1/
30046             q
30047           }
30048           s/.*/./; q'`
30049
30050 # CDPATH.
30051 $as_unset CDPATH
30052
30053
30054
30055   as_lineno_1=$LINENO
30056   as_lineno_2=$LINENO
30057   test "x$as_lineno_1" != "x$as_lineno_2" &&
30058   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30059
30060   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30061   # uniformly replaced by the line number.  The first 'sed' inserts a
30062   # line-number line after each line using $LINENO; the second 'sed'
30063   # does the real work.  The second script uses 'N' to pair each
30064   # line-number line with the line containing $LINENO, and appends
30065   # trailing '-' during substitution so that $LINENO is not a special
30066   # case at line end.
30067   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30068   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30069   # E. McMahon (1931-1989) for sed's syntax.  :-)
30070   sed -n '
30071     p
30072     /[$]LINENO/=
30073   ' <$as_myself |
30074     sed '
30075       s/[$]LINENO.*/&-/
30076       t lineno
30077       b
30078       :lineno
30079       N
30080       :loop
30081       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30082       t loop
30083       s/-\n.*//
30084     ' >$as_me.lineno &&
30085   chmod +x "$as_me.lineno" ||
30086     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30087    { (exit 1); exit 1; }; }
30088
30089   # Don't try to exec as it changes $[0], causing all sort of problems
30090   # (the dirname of $[0] is not the place where we might find the
30091   # original and so on.  Autoconf is especially sensitive to this).
30092   . "./$as_me.lineno"
30093   # Exit status is that of the last command.
30094   exit
30095 }
30096
30097
30098 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30099   as_dirname=dirname
30100 else
30101   as_dirname=false
30102 fi
30103
30104 ECHO_C= ECHO_N= ECHO_T=
30105 case `echo -n x` in
30106 -n*)
30107   case `echo 'x\c'` in
30108   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30109   *)   ECHO_C='\c';;
30110   esac;;
30111 *)
30112   ECHO_N='-n';;
30113 esac
30114
30115 if expr a : '\(a\)' >/dev/null 2>&1 &&
30116    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30117   as_expr=expr
30118 else
30119   as_expr=false
30120 fi
30121
30122 rm -f conf$$ conf$$.exe conf$$.file
30123 if test -d conf$$.dir; then
30124   rm -f conf$$.dir/conf$$.file
30125 else
30126   rm -f conf$$.dir
30127   mkdir conf$$.dir
30128 fi
30129 echo >conf$$.file
30130 if ln -s conf$$.file conf$$ 2>/dev/null; then
30131   as_ln_s='ln -s'
30132   # ... but there are two gotchas:
30133   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30134   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30135   # In both cases, we have to default to `cp -p'.
30136   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30137     as_ln_s='cp -p'
30138 elif ln conf$$.file conf$$ 2>/dev/null; then
30139   as_ln_s=ln
30140 else
30141   as_ln_s='cp -p'
30142 fi
30143 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30144 rmdir conf$$.dir 2>/dev/null
30145
30146 if mkdir -p . 2>/dev/null; then
30147   as_mkdir_p=:
30148 else
30149   test -d ./-p && rmdir ./-p
30150   as_mkdir_p=false
30151 fi
30152
30153 if test -x / >/dev/null 2>&1; then
30154   as_test_x='test -x'
30155 else
30156   if ls -dL / >/dev/null 2>&1; then
30157     as_ls_L_option=L
30158   else
30159     as_ls_L_option=
30160   fi
30161   as_test_x='
30162     eval sh -c '\''
30163       if test -d "$1"; then
30164         test -d "$1/.";
30165       else
30166         case $1 in
30167         -*)set "./$1";;
30168         esac;
30169         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30170         ???[sx]*):;;*)false;;esac;fi
30171     '\'' sh
30172   '
30173 fi
30174 as_executable_p=$as_test_x
30175
30176 # Sed expression to map a string onto a valid CPP name.
30177 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30178
30179 # Sed expression to map a string onto a valid variable name.
30180 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30181
30182
30183 exec 6>&1
30184
30185 # Save the log message, to keep $[0] and so on meaningful, and to
30186 # report actual input values of CONFIG_FILES etc. instead of their
30187 # values after options handling.
30188 ac_log="
30189 This file was extended by linux nfs-utils $as_me 1.1.0, which was
30190 generated by GNU Autoconf 2.61.  Invocation command line was
30191
30192   CONFIG_FILES    = $CONFIG_FILES
30193   CONFIG_HEADERS  = $CONFIG_HEADERS
30194   CONFIG_LINKS    = $CONFIG_LINKS
30195   CONFIG_COMMANDS = $CONFIG_COMMANDS
30196   $ $0 $@
30197
30198 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30199 "
30200
30201 _ACEOF
30202
30203 cat >>$CONFIG_STATUS <<_ACEOF
30204 # Files that config.status was made for.
30205 config_files="$ac_config_files"
30206 config_headers="$ac_config_headers"
30207 config_commands="$ac_config_commands"
30208
30209 _ACEOF
30210
30211 cat >>$CONFIG_STATUS <<\_ACEOF
30212 ac_cs_usage="\
30213 \`$as_me' instantiates files from templates according to the
30214 current configuration.
30215
30216 Usage: $0 [OPTIONS] [FILE]...
30217
30218   -h, --help       print this help, then exit
30219   -V, --version    print version number and configuration settings, then exit
30220   -q, --quiet      do not print progress messages
30221   -d, --debug      don't remove temporary files
30222       --recheck    update $as_me by reconfiguring in the same conditions
30223   --file=FILE[:TEMPLATE]
30224                    instantiate the configuration file FILE
30225   --header=FILE[:TEMPLATE]
30226                    instantiate the configuration header FILE
30227
30228 Configuration files:
30229 $config_files
30230
30231 Configuration headers:
30232 $config_headers
30233
30234 Configuration commands:
30235 $config_commands
30236
30237 Report bugs to <bug-autoconf@gnu.org>."
30238
30239 _ACEOF
30240 cat >>$CONFIG_STATUS <<_ACEOF
30241 ac_cs_version="\\
30242 linux nfs-utils config.status 1.1.0
30243 configured by $0, generated by GNU Autoconf 2.61,
30244   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30245
30246 Copyright (C) 2006 Free Software Foundation, Inc.
30247 This config.status script is free software; the Free Software Foundation
30248 gives unlimited permission to copy, distribute and modify it."
30249
30250 ac_pwd='$ac_pwd'
30251 srcdir='$srcdir'
30252 INSTALL='$INSTALL'
30253 MKDIR_P='$MKDIR_P'
30254 _ACEOF
30255
30256 cat >>$CONFIG_STATUS <<\_ACEOF
30257 # If no file are specified by the user, then we need to provide default
30258 # value.  By we need to know if files were specified by the user.
30259 ac_need_defaults=:
30260 while test $# != 0
30261 do
30262   case $1 in
30263   --*=*)
30264     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30265     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30266     ac_shift=:
30267     ;;
30268   *)
30269     ac_option=$1
30270     ac_optarg=$2
30271     ac_shift=shift
30272     ;;
30273   esac
30274
30275   case $ac_option in
30276   # Handling of the options.
30277   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30278     ac_cs_recheck=: ;;
30279   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30280     echo "$ac_cs_version"; exit ;;
30281   --debug | --debu | --deb | --de | --d | -d )
30282     debug=: ;;
30283   --file | --fil | --fi | --f )
30284     $ac_shift
30285     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30286     ac_need_defaults=false;;
30287   --header | --heade | --head | --hea )
30288     $ac_shift
30289     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30290     ac_need_defaults=false;;
30291   --he | --h)
30292     # Conflict between --help and --header
30293     { echo "$as_me: error: ambiguous option: $1
30294 Try \`$0 --help' for more information." >&2
30295    { (exit 1); exit 1; }; };;
30296   --help | --hel | -h )
30297     echo "$ac_cs_usage"; exit ;;
30298   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30299   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30300     ac_cs_silent=: ;;
30301
30302   # This is an error.
30303   -*) { echo "$as_me: error: unrecognized option: $1
30304 Try \`$0 --help' for more information." >&2
30305    { (exit 1); exit 1; }; } ;;
30306
30307   *) ac_config_targets="$ac_config_targets $1"
30308      ac_need_defaults=false ;;
30309
30310   esac
30311   shift
30312 done
30313
30314 ac_configure_extra_args=
30315
30316 if $ac_cs_silent; then
30317   exec 6>/dev/null
30318   ac_configure_extra_args="$ac_configure_extra_args --silent"
30319 fi
30320
30321 _ACEOF
30322 cat >>$CONFIG_STATUS <<_ACEOF
30323 if \$ac_cs_recheck; then
30324   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30325   CONFIG_SHELL=$SHELL
30326   export CONFIG_SHELL
30327   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30328 fi
30329
30330 _ACEOF
30331 cat >>$CONFIG_STATUS <<\_ACEOF
30332 exec 5>>config.log
30333 {
30334   echo
30335   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30336 ## Running $as_me. ##
30337 _ASBOX
30338   echo "$ac_log"
30339 } >&5
30340
30341 _ACEOF
30342 cat >>$CONFIG_STATUS <<_ACEOF
30343 #
30344 # INIT-COMMANDS
30345 #
30346 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30347
30348 _ACEOF
30349
30350 cat >>$CONFIG_STATUS <<\_ACEOF
30351
30352 # Handling of arguments.
30353 for ac_config_target in $ac_config_targets
30354 do
30355   case $ac_config_target in
30356     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30357     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30358     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30359     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30360     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30361     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30362     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30363     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30364     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30365     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30366     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30367     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30368     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30369     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30370     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30371     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30372     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30373     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30374     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30375     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30376     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30377     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30378     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30379     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30380     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30381     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30382     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30383     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30384
30385   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30386 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30387    { (exit 1); exit 1; }; };;
30388   esac
30389 done
30390
30391
30392 # If the user did not use the arguments to specify the items to instantiate,
30393 # then the envvar interface is used.  Set only those that are not.
30394 # We use the long form for the default assignment because of an extremely
30395 # bizarre bug on SunOS 4.1.3.
30396 if $ac_need_defaults; then
30397   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30398   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30399   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30400 fi
30401
30402 # Have a temporary directory for convenience.  Make it in the build tree
30403 # simply because there is no reason against having it here, and in addition,
30404 # creating and moving files from /tmp can sometimes cause problems.
30405 # Hook for its removal unless debugging.
30406 # Note that there is a small window in which the directory will not be cleaned:
30407 # after its creation but before its name has been assigned to `$tmp'.
30408 $debug ||
30409 {
30410   tmp=
30411   trap 'exit_status=$?
30412   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30413 ' 0
30414   trap '{ (exit 1); exit 1; }' 1 2 13 15
30415 }
30416 # Create a (secure) tmp directory for tmp files.
30417
30418 {
30419   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30420   test -n "$tmp" && test -d "$tmp"
30421 }  ||
30422 {
30423   tmp=./conf$$-$RANDOM
30424   (umask 077 && mkdir "$tmp")
30425 } ||
30426 {
30427    echo "$me: cannot create a temporary directory in ." >&2
30428    { (exit 1); exit 1; }
30429 }
30430
30431 #
30432 # Set up the sed scripts for CONFIG_FILES section.
30433 #
30434
30435 # No need to generate the scripts if there are no CONFIG_FILES.
30436 # This happens for instance when ./config.status config.h
30437 if test -n "$CONFIG_FILES"; then
30438
30439 _ACEOF
30440
30441
30442
30443 ac_delim='%!_!# '
30444 for ac_last_try in false false false false false :; do
30445   cat >conf$$subs.sed <<_ACEOF
30446 SHELL!$SHELL$ac_delim
30447 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30448 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30449 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30450 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30451 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30452 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30453 exec_prefix!$exec_prefix$ac_delim
30454 prefix!$prefix$ac_delim
30455 program_transform_name!$program_transform_name$ac_delim
30456 bindir!$bindir$ac_delim
30457 sbindir!$sbindir$ac_delim
30458 libexecdir!$libexecdir$ac_delim
30459 datarootdir!$datarootdir$ac_delim
30460 datadir!$datadir$ac_delim
30461 sysconfdir!$sysconfdir$ac_delim
30462 sharedstatedir!$sharedstatedir$ac_delim
30463 localstatedir!$localstatedir$ac_delim
30464 includedir!$includedir$ac_delim
30465 oldincludedir!$oldincludedir$ac_delim
30466 docdir!$docdir$ac_delim
30467 infodir!$infodir$ac_delim
30468 htmldir!$htmldir$ac_delim
30469 dvidir!$dvidir$ac_delim
30470 pdfdir!$pdfdir$ac_delim
30471 psdir!$psdir$ac_delim
30472 libdir!$libdir$ac_delim
30473 localedir!$localedir$ac_delim
30474 mandir!$mandir$ac_delim
30475 DEFS!$DEFS$ac_delim
30476 ECHO_C!$ECHO_C$ac_delim
30477 ECHO_N!$ECHO_N$ac_delim
30478 ECHO_T!$ECHO_T$ac_delim
30479 LIBS!$LIBS$ac_delim
30480 build_alias!$build_alias$ac_delim
30481 host_alias!$host_alias$ac_delim
30482 target_alias!$target_alias$ac_delim
30483 build!$build$ac_delim
30484 build_cpu!$build_cpu$ac_delim
30485 build_vendor!$build_vendor$ac_delim
30486 build_os!$build_os$ac_delim
30487 host!$host$ac_delim
30488 host_cpu!$host_cpu$ac_delim
30489 host_vendor!$host_vendor$ac_delim
30490 host_os!$host_os$ac_delim
30491 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30492 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30493 INSTALL_DATA!$INSTALL_DATA$ac_delim
30494 am__isrc!$am__isrc$ac_delim
30495 CYGPATH_W!$CYGPATH_W$ac_delim
30496 PACKAGE!$PACKAGE$ac_delim
30497 VERSION!$VERSION$ac_delim
30498 ACLOCAL!$ACLOCAL$ac_delim
30499 AUTOCONF!$AUTOCONF$ac_delim
30500 AUTOMAKE!$AUTOMAKE$ac_delim
30501 AUTOHEADER!$AUTOHEADER$ac_delim
30502 MAKEINFO!$MAKEINFO$ac_delim
30503 install_sh!$install_sh$ac_delim
30504 STRIP!$STRIP$ac_delim
30505 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30506 mkdir_p!$mkdir_p$ac_delim
30507 AWK!$AWK$ac_delim
30508 SET_MAKE!$SET_MAKE$ac_delim
30509 am__leading_dot!$am__leading_dot$ac_delim
30510 AMTAR!$AMTAR$ac_delim
30511 am__tar!$am__tar$ac_delim
30512 am__untar!$am__untar$ac_delim
30513 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30514 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30515 MAINT!$MAINT$ac_delim
30516 RELEASE!$RELEASE$ac_delim
30517 statedir!$statedir$ac_delim
30518 statduser!$statduser$ac_delim
30519 startstatd!$startstatd$ac_delim
30520 enable_nfsv3!$enable_nfsv3$ac_delim
30521 IDMAPD!$IDMAPD$ac_delim
30522 enable_nfsv4!$enable_nfsv4$ac_delim
30523 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30524 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30525 GSSD!$GSSD$ac_delim
30526 SVCGSSD!$SVCGSSD$ac_delim
30527 enable_gss!$enable_gss$ac_delim
30528 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30529 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30530 kprefix!$kprefix$ac_delim
30531 secure_statd!$secure_statd$ac_delim
30532 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30533 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30534 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30535 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30536 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30537 CC!$CC$ac_delim
30538 CFLAGS!$CFLAGS$ac_delim
30539 LDFLAGS!$LDFLAGS$ac_delim
30540 CPPFLAGS!$CPPFLAGS$ac_delim
30541 ac_ct_CC!$ac_ct_CC$ac_delim
30542 EXEEXT!$EXEEXT$ac_delim
30543 _ACEOF
30544
30545   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30546     break
30547   elif $ac_last_try; then
30548     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30549 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30550    { (exit 1); exit 1; }; }
30551   else
30552     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30553   fi
30554 done
30555
30556 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30557 if test -n "$ac_eof"; then
30558   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30559   ac_eof=`expr $ac_eof + 1`
30560 fi
30561
30562 cat >>$CONFIG_STATUS <<_ACEOF
30563 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30565 _ACEOF
30566 sed '
30567 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30568 s/^/s,@/; s/!/@,|#_!!_#|/
30569 :n
30570 t n
30571 s/'"$ac_delim"'$/,g/; t
30572 s/$/\\/; p
30573 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30574 ' >>$CONFIG_STATUS <conf$$subs.sed
30575 rm -f conf$$subs.sed
30576 cat >>$CONFIG_STATUS <<_ACEOF
30577 CEOF$ac_eof
30578 _ACEOF
30579
30580
30581 ac_delim='%!_!# '
30582 for ac_last_try in false false false false false :; do
30583   cat >conf$$subs.sed <<_ACEOF
30584 OBJEXT!$OBJEXT$ac_delim
30585 DEPDIR!$DEPDIR$ac_delim
30586 am__include!$am__include$ac_delim
30587 am__quote!$am__quote$ac_delim
30588 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30589 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30590 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30591 CCDEPMODE!$CCDEPMODE$ac_delim
30592 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30593 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30594 LIBWRAP!$LIBWRAP$ac_delim
30595 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30596 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30597 CXX!$CXX$ac_delim
30598 CXXFLAGS!$CXXFLAGS$ac_delim
30599 ac_ct_CXX!$ac_ct_CXX$ac_delim
30600 CXXDEPMODE!$CXXDEPMODE$ac_delim
30601 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30602 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30603 CPP!$CPP$ac_delim
30604 LN_S!$LN_S$ac_delim
30605 GREP!$GREP$ac_delim
30606 EGREP!$EGREP$ac_delim
30607 ECHO!$ECHO$ac_delim
30608 AR!$AR$ac_delim
30609 RANLIB!$RANLIB$ac_delim
30610 CXXCPP!$CXXCPP$ac_delim
30611 F77!$F77$ac_delim
30612 FFLAGS!$FFLAGS$ac_delim
30613 ac_ct_F77!$ac_ct_F77$ac_delim
30614 LIBTOOL!$LIBTOOL$ac_delim
30615 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30616 LD!$LD$ac_delim
30617 LIBNSL!$LIBNSL$ac_delim
30618 PKG_CONFIG!$PKG_CONFIG$ac_delim
30619 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30620 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30621 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
30622 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
30623 LIBSOCKET!$LIBSOCKET$ac_delim
30624 LIBCRYPT!$LIBCRYPT$ac_delim
30625 LIBBSD!$LIBBSD$ac_delim
30626 LIBBLKID!$LIBBLKID$ac_delim
30627 KRBDIR!$KRBDIR$ac_delim
30628 KRBLIBS!$KRBLIBS$ac_delim
30629 KRBCFLAGS!$KRBCFLAGS$ac_delim
30630 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30631 K5VERS!$K5VERS$ac_delim
30632 ALLOCA!$ALLOCA$ac_delim
30633 LIBOBJS!$LIBOBJS$ac_delim
30634 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30635 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30636 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30637 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30638 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30639 AM_CFLAGS!$AM_CFLAGS$ac_delim
30640 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30641 LTLIBOBJS!$LTLIBOBJS$ac_delim
30642 _ACEOF
30643
30644   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
30645     break
30646   elif $ac_last_try; then
30647     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30648 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30649    { (exit 1); exit 1; }; }
30650   else
30651     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30652   fi
30653 done
30654
30655 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30656 if test -n "$ac_eof"; then
30657   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30658   ac_eof=`expr $ac_eof + 1`
30659 fi
30660
30661 cat >>$CONFIG_STATUS <<_ACEOF
30662 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30664 _ACEOF
30665 sed '
30666 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30667 s/^/s,@/; s/!/@,|#_!!_#|/
30668 :n
30669 t n
30670 s/'"$ac_delim"'$/,g/; t
30671 s/$/\\/; p
30672 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30673 ' >>$CONFIG_STATUS <conf$$subs.sed
30674 rm -f conf$$subs.sed
30675 cat >>$CONFIG_STATUS <<_ACEOF
30676 :end
30677 s/|#_!!_#|//g
30678 CEOF$ac_eof
30679 _ACEOF
30680
30681
30682 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30683 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30684 # trailing colons and then remove the whole line if VPATH becomes empty
30685 # (actually we leave an empty line to preserve line numbers).
30686 if test "x$srcdir" = x.; then
30687   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30688 s/:*\$(srcdir):*/:/
30689 s/:*\${srcdir}:*/:/
30690 s/:*@srcdir@:*/:/
30691 s/^\([^=]*=[     ]*\):*/\1/
30692 s/:*$//
30693 s/^[^=]*=[       ]*$//
30694 }'
30695 fi
30696
30697 cat >>$CONFIG_STATUS <<\_ACEOF
30698 fi # test -n "$CONFIG_FILES"
30699
30700
30701 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30702 do
30703   case $ac_tag in
30704   :[FHLC]) ac_mode=$ac_tag; continue;;
30705   esac
30706   case $ac_mode$ac_tag in
30707   :[FHL]*:*);;
30708   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30709 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30710    { (exit 1); exit 1; }; };;
30711   :[FH]-) ac_tag=-:-;;
30712   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30713   esac
30714   ac_save_IFS=$IFS
30715   IFS=:
30716   set x $ac_tag
30717   IFS=$ac_save_IFS
30718   shift
30719   ac_file=$1
30720   shift
30721
30722   case $ac_mode in
30723   :L) ac_source=$1;;
30724   :[FH])
30725     ac_file_inputs=
30726     for ac_f
30727     do
30728       case $ac_f in
30729       -) ac_f="$tmp/stdin";;
30730       *) # Look for the file first in the build tree, then in the source tree
30731          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30732          # because $ac_f cannot contain `:'.
30733          test -f "$ac_f" ||
30734            case $ac_f in
30735            [\\/$]*) false;;
30736            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30737            esac ||
30738            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30739 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30740    { (exit 1); exit 1; }; };;
30741       esac
30742       ac_file_inputs="$ac_file_inputs $ac_f"
30743     done
30744
30745     # Let's still pretend it is `configure' which instantiates (i.e., don't
30746     # use $as_me), people would be surprised to read:
30747     #    /* config.h.  Generated by config.status.  */
30748     configure_input="Generated from "`IFS=:
30749           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30750     if test x"$ac_file" != x-; then
30751       configure_input="$ac_file.  $configure_input"
30752       { echo "$as_me:$LINENO: creating $ac_file" >&5
30753 echo "$as_me: creating $ac_file" >&6;}
30754     fi
30755
30756     case $ac_tag in
30757     *:-:* | *:-) cat >"$tmp/stdin";;
30758     esac
30759     ;;
30760   esac
30761
30762   ac_dir=`$as_dirname -- "$ac_file" ||
30763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30764          X"$ac_file" : 'X\(//\)[^/]' \| \
30765          X"$ac_file" : 'X\(//\)$' \| \
30766          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30767 echo X"$ac_file" |
30768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30769             s//\1/
30770             q
30771           }
30772           /^X\(\/\/\)[^/].*/{
30773             s//\1/
30774             q
30775           }
30776           /^X\(\/\/\)$/{
30777             s//\1/
30778             q
30779           }
30780           /^X\(\/\).*/{
30781             s//\1/
30782             q
30783           }
30784           s/.*/./; q'`
30785   { as_dir="$ac_dir"
30786   case $as_dir in #(
30787   -*) as_dir=./$as_dir;;
30788   esac
30789   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30790     as_dirs=
30791     while :; do
30792       case $as_dir in #(
30793       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30794       *) as_qdir=$as_dir;;
30795       esac
30796       as_dirs="'$as_qdir' $as_dirs"
30797       as_dir=`$as_dirname -- "$as_dir" ||
30798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30799          X"$as_dir" : 'X\(//\)[^/]' \| \
30800          X"$as_dir" : 'X\(//\)$' \| \
30801          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30802 echo X"$as_dir" |
30803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30804             s//\1/
30805             q
30806           }
30807           /^X\(\/\/\)[^/].*/{
30808             s//\1/
30809             q
30810           }
30811           /^X\(\/\/\)$/{
30812             s//\1/
30813             q
30814           }
30815           /^X\(\/\).*/{
30816             s//\1/
30817             q
30818           }
30819           s/.*/./; q'`
30820       test -d "$as_dir" && break
30821     done
30822     test -z "$as_dirs" || eval "mkdir $as_dirs"
30823   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30824 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30825    { (exit 1); exit 1; }; }; }
30826   ac_builddir=.
30827
30828 case "$ac_dir" in
30829 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30830 *)
30831   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30832   # A ".." for each directory in $ac_dir_suffix.
30833   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30834   case $ac_top_builddir_sub in
30835   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30836   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30837   esac ;;
30838 esac
30839 ac_abs_top_builddir=$ac_pwd
30840 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30841 # for backward compatibility:
30842 ac_top_builddir=$ac_top_build_prefix
30843
30844 case $srcdir in
30845   .)  # We are building in place.
30846     ac_srcdir=.
30847     ac_top_srcdir=$ac_top_builddir_sub
30848     ac_abs_top_srcdir=$ac_pwd ;;
30849   [\\/]* | ?:[\\/]* )  # Absolute name.
30850     ac_srcdir=$srcdir$ac_dir_suffix;
30851     ac_top_srcdir=$srcdir
30852     ac_abs_top_srcdir=$srcdir ;;
30853   *) # Relative name.
30854     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30855     ac_top_srcdir=$ac_top_build_prefix$srcdir
30856     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30857 esac
30858 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30859
30860
30861   case $ac_mode in
30862   :F)
30863   #
30864   # CONFIG_FILE
30865   #
30866
30867   case $INSTALL in
30868   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30869   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30870   esac
30871   ac_MKDIR_P=$MKDIR_P
30872   case $MKDIR_P in
30873   [\\/$]* | ?:[\\/]* ) ;;
30874   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30875   esac
30876 _ACEOF
30877
30878 cat >>$CONFIG_STATUS <<\_ACEOF
30879 # If the template does not know about datarootdir, expand it.
30880 # FIXME: This hack should be removed a few years after 2.60.
30881 ac_datarootdir_hack=; ac_datarootdir_seen=
30882
30883 case `sed -n '/datarootdir/ {
30884   p
30885   q
30886 }
30887 /@datadir@/p
30888 /@docdir@/p
30889 /@infodir@/p
30890 /@localedir@/p
30891 /@mandir@/p
30892 ' $ac_file_inputs` in
30893 *datarootdir*) ac_datarootdir_seen=yes;;
30894 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30895   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30896 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30897 _ACEOF
30898 cat >>$CONFIG_STATUS <<_ACEOF
30899   ac_datarootdir_hack='
30900   s&@datadir@&$datadir&g
30901   s&@docdir@&$docdir&g
30902   s&@infodir@&$infodir&g
30903   s&@localedir@&$localedir&g
30904   s&@mandir@&$mandir&g
30905     s&\\\${datarootdir}&$datarootdir&g' ;;
30906 esac
30907 _ACEOF
30908
30909 # Neutralize VPATH when `$srcdir' = `.'.
30910 # Shell code in configure.ac might set extrasub.
30911 # FIXME: do we really want to maintain this feature?
30912 cat >>$CONFIG_STATUS <<_ACEOF
30913   sed "$ac_vpsub
30914 $extrasub
30915 _ACEOF
30916 cat >>$CONFIG_STATUS <<\_ACEOF
30917 :t
30918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30919 s&@configure_input@&$configure_input&;t t
30920 s&@top_builddir@&$ac_top_builddir_sub&;t t
30921 s&@srcdir@&$ac_srcdir&;t t
30922 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30923 s&@top_srcdir@&$ac_top_srcdir&;t t
30924 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30925 s&@builddir@&$ac_builddir&;t t
30926 s&@abs_builddir@&$ac_abs_builddir&;t t
30927 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30928 s&@INSTALL@&$ac_INSTALL&;t t
30929 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30930 $ac_datarootdir_hack
30931 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30932
30933 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30934   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30935   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30936   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30937 which seems to be undefined.  Please make sure it is defined." >&5
30938 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30939 which seems to be undefined.  Please make sure it is defined." >&2;}
30940
30941   rm -f "$tmp/stdin"
30942   case $ac_file in
30943   -) cat "$tmp/out"; rm -f "$tmp/out";;
30944   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30945   esac
30946  ;;
30947   :H)
30948   #
30949   # CONFIG_HEADER
30950   #
30951 _ACEOF
30952
30953 # Transform confdefs.h into a sed script `conftest.defines', that
30954 # substitutes the proper values into config.h.in to produce config.h.
30955 rm -f conftest.defines conftest.tail
30956 # First, append a space to every undef/define line, to ease matching.
30957 echo 's/$/ /' >conftest.defines
30958 # Then, protect against being on the right side of a sed subst, or in
30959 # an unquoted here document, in config.status.  If some macros were
30960 # called several times there might be several #defines for the same
30961 # symbol, which is useless.  But do not sort them, since the last
30962 # AC_DEFINE must be honored.
30963 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30964 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30965 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30966 # PARAMS is the parameter list in the macro definition--in most cases, it's
30967 # just an empty string.
30968 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
30969 ac_dB='\\)[      (].*,\\1define\\2'
30970 ac_dC=' '
30971 ac_dD=' ,'
30972
30973 uniq confdefs.h |
30974   sed -n '
30975         t rset
30976         :rset
30977         s/^[     ]*#[    ]*define[       ][      ]*//
30978         t ok
30979         d
30980         :ok
30981         s/[\\&,]/\\&/g
30982         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30983         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30984   ' >>conftest.defines
30985
30986 # Remove the space that was appended to ease matching.
30987 # Then replace #undef with comments.  This is necessary, for
30988 # example, in the case of _POSIX_SOURCE, which is predefined and required
30989 # on some systems where configure will not decide to define it.
30990 # (The regexp can be short, since the line contains either #define or #undef.)
30991 echo 's/ $//
30992 s,^[     #]*u.*,/* & */,' >>conftest.defines
30993
30994 # Break up conftest.defines:
30995 ac_max_sed_lines=50
30996
30997 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30998 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30999 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31000 # et cetera.
31001 ac_in='$ac_file_inputs'
31002 ac_out='"$tmp/out1"'
31003 ac_nxt='"$tmp/out2"'
31004
31005 while :
31006 do
31007   # Write a here document:
31008     cat >>$CONFIG_STATUS <<_ACEOF
31009     # First, check the format of the line:
31010     cat >"\$tmp/defines.sed" <<\\CEOF
31011 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31012 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31013 b
31014 :def
31015 _ACEOF
31016   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31017   echo 'CEOF
31018     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31019   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31020   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31021   grep . conftest.tail >/dev/null || break
31022   rm -f conftest.defines
31023   mv conftest.tail conftest.defines
31024 done
31025 rm -f conftest.defines conftest.tail
31026
31027 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31028 cat >>$CONFIG_STATUS <<\_ACEOF
31029   if test x"$ac_file" != x-; then
31030     echo "/* $configure_input  */" >"$tmp/config.h"
31031     cat "$ac_result" >>"$tmp/config.h"
31032     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31033       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31034 echo "$as_me: $ac_file is unchanged" >&6;}
31035     else
31036       rm -f $ac_file
31037       mv "$tmp/config.h" $ac_file
31038     fi
31039   else
31040     echo "/* $configure_input  */"
31041     cat "$ac_result"
31042   fi
31043   rm -f "$tmp/out12"
31044 # Compute $ac_file's index in $config_headers.
31045 _am_stamp_count=1
31046 for _am_header in $config_headers :; do
31047   case $_am_header in
31048     $ac_file | $ac_file:* )
31049       break ;;
31050     * )
31051       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31052   esac
31053 done
31054 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31055 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31056          X$ac_file : 'X\(//\)[^/]' \| \
31057          X$ac_file : 'X\(//\)$' \| \
31058          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31059 echo X$ac_file |
31060     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31061             s//\1/
31062             q
31063           }
31064           /^X\(\/\/\)[^/].*/{
31065             s//\1/
31066             q
31067           }
31068           /^X\(\/\/\)$/{
31069             s//\1/
31070             q
31071           }
31072           /^X\(\/\).*/{
31073             s//\1/
31074             q
31075           }
31076           s/.*/./; q'`/stamp-h$_am_stamp_count
31077  ;;
31078
31079   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31080 echo "$as_me: executing $ac_file commands" >&6;}
31081  ;;
31082   esac
31083
31084
31085   case $ac_file$ac_mode in
31086     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31087   # Strip MF so we end up with the name of the file.
31088   mf=`echo "$mf" | sed -e 's/:.*$//'`
31089   # Check whether this is an Automake generated Makefile or not.
31090   # We used to match only the files named `Makefile.in', but
31091   # some people rename them; so instead we look at the file content.
31092   # Grep'ing the first line is not enough: some people post-process
31093   # each Makefile.in and add a new line on top of each file to say so.
31094   # Grep'ing the whole file is not good either: AIX grep has a line
31095   # limit of 2048, but all sed's we know have understand at least 4000.
31096   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
31097     dirpart=`$as_dirname -- "$mf" ||
31098 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31099          X"$mf" : 'X\(//\)[^/]' \| \
31100          X"$mf" : 'X\(//\)$' \| \
31101          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31102 echo X"$mf" |
31103     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31104             s//\1/
31105             q
31106           }
31107           /^X\(\/\/\)[^/].*/{
31108             s//\1/
31109             q
31110           }
31111           /^X\(\/\/\)$/{
31112             s//\1/
31113             q
31114           }
31115           /^X\(\/\).*/{
31116             s//\1/
31117             q
31118           }
31119           s/.*/./; q'`
31120   else
31121     continue
31122   fi
31123   # Extract the definition of DEPDIR, am__include, and am__quote
31124   # from the Makefile without running `make'.
31125   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31126   test -z "$DEPDIR" && continue
31127   am__include=`sed -n 's/^am__include = //p' < "$mf"`
31128   test -z "am__include" && continue
31129   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31130   # When using ansi2knr, U may be empty or an underscore; expand it
31131   U=`sed -n 's/^U = //p' < "$mf"`
31132   # Find all dependency output files, they are included files with
31133   # $(DEPDIR) in their names.  We invoke sed twice because it is the
31134   # simplest approach to changing $(DEPDIR) to its actual value in the
31135   # expansion.
31136   for file in `sed -n "
31137     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31138        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31139     # Make sure the directory exists.
31140     test -f "$dirpart/$file" && continue
31141     fdir=`$as_dirname -- "$file" ||
31142 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31143          X"$file" : 'X\(//\)[^/]' \| \
31144          X"$file" : 'X\(//\)$' \| \
31145          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31146 echo X"$file" |
31147     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31148             s//\1/
31149             q
31150           }
31151           /^X\(\/\/\)[^/].*/{
31152             s//\1/
31153             q
31154           }
31155           /^X\(\/\/\)$/{
31156             s//\1/
31157             q
31158           }
31159           /^X\(\/\).*/{
31160             s//\1/
31161             q
31162           }
31163           s/.*/./; q'`
31164     { as_dir=$dirpart/$fdir
31165   case $as_dir in #(
31166   -*) as_dir=./$as_dir;;
31167   esac
31168   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31169     as_dirs=
31170     while :; do
31171       case $as_dir in #(
31172       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31173       *) as_qdir=$as_dir;;
31174       esac
31175       as_dirs="'$as_qdir' $as_dirs"
31176       as_dir=`$as_dirname -- "$as_dir" ||
31177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31178          X"$as_dir" : 'X\(//\)[^/]' \| \
31179          X"$as_dir" : 'X\(//\)$' \| \
31180          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31181 echo X"$as_dir" |
31182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31183             s//\1/
31184             q
31185           }
31186           /^X\(\/\/\)[^/].*/{
31187             s//\1/
31188             q
31189           }
31190           /^X\(\/\/\)$/{
31191             s//\1/
31192             q
31193           }
31194           /^X\(\/\).*/{
31195             s//\1/
31196             q
31197           }
31198           s/.*/./; q'`
31199       test -d "$as_dir" && break
31200     done
31201     test -z "$as_dirs" || eval "mkdir $as_dirs"
31202   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31203 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31204    { (exit 1); exit 1; }; }; }
31205     # echo "creating $dirpart/$file"
31206     echo '# dummy' > "$dirpart/$file"
31207   done
31208 done
31209  ;;
31210
31211   esac
31212 done # for ac_tag
31213
31214
31215 { (exit 0); exit 0; }
31216 _ACEOF
31217 chmod +x $CONFIG_STATUS
31218 ac_clean_files=$ac_clean_files_save
31219
31220
31221 # configure is writing to config.log, and then calls config.status.
31222 # config.status does its own redirection, appending to config.log.
31223 # Unfortunately, on DOS this fails, as config.log is still kept open
31224 # by configure, so config.status won't be able to write to it; its
31225 # output is simply discarded.  So we exec the FD to /dev/null,
31226 # effectively closing config.log, so it can be properly (re)opened and
31227 # appended to by config.status.  When coming back to configure, we
31228 # need to make the FD available again.
31229 if test "$no_create" != yes; then
31230   ac_cs_success=:
31231   ac_config_status_args=
31232   test "$silent" = yes &&
31233     ac_config_status_args="$ac_config_status_args --quiet"
31234   exec 5>/dev/null
31235   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31236   exec 5>>config.log
31237   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31238   # would make configure fail if this is the last instruction.
31239   $ac_cs_success || { (exit 1); exit 1; }
31240 fi
31241
31242