Include vmpsd.conf in list of files that need to be generated
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.241 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 fi
25 BIN_SH=xpg4; export BIN_SH # for Tru64
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28
29 # PATH needs CR
30 # Avoid depending upon Character Ranges.
31 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34 as_cr_digits='0123456789'
35 as_cr_alnum=$as_cr_Letters$as_cr_digits
36
37 # The user is always right.
38 if test "${PATH_SEPARATOR+set}" != set; then
39   echo "#! /bin/sh" >conf$$.sh
40   echo  "exit 0"   >>conf$$.sh
41   chmod +x conf$$.sh
42   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43     PATH_SEPARATOR=';'
44   else
45     PATH_SEPARATOR=:
46   fi
47   rm -f conf$$.sh
48 fi
49
50 # Support unset when possible.
51 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52   as_unset=unset
53 else
54   as_unset=false
55 fi
56
57
58 # IFS
59 # We need space, tab and new line, in precisely that order.  Quoting is
60 # there to prevent editors from complaining about space-tab.
61 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
62 # splitting by setting IFS to empty value.)
63 as_nl='
64 '
65 IFS=" ""        $as_nl"
66
67 # Find who we are.  Look in the path if we contain no directory separator.
68 case $0 in
69   *[\\/]* ) as_myself=$0 ;;
70   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
71 for as_dir in $PATH
72 do
73   IFS=$as_save_IFS
74   test -z "$as_dir" && as_dir=.
75   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
76 done
77 IFS=$as_save_IFS
78
79      ;;
80 esac
81 # We did not find ourselves, most probably we were run as `sh COMMAND'
82 # in which case we are not to be found in the path.
83 if test "x$as_myself" = x; then
84   as_myself=$0
85 fi
86 if test ! -f "$as_myself"; then
87   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
88   { (exit 1); exit 1; }
89 fi
90
91 # Work around bugs in pre-3.0 UWIN ksh.
92 for as_var in ENV MAIL MAILPATH
93 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
94 done
95 PS1='$ '
96 PS2='> '
97 PS4='+ '
98
99 # NLS nuisances.
100 for as_var in \
101   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
102   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
103   LC_TELEPHONE LC_TIME
104 do
105   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
106     eval $as_var=C; export $as_var
107   else
108     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
109   fi
110 done
111
112 # Required to use basename.
113 if expr a : '\(a\)' >/dev/null 2>&1 &&
114    test "X`expr 00001 : '.*\(...\)'`" = X001; then
115   as_expr=expr
116 else
117   as_expr=false
118 fi
119
120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
121   as_basename=basename
122 else
123   as_basename=false
124 fi
125
126
127 # Name of the executable.
128 as_me=`$as_basename -- "$0" ||
129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
130          X"$0" : 'X\(//\)$' \| \
131          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 echo X/"$0" |
133     sed '/^.*\/\([^/][^/]*\)\/*$/{
134             s//\1/
135             q
136           }
137           /^X\/\(\/\/\)$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\).*/{
142             s//\1/
143             q
144           }
145           s/.*/./; q'`
146
147 # CDPATH.
148 $as_unset CDPATH
149
150
151 if test "x$CONFIG_SHELL" = x; then
152   if (eval ":") 2>/dev/null; then
153   as_have_required=yes
154 else
155   as_have_required=no
156 fi
157
158   if test $as_have_required = yes &&     (eval ":
159 (as_func_return () {
160   (exit \$1)
161 }
162 as_func_success () {
163   as_func_return 0
164 }
165 as_func_failure () {
166   as_func_return 1
167 }
168 as_func_ret_success () {
169   return 0
170 }
171 as_func_ret_failure () {
172   return 1
173 }
174
175 exitcode=0
176 if as_func_success; then
177   :
178 else
179   exitcode=1
180   echo as_func_success failed.
181 fi
182
183 if as_func_failure; then
184   exitcode=1
185   echo as_func_failure succeeded.
186 fi
187
188 if as_func_ret_success; then
189   :
190 else
191   exitcode=1
192   echo as_func_ret_success failed.
193 fi
194
195 if as_func_ret_failure; then
196   exitcode=1
197   echo as_func_ret_failure succeeded.
198 fi
199
200 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
201   :
202 else
203   exitcode=1
204   echo positional parameters were not saved.
205 fi
206
207 test \$exitcode = 0) || { (exit 1); exit 1; }
208
209 (
210   as_lineno_1=\$LINENO
211   as_lineno_2=\$LINENO
212   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
213   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
214 ") 2> /dev/null; then
215   :
216 else
217   as_candidate_shells=
218     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 do
221   IFS=$as_save_IFS
222   test -z "$as_dir" && as_dir=.
223   case $as_dir in
224          /*)
225            for as_base in sh bash ksh sh5; do
226              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
227            done;;
228        esac
229 done
230 IFS=$as_save_IFS
231
232
233       for as_shell in $as_candidate_shells $SHELL; do
234          # Try only shells that exist, to save several forks.
235          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
236                 { ("$as_shell") 2> /dev/null <<\_ASEOF
237 # Be Bourne compatible
238 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
239   emulate sh
240   NULLCMD=:
241   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
242   # is contrary to our usage.  Disable this feature.
243   alias -g '${1+"$@"}'='"$@"'
244   setopt NO_GLOB_SUBST
245 else
246   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 fi
248 BIN_SH=xpg4; export BIN_SH # for Tru64
249 DUALCASE=1; export DUALCASE # for MKS sh
250
251 :
252 _ASEOF
253 }; then
254   CONFIG_SHELL=$as_shell
255                as_have_required=yes
256                if { "$as_shell" 2> /dev/null <<\_ASEOF
257 # Be Bourne compatible
258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
259   emulate sh
260   NULLCMD=:
261   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
262   # is contrary to our usage.  Disable this feature.
263   alias -g '${1+"$@"}'='"$@"'
264   setopt NO_GLOB_SUBST
265 else
266   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 fi
268 BIN_SH=xpg4; export BIN_SH # for Tru64
269 DUALCASE=1; export DUALCASE # for MKS sh
270
271 :
272 (as_func_return () {
273   (exit $1)
274 }
275 as_func_success () {
276   as_func_return 0
277 }
278 as_func_failure () {
279   as_func_return 1
280 }
281 as_func_ret_success () {
282   return 0
283 }
284 as_func_ret_failure () {
285   return 1
286 }
287
288 exitcode=0
289 if as_func_success; then
290   :
291 else
292   exitcode=1
293   echo as_func_success failed.
294 fi
295
296 if as_func_failure; then
297   exitcode=1
298   echo as_func_failure succeeded.
299 fi
300
301 if as_func_ret_success; then
302   :
303 else
304   exitcode=1
305   echo as_func_ret_success failed.
306 fi
307
308 if as_func_ret_failure; then
309   exitcode=1
310   echo as_func_ret_failure succeeded.
311 fi
312
313 if ( set x; as_func_ret_success y && test x = "$1" ); then
314   :
315 else
316   exitcode=1
317   echo positional parameters were not saved.
318 fi
319
320 test $exitcode = 0) || { (exit 1); exit 1; }
321
322 (
323   as_lineno_1=$LINENO
324   as_lineno_2=$LINENO
325   test "x$as_lineno_1" != "x$as_lineno_2" &&
326   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
327
328 _ASEOF
329 }; then
330   break
331 fi
332
333 fi
334
335       done
336
337       if test "x$CONFIG_SHELL" != x; then
338   for as_var in BASH_ENV ENV
339         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
340         done
341         export CONFIG_SHELL
342         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
343 fi
344
345
346     if test $as_have_required = no; then
347   echo This script requires a shell more modern than all the
348       echo shells that I found on your system.  Please install a
349       echo modern shell, or manually run the script under such a
350       echo shell if you do have one.
351       { (exit 1); exit 1; }
352 fi
353
354
355 fi
356
357 fi
358
359
360
361 (eval "as_func_return () {
362   (exit \$1)
363 }
364 as_func_success () {
365   as_func_return 0
366 }
367 as_func_failure () {
368   as_func_return 1
369 }
370 as_func_ret_success () {
371   return 0
372 }
373 as_func_ret_failure () {
374   return 1
375 }
376
377 exitcode=0
378 if as_func_success; then
379   :
380 else
381   exitcode=1
382   echo as_func_success failed.
383 fi
384
385 if as_func_failure; then
386   exitcode=1
387   echo as_func_failure succeeded.
388 fi
389
390 if as_func_ret_success; then
391   :
392 else
393   exitcode=1
394   echo as_func_ret_success failed.
395 fi
396
397 if as_func_ret_failure; then
398   exitcode=1
399   echo as_func_ret_failure succeeded.
400 fi
401
402 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
403   :
404 else
405   exitcode=1
406   echo positional parameters were not saved.
407 fi
408
409 test \$exitcode = 0") || {
410   echo No shell found that supports shell functions.
411   echo Please tell autoconf@gnu.org about your system,
412   echo including any error possibly output before this
413   echo message
414 }
415
416
417
418   as_lineno_1=$LINENO
419   as_lineno_2=$LINENO
420   test "x$as_lineno_1" != "x$as_lineno_2" &&
421   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422
423   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
424   # uniformly replaced by the line number.  The first 'sed' inserts a
425   # line-number line after each line using $LINENO; the second 'sed'
426   # does the real work.  The second script uses 'N' to pair each
427   # line-number line with the line containing $LINENO, and appends
428   # trailing '-' during substitution so that $LINENO is not a special
429   # case at line end.
430   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
431   # scripts with optimization help from Paolo Bonzini.  Blame Lee
432   # E. McMahon (1931-1989) for sed's syntax.  :-)
433   sed -n '
434     p
435     /[$]LINENO/=
436   ' <$as_myself |
437     sed '
438       s/[$]LINENO.*/&-/
439       t lineno
440       b
441       :lineno
442       N
443       :loop
444       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445       t loop
446       s/-\n.*//
447     ' >$as_me.lineno &&
448   chmod +x "$as_me.lineno" ||
449     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
450    { (exit 1); exit 1; }; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460
461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
462   as_dirname=dirname
463 else
464   as_dirname=false
465 fi
466
467 ECHO_C= ECHO_N= ECHO_T=
468 case `echo -n x` in
469 -n*)
470   case `echo 'x\c'` in
471   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
472   *)   ECHO_C='\c';;
473   esac;;
474 *)
475   ECHO_N='-n';;
476 esac
477
478 if expr a : '\(a\)' >/dev/null 2>&1 &&
479    test "X`expr 00001 : '.*\(...\)'`" = X001; then
480   as_expr=expr
481 else
482   as_expr=false
483 fi
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir
491 fi
492 echo >conf$$.file
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494   as_ln_s='ln -s'
495   # ... but there are two gotchas:
496   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498   # In both cases, we have to default to `cp -p'.
499   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500     as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s=ln
503 else
504   as_ln_s='cp -p'
505 fi
506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
507 rmdir conf$$.dir 2>/dev/null
508
509 if mkdir -p . 2>/dev/null; then
510   as_mkdir_p=:
511 else
512   test -d ./-p && rmdir ./-p
513   as_mkdir_p=false
514 fi
515
516 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
517 # systems may use methods other than mode bits to determine executability.
518 cat >conf$$.file <<_ASEOF
519 #! /bin/sh
520 exit 0
521 _ASEOF
522 chmod +x conf$$.file
523 if test -x conf$$.file >/dev/null 2>&1; then
524   as_executable_p="test -x"
525 else
526   as_executable_p=:
527 fi
528 rm -f conf$$.file
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537
538
539 # Check that we are running under the correct shell.
540 SHELL=${CONFIG_SHELL-/bin/sh}
541
542 case X$ECHO in
543 X*--fallback-echo)
544   # Remove one level of quotation (which was required for Make).
545   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
546   ;;
547 esac
548
549 echo=${ECHO-echo}
550 if test "X$1" = X--no-reexec; then
551   # Discard the --no-reexec flag, and continue.
552   shift
553 elif test "X$1" = X--fallback-echo; then
554   # Avoid inline document here, it may be left over
555   :
556 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
557   # Yippee, $echo works!
558   :
559 else
560   # Restart under the correct shell.
561   exec $SHELL "$0" --no-reexec ${1+"$@"}
562 fi
563
564 if test "X$1" = X--fallback-echo; then
565   # used as fallback echo
566   shift
567   cat <<EOF
568 $*
569 EOF
570   exit 0
571 fi
572
573 # The HP-UX ksh and POSIX shell print the target directory to stdout
574 # if CDPATH is set.
575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576
577 if test -z "$ECHO"; then
578 if test "X${echo_test_string+set}" != Xset; then
579 # find a string as large as possible, as long as the shell can cope with it
580   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
581     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
582     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
583        echo_test_string=`eval $cmd` &&
584        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
585     then
586       break
587     fi
588   done
589 fi
590
591 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
592    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
593    test "X$echo_testing_string" = "X$echo_test_string"; then
594   :
595 else
596   # The Solaris, AIX, and Digital Unix default echo programs unquote
597   # backslashes.  This makes it impossible to quote backslashes using
598   #   echo "$something" | sed 's/\\/\\\\/g'
599   #
600   # So, first we look for a working echo in the user's PATH.
601
602   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
603   for dir in $PATH /usr/ucb; do
604     IFS="$lt_save_ifs"
605     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
606        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608        test "X$echo_testing_string" = "X$echo_test_string"; then
609       echo="$dir/echo"
610       break
611     fi
612   done
613   IFS="$lt_save_ifs"
614
615   if test "X$echo" = Xecho; then
616     # We didn't find a better echo, so look for alternatives.
617     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
618        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
619        test "X$echo_testing_string" = "X$echo_test_string"; then
620       # This shell has a builtin print -r that does the trick.
621       echo='print -r'
622     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
623          test "X$CONFIG_SHELL" != X/bin/ksh; then
624       # If we have ksh, try running configure again with it.
625       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
626       export ORIGINAL_CONFIG_SHELL
627       CONFIG_SHELL=/bin/ksh
628       export CONFIG_SHELL
629       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
630     else
631       # Try using printf.
632       echo='printf %s\n'
633       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
634          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
635          test "X$echo_testing_string" = "X$echo_test_string"; then
636         # Cool, printf works
637         :
638       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639            test "X$echo_testing_string" = 'X\t' &&
640            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641            test "X$echo_testing_string" = "X$echo_test_string"; then
642         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643         export CONFIG_SHELL
644         SHELL="$CONFIG_SHELL"
645         export SHELL
646         echo="$CONFIG_SHELL $0 --fallback-echo"
647       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648            test "X$echo_testing_string" = 'X\t' &&
649            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650            test "X$echo_testing_string" = "X$echo_test_string"; then
651         echo="$CONFIG_SHELL $0 --fallback-echo"
652       else
653         # maybe with a smaller string...
654         prev=:
655
656         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
657           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
658           then
659             break
660           fi
661           prev="$cmd"
662         done
663
664         if test "$prev" != 'sed 50q "$0"'; then
665           echo_test_string=`eval $prev`
666           export echo_test_string
667           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668         else
669           # Oops.  We lost completely, so just stick with echo.
670           echo=echo
671         fi
672       fi
673     fi
674   fi
675 fi
676 fi
677
678 # Copy echo and quote the copy suitably for passing to libtool from
679 # the Makefile, instead of quoting the original, which is used later.
680 ECHO=$echo
681 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
682    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
683 fi
684
685
686
687
688 tagnames=${tagnames+${tagnames},}CXX
689
690 tagnames=${tagnames+${tagnames},}F77
691
692 exec 7<&0 </dev/null 6>&1
693
694 # Name of the host.
695 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
696 # so uname gets run too.
697 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
698
699 #
700 # Initializations.
701 #
702 ac_default_prefix=/usr/local
703 ac_clean_files=
704 ac_config_libobj_dir=.
705 LIBOBJS=
706 cross_compiling=no
707 subdirs=
708 MFLAGS=
709 MAKEFLAGS=
710 SHELL=${CONFIG_SHELL-/bin/sh}
711
712 # Identity of this package.
713 PACKAGE_NAME=
714 PACKAGE_TARNAME=
715 PACKAGE_VERSION=
716 PACKAGE_STRING=
717 PACKAGE_BUGREPORT=
718
719 ac_unique_file="src/main/radiusd.c"
720 # Factoring default headers for most tests.
721 ac_includes_default="\
722 #include <stdio.h>
723 #if HAVE_SYS_TYPES_H
724 # include <sys/types.h>
725 #endif
726 #if HAVE_SYS_STAT_H
727 # include <sys/stat.h>
728 #endif
729 #if STDC_HEADERS
730 # include <stdlib.h>
731 # include <stddef.h>
732 #else
733 # if HAVE_STDLIB_H
734 #  include <stdlib.h>
735 # endif
736 #endif
737 #if HAVE_STRING_H
738 # if !STDC_HEADERS && HAVE_MEMORY_H
739 #  include <memory.h>
740 # endif
741 # include <string.h>
742 #endif
743 #if HAVE_STRINGS_H
744 # include <strings.h>
745 #endif
746 #if HAVE_INTTYPES_H
747 # include <inttypes.h>
748 #endif
749 #if HAVE_STDINT_H
750 # include <stdint.h>
751 #endif
752 #if HAVE_UNISTD_H
753 # include <unistd.h>
754 #endif"
755
756 ac_subst_vars='SHELL
757 PATH_SEPARATOR
758 PACKAGE_NAME
759 PACKAGE_TARNAME
760 PACKAGE_VERSION
761 PACKAGE_STRING
762 PACKAGE_BUGREPORT
763 exec_prefix
764 prefix
765 program_transform_name
766 bindir
767 sbindir
768 libexecdir
769 datarootdir
770 datadir
771 sysconfdir
772 sharedstatedir
773 localstatedir
774 includedir
775 oldincludedir
776 docdir
777 infodir
778 htmldir
779 dvidir
780 pdfdir
781 psdir
782 libdir
783 localedir
784 mandir
785 DEFS
786 ECHO_C
787 ECHO_N
788 ECHO_T
789 LIBS
790 build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 CPPFLAGS
797 ac_ct_CC
798 EXEEXT
799 OBJEXT
800 CXX
801 CXXFLAGS
802 ac_ct_CXX
803 CPP
804 GREP
805 EGREP
806 RANLIB
807 GMAKE
808 MAKE
809 LTDL_SUBDIRS
810 LIBTOOL
811 build
812 build_cpu
813 build_vendor
814 build_os
815 host
816 host_cpu
817 host_vendor
818 host_os
819 LN_S
820 ECHO
821 AR
822 STRIP
823 CXXCPP
824 F77
825 FFLAGS
826 ac_ct_F77
827 logdir
828 radacctdir
829 raddbdir
830 PERL
831 SNMPGET
832 SNMPWALK
833 RUSERS
834 ACLOCAL
835 AUTOCONF
836 AUTOHEADER
837 LOCATE
838 DIRNAME
839 REGEX
840 REGEX_EXTENDED
841 OPENSSL_INCLUDE
842 OPENSSL_LIBS
843 PCAP_LIBS
844 LIBPREFIX
845 CRYPTLIB
846 SNMP_LIBS
847 SNMP_INCLUDE
848 HOSTINFO
849 LIBLTDL
850 INCLTDL
851 subdirs
852 MODULES
853 INSTALLSTRIP
854 USE_SHARED_LIBS
855 USE_STATIC_LIBS
856 STATIC_MODULES
857 RADIUSD_MAJOR_VERSION
858 RADIUSD_MINOR_VERSION
859 RADIUSD_VERSION
860 LIBOBJS
861 LTLIBOBJS'
862 ac_subst_files=''
863       ac_precious_vars='build_alias
864 host_alias
865 target_alias
866 CC
867 CFLAGS
868 LDFLAGS
869 CPPFLAGS
870 CXX
871 CXXFLAGS
872 CCC
873 CPP
874 CXXCPP
875 F77
876 FFLAGS'
877 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
878
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE}'
916 infodir='${datarootdir}/info'
917 htmldir='${docdir}'
918 dvidir='${docdir}'
919 pdfdir='${docdir}'
920 psdir='${docdir}'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
924
925 ac_prev=
926 ac_dashdash=
927 for ac_option
928 do
929   # If the previous option needs an argument, assign it.
930   if test -n "$ac_prev"; then
931     eval $ac_prev=\$ac_option
932     ac_prev=
933     continue
934   fi
935
936   case $ac_option in
937   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938   *)    ac_optarg=yes ;;
939   esac
940
941   # Accept the important Cygnus configure options, so we can diagnose typos.
942
943   case $ac_dashdash$ac_option in
944   --)
945     ac_dashdash=yes ;;
946
947   -bindir | --bindir | --bindi | --bind | --bin | --bi)
948     ac_prev=bindir ;;
949   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950     bindir=$ac_optarg ;;
951
952   -build | --build | --buil | --bui | --bu)
953     ac_prev=build_alias ;;
954   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955     build_alias=$ac_optarg ;;
956
957   -cache-file | --cache-file | --cache-fil | --cache-fi \
958   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959     ac_prev=cache_file ;;
960   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962     cache_file=$ac_optarg ;;
963
964   --config-cache | -C)
965     cache_file=config.cache ;;
966
967   -datadir | --datadir | --datadi | --datad)
968     ac_prev=datadir ;;
969   -datadir=* | --datadir=* | --datadi=* | --datad=*)
970     datadir=$ac_optarg ;;
971
972   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973   | --dataroo | --dataro | --datar)
974     ac_prev=datarootdir ;;
975   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977     datarootdir=$ac_optarg ;;
978
979   -disable-* | --disable-*)
980     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981     # Reject names that are not valid shell variable names.
982     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
983       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
984    { (exit 1); exit 1; }; }
985     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
986     eval enable_$ac_feature=no ;;
987
988   -docdir | --docdir | --docdi | --doc | --do)
989     ac_prev=docdir ;;
990   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991     docdir=$ac_optarg ;;
992
993   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994     ac_prev=dvidir ;;
995   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996     dvidir=$ac_optarg ;;
997
998   -enable-* | --enable-*)
999     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000     # Reject names that are not valid shell variable names.
1001     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1002       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003    { (exit 1); exit 1; }; }
1004     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1005     eval enable_$ac_feature=\$ac_optarg ;;
1006
1007   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009   | --exec | --exe | --ex)
1010     ac_prev=exec_prefix ;;
1011   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013   | --exec=* | --exe=* | --ex=*)
1014     exec_prefix=$ac_optarg ;;
1015
1016   -gas | --gas | --ga | --g)
1017     # Obsolete; use --with-gas.
1018     with_gas=yes ;;
1019
1020   -help | --help | --hel | --he | -h)
1021     ac_init_help=long ;;
1022   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023     ac_init_help=recursive ;;
1024   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025     ac_init_help=short ;;
1026
1027   -host | --host | --hos | --ho)
1028     ac_prev=host_alias ;;
1029   -host=* | --host=* | --hos=* | --ho=*)
1030     host_alias=$ac_optarg ;;
1031
1032   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033     ac_prev=htmldir ;;
1034   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035   | --ht=*)
1036     htmldir=$ac_optarg ;;
1037
1038   -includedir | --includedir | --includedi | --included | --include \
1039   | --includ | --inclu | --incl | --inc)
1040     ac_prev=includedir ;;
1041   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042   | --includ=* | --inclu=* | --incl=* | --inc=*)
1043     includedir=$ac_optarg ;;
1044
1045   -infodir | --infodir | --infodi | --infod | --info | --inf)
1046     ac_prev=infodir ;;
1047   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048     infodir=$ac_optarg ;;
1049
1050   -libdir | --libdir | --libdi | --libd)
1051     ac_prev=libdir ;;
1052   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053     libdir=$ac_optarg ;;
1054
1055   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056   | --libexe | --libex | --libe)
1057     ac_prev=libexecdir ;;
1058   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059   | --libexe=* | --libex=* | --libe=*)
1060     libexecdir=$ac_optarg ;;
1061
1062   -localedir | --localedir | --localedi | --localed | --locale)
1063     ac_prev=localedir ;;
1064   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065     localedir=$ac_optarg ;;
1066
1067   -localstatedir | --localstatedir | --localstatedi | --localstated \
1068   | --localstate | --localstat | --localsta | --localst | --locals)
1069     ac_prev=localstatedir ;;
1070   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072     localstatedir=$ac_optarg ;;
1073
1074   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075     ac_prev=mandir ;;
1076   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077     mandir=$ac_optarg ;;
1078
1079   -nfp | --nfp | --nf)
1080     # Obsolete; use --without-fp.
1081     with_fp=no ;;
1082
1083   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084   | --no-cr | --no-c | -n)
1085     no_create=yes ;;
1086
1087   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089     no_recursion=yes ;;
1090
1091   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093   | --oldin | --oldi | --old | --ol | --o)
1094     ac_prev=oldincludedir ;;
1095   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098     oldincludedir=$ac_optarg ;;
1099
1100   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101     ac_prev=prefix ;;
1102   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103     prefix=$ac_optarg ;;
1104
1105   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106   | --program-pre | --program-pr | --program-p)
1107     ac_prev=program_prefix ;;
1108   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110     program_prefix=$ac_optarg ;;
1111
1112   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113   | --program-suf | --program-su | --program-s)
1114     ac_prev=program_suffix ;;
1115   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117     program_suffix=$ac_optarg ;;
1118
1119   -program-transform-name | --program-transform-name \
1120   | --program-transform-nam | --program-transform-na \
1121   | --program-transform-n | --program-transform- \
1122   | --program-transform | --program-transfor \
1123   | --program-transfo | --program-transf \
1124   | --program-trans | --program-tran \
1125   | --progr-tra | --program-tr | --program-t)
1126     ac_prev=program_transform_name ;;
1127   -program-transform-name=* | --program-transform-name=* \
1128   | --program-transform-nam=* | --program-transform-na=* \
1129   | --program-transform-n=* | --program-transform-=* \
1130   | --program-transform=* | --program-transfor=* \
1131   | --program-transfo=* | --program-transf=* \
1132   | --program-trans=* | --program-tran=* \
1133   | --progr-tra=* | --program-tr=* | --program-t=*)
1134     program_transform_name=$ac_optarg ;;
1135
1136   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137     ac_prev=pdfdir ;;
1138   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139     pdfdir=$ac_optarg ;;
1140
1141   -psdir | --psdir | --psdi | --psd | --ps)
1142     ac_prev=psdir ;;
1143   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144     psdir=$ac_optarg ;;
1145
1146   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147   | -silent | --silent | --silen | --sile | --sil)
1148     silent=yes ;;
1149
1150   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151     ac_prev=sbindir ;;
1152   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153   | --sbi=* | --sb=*)
1154     sbindir=$ac_optarg ;;
1155
1156   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158   | --sharedst | --shareds | --shared | --share | --shar \
1159   | --sha | --sh)
1160     ac_prev=sharedstatedir ;;
1161   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164   | --sha=* | --sh=*)
1165     sharedstatedir=$ac_optarg ;;
1166
1167   -site | --site | --sit)
1168     ac_prev=site ;;
1169   -site=* | --site=* | --sit=*)
1170     site=$ac_optarg ;;
1171
1172   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173     ac_prev=srcdir ;;
1174   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175     srcdir=$ac_optarg ;;
1176
1177   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178   | --syscon | --sysco | --sysc | --sys | --sy)
1179     ac_prev=sysconfdir ;;
1180   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182     sysconfdir=$ac_optarg ;;
1183
1184   -target | --target | --targe | --targ | --tar | --ta | --t)
1185     ac_prev=target_alias ;;
1186   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187     target_alias=$ac_optarg ;;
1188
1189   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190     verbose=yes ;;
1191
1192   -version | --version | --versio | --versi | --vers | -V)
1193     ac_init_version=: ;;
1194
1195   -with-* | --with-*)
1196     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197     # Reject names that are not valid shell variable names.
1198     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1199       { echo "$as_me: error: invalid package name: $ac_package" >&2
1200    { (exit 1); exit 1; }; }
1201     ac_package=`echo $ac_package| sed 's/-/_/g'`
1202     eval with_$ac_package=\$ac_optarg ;;
1203
1204   -without-* | --without-*)
1205     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206     # Reject names that are not valid shell variable names.
1207     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1208       { echo "$as_me: error: invalid package name: $ac_package" >&2
1209    { (exit 1); exit 1; }; }
1210     ac_package=`echo $ac_package | sed 's/-/_/g'`
1211     eval with_$ac_package=no ;;
1212
1213   --x)
1214     # Obsolete; use --with-x.
1215     with_x=yes ;;
1216
1217   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218   | --x-incl | --x-inc | --x-in | --x-i)
1219     ac_prev=x_includes ;;
1220   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222     x_includes=$ac_optarg ;;
1223
1224   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226     ac_prev=x_libraries ;;
1227   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229     x_libraries=$ac_optarg ;;
1230
1231   -*) { echo "$as_me: error: unrecognized option: $ac_option
1232 Try \`$0 --help' for more information." >&2
1233    { (exit 1); exit 1; }; }
1234     ;;
1235
1236   *=*)
1237     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238     # Reject names that are not valid shell variable names.
1239     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1240       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1241    { (exit 1); exit 1; }; }
1242     eval $ac_envvar=\$ac_optarg
1243     export $ac_envvar ;;
1244
1245   *)
1246     # FIXME: should be removed in autoconf 3.0.
1247     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251     ;;
1252
1253   esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258   { echo "$as_me: error: missing argument to $ac_option" >&2
1259    { (exit 1); exit 1; }; }
1260 fi
1261
1262 # Be sure to have absolute directory names.
1263 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264                 datadir sysconfdir sharedstatedir localstatedir includedir \
1265                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266                 libdir localedir mandir
1267 do
1268   eval ac_val=\$$ac_var
1269   case $ac_val in
1270     [\\/$]* | ?:[\\/]* )  continue;;
1271     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272   esac
1273   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1274    { (exit 1); exit 1; }; }
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286   if test "x$build_alias" = x; then
1287     cross_compiling=maybe
1288     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1289     If a cross compiler is detected then cross compile mode will be used." >&2
1290   elif test "x$build_alias" != "x$host_alias"; then
1291     cross_compiling=yes
1292   fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304   { echo "$as_me: error: Working directory cannot be determined" >&2
1305    { (exit 1); exit 1; }; }
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307   { echo "$as_me: error: pwd does not report name of working directory" >&2
1308    { (exit 1); exit 1; }; }
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313   ac_srcdir_defaulted=yes
1314   # Try the directory containing this script, then the parent directory.
1315   ac_confdir=`$as_dirname -- "$0" ||
1316 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317          X"$0" : 'X\(//\)[^/]' \| \
1318          X"$0" : 'X\(//\)$' \| \
1319          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1320 echo X"$0" |
1321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\/\)[^/].*/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\/\)$/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\).*/{
1334             s//\1/
1335             q
1336           }
1337           s/.*/./; q'`
1338   srcdir=$ac_confdir
1339   if test ! -r "$srcdir/$ac_unique_file"; then
1340     srcdir=..
1341   fi
1342 else
1343   ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1348    { (exit 1); exit 1; }; }
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1353    { (exit 1); exit 1; }; }
1354         pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357   srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367   eval ac_env_${ac_var}_value=\$${ac_var}
1368   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376   # Omit some internal or obsolete options to make the list less imposing.
1377   # This message is too long to be a string in the A/UX 3.1 sh.
1378   cat <<_ACEOF
1379 \`configure' configures this package to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE.  See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389   -h, --help              display this help and exit
1390       --help=short        display options specific to this package
1391       --help=recursive    display the short help of all the included packages
1392   -V, --version           display version information and exit
1393   -q, --quiet, --silent   do not print \`checking...' messages
1394       --cache-file=FILE   cache test results in FILE [disabled]
1395   -C, --config-cache      alias for \`--cache-file=config.cache'
1396   -n, --no-create         do not create output files
1397       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1398
1399 Installation directories:
1400   --prefix=PREFIX         install architecture-independent files in PREFIX
1401                           [$ac_default_prefix]
1402   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1403                           [PREFIX]
1404
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413   --bindir=DIR           user executables [EPREFIX/bin]
1414   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1415   --libexecdir=DIR       program executables [EPREFIX/libexec]
1416   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1417   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1418   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1419   --libdir=DIR           object code libraries [EPREFIX/lib]
1420   --includedir=DIR       C header files [PREFIX/include]
1421   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1422   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1423   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1424   --infodir=DIR          info documentation [DATAROOTDIR/info]
1425   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1426   --mandir=DIR           man documentation [DATAROOTDIR/man]
1427   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1428   --htmldir=DIR          html documentation [DOCDIR]
1429   --dvidir=DIR           dvi documentation [DOCDIR]
1430   --pdfdir=DIR           pdf documentation [DOCDIR]
1431   --psdir=DIR            ps documentation [DOCDIR]
1432 _ACEOF
1433
1434   cat <<\_ACEOF
1435
1436 System types:
1437   --build=BUILD     configure for building on BUILD [guessed]
1438   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1439 _ACEOF
1440 fi
1441
1442 if test -n "$ac_init_help"; then
1443
1444   cat <<\_ACEOF
1445
1446 Optional Features:
1447   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1448   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1449   --disable-largefile     omit support for large files
1450   --enable-shared[=PKGS]  build shared libraries [default=yes]
1451   --enable-static[=PKGS]  build static libraries [default=yes]
1452   --enable-fast-install[=PKGS]
1453                           optimize for fast installation [default=yes]
1454   --disable-libtool-lock  avoid locking (might break parallel builds)
1455   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1456   --enable-developer               Enables features of interest to developers.
1457
1458 Optional Packages:
1459   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1460   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1461   --with-system-libtool              try to use libtool installed in your system default=use our own
1462   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1463   --with-pic              try to use only PIC/non-PIC objects [default=use
1464                           both]
1465   --with-tags[=TAGS]      include additional configurations [automatic]
1466   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1467   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1468   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1469   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1470   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1471   --with-threads          Use threads, if available.  (default=yes)
1472   --with-snmp             Compile in SNMP support. (default=yes)
1473   --with-static-modules=QUOTED-MODULE-LIST
1474  --with-modules=QUOTED-MODULE-LIST
1475   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1476   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1477   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1478   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1479   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1480   --with-udpfromto        Compile in UDPFROMTO support. (default=yes)
1481
1482 Some influential environment variables:
1483   CC          C compiler command
1484   CFLAGS      C compiler flags
1485   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1486               nonstandard directory <lib dir>
1487   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1488               you have headers in a nonstandard directory <include dir>
1489   CXX         C++ compiler command
1490   CXXFLAGS    C++ compiler flags
1491   CPP         C preprocessor
1492   CXXCPP      C++ preprocessor
1493   F77         Fortran 77 compiler command
1494   FFLAGS      Fortran 77 compiler flags
1495
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1498
1499 _ACEOF
1500 ac_status=$?
1501 fi
1502
1503 if test "$ac_init_help" = "recursive"; then
1504   # If there are subdirs, report their specific --help.
1505   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506     test -d "$ac_dir" || continue
1507     ac_builddir=.
1508
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1513   # A ".." for each directory in $ac_dir_suffix.
1514   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1515   case $ac_top_builddir_sub in
1516   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518   esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1524
1525 case $srcdir in
1526   .)  # We are building in place.
1527     ac_srcdir=.
1528     ac_top_srcdir=$ac_top_builddir_sub
1529     ac_abs_top_srcdir=$ac_pwd ;;
1530   [\\/]* | ?:[\\/]* )  # Absolute name.
1531     ac_srcdir=$srcdir$ac_dir_suffix;
1532     ac_top_srcdir=$srcdir
1533     ac_abs_top_srcdir=$srcdir ;;
1534   *) # Relative name.
1535     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536     ac_top_srcdir=$ac_top_build_prefix$srcdir
1537     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541     cd "$ac_dir" || { ac_status=$?; continue; }
1542     # Check for guested configure.
1543     if test -f "$ac_srcdir/configure.gnu"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546     elif test -f "$ac_srcdir/configure"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure" --help=recursive
1549     else
1550       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551     fi || ac_status=$?
1552     cd "$ac_pwd" || { ac_status=$?; break; }
1553   done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558   cat <<\_ACEOF
1559 configure
1560 generated by GNU Autoconf 2.60
1561
1562 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1563 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567   exit
1568 fi
1569 cat >config.log <<_ACEOF
1570 This file contains any messages produced by compilers while
1571 running configure, to aid debugging if configure makes a mistake.
1572
1573 It was created by $as_me, which was
1574 generated by GNU Autoconf 2.60.  Invocation command line was
1575
1576   $ $0 $@
1577
1578 _ACEOF
1579 exec 5>>config.log
1580 {
1581 cat <<_ASUNAME
1582 ## --------- ##
1583 ## Platform. ##
1584 ## --------- ##
1585
1586 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1587 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1588 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1589 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1590 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591
1592 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1593 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1594
1595 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1596 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1597 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1598 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1599 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1600 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1601 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1602
1603 _ASUNAME
1604
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1607 do
1608   IFS=$as_save_IFS
1609   test -z "$as_dir" && as_dir=.
1610   echo "PATH: $as_dir"
1611 done
1612 IFS=$as_save_IFS
1613
1614 } >&5
1615
1616 cat >&5 <<_ACEOF
1617
1618
1619 ## ----------- ##
1620 ## Core tests. ##
1621 ## ----------- ##
1622
1623 _ACEOF
1624
1625
1626 # Keep a trace of the command line.
1627 # Strip out --no-create and --no-recursion so they do not pile up.
1628 # Strip out --silent because we don't want to record it for future runs.
1629 # Also quote any args containing shell meta-characters.
1630 # Make two passes to allow for proper duplicate-argument suppression.
1631 ac_configure_args=
1632 ac_configure_args0=
1633 ac_configure_args1=
1634 ac_must_keep_next=false
1635 for ac_pass in 1 2
1636 do
1637   for ac_arg
1638   do
1639     case $ac_arg in
1640     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1641     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1642     | -silent | --silent | --silen | --sile | --sil)
1643       continue ;;
1644     *\'*)
1645       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1646     esac
1647     case $ac_pass in
1648     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1649     2)
1650       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1651       if test $ac_must_keep_next = true; then
1652         ac_must_keep_next=false # Got value, back to normal.
1653       else
1654         case $ac_arg in
1655           *=* | --config-cache | -C | -disable-* | --disable-* \
1656           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1657           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1658           | -with-* | --with-* | -without-* | --without-* | --x)
1659             case "$ac_configure_args0 " in
1660               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1661             esac
1662             ;;
1663           -* ) ac_must_keep_next=true ;;
1664         esac
1665       fi
1666       ac_configure_args="$ac_configure_args '$ac_arg'"
1667       ;;
1668     esac
1669   done
1670 done
1671 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1672 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1673
1674 # When interrupted or exit'd, cleanup temporary files, and complete
1675 # config.log.  We remove comments because anyway the quotes in there
1676 # would cause problems or look ugly.
1677 # WARNING: Use '\'' to represent an apostrophe within the trap.
1678 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1679 trap 'exit_status=$?
1680   # Save into config.log some information that might help in debugging.
1681   {
1682     echo
1683
1684     cat <<\_ASBOX
1685 ## ---------------- ##
1686 ## Cache variables. ##
1687 ## ---------------- ##
1688 _ASBOX
1689     echo
1690     # The following way of writing the cache mishandles newlines in values,
1691 (
1692   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1693     eval ac_val=\$$ac_var
1694     case $ac_val in #(
1695     *${as_nl}*)
1696       case $ac_var in #(
1697       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1698 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1699       esac
1700       case $ac_var in #(
1701       _ | IFS | as_nl) ;; #(
1702       *) $as_unset $ac_var ;;
1703       esac ;;
1704     esac
1705   done
1706   (set) 2>&1 |
1707     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1708     *${as_nl}ac_space=\ *)
1709       sed -n \
1710         "s/'\''/'\''\\\\'\'''\''/g;
1711           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1712       ;; #(
1713     *)
1714       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1715       ;;
1716     esac |
1717     sort
1718 )
1719     echo
1720
1721     cat <<\_ASBOX
1722 ## ----------------- ##
1723 ## Output variables. ##
1724 ## ----------------- ##
1725 _ASBOX
1726     echo
1727     for ac_var in $ac_subst_vars
1728     do
1729       eval ac_val=\$$ac_var
1730       case $ac_val in
1731       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732       esac
1733       echo "$ac_var='\''$ac_val'\''"
1734     done | sort
1735     echo
1736
1737     if test -n "$ac_subst_files"; then
1738       cat <<\_ASBOX
1739 ## ------------------- ##
1740 ## File substitutions. ##
1741 ## ------------------- ##
1742 _ASBOX
1743       echo
1744       for ac_var in $ac_subst_files
1745       do
1746         eval ac_val=\$$ac_var
1747         case $ac_val in
1748         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749         esac
1750         echo "$ac_var='\''$ac_val'\''"
1751       done | sort
1752       echo
1753     fi
1754
1755     if test -s confdefs.h; then
1756       cat <<\_ASBOX
1757 ## ----------- ##
1758 ## confdefs.h. ##
1759 ## ----------- ##
1760 _ASBOX
1761       echo
1762       cat confdefs.h
1763       echo
1764     fi
1765     test "$ac_signal" != 0 &&
1766       echo "$as_me: caught signal $ac_signal"
1767     echo "$as_me: exit $exit_status"
1768   } >&5
1769   rm -f core *.core core.conftest.* &&
1770     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1771     exit $exit_status
1772 ' 0
1773 for ac_signal in 1 2 13 15; do
1774   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1775 done
1776 ac_signal=0
1777
1778 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1779 rm -f -r conftest* confdefs.h
1780
1781 # Predefined preprocessor variables.
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_NAME "$PACKAGE_NAME"
1785 _ACEOF
1786
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_STRING "$PACKAGE_STRING"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1805 _ACEOF
1806
1807
1808 # Let the site file select an alternate cache file if it wants to.
1809 # Prefer explicitly selected file to automatically selected ones.
1810 if test -n "$CONFIG_SITE"; then
1811   set x "$CONFIG_SITE"
1812 elif test "x$prefix" != xNONE; then
1813   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1814 else
1815   set x "$ac_default_prefix/share/config.site" \
1816         "$ac_default_prefix/etc/config.site"
1817 fi
1818 shift
1819 for ac_site_file
1820 do
1821   if test -r "$ac_site_file"; then
1822     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1823 echo "$as_me: loading site script $ac_site_file" >&6;}
1824     sed 's/^/| /' "$ac_site_file" >&5
1825     . "$ac_site_file"
1826   fi
1827 done
1828
1829 if test -r "$cache_file"; then
1830   # Some versions of bash will fail to source /dev/null (special
1831   # files actually), so we avoid doing that.
1832   if test -f "$cache_file"; then
1833     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1834 echo "$as_me: loading cache $cache_file" >&6;}
1835     case $cache_file in
1836       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1837       *)                      . "./$cache_file";;
1838     esac
1839   fi
1840 else
1841   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1842 echo "$as_me: creating cache $cache_file" >&6;}
1843   >$cache_file
1844 fi
1845
1846 # Check that the precious variables saved in the cache have kept the same
1847 # value.
1848 ac_cache_corrupted=false
1849 for ac_var in $ac_precious_vars; do
1850   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1851   eval ac_new_set=\$ac_env_${ac_var}_set
1852   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1853   eval ac_new_val=\$ac_env_${ac_var}_value
1854   case $ac_old_set,$ac_new_set in
1855     set,)
1856       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1858       ac_cache_corrupted=: ;;
1859     ,set)
1860       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1861 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1862       ac_cache_corrupted=: ;;
1863     ,);;
1864     *)
1865       if test "x$ac_old_val" != "x$ac_new_val"; then
1866         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1867 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1868         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1869 echo "$as_me:   former value:  $ac_old_val" >&2;}
1870         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1871 echo "$as_me:   current value: $ac_new_val" >&2;}
1872         ac_cache_corrupted=:
1873       fi;;
1874   esac
1875   # Pass precious variables to config.status.
1876   if test "$ac_new_set" = set; then
1877     case $ac_new_val in
1878     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1879     *) ac_arg=$ac_var=$ac_new_val ;;
1880     esac
1881     case " $ac_configure_args " in
1882       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1883       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1884     esac
1885   fi
1886 done
1887 if $ac_cache_corrupted; then
1888   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1889 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1890   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1891 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1892    { (exit 1); exit 1; }; }
1893 fi
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911 ac_ext=c
1912 ac_cpp='$CPP $CPPFLAGS'
1913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916
1917
1918 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1919
1920
1921 RADIUSD_MAJOR_VERSION=2
1922 RADIUSD_MINOR_VERSION=0.0-pre2
1923 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1924 PACKAGE=freeradius
1925
1926
1927 ac_ext=c
1928 ac_cpp='$CPP $CPPFLAGS'
1929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 if test -n "$ac_tool_prefix"; then
1933   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1934 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1937 if test "${ac_cv_prog_CC+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   if test -n "$CC"; then
1941   ac_cv_prog_CC="$CC" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
1947   test -z "$as_dir" && as_dir=.
1948   for ac_exec_ext in '' $ac_executable_extensions; do
1949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1950     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952     break 2
1953   fi
1954 done
1955 done
1956 IFS=$as_save_IFS
1957
1958 fi
1959 fi
1960 CC=$ac_cv_prog_CC
1961 if test -n "$CC"; then
1962   { echo "$as_me:$LINENO: result: $CC" >&5
1963 echo "${ECHO_T}$CC" >&6; }
1964 else
1965   { echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6; }
1967 fi
1968
1969
1970 fi
1971 if test -z "$ac_cv_prog_CC"; then
1972   ac_ct_CC=$CC
1973   # Extract the first word of "gcc", so it can be a program name with args.
1974 set dummy gcc; ac_word=$2
1975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1977 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1978   echo $ECHO_N "(cached) $ECHO_C" >&6
1979 else
1980   if test -n "$ac_ct_CC"; then
1981   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1982 else
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986   IFS=$as_save_IFS
1987   test -z "$as_dir" && as_dir=.
1988   for ac_exec_ext in '' $ac_executable_extensions; do
1989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1990     ac_cv_prog_ac_ct_CC="gcc"
1991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992     break 2
1993   fi
1994 done
1995 done
1996 IFS=$as_save_IFS
1997
1998 fi
1999 fi
2000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2001 if test -n "$ac_ct_CC"; then
2002   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2003 echo "${ECHO_T}$ac_ct_CC" >&6; }
2004 else
2005   { echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6; }
2007 fi
2008
2009   if test "x$ac_ct_CC" = x; then
2010     CC=""
2011   else
2012     case $cross_compiling:$ac_tool_warned in
2013 yes:)
2014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2015 whose name does not start with the host triplet.  If you think this
2016 configuration is useful to you, please write to autoconf@gnu.org." >&5
2017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2018 whose name does not start with the host triplet.  If you think this
2019 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2020 ac_tool_warned=yes ;;
2021 esac
2022     CC=$ac_ct_CC
2023   fi
2024 else
2025   CC="$ac_cv_prog_CC"
2026 fi
2027
2028 if test -z "$CC"; then
2029           if test -n "$ac_tool_prefix"; then
2030     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2031 set dummy ${ac_tool_prefix}cc; ac_word=$2
2032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2034 if test "${ac_cv_prog_CC+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   if test -n "$CC"; then
2038   ac_cv_prog_CC="$CC" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2042 do
2043   IFS=$as_save_IFS
2044   test -z "$as_dir" && as_dir=.
2045   for ac_exec_ext in '' $ac_executable_extensions; do
2046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2047     ac_cv_prog_CC="${ac_tool_prefix}cc"
2048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049     break 2
2050   fi
2051 done
2052 done
2053 IFS=$as_save_IFS
2054
2055 fi
2056 fi
2057 CC=$ac_cv_prog_CC
2058 if test -n "$CC"; then
2059   { echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6; }
2061 else
2062   { echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6; }
2064 fi
2065
2066
2067   fi
2068 fi
2069 if test -z "$CC"; then
2070   # Extract the first word of "cc", so it can be a program name with args.
2071 set dummy cc; ac_word=$2
2072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2074 if test "${ac_cv_prog_CC+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   if test -n "$CC"; then
2078   ac_cv_prog_CC="$CC" # Let the user override the test.
2079 else
2080   ac_prog_rejected=no
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2083 do
2084   IFS=$as_save_IFS
2085   test -z "$as_dir" && as_dir=.
2086   for ac_exec_ext in '' $ac_executable_extensions; do
2087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2088     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2089        ac_prog_rejected=yes
2090        continue
2091      fi
2092     ac_cv_prog_CC="cc"
2093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094     break 2
2095   fi
2096 done
2097 done
2098 IFS=$as_save_IFS
2099
2100 if test $ac_prog_rejected = yes; then
2101   # We found a bogon in the path, so make sure we never use it.
2102   set dummy $ac_cv_prog_CC
2103   shift
2104   if test $# != 0; then
2105     # We chose a different compiler from the bogus one.
2106     # However, it has the same basename, so the bogon will be chosen
2107     # first if we set CC to just the basename; use the full file name.
2108     shift
2109     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2110   fi
2111 fi
2112 fi
2113 fi
2114 CC=$ac_cv_prog_CC
2115 if test -n "$CC"; then
2116   { echo "$as_me:$LINENO: result: $CC" >&5
2117 echo "${ECHO_T}$CC" >&6; }
2118 else
2119   { echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6; }
2121 fi
2122
2123
2124 fi
2125 if test -z "$CC"; then
2126   if test -n "$ac_tool_prefix"; then
2127   for ac_prog in cl.exe
2128   do
2129     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   if test -n "$CC"; then
2137   ac_cv_prog_CC="$CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   for ac_exec_ext in '' $ac_executable_extensions; do
2145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2146     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148     break 2
2149   fi
2150 done
2151 done
2152 IFS=$as_save_IFS
2153
2154 fi
2155 fi
2156 CC=$ac_cv_prog_CC
2157 if test -n "$CC"; then
2158   { echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6; }
2160 else
2161   { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2163 fi
2164
2165
2166     test -n "$CC" && break
2167   done
2168 fi
2169 if test -z "$CC"; then
2170   ac_ct_CC=$CC
2171   for ac_prog in cl.exe
2172 do
2173   # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy $ac_prog; ac_word=$2
2175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   if test -n "$ac_ct_CC"; then
2181   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2182 else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2185 do
2186   IFS=$as_save_IFS
2187   test -z "$as_dir" && as_dir=.
2188   for ac_exec_ext in '' $ac_executable_extensions; do
2189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2190     ac_cv_prog_ac_ct_CC="$ac_prog"
2191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192     break 2
2193   fi
2194 done
2195 done
2196 IFS=$as_save_IFS
2197
2198 fi
2199 fi
2200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2201 if test -n "$ac_ct_CC"; then
2202   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2203 echo "${ECHO_T}$ac_ct_CC" >&6; }
2204 else
2205   { echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6; }
2207 fi
2208
2209
2210   test -n "$ac_ct_CC" && break
2211 done
2212
2213   if test "x$ac_ct_CC" = x; then
2214     CC=""
2215   else
2216     case $cross_compiling:$ac_tool_warned in
2217 yes:)
2218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2219 whose name does not start with the host triplet.  If you think this
2220 configuration is useful to you, please write to autoconf@gnu.org." >&5
2221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet.  If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2224 ac_tool_warned=yes ;;
2225 esac
2226     CC=$ac_ct_CC
2227   fi
2228 fi
2229
2230 fi
2231
2232
2233 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: no acceptable C compiler found in \$PATH
2236 See \`config.log' for more details." >&2;}
2237    { (exit 1); exit 1; }; }
2238
2239 # Provide some information about the compiler.
2240 echo "$as_me:$LINENO: checking for C compiler version" >&5
2241 ac_compiler=`set X $ac_compile; echo $2`
2242 { (ac_try="$ac_compiler --version >&5"
2243 case "(($ac_try" in
2244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245   *) ac_try_echo=$ac_try;;
2246 esac
2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248   (eval "$ac_compiler --version >&5") 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }
2252 { (ac_try="$ac_compiler -v >&5"
2253 case "(($ac_try" in
2254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255   *) ac_try_echo=$ac_try;;
2256 esac
2257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2258   (eval "$ac_compiler -v >&5") 2>&5
2259   ac_status=$?
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); }
2262 { (ac_try="$ac_compiler -V >&5"
2263 case "(($ac_try" in
2264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265   *) ac_try_echo=$ac_try;;
2266 esac
2267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2268   (eval "$ac_compiler -V >&5") 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }
2272
2273 cat >conftest.$ac_ext <<_ACEOF
2274 /* confdefs.h.  */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h.  */
2279
2280 int
2281 main ()
2282 {
2283
2284   ;
2285   return 0;
2286 }
2287 _ACEOF
2288 ac_clean_files_save=$ac_clean_files
2289 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2290 # Try to create an executable without -o first, disregard a.out.
2291 # It will help us diagnose broken compilers, and finding out an intuition
2292 # of exeext.
2293 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2294 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2295 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2296 #
2297 # List of possible output files, starting from the most likely.
2298 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2299 # only as a last resort.  b.out is created by i960 compilers.
2300 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2301 #
2302 # The IRIX 6 linker writes into existing files which may not be
2303 # executable, retaining their permissions.  Remove them first so a
2304 # subsequent execution test works.
2305 ac_rmfiles=
2306 for ac_file in $ac_files
2307 do
2308   case $ac_file in
2309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2310     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2311   esac
2312 done
2313 rm -f $ac_rmfiles
2314
2315 if { (ac_try="$ac_link_default"
2316 case "(($ac_try" in
2317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318   *) ac_try_echo=$ac_try;;
2319 esac
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321   (eval "$ac_link_default") 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; then
2325   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2327 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2328 # so that the user can short-circuit this test for compilers unknown to
2329 # Autoconf.
2330 for ac_file in $ac_files
2331 do
2332   test -f "$ac_file" || continue
2333   case $ac_file in
2334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2335         ;;
2336     [ab].out )
2337         # We found the default executable, but exeext='' is most
2338         # certainly right.
2339         break;;
2340     *.* )
2341         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2342         then :; else
2343            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2344         fi
2345         # We set ac_cv_exeext here because the later test for it is not
2346         # safe: cross compilers may not add the suffix if given an `-o'
2347         # argument, so we may need to know it at that point already.
2348         # Even if this section looks crufty: it has the advantage of
2349         # actually working.
2350         break;;
2351     * )
2352         break;;
2353   esac
2354 done
2355 test "$ac_cv_exeext" = no && ac_cv_exeext=
2356
2357 else
2358   echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2360
2361 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: C compiler cannot create executables
2364 See \`config.log' for more details." >&2;}
2365    { (exit 77); exit 77; }; }
2366 fi
2367
2368 ac_exeext=$ac_cv_exeext
2369 { echo "$as_me:$LINENO: result: $ac_file" >&5
2370 echo "${ECHO_T}$ac_file" >&6; }
2371
2372 # Check that the compiler produces executables we can run.  If not, either
2373 # the compiler is broken, or we cross compile.
2374 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2375 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2376 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2377 # If not cross compiling, check that we can run a simple program.
2378 if test "$cross_compiling" != yes; then
2379   if { ac_try='./$ac_file'
2380   { (case "(($ac_try" in
2381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382   *) ac_try_echo=$ac_try;;
2383 esac
2384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385   (eval "$ac_try") 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }; }; then
2389     cross_compiling=no
2390   else
2391     if test "$cross_compiling" = maybe; then
2392         cross_compiling=yes
2393     else
2394         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2395 If you meant to cross compile, use \`--host'.
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: cannot run C compiled programs.
2398 If you meant to cross compile, use \`--host'.
2399 See \`config.log' for more details." >&2;}
2400    { (exit 1); exit 1; }; }
2401     fi
2402   fi
2403 fi
2404 { echo "$as_me:$LINENO: result: yes" >&5
2405 echo "${ECHO_T}yes" >&6; }
2406
2407 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2408 ac_clean_files=$ac_clean_files_save
2409 # Check that the compiler produces executables we can run.  If not, either
2410 # the compiler is broken, or we cross compile.
2411 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2412 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2413 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2414 echo "${ECHO_T}$cross_compiling" >&6; }
2415
2416 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2417 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2418 if { (ac_try="$ac_link"
2419 case "(($ac_try" in
2420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421   *) ac_try_echo=$ac_try;;
2422 esac
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424   (eval "$ac_link") 2>&5
2425   ac_status=$?
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); }; then
2428   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2429 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2430 # work properly (i.e., refer to `conftest.exe'), while it won't with
2431 # `rm'.
2432 for ac_file in conftest.exe conftest conftest.*; do
2433   test -f "$ac_file" || continue
2434   case $ac_file in
2435     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2436     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2437           break;;
2438     * ) break;;
2439   esac
2440 done
2441 else
2442   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2445 See \`config.log' for more details." >&2;}
2446    { (exit 1); exit 1; }; }
2447 fi
2448
2449 rm -f conftest$ac_cv_exeext
2450 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2451 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2452
2453 rm -f conftest.$ac_ext
2454 EXEEXT=$ac_cv_exeext
2455 ac_exeext=$EXEEXT
2456 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2457 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2458 if test "${ac_cv_objext+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   cat >conftest.$ac_ext <<_ACEOF
2462 /* confdefs.h.  */
2463 _ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h.  */
2467
2468 int
2469 main ()
2470 {
2471
2472   ;
2473   return 0;
2474 }
2475 _ACEOF
2476 rm -f conftest.o conftest.obj
2477 if { (ac_try="$ac_compile"
2478 case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483   (eval "$ac_compile") 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; then
2487   for ac_file in conftest.o conftest.obj conftest.*; do
2488   test -f "$ac_file" || continue;
2489   case $ac_file in
2490     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2491     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2492        break;;
2493   esac
2494 done
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2502 See \`config.log' for more details." >&2;}
2503    { (exit 1); exit 1; }; }
2504 fi
2505
2506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2507 fi
2508 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2509 echo "${ECHO_T}$ac_cv_objext" >&6; }
2510 OBJEXT=$ac_cv_objext
2511 ac_objext=$OBJEXT
2512 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2513 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2514 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h.  */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h.  */
2523
2524 int
2525 main ()
2526 {
2527 #ifndef __GNUC__
2528        choke me
2529 #endif
2530
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2537 case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_compile") 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550   { (case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555   (eval "$ac_try") 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; } &&
2559          { ac_try='test -s conftest.$ac_objext'
2560   { (case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_try") 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; }; then
2569   ac_compiler_gnu=yes
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574         ac_compiler_gnu=no
2575 fi
2576
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2579
2580 fi
2581 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2582 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2583 GCC=`test $ac_compiler_gnu = yes && echo yes`
2584 ac_test_CFLAGS=${CFLAGS+set}
2585 ac_save_CFLAGS=$CFLAGS
2586 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2587 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_cc_g+set}" = set; then
2589   echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591   ac_save_c_werror_flag=$ac_c_werror_flag
2592    ac_c_werror_flag=yes
2593    ac_cv_prog_cc_g=no
2594    CFLAGS="-g"
2595    cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h.  */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h.  */
2601
2602 int
2603 main ()
2604 {
2605
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (ac_try="$ac_compile"
2612 case "(($ac_try" in
2613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614   *) ac_try_echo=$ac_try;;
2615 esac
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617   (eval "$ac_compile") 2>conftest.er1
2618   ac_status=$?
2619   grep -v '^ *+' conftest.er1 >conftest.err
2620   rm -f conftest.er1
2621   cat conftest.err >&5
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); } &&
2624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2625   { (case "(($ac_try" in
2626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627   *) ac_try_echo=$ac_try;;
2628 esac
2629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2630   (eval "$ac_try") 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; } &&
2634          { ac_try='test -s conftest.$ac_objext'
2635   { (case "(($ac_try" in
2636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637   *) ac_try_echo=$ac_try;;
2638 esac
2639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2640   (eval "$ac_try") 2>&5
2641   ac_status=$?
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); }; }; then
2644   ac_cv_prog_cc_g=yes
2645 else
2646   echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2648
2649         CFLAGS=""
2650       cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h.  */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h.  */
2656
2657 int
2658 main ()
2659 {
2660
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (ac_try="$ac_compile"
2667 case "(($ac_try" in
2668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669   *) ac_try_echo=$ac_try;;
2670 esac
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672   (eval "$ac_compile") 2>conftest.er1
2673   ac_status=$?
2674   grep -v '^ *+' conftest.er1 >conftest.err
2675   rm -f conftest.er1
2676   cat conftest.err >&5
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); } &&
2679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2680   { (case "(($ac_try" in
2681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682   *) ac_try_echo=$ac_try;;
2683 esac
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685   (eval "$ac_try") 2>&5
2686   ac_status=$?
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); }; } &&
2689          { ac_try='test -s conftest.$ac_objext'
2690   { (case "(($ac_try" in
2691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692   *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695   (eval "$ac_try") 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }; }; then
2699   :
2700 else
2701   echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2703
2704         ac_c_werror_flag=$ac_save_c_werror_flag
2705          CFLAGS="-g"
2706          cat >conftest.$ac_ext <<_ACEOF
2707 /* confdefs.h.  */
2708 _ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h.  */
2712
2713 int
2714 main ()
2715 {
2716
2717   ;
2718   return 0;
2719 }
2720 _ACEOF
2721 rm -f conftest.$ac_objext
2722 if { (ac_try="$ac_compile"
2723 case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728   (eval "$ac_compile") 2>conftest.er1
2729   ac_status=$?
2730   grep -v '^ *+' conftest.er1 >conftest.err
2731   rm -f conftest.er1
2732   cat conftest.err >&5
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); } &&
2735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2736   { (case "(($ac_try" in
2737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738   *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741   (eval "$ac_try") 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; } &&
2745          { ac_try='test -s conftest.$ac_objext'
2746   { (case "(($ac_try" in
2747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748   *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751   (eval "$ac_try") 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }; }; then
2755   ac_cv_prog_cc_g=yes
2756 else
2757   echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2759
2760
2761 fi
2762
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 fi
2765
2766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 fi
2768
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770    ac_c_werror_flag=$ac_save_c_werror_flag
2771 fi
2772 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2773 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2774 if test "$ac_test_CFLAGS" = set; then
2775   CFLAGS=$ac_save_CFLAGS
2776 elif test $ac_cv_prog_cc_g = yes; then
2777   if test "$GCC" = yes; then
2778     CFLAGS="-g -O2"
2779   else
2780     CFLAGS="-g"
2781   fi
2782 else
2783   if test "$GCC" = yes; then
2784     CFLAGS="-O2"
2785   else
2786     CFLAGS=
2787   fi
2788 fi
2789 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2790 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2791 if test "${ac_cv_prog_cc_c89+set}" = set; then
2792   echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794   ac_cv_prog_cc_c89=no
2795 ac_save_CC=$CC
2796 cat >conftest.$ac_ext <<_ACEOF
2797 /* confdefs.h.  */
2798 _ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h.  */
2802 #include <stdarg.h>
2803 #include <stdio.h>
2804 #include <sys/types.h>
2805 #include <sys/stat.h>
2806 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2807 struct buf { int x; };
2808 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2809 static char *e (p, i)
2810      char **p;
2811      int i;
2812 {
2813   return p[i];
2814 }
2815 static char *f (char * (*g) (char **, int), char **p, ...)
2816 {
2817   char *s;
2818   va_list v;
2819   va_start (v,p);
2820   s = g (p, va_arg (v,int));
2821   va_end (v);
2822   return s;
2823 }
2824
2825 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2826    function prototypes and stuff, but not '\xHH' hex character constants.
2827    These don't provoke an error unfortunately, instead are silently treated
2828    as 'x'.  The following induces an error, until -std is added to get
2829    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2830    array size at least.  It's necessary to write '\x00'==0 to get something
2831    that's true only with -std.  */
2832 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2833
2834 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2835    inside strings and character constants.  */
2836 #define FOO(x) 'x'
2837 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2838
2839 int test (int i, double x);
2840 struct s1 {int (*f) (int a);};
2841 struct s2 {int (*f) (double a);};
2842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2843 int argc;
2844 char **argv;
2845 int
2846 main ()
2847 {
2848 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2854         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2855 do
2856   CC="$ac_save_CC $ac_arg"
2857   rm -f conftest.$ac_objext
2858 if { (ac_try="$ac_compile"
2859 case "(($ac_try" in
2860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861   *) ac_try_echo=$ac_try;;
2862 esac
2863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864   (eval "$ac_compile") 2>conftest.er1
2865   ac_status=$?
2866   grep -v '^ *+' conftest.er1 >conftest.err
2867   rm -f conftest.er1
2868   cat conftest.err >&5
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); } &&
2871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2872   { (case "(($ac_try" in
2873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874   *) ac_try_echo=$ac_try;;
2875 esac
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877   (eval "$ac_try") 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); }; } &&
2881          { ac_try='test -s conftest.$ac_objext'
2882   { (case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887   (eval "$ac_try") 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; }; then
2891   ac_cv_prog_cc_c89=$ac_arg
2892 else
2893   echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2895
2896
2897 fi
2898
2899 rm -f core conftest.err conftest.$ac_objext
2900   test "x$ac_cv_prog_cc_c89" != "xno" && break
2901 done
2902 rm -f conftest.$ac_ext
2903 CC=$ac_save_CC
2904
2905 fi
2906 # AC_CACHE_VAL
2907 case "x$ac_cv_prog_cc_c89" in
2908   x)
2909     { echo "$as_me:$LINENO: result: none needed" >&5
2910 echo "${ECHO_T}none needed" >&6; } ;;
2911   xno)
2912     { echo "$as_me:$LINENO: result: unsupported" >&5
2913 echo "${ECHO_T}unsupported" >&6; } ;;
2914   *)
2915     CC="$CC $ac_cv_prog_cc_c89"
2916     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2917 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2918 esac
2919
2920
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926
2927 ac_ext=cpp
2928 ac_cpp='$CXXCPP $CPPFLAGS'
2929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 if test -z "$CXX"; then
2933   if test -n "$CCC"; then
2934     CXX=$CCC
2935   else
2936     if test -n "$ac_tool_prefix"; then
2937   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2938   do
2939     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_CXX+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   if test -n "$CXX"; then
2947   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952   IFS=$as_save_IFS
2953   test -z "$as_dir" && as_dir=.
2954   for ac_exec_ext in '' $ac_executable_extensions; do
2955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2956     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958     break 2
2959   fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CXX=$ac_cv_prog_CXX
2967 if test -n "$CXX"; then
2968   { echo "$as_me:$LINENO: result: $CXX" >&5
2969 echo "${ECHO_T}$CXX" >&6; }
2970 else
2971   { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2973 fi
2974
2975
2976     test -n "$CXX" && break
2977   done
2978 fi
2979 if test -z "$CXX"; then
2980   ac_ct_CXX=$CXX
2981   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2982 do
2983   # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2988   echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990   if test -n "$ac_ct_CXX"; then
2991   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996   IFS=$as_save_IFS
2997   test -z "$as_dir" && as_dir=.
2998   for ac_exec_ext in '' $ac_executable_extensions; do
2999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3000     ac_cv_prog_ac_ct_CXX="$ac_prog"
3001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002     break 2
3003   fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3011 if test -n "$ac_ct_CXX"; then
3012   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3013 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3014 else
3015   { echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6; }
3017 fi
3018
3019
3020   test -n "$ac_ct_CXX" && break
3021 done
3022
3023   if test "x$ac_ct_CXX" = x; then
3024     CXX="g++"
3025   else
3026     case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet.  If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&5
3031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3032 whose name does not start with the host triplet.  If you think this
3033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3034 ac_tool_warned=yes ;;
3035 esac
3036     CXX=$ac_ct_CXX
3037   fi
3038 fi
3039
3040   fi
3041 fi
3042 # Provide some information about the compiler.
3043 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3044 ac_compiler=`set X $ac_compile; echo $2`
3045 { (ac_try="$ac_compiler --version >&5"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compiler --version >&5") 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }
3055 { (ac_try="$ac_compiler -v >&5"
3056 case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061   (eval "$ac_compiler -v >&5") 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }
3065 { (ac_try="$ac_compiler -V >&5"
3066 case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_compiler -V >&5") 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }
3075
3076 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3077 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3078 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081   cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h.  */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h.  */
3087
3088 int
3089 main ()
3090 {
3091 #ifndef __GNUC__
3092        choke me
3093 #endif
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } &&
3113          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114   { (case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; } &&
3123          { ac_try='test -s conftest.$ac_objext'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; }; then
3133   ac_compiler_gnu=yes
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138         ac_compiler_gnu=no
3139 fi
3140
3141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3143
3144 fi
3145 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3146 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3147 GXX=`test $ac_compiler_gnu = yes && echo yes`
3148 ac_test_CXXFLAGS=${CXXFLAGS+set}
3149 ac_save_CXXFLAGS=$CXXFLAGS
3150 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3151 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3152 if test "${ac_cv_prog_cxx_g+set}" = set; then
3153   echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3156    ac_cxx_werror_flag=yes
3157    ac_cv_prog_cxx_g=no
3158    CXXFLAGS="-g"
3159    cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_compile") 2>conftest.er1
3182   ac_status=$?
3183   grep -v '^ *+' conftest.er1 >conftest.err
3184   rm -f conftest.er1
3185   cat conftest.err >&5
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } &&
3188          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3189   { (case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194   (eval "$ac_try") 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }; } &&
3198          { ac_try='test -s conftest.$ac_objext'
3199   { (case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204   (eval "$ac_try") 2>&5
3205   ac_status=$?
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); }; }; then
3208   ac_cv_prog_cxx_g=yes
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213         CXXFLAGS=""
3214       cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h.  */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h.  */
3220
3221 int
3222 main ()
3223 {
3224
3225   ;
3226   return 0;
3227 }
3228 _ACEOF
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236   (eval "$ac_compile") 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } &&
3243          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3244   { (case "(($ac_try" in
3245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246   *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249   (eval "$ac_try") 2>&5
3250   ac_status=$?
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); }; } &&
3253          { ac_try='test -s conftest.$ac_objext'
3254   { (case "(($ac_try" in
3255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256   *) ac_try_echo=$ac_try;;
3257 esac
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259   (eval "$ac_try") 2>&5
3260   ac_status=$?
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); }; }; then
3263   :
3264 else
3265   echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3269          CXXFLAGS="-g"
3270          cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h.  */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h.  */
3276
3277 int
3278 main ()
3279 {
3280
3281   ;
3282   return 0;
3283 }
3284 _ACEOF
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3287 case "(($ac_try" in
3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289   *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292   (eval "$ac_compile") 2>conftest.er1
3293   ac_status=$?
3294   grep -v '^ *+' conftest.er1 >conftest.err
3295   rm -f conftest.er1
3296   cat conftest.err >&5
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } &&
3299          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3300   { (case "(($ac_try" in
3301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302   *) ac_try_echo=$ac_try;;
3303 esac
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305   (eval "$ac_try") 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; } &&
3309          { ac_try='test -s conftest.$ac_objext'
3310   { (case "(($ac_try" in
3311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312   *) ac_try_echo=$ac_try;;
3313 esac
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315   (eval "$ac_try") 2>&5
3316   ac_status=$?
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); }; }; then
3319   ac_cv_prog_cxx_g=yes
3320 else
3321   echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3323
3324
3325 fi
3326
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 fi
3329
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 fi
3332
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3335 fi
3336 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3337 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3338 if test "$ac_test_CXXFLAGS" = set; then
3339   CXXFLAGS=$ac_save_CXXFLAGS
3340 elif test $ac_cv_prog_cxx_g = yes; then
3341   if test "$GXX" = yes; then
3342     CXXFLAGS="-g -O2"
3343   else
3344     CXXFLAGS="-g"
3345   fi
3346 else
3347   if test "$GXX" = yes; then
3348     CXXFLAGS="-O2"
3349   else
3350     CXXFLAGS=
3351   fi
3352 fi
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358
3359
3360
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3368 # On Suns, sometimes $CPP names a directory.
3369 if test -n "$CPP" && test -d "$CPP"; then
3370   CPP=
3371 fi
3372 if test -z "$CPP"; then
3373   if test "${ac_cv_prog_CPP+set}" = set; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376       # Double quotes because CPP needs to be expanded
3377     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3378     do
3379       ac_preproc_ok=false
3380 for ac_c_preproc_warn_flag in '' yes
3381 do
3382   # Use a header file that comes with gcc, so configuring glibc
3383   # with a fresh cross-compiler works.
3384   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3385   # <limits.h> exists even on freestanding compilers.
3386   # On the NeXT, cc -E runs the code through the compiler's parser,
3387   # not just through cpp. "Syntax error" is here to catch this case.
3388   cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #ifdef __STDC__
3395 # include <limits.h>
3396 #else
3397 # include <assert.h>
3398 #endif
3399                      Syntax error
3400 _ACEOF
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } >/dev/null; then
3414   if test -s conftest.err; then
3415     ac_cpp_err=$ac_c_preproc_warn_flag
3416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417   else
3418     ac_cpp_err=
3419   fi
3420 else
3421   ac_cpp_err=yes
3422 fi
3423 if test -z "$ac_cpp_err"; then
3424   :
3425 else
3426   echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429   # Broken: fails on valid input.
3430 continue
3431 fi
3432
3433 rm -f conftest.err conftest.$ac_ext
3434
3435   # OK, works on sane cases.  Now check whether nonexistent headers
3436   # can be detected and how.
3437   cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h.  */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h.  */
3443 #include <ac_nonexistent.h>
3444 _ACEOF
3445 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 case "(($ac_try" in
3447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448   *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452   ac_status=$?
3453   grep -v '^ *+' conftest.er1 >conftest.err
3454   rm -f conftest.er1
3455   cat conftest.err >&5
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } >/dev/null; then
3458   if test -s conftest.err; then
3459     ac_cpp_err=$ac_c_preproc_warn_flag
3460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461   else
3462     ac_cpp_err=
3463   fi
3464 else
3465   ac_cpp_err=yes
3466 fi
3467 if test -z "$ac_cpp_err"; then
3468   # Broken: success on invalid input.
3469 continue
3470 else
3471   echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3473
3474   # Passes both tests.
3475 ac_preproc_ok=:
3476 break
3477 fi
3478
3479 rm -f conftest.err conftest.$ac_ext
3480
3481 done
3482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3483 rm -f conftest.err conftest.$ac_ext
3484 if $ac_preproc_ok; then
3485   break
3486 fi
3487
3488     done
3489     ac_cv_prog_CPP=$CPP
3490
3491 fi
3492   CPP=$ac_cv_prog_CPP
3493 else
3494   ac_cv_prog_CPP=$CPP
3495 fi
3496 { echo "$as_me:$LINENO: result: $CPP" >&5
3497 echo "${ECHO_T}$CPP" >&6; }
3498 ac_preproc_ok=false
3499 for ac_c_preproc_warn_flag in '' yes
3500 do
3501   # Use a header file that comes with gcc, so configuring glibc
3502   # with a fresh cross-compiler works.
3503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3504   # <limits.h> exists even on freestanding compilers.
3505   # On the NeXT, cc -E runs the code through the compiler's parser,
3506   # not just through cpp. "Syntax error" is here to catch this case.
3507   cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513 #ifdef __STDC__
3514 # include <limits.h>
3515 #else
3516 # include <assert.h>
3517 #endif
3518                      Syntax error
3519 _ACEOF
3520 if { (ac_try="$ac_cpp conftest.$ac_ext"
3521 case "(($ac_try" in
3522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523   *) ac_try_echo=$ac_try;;
3524 esac
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527   ac_status=$?
3528   grep -v '^ *+' conftest.er1 >conftest.err
3529   rm -f conftest.er1
3530   cat conftest.err >&5
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); } >/dev/null; then
3533   if test -s conftest.err; then
3534     ac_cpp_err=$ac_c_preproc_warn_flag
3535     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3536   else
3537     ac_cpp_err=
3538   fi
3539 else
3540   ac_cpp_err=yes
3541 fi
3542 if test -z "$ac_cpp_err"; then
3543   :
3544 else
3545   echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548   # Broken: fails on valid input.
3549 continue
3550 fi
3551
3552 rm -f conftest.err conftest.$ac_ext
3553
3554   # OK, works on sane cases.  Now check whether nonexistent headers
3555   # can be detected and how.
3556   cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562 #include <ac_nonexistent.h>
3563 _ACEOF
3564 if { (ac_try="$ac_cpp conftest.$ac_ext"
3565 case "(($ac_try" in
3566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567   *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3571   ac_status=$?
3572   grep -v '^ *+' conftest.er1 >conftest.err
3573   rm -f conftest.er1
3574   cat conftest.err >&5
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); } >/dev/null; then
3577   if test -s conftest.err; then
3578     ac_cpp_err=$ac_c_preproc_warn_flag
3579     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3580   else
3581     ac_cpp_err=
3582   fi
3583 else
3584   ac_cpp_err=yes
3585 fi
3586 if test -z "$ac_cpp_err"; then
3587   # Broken: success on invalid input.
3588 continue
3589 else
3590   echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593   # Passes both tests.
3594 ac_preproc_ok=:
3595 break
3596 fi
3597
3598 rm -f conftest.err conftest.$ac_ext
3599
3600 done
3601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3602 rm -f conftest.err conftest.$ac_ext
3603 if $ac_preproc_ok; then
3604   :
3605 else
3606   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3607 See \`config.log' for more details." >&5
3608 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3609 See \`config.log' for more details." >&2;}
3610    { (exit 1); exit 1; }; }
3611 fi
3612
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3621 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3622 if test "${ac_cv_path_GREP+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   # Extract the first word of "grep ggrep" to use in msg output
3626 if test -z "$GREP"; then
3627 set dummy grep ggrep; ac_prog_name=$2
3628 if test "${ac_cv_path_GREP+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   ac_path_GREP_found=false
3632 # Loop through the user's path and test for each of PROGNAME-LIST
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3635 do
3636   IFS=$as_save_IFS
3637   test -z "$as_dir" && as_dir=.
3638   for ac_prog in grep ggrep; do
3639   for ac_exec_ext in '' $ac_executable_extensions; do
3640     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3641     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3642     # Check for GNU ac_path_GREP and select it if it is found.
3643   # Check for GNU $ac_path_GREP
3644 case `"$ac_path_GREP" --version 2>&1` in
3645 *GNU*)
3646   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3647 *)
3648   ac_count=0
3649   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3650   while :
3651   do
3652     cat "conftest.in" "conftest.in" >"conftest.tmp"
3653     mv "conftest.tmp" "conftest.in"
3654     cp "conftest.in" "conftest.nl"
3655     echo 'GREP' >> "conftest.nl"
3656     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3658     ac_count=`expr $ac_count + 1`
3659     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3660       # Best one so far, save it but keep looking for a better one
3661       ac_cv_path_GREP="$ac_path_GREP"
3662       ac_path_GREP_max=$ac_count
3663     fi
3664     # 10*(2^10) chars as input seems more than enough
3665     test $ac_count -gt 10 && break
3666   done
3667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3668 esac
3669
3670
3671     $ac_path_GREP_found && break 3
3672   done
3673 done
3674
3675 done
3676 IFS=$as_save_IFS
3677
3678
3679 fi
3680
3681 GREP="$ac_cv_path_GREP"
3682 if test -z "$GREP"; then
3683   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3684 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3685    { (exit 1); exit 1; }; }
3686 fi
3687
3688 else
3689   ac_cv_path_GREP=$GREP
3690 fi
3691
3692
3693 fi
3694 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3695 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3696  GREP="$ac_cv_path_GREP"
3697
3698
3699 { echo "$as_me:$LINENO: checking for egrep" >&5
3700 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3701 if test "${ac_cv_path_EGREP+set}" = set; then
3702   echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3705    then ac_cv_path_EGREP="$GREP -E"
3706    else
3707      # Extract the first word of "egrep" to use in msg output
3708 if test -z "$EGREP"; then
3709 set dummy egrep; ac_prog_name=$2
3710 if test "${ac_cv_path_EGREP+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   ac_path_EGREP_found=false
3714 # Loop through the user's path and test for each of PROGNAME-LIST
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3717 do
3718   IFS=$as_save_IFS
3719   test -z "$as_dir" && as_dir=.
3720   for ac_prog in egrep; do
3721   for ac_exec_ext in '' $ac_executable_extensions; do
3722     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3723     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3724     # Check for GNU ac_path_EGREP and select it if it is found.
3725   # Check for GNU $ac_path_EGREP
3726 case `"$ac_path_EGREP" --version 2>&1` in
3727 *GNU*)
3728   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3729 *)
3730   ac_count=0
3731   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3732   while :
3733   do
3734     cat "conftest.in" "conftest.in" >"conftest.tmp"
3735     mv "conftest.tmp" "conftest.in"
3736     cp "conftest.in" "conftest.nl"
3737     echo 'EGREP' >> "conftest.nl"
3738     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3739     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3740     ac_count=`expr $ac_count + 1`
3741     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3742       # Best one so far, save it but keep looking for a better one
3743       ac_cv_path_EGREP="$ac_path_EGREP"
3744       ac_path_EGREP_max=$ac_count
3745     fi
3746     # 10*(2^10) chars as input seems more than enough
3747     test $ac_count -gt 10 && break
3748   done
3749   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3750 esac
3751
3752
3753     $ac_path_EGREP_found && break 3
3754   done
3755 done
3756
3757 done
3758 IFS=$as_save_IFS
3759
3760
3761 fi
3762
3763 EGREP="$ac_cv_path_EGREP"
3764 if test -z "$EGREP"; then
3765   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3766 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3767    { (exit 1); exit 1; }; }
3768 fi
3769
3770 else
3771   ac_cv_path_EGREP=$EGREP
3772 fi
3773
3774
3775    fi
3776 fi
3777 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3778 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3779  EGREP="$ac_cv_path_EGREP"
3780
3781
3782
3783 { echo "$as_me:$LINENO: checking for AIX" >&5
3784 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3785 cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h.  */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h.  */
3791 #ifdef _AIX
3792   yes
3793 #endif
3794
3795 _ACEOF
3796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3797   $EGREP "yes" >/dev/null 2>&1; then
3798   { echo "$as_me:$LINENO: result: yes" >&5
3799 echo "${ECHO_T}yes" >&6; }
3800 cat >>confdefs.h <<\_ACEOF
3801 #define _ALL_SOURCE 1
3802 _ACEOF
3803
3804 else
3805   { echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6; }
3807 fi
3808 rm -f conftest*
3809
3810
3811
3812 if test $ac_cv_c_compiler_gnu = yes; then
3813     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3814 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3815 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818     ac_pattern="Autoconf.*'x'"
3819   cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h.  */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h.  */
3825 #include <sgtty.h>
3826 Autoconf TIOCGETP
3827 _ACEOF
3828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3830   ac_cv_prog_gcc_traditional=yes
3831 else
3832   ac_cv_prog_gcc_traditional=no
3833 fi
3834 rm -f conftest*
3835
3836
3837   if test $ac_cv_prog_gcc_traditional = no; then
3838     cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844 #include <termio.h>
3845 Autoconf TCGETA
3846 _ACEOF
3847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3849   ac_cv_prog_gcc_traditional=yes
3850 fi
3851 rm -f conftest*
3852
3853   fi
3854 fi
3855 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3856 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3857   if test $ac_cv_prog_gcc_traditional = yes; then
3858     CC="$CC -traditional"
3859   fi
3860 fi
3861
3862 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3863 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3864 if test "${ac_cv_prog_suncc+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867   cat > conftest.c <<EOF
3868 #ifdef __SUNPRO_C
3869   yes;
3870 #endif
3871 EOF
3872 if { ac_try='${CC-cc} -E conftest.c'
3873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874   (eval $ac_try) 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3878   ac_cv_prog_suncc=yes
3879 else
3880   ac_cv_prog_suncc=no
3881 fi
3882 fi
3883 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3884 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3885 if test -n "$ac_tool_prefix"; then
3886   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3887 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3890 if test "${ac_cv_prog_RANLIB+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   if test -n "$RANLIB"; then
3894   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3895 else
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH
3898 do
3899   IFS=$as_save_IFS
3900   test -z "$as_dir" && as_dir=.
3901   for ac_exec_ext in '' $ac_executable_extensions; do
3902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3903     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3905     break 2
3906   fi
3907 done
3908 done
3909 IFS=$as_save_IFS
3910
3911 fi
3912 fi
3913 RANLIB=$ac_cv_prog_RANLIB
3914 if test -n "$RANLIB"; then
3915   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3916 echo "${ECHO_T}$RANLIB" >&6; }
3917 else
3918   { echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6; }
3920 fi
3921
3922
3923 fi
3924 if test -z "$ac_cv_prog_RANLIB"; then
3925   ac_ct_RANLIB=$RANLIB
3926   # Extract the first word of "ranlib", so it can be a program name with args.
3927 set dummy ranlib; ac_word=$2
3928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   if test -n "$ac_ct_RANLIB"; then
3934   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3938 do
3939   IFS=$as_save_IFS
3940   test -z "$as_dir" && as_dir=.
3941   for ac_exec_ext in '' $ac_executable_extensions; do
3942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3943     ac_cv_prog_ac_ct_RANLIB="ranlib"
3944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945     break 2
3946   fi
3947 done
3948 done
3949 IFS=$as_save_IFS
3950
3951 fi
3952 fi
3953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3954 if test -n "$ac_ct_RANLIB"; then
3955   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3956 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3957 else
3958   { echo "$as_me:$LINENO: result: no" >&5
3959 echo "${ECHO_T}no" >&6; }
3960 fi
3961
3962   if test "x$ac_ct_RANLIB" = x; then
3963     RANLIB=":"
3964   else
3965     case $cross_compiling:$ac_tool_warned in
3966 yes:)
3967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3968 whose name does not start with the host triplet.  If you think this
3969 configuration is useful to you, please write to autoconf@gnu.org." >&5
3970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3971 whose name does not start with the host triplet.  If you think this
3972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3973 ac_tool_warned=yes ;;
3974 esac
3975     RANLIB=$ac_ct_RANLIB
3976   fi
3977 else
3978   RANLIB="$ac_cv_prog_RANLIB"
3979 fi
3980
3981
3982 # Check whether --enable-largefile was given.
3983 if test "${enable_largefile+set}" = set; then
3984   enableval=$enable_largefile;
3985 fi
3986
3987 if test "$enable_largefile" != no; then
3988
3989   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3990 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3991 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3992   echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994   ac_cv_sys_largefile_CC=no
3995      if test "$GCC" != yes; then
3996        ac_save_CC=$CC
3997        while :; do
3998          # IRIX 6.2 and later do not support large files by default,
3999          # so use the C compiler's -n32 option if that helps.
4000          cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h.  */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h.  */
4006 #include <sys/types.h>
4007  /* Check that off_t can represent 2**63 - 1 correctly.
4008     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4009     since some C++ compilers masquerading as C compilers
4010     incorrectly reject 9223372036854775807.  */
4011 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4012   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4013                        && LARGE_OFF_T % 2147483647 == 1)
4014                       ? 1 : -1];
4015 int
4016 main ()
4017 {
4018
4019   ;
4020   return 0;
4021 }
4022 _ACEOF
4023          rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4025 case "(($ac_try" in
4026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027   *) ac_try_echo=$ac_try;;
4028 esac
4029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4030   (eval "$ac_compile") 2>conftest.er1
4031   ac_status=$?
4032   grep -v '^ *+' conftest.er1 >conftest.err
4033   rm -f conftest.er1
4034   cat conftest.err >&5
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); } &&
4037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4038   { (case "(($ac_try" in
4039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040   *) ac_try_echo=$ac_try;;
4041 esac
4042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4043   (eval "$ac_try") 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); }; } &&
4047          { ac_try='test -s conftest.$ac_objext'
4048   { (case "(($ac_try" in
4049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050   *) ac_try_echo=$ac_try;;
4051 esac
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053   (eval "$ac_try") 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); }; }; then
4057   break
4058 else
4059   echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4061
4062
4063 fi
4064
4065 rm -f core conftest.err conftest.$ac_objext
4066          CC="$CC -n32"
4067          rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4069 case "(($ac_try" in
4070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071   *) ac_try_echo=$ac_try;;
4072 esac
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074   (eval "$ac_compile") 2>conftest.er1
4075   ac_status=$?
4076   grep -v '^ *+' conftest.er1 >conftest.err
4077   rm -f conftest.er1
4078   cat conftest.err >&5
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); } &&
4081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4082   { (case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087   (eval "$ac_try") 2>&5
4088   ac_status=$?
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); }; } &&
4091          { ac_try='test -s conftest.$ac_objext'
4092   { (case "(($ac_try" in
4093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094   *) ac_try_echo=$ac_try;;
4095 esac
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097   (eval "$ac_try") 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; }; then
4101   ac_cv_sys_largefile_CC=' -n32'; break
4102 else
4103   echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106
4107 fi
4108
4109 rm -f core conftest.err conftest.$ac_objext
4110          break
4111        done
4112        CC=$ac_save_CC
4113        rm -f conftest.$ac_ext
4114     fi
4115 fi
4116 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4117 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4118   if test "$ac_cv_sys_largefile_CC" != no; then
4119     CC=$CC$ac_cv_sys_largefile_CC
4120   fi
4121
4122   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4123 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4124 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   while :; do
4128   ac_cv_sys_file_offset_bits=no
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          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167   { (case "(($ac_try" in
4168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169   *) ac_try_echo=$ac_try;;
4170 esac
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172   (eval "$ac_try") 2>&5
4173   ac_status=$?
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); }; } &&
4176          { ac_try='test -s conftest.$ac_objext'
4177   { (case "(($ac_try" in
4178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179   *) ac_try_echo=$ac_try;;
4180 esac
4181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182   (eval "$ac_try") 2>&5
4183   ac_status=$?
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); }; }; then
4186   break
4187 else
4188   echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191
4192 fi
4193
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195   cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h.  */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h.  */
4201 #define _FILE_OFFSET_BITS 64
4202 #include <sys/types.h>
4203  /* Check that off_t can represent 2**63 - 1 correctly.
4204     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4205     since some C++ compilers masquerading as C compilers
4206     incorrectly reject 9223372036854775807.  */
4207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4208   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4209                        && LARGE_OFF_T % 2147483647 == 1)
4210                       ? 1 : -1];
4211 int
4212 main ()
4213 {
4214
4215   ;
4216   return 0;
4217 }
4218 _ACEOF
4219 rm -f conftest.$ac_objext
4220 if { (ac_try="$ac_compile"
4221 case "(($ac_try" in
4222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223   *) ac_try_echo=$ac_try;;
4224 esac
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226   (eval "$ac_compile") 2>conftest.er1
4227   ac_status=$?
4228   grep -v '^ *+' conftest.er1 >conftest.err
4229   rm -f conftest.er1
4230   cat conftest.err >&5
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); } &&
4233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4234   { (case "(($ac_try" in
4235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236   *) ac_try_echo=$ac_try;;
4237 esac
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239   (eval "$ac_try") 2>&5
4240   ac_status=$?
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); }; } &&
4243          { ac_try='test -s conftest.$ac_objext'
4244   { (case "(($ac_try" in
4245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246   *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249   (eval "$ac_try") 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; }; then
4253   ac_cv_sys_file_offset_bits=64; break
4254 else
4255   echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258
4259 fi
4260
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262   break
4263 done
4264 fi
4265 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4266 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4267 if test "$ac_cv_sys_file_offset_bits" != no; then
4268
4269 cat >>confdefs.h <<_ACEOF
4270 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4271 _ACEOF
4272
4273 fi
4274 rm -f conftest*
4275   { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4276 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4277 if test "${ac_cv_sys_large_files+set}" = set; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   while :; do
4281   ac_cv_sys_large_files=no
4282   cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h.  */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h.  */
4288 #include <sys/types.h>
4289  /* Check that off_t can represent 2**63 - 1 correctly.
4290     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4291     since some C++ compilers masquerading as C compilers
4292     incorrectly reject 9223372036854775807.  */
4293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4294   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4295                        && LARGE_OFF_T % 2147483647 == 1)
4296                       ? 1 : -1];
4297 int
4298 main ()
4299 {
4300
4301   ;
4302   return 0;
4303 }
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (ac_try="$ac_compile"
4307 case "(($ac_try" in
4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309   *) ac_try_echo=$ac_try;;
4310 esac
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312   (eval "$ac_compile") 2>conftest.er1
4313   ac_status=$?
4314   grep -v '^ *+' conftest.er1 >conftest.err
4315   rm -f conftest.er1
4316   cat conftest.err >&5
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); } &&
4319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4320   { (case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325   (eval "$ac_try") 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); }; } &&
4329          { ac_try='test -s conftest.$ac_objext'
4330   { (case "(($ac_try" in
4331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332   *) ac_try_echo=$ac_try;;
4333 esac
4334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335   (eval "$ac_try") 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }; }; then
4339   break
4340 else
4341   echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344
4345 fi
4346
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348   cat >conftest.$ac_ext <<_ACEOF
4349 /* confdefs.h.  */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h.  */
4354 #define _LARGE_FILES 1
4355 #include <sys/types.h>
4356  /* Check that off_t can represent 2**63 - 1 correctly.
4357     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4358     since some C++ compilers masquerading as C compilers
4359     incorrectly reject 9223372036854775807.  */
4360 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4361   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4362                        && LARGE_OFF_T % 2147483647 == 1)
4363                       ? 1 : -1];
4364 int
4365 main ()
4366 {
4367
4368   ;
4369   return 0;
4370 }
4371 _ACEOF
4372 rm -f conftest.$ac_objext
4373 if { (ac_try="$ac_compile"
4374 case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379   (eval "$ac_compile") 2>conftest.er1
4380   ac_status=$?
4381   grep -v '^ *+' conftest.er1 >conftest.err
4382   rm -f conftest.er1
4383   cat conftest.err >&5
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); } &&
4386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4387   { (case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392   (eval "$ac_try") 2>&5
4393   ac_status=$?
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); }; } &&
4396          { ac_try='test -s conftest.$ac_objext'
4397   { (case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402   (eval "$ac_try") 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; }; then
4406   ac_cv_sys_large_files=1; break
4407 else
4408   echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411
4412 fi
4413
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415   break
4416 done
4417 fi
4418 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4419 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4420 if test "$ac_cv_sys_large_files" != no; then
4421
4422 cat >>confdefs.h <<_ACEOF
4423 #define _LARGE_FILES $ac_cv_sys_large_files
4424 _ACEOF
4425
4426 fi
4427 rm -f conftest*
4428 fi
4429
4430
4431 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4432 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4433 if test "${ac_cv_header_stdc+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436   cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h.  */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h.  */
4442 #include <stdlib.h>
4443 #include <stdarg.h>
4444 #include <string.h>
4445 #include <float.h>
4446
4447 int
4448 main ()
4449 {
4450
4451   ;
4452   return 0;
4453 }
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (ac_try="$ac_compile"
4457 case "(($ac_try" in
4458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459   *) ac_try_echo=$ac_try;;
4460 esac
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462   (eval "$ac_compile") 2>conftest.er1
4463   ac_status=$?
4464   grep -v '^ *+' conftest.er1 >conftest.err
4465   rm -f conftest.er1
4466   cat conftest.err >&5
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); } &&
4469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4470   { (case "(($ac_try" in
4471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472   *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475   (eval "$ac_try") 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; } &&
4479          { ac_try='test -s conftest.$ac_objext'
4480   { (case "(($ac_try" in
4481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482   *) ac_try_echo=$ac_try;;
4483 esac
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485   (eval "$ac_try") 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; }; then
4489   ac_cv_header_stdc=yes
4490 else
4491   echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494         ac_cv_header_stdc=no
4495 fi
4496
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498
4499 if test $ac_cv_header_stdc = yes; then
4500   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4501   cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507 #include <string.h>
4508
4509 _ACEOF
4510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4511   $EGREP "memchr" >/dev/null 2>&1; then
4512   :
4513 else
4514   ac_cv_header_stdc=no
4515 fi
4516 rm -f conftest*
4517
4518 fi
4519
4520 if test $ac_cv_header_stdc = yes; then
4521   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4522   cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528 #include <stdlib.h>
4529
4530 _ACEOF
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532   $EGREP "free" >/dev/null 2>&1; then
4533   :
4534 else
4535   ac_cv_header_stdc=no
4536 fi
4537 rm -f conftest*
4538
4539 fi
4540
4541 if test $ac_cv_header_stdc = yes; then
4542   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4543   if test "$cross_compiling" = yes; then
4544   :
4545 else
4546   cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h.  */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h.  */
4552 #include <ctype.h>
4553 #include <stdlib.h>
4554 #if ((' ' & 0x0FF) == 0x020)
4555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4557 #else
4558 # define ISLOWER(c) \
4559                    (('a' <= (c) && (c) <= 'i') \
4560                      || ('j' <= (c) && (c) <= 'r') \
4561                      || ('s' <= (c) && (c) <= 'z'))
4562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4563 #endif
4564
4565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4566 int
4567 main ()
4568 {
4569   int i;
4570   for (i = 0; i < 256; i++)
4571     if (XOR (islower (i), ISLOWER (i))
4572         || toupper (i) != TOUPPER (i))
4573       return 2;
4574   return 0;
4575 }
4576 _ACEOF
4577 rm -f conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4579 case "(($ac_try" in
4580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581   *) ac_try_echo=$ac_try;;
4582 esac
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584   (eval "$ac_link") 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588   { (case "(($ac_try" in
4589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590   *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593   (eval "$ac_try") 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; }; then
4597   :
4598 else
4599   echo "$as_me: program exited with status $ac_status" >&5
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603 ( exit $ac_status )
4604 ac_cv_header_stdc=no
4605 fi
4606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4607 fi
4608
4609
4610 fi
4611 fi
4612 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4613 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4614 if test $ac_cv_header_stdc = yes; then
4615
4616 cat >>confdefs.h <<\_ACEOF
4617 #define STDC_HEADERS 1
4618 _ACEOF
4619
4620 fi
4621
4622 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4633                   inttypes.h stdint.h unistd.h
4634 do
4635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h.  */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h.  */
4647 $ac_includes_default
4648
4649 #include <$ac_header>
4650 _ACEOF
4651 rm -f conftest.$ac_objext
4652 if { (ac_try="$ac_compile"
4653 case "(($ac_try" in
4654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655   *) ac_try_echo=$ac_try;;
4656 esac
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658   (eval "$ac_compile") 2>conftest.er1
4659   ac_status=$?
4660   grep -v '^ *+' conftest.er1 >conftest.err
4661   rm -f conftest.er1
4662   cat conftest.err >&5
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); } &&
4665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4666   { (case "(($ac_try" in
4667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668   *) ac_try_echo=$ac_try;;
4669 esac
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671   (eval "$ac_try") 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); }; } &&
4675          { ac_try='test -s conftest.$ac_objext'
4676   { (case "(($ac_try" in
4677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678   *) ac_try_echo=$ac_try;;
4679 esac
4680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4681   (eval "$ac_try") 2>&5
4682   ac_status=$?
4683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); }; }; then
4685   eval "$as_ac_Header=yes"
4686 else
4687   echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4689
4690         eval "$as_ac_Header=no"
4691 fi
4692
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 fi
4695 ac_res=`eval echo '${'$as_ac_Header'}'`
4696                { echo "$as_me:$LINENO: result: $ac_res" >&5
4697 echo "${ECHO_T}$ac_res" >&6; }
4698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4699   cat >>confdefs.h <<_ACEOF
4700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4701 _ACEOF
4702
4703 fi
4704
4705 done
4706
4707
4708 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4709 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4710 if test "${ac_cv_c_bigendian+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713   # See if sys/param.h defines the BYTE_ORDER macro.
4714 cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h.  */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h.  */
4720 #include <sys/types.h>
4721 #include <sys/param.h>
4722
4723 int
4724 main ()
4725 {
4726 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4727  bogus endian macros
4728 #endif
4729
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest.$ac_objext
4735 if { (ac_try="$ac_compile"
4736 case "(($ac_try" in
4737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738   *) ac_try_echo=$ac_try;;
4739 esac
4740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741   (eval "$ac_compile") 2>conftest.er1
4742   ac_status=$?
4743   grep -v '^ *+' conftest.er1 >conftest.err
4744   rm -f conftest.er1
4745   cat conftest.err >&5
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } &&
4748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4749   { (case "(($ac_try" in
4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751   *) ac_try_echo=$ac_try;;
4752 esac
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754   (eval "$ac_try") 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; } &&
4758          { ac_try='test -s conftest.$ac_objext'
4759   { (case "(($ac_try" in
4760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761   *) ac_try_echo=$ac_try;;
4762 esac
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764   (eval "$ac_try") 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; }; then
4768   # It does; now see whether it defined to BIG_ENDIAN or not.
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h.  */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h.  */
4775 #include <sys/types.h>
4776 #include <sys/param.h>
4777
4778 int
4779 main ()
4780 {
4781 #if BYTE_ORDER != BIG_ENDIAN
4782  not big endian
4783 #endif
4784
4785   ;
4786   return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4791 case "(($ac_try" in
4792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793   *) ac_try_echo=$ac_try;;
4794 esac
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796   (eval "$ac_compile") 2>conftest.er1
4797   ac_status=$?
4798   grep -v '^ *+' conftest.er1 >conftest.err
4799   rm -f conftest.er1
4800   cat conftest.err >&5
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); } &&
4803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4804   { (case "(($ac_try" in
4805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806   *) ac_try_echo=$ac_try;;
4807 esac
4808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4809   (eval "$ac_try") 2>&5
4810   ac_status=$?
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); }; } &&
4813          { ac_try='test -s conftest.$ac_objext'
4814   { (case "(($ac_try" in
4815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816   *) ac_try_echo=$ac_try;;
4817 esac
4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819   (eval "$ac_try") 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; }; then
4823   ac_cv_c_bigendian=yes
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828         ac_cv_c_bigendian=no
4829 fi
4830
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 else
4833   echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4835
4836         # It does not; compile a test program.
4837 if test "$cross_compiling" = yes; then
4838   # try to guess the endianness by grepping values into an object file
4839   ac_cv_c_bigendian=unknown
4840   cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h.  */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h.  */
4846 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4847 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4848 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4849 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4850 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4851 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4852 int
4853 main ()
4854 {
4855  _ascii (); _ebcdic ();
4856   ;
4857   return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4862 case "(($ac_try" in
4863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864   *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867   (eval "$ac_compile") 2>conftest.er1
4868   ac_status=$?
4869   grep -v '^ *+' conftest.er1 >conftest.err
4870   rm -f conftest.er1
4871   cat conftest.err >&5
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); } &&
4874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4875   { (case "(($ac_try" in
4876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877   *) ac_try_echo=$ac_try;;
4878 esac
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880   (eval "$ac_try") 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); }; } &&
4884          { ac_try='test -s conftest.$ac_objext'
4885   { (case "(($ac_try" in
4886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887   *) ac_try_echo=$ac_try;;
4888 esac
4889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890   (eval "$ac_try") 2>&5
4891   ac_status=$?
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); }; }; then
4894   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4895   ac_cv_c_bigendian=yes
4896 fi
4897 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4898   if test "$ac_cv_c_bigendian" = unknown; then
4899     ac_cv_c_bigendian=no
4900   else
4901     # finding both strings is unlikely to happen, but who knows?
4902     ac_cv_c_bigendian=unknown
4903   fi
4904 fi
4905 else
4906   echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4908
4909
4910 fi
4911
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 else
4914   cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h.  */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h.  */
4920 $ac_includes_default
4921 int
4922 main ()
4923 {
4924
4925   /* Are we little or big endian?  From Harbison&Steele.  */
4926   union
4927   {
4928     long int l;
4929     char c[sizeof (long int)];
4930   } u;
4931   u.l = 1;
4932   return u.c[sizeof (long int) - 1] == 1;
4933
4934   ;
4935   return 0;
4936 }
4937 _ACEOF
4938 rm -f conftest$ac_exeext
4939 if { (ac_try="$ac_link"
4940 case "(($ac_try" in
4941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942   *) ac_try_echo=$ac_try;;
4943 esac
4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945   (eval "$ac_link") 2>&5
4946   ac_status=$?
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4949   { (case "(($ac_try" in
4950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951   *) ac_try_echo=$ac_try;;
4952 esac
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954   (eval "$ac_try") 2>&5
4955   ac_status=$?
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); }; }; then
4958   ac_cv_c_bigendian=no
4959 else
4960   echo "$as_me: program exited with status $ac_status" >&5
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964 ( exit $ac_status )
4965 ac_cv_c_bigendian=yes
4966 fi
4967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4968 fi
4969
4970
4971 fi
4972
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 fi
4975 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4976 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4977 case $ac_cv_c_bigendian in
4978   yes)
4979
4980 cat >>confdefs.h <<\_ACEOF
4981 #define WORDS_BIGENDIAN 1
4982 _ACEOF
4983  ;;
4984   no)
4985      ;;
4986   *)
4987     { { echo "$as_me:$LINENO: error: unknown endianness
4988 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4989 echo "$as_me: error: unknown endianness
4990 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4991    { (exit 1); exit 1; }; } ;;
4992 esac
4993
4994
4995 # Extract the first word of "gmake", so it can be a program name with args.
4996 set dummy gmake; ac_word=$2
4997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4999 if test "${ac_cv_prog_GMAKE+set}" = set; then
5000   echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002   if test -n "$GMAKE"; then
5003   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5007 do
5008   IFS=$as_save_IFS
5009   test -z "$as_dir" && as_dir=.
5010   for ac_exec_ext in '' $ac_executable_extensions; do
5011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5012     ac_cv_prog_GMAKE="yes"
5013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014     break 2
5015   fi
5016 done
5017 done
5018 IFS=$as_save_IFS
5019
5020   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
5021 fi
5022 fi
5023 GMAKE=$ac_cv_prog_GMAKE
5024 if test -n "$GMAKE"; then
5025   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5026 echo "${ECHO_T}$GMAKE" >&6; }
5027 else
5028   { echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6; }
5030 fi
5031
5032
5033 if test $GMAKE = no; then
5034   # Extract the first word of "make", so it can be a program name with args.
5035 set dummy make; ac_word=$2
5036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5038 if test "${ac_cv_path_MAKE+set}" = set; then
5039   echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041   case $MAKE in
5042   [\\/]* | ?:[\\/]*)
5043   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5044   ;;
5045   *)
5046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049   IFS=$as_save_IFS
5050   test -z "$as_dir" && as_dir=.
5051   for ac_exec_ext in '' $ac_executable_extensions; do
5052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5053     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055     break 2
5056   fi
5057 done
5058 done
5059 IFS=$as_save_IFS
5060
5061   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
5062   ;;
5063 esac
5064 fi
5065 MAKE=$ac_cv_path_MAKE
5066 if test -n "$MAKE"; then
5067   { echo "$as_me:$LINENO: result: $MAKE" >&5
5068 echo "${ECHO_T}$MAKE" >&6; }
5069 else
5070   { echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6; }
5072 fi
5073
5074
5075 else
5076   # Extract the first word of "gmake", so it can be a program name with args.
5077 set dummy gmake; ac_word=$2
5078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5080 if test "${ac_cv_path_MAKE+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   case $MAKE in
5084   [\\/]* | ?:[\\/]*)
5085   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5086   ;;
5087   *)
5088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093   for ac_exec_ext in '' $ac_executable_extensions; do
5094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5095     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097     break 2
5098   fi
5099 done
5100 done
5101 IFS=$as_save_IFS
5102
5103   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
5104   ;;
5105 esac
5106 fi
5107 MAKE=$ac_cv_path_MAKE
5108 if test -n "$MAKE"; then
5109   { echo "$as_me:$LINENO: result: $MAKE" >&5
5110 echo "${ECHO_T}$MAKE" >&6; }
5111 else
5112   { echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6; }
5114 fi
5115
5116
5117 fi
5118 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
5119 if test -z "$makever"; then
5120   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
5121                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
5122 echo "$as_me: error: GNU Make is not installed.  Please download and install it
5123                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
5124    { (exit 1); exit 1; }; }
5125 fi
5126
5127   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
5128 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
5129 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
5130   echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132   ac_check_lib_save_LIBS=$LIBS
5133 LIBS="-lltdl  $LIBS"
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h.  */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h.  */
5140
5141 /* Override any GCC internal prototype to avoid an error.
5142    Use char because int might match the return type of a GCC
5143    builtin and then its argument prototype would still apply.  */
5144 #ifdef __cplusplus
5145 extern "C"
5146 #endif
5147 char lt_dlinit ();
5148 int
5149 main ()
5150 {
5151 return lt_dlinit ();
5152   ;
5153   return 0;
5154 }
5155 _ACEOF
5156 rm -f conftest.$ac_objext conftest$ac_exeext
5157 if { (ac_try="$ac_link"
5158 case "(($ac_try" in
5159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160   *) ac_try_echo=$ac_try;;
5161 esac
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163   (eval "$ac_link") 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } &&
5170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); }; } &&
5180          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
5187   ac_status=$?
5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189   (exit $ac_status); }; }; then
5190   ac_cv_lib_ltdl_lt_dlinit=yes
5191 else
5192   echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5194
5195         ac_cv_lib_ltdl_lt_dlinit=no
5196 fi
5197
5198 rm -f core conftest.err conftest.$ac_objext \
5199       conftest$ac_exeext conftest.$ac_ext
5200 LIBS=$ac_check_lib_save_LIBS
5201 fi
5202 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5203 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5204 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
5205   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5206 else
5207   if test x"$enable_ltdl_install" = xno; then
5208      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
5209 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5210    else
5211      enable_ltdl_install=yes
5212    fi
5213
5214 fi
5215
5216   if test x"$enable_ltdl_install" = x"yes"; then
5217     ac_configure_args="$ac_configure_args --enable-ltdl-install"
5218     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5219     LTDLINCL='-I${top_srcdir}/''libltdl'
5220   else
5221     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5222     LIBLTDL="-lltdl"
5223     LTDLINCL=
5224   fi
5225   # For backwards non-gettext consistent compatibility...
5226   INCLTDL="$LTDLINCL"
5227
5228
5229 if test x"$enable_ltdl_install" = x"yes"; then
5230   LTDL_SUBDIRS=libltdl
5231 fi
5232
5233
5234 # Check whether --enable-shared was given.
5235 if test "${enable_shared+set}" = set; then
5236   enableval=$enable_shared; p=${PACKAGE-default}
5237     case $enableval in
5238     yes) enable_shared=yes ;;
5239     no) enable_shared=no ;;
5240     *)
5241       enable_shared=no
5242       # Look at the argument we got.  We use all the common list separators.
5243       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5244       for pkg in $enableval; do
5245         IFS="$lt_save_ifs"
5246         if test "X$pkg" = "X$p"; then
5247           enable_shared=yes
5248         fi
5249       done
5250       IFS="$lt_save_ifs"
5251       ;;
5252     esac
5253 else
5254   enable_shared=yes
5255 fi
5256
5257
5258 # Check whether --enable-static was given.
5259 if test "${enable_static+set}" = set; then
5260   enableval=$enable_static; p=${PACKAGE-default}
5261     case $enableval in
5262     yes) enable_static=yes ;;
5263     no) enable_static=no ;;
5264     *)
5265      enable_static=no
5266       # Look at the argument we got.  We use all the common list separators.
5267       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5268       for pkg in $enableval; do
5269         IFS="$lt_save_ifs"
5270         if test "X$pkg" = "X$p"; then
5271           enable_static=yes
5272         fi
5273       done
5274       IFS="$lt_save_ifs"
5275       ;;
5276     esac
5277 else
5278   enable_static=yes
5279 fi
5280
5281
5282 # Check whether --enable-fast-install was given.
5283 if test "${enable_fast_install+set}" = set; then
5284   enableval=$enable_fast_install; p=${PACKAGE-default}
5285     case $enableval in
5286     yes) enable_fast_install=yes ;;
5287     no) enable_fast_install=no ;;
5288     *)
5289       enable_fast_install=no
5290       # Look at the argument we got.  We use all the common list separators.
5291       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5292       for pkg in $enableval; do
5293         IFS="$lt_save_ifs"
5294         if test "X$pkg" = "X$p"; then
5295           enable_fast_install=yes
5296         fi
5297       done
5298       IFS="$lt_save_ifs"
5299       ;;
5300     esac
5301 else
5302   enable_fast_install=yes
5303 fi
5304
5305
5306 ac_aux_dir=
5307 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5308   if test -f "$ac_dir/install-sh"; then
5309     ac_aux_dir=$ac_dir
5310     ac_install_sh="$ac_aux_dir/install-sh -c"
5311     break
5312   elif test -f "$ac_dir/install.sh"; then
5313     ac_aux_dir=$ac_dir
5314     ac_install_sh="$ac_aux_dir/install.sh -c"
5315     break
5316   elif test -f "$ac_dir/shtool"; then
5317     ac_aux_dir=$ac_dir
5318     ac_install_sh="$ac_aux_dir/shtool install -c"
5319     break
5320   fi
5321 done
5322 if test -z "$ac_aux_dir"; then
5323   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5324 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5325    { (exit 1); exit 1; }; }
5326 fi
5327
5328 # These three variables are undocumented and unsupported,
5329 # and are intended to be withdrawn in a future Autoconf release.
5330 # They can cause serious problems if a builder's source tree is in a directory
5331 # whose full name contains unusual characters.
5332 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5333 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5334 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5335
5336
5337 # Make sure we can run config.sub.
5338 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5339   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5340 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5341    { (exit 1); exit 1; }; }
5342
5343 { echo "$as_me:$LINENO: checking build system type" >&5
5344 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5345 if test "${ac_cv_build+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   ac_build_alias=$build_alias
5349 test "x$ac_build_alias" = x &&
5350   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5351 test "x$ac_build_alias" = x &&
5352   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5353 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5354    { (exit 1); exit 1; }; }
5355 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5356   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5357 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5358    { (exit 1); exit 1; }; }
5359
5360 fi
5361 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5362 echo "${ECHO_T}$ac_cv_build" >&6; }
5363 case $ac_cv_build in
5364 *-*-*) ;;
5365 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5366 echo "$as_me: error: invalid value of canonical build" >&2;}
5367    { (exit 1); exit 1; }; };;
5368 esac
5369 build=$ac_cv_build
5370 ac_save_IFS=$IFS; IFS='-'
5371 set x $ac_cv_build
5372 shift
5373 build_cpu=$1
5374 build_vendor=$2
5375 shift; shift
5376 # Remember, the first character of IFS is used to create $*,
5377 # except with old shells:
5378 build_os=$*
5379 IFS=$ac_save_IFS
5380 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5381
5382
5383 { echo "$as_me:$LINENO: checking host system type" >&5
5384 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5385 if test "${ac_cv_host+set}" = set; then
5386   echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388   if test "x$host_alias" = x; then
5389   ac_cv_host=$ac_cv_build
5390 else
5391   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5392     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5393 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5394    { (exit 1); exit 1; }; }
5395 fi
5396
5397 fi
5398 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5399 echo "${ECHO_T}$ac_cv_host" >&6; }
5400 case $ac_cv_host in
5401 *-*-*) ;;
5402 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5403 echo "$as_me: error: invalid value of canonical host" >&2;}
5404    { (exit 1); exit 1; }; };;
5405 esac
5406 host=$ac_cv_host
5407 ac_save_IFS=$IFS; IFS='-'
5408 set x $ac_cv_host
5409 shift
5410 host_cpu=$1
5411 host_vendor=$2
5412 shift; shift
5413 # Remember, the first character of IFS is used to create $*,
5414 # except with old shells:
5415 host_os=$*
5416 IFS=$ac_save_IFS
5417 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5418
5419
5420 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5421 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5422 if test "${lt_cv_path_SED+set}" = set; then
5423   echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425   # Loop through the user's path and test for sed and gsed.
5426 # Then use that list of sed's as ones to test for truncation.
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5429 do
5430   IFS=$as_save_IFS
5431   test -z "$as_dir" && as_dir=.
5432   for lt_ac_prog in sed gsed; do
5433     for ac_exec_ext in '' $ac_executable_extensions; do
5434       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5435         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5436       fi
5437     done
5438   done
5439 done
5440 lt_ac_max=0
5441 lt_ac_count=0
5442 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5443 # along with /bin/sed that truncates output.
5444 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5445   test ! -f $lt_ac_sed && continue
5446   cat /dev/null > conftest.in
5447   lt_ac_count=0
5448   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5449   # Check for GNU sed and select it if it is found.
5450   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5451     lt_cv_path_SED=$lt_ac_sed
5452     break
5453   fi
5454   while true; do
5455     cat conftest.in conftest.in >conftest.tmp
5456     mv conftest.tmp conftest.in
5457     cp conftest.in conftest.nl
5458     echo >>conftest.nl
5459     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5460     cmp -s conftest.out conftest.nl || break
5461     # 10000 chars as input seems more than enough
5462     test $lt_ac_count -gt 10 && break
5463     lt_ac_count=`expr $lt_ac_count + 1`
5464     if test $lt_ac_count -gt $lt_ac_max; then
5465       lt_ac_max=$lt_ac_count
5466       lt_cv_path_SED=$lt_ac_sed
5467     fi
5468   done
5469 done
5470
5471 fi
5472
5473 SED=$lt_cv_path_SED
5474 { echo "$as_me:$LINENO: result: $SED" >&5
5475 echo "${ECHO_T}$SED" >&6; }
5476
5477
5478 # Check whether --with-gnu-ld was given.
5479 if test "${with_gnu_ld+set}" = set; then
5480   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5481 else
5482   with_gnu_ld=no
5483 fi
5484
5485 ac_prog=ld
5486 if test "$GCC" = yes; then
5487   # Check if gcc -print-prog-name=ld gives a path.
5488   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5489 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5490   case $host in
5491   *-*-mingw*)
5492     # gcc leaves a trailing carriage return which upsets mingw
5493     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5494   *)
5495     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5496   esac
5497   case $ac_prog in
5498     # Accept absolute paths.
5499     [\\/]* | ?:[\\/]*)
5500       re_direlt='/[^/][^/]*/\.\./'
5501       # Canonicalize the pathname of ld
5502       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5503       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5504         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5505       done
5506       test -z "$LD" && LD="$ac_prog"
5507       ;;
5508   "")
5509     # If it fails, then pretend we aren't using GCC.
5510     ac_prog=ld
5511     ;;
5512   *)
5513     # If it is relative, then search for the first ld in PATH.
5514     with_gnu_ld=unknown
5515     ;;
5516   esac
5517 elif test "$with_gnu_ld" = yes; then
5518   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5519 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5520 else
5521   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5522 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5523 fi
5524 if test "${lt_cv_path_LD+set}" = set; then
5525   echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527   if test -z "$LD"; then
5528   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5529   for ac_dir in $PATH; do
5530     IFS="$lt_save_ifs"
5531     test -z "$ac_dir" && ac_dir=.
5532     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5533       lt_cv_path_LD="$ac_dir/$ac_prog"
5534       # Check to see if the program is GNU ld.  I'd rather use --version,
5535       # but apparently some variants of GNU ld only accept -v.
5536       # Break only if it was the GNU/non-GNU ld that we prefer.
5537       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5538       *GNU* | *'with BFD'*)
5539         test "$with_gnu_ld" != no && break
5540         ;;
5541       *)
5542         test "$with_gnu_ld" != yes && break
5543         ;;
5544       esac
5545     fi
5546   done
5547   IFS="$lt_save_ifs"
5548 else
5549   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5550 fi
5551 fi
5552
5553 LD="$lt_cv_path_LD"
5554 if test -n "$LD"; then
5555   { echo "$as_me:$LINENO: result: $LD" >&5
5556 echo "${ECHO_T}$LD" >&6; }
5557 else
5558   { echo "$as_me:$LINENO: result: no" >&5
5559 echo "${ECHO_T}no" >&6; }
5560 fi
5561 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5562 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5563    { (exit 1); exit 1; }; }
5564 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5565 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5566 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5570 case `$LD -v 2>&1 </dev/null` in
5571 *GNU* | *'with BFD'*)
5572   lt_cv_prog_gnu_ld=yes
5573   ;;
5574 *)
5575   lt_cv_prog_gnu_ld=no
5576   ;;
5577 esac
5578 fi
5579 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5580 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5581 with_gnu_ld=$lt_cv_prog_gnu_ld
5582
5583
5584 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5585 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5586 if test "${lt_cv_ld_reload_flag+set}" = set; then
5587   echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589   lt_cv_ld_reload_flag='-r'
5590 fi
5591 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5592 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5593 reload_flag=$lt_cv_ld_reload_flag
5594 case $reload_flag in
5595 "" | " "*) ;;
5596 *) reload_flag=" $reload_flag" ;;
5597 esac
5598 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5599 case $host_os in
5600   darwin*)
5601     if test "$GCC" = yes; then
5602       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5603     else
5604       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5605     fi
5606     ;;
5607 esac
5608
5609 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5610 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5611 if test "${lt_cv_path_NM+set}" = set; then
5612   echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614   if test -n "$NM"; then
5615   # Let the user override the test.
5616   lt_cv_path_NM="$NM"
5617 else
5618   lt_nm_to_check="${ac_tool_prefix}nm"
5619   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5620     lt_nm_to_check="$lt_nm_to_check nm"
5621   fi
5622   for lt_tmp_nm in $lt_nm_to_check; do
5623     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5624     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5625       IFS="$lt_save_ifs"
5626       test -z "$ac_dir" && ac_dir=.
5627       tmp_nm="$ac_dir/$lt_tmp_nm"
5628       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5629         # Check to see if the nm accepts a BSD-compat flag.
5630         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5631         #   nm: unknown option "B" ignored
5632         # Tru64's nm complains that /dev/null is an invalid object file
5633         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5634         */dev/null* | *'Invalid file or object type'*)
5635           lt_cv_path_NM="$tmp_nm -B"
5636           break
5637           ;;
5638         *)
5639           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5640           */dev/null*)
5641             lt_cv_path_NM="$tmp_nm -p"
5642             break
5643             ;;
5644           *)
5645             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5646             continue # so that we can try to find one that supports BSD flags
5647             ;;
5648           esac
5649           ;;
5650         esac
5651       fi
5652     done
5653     IFS="$lt_save_ifs"
5654   done
5655   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5656 fi
5657 fi
5658 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5659 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5660 NM="$lt_cv_path_NM"
5661
5662 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5663 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5664 LN_S=$as_ln_s
5665 if test "$LN_S" = "ln -s"; then
5666   { echo "$as_me:$LINENO: result: yes" >&5
5667 echo "${ECHO_T}yes" >&6; }
5668 else
5669   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5670 echo "${ECHO_T}no, using $LN_S" >&6; }
5671 fi
5672
5673 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5674 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5675 if test "${lt_cv_deplibs_check_method+set}" = set; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678   lt_cv_file_magic_cmd='$MAGIC_CMD'
5679 lt_cv_file_magic_test_file=
5680 lt_cv_deplibs_check_method='unknown'
5681 # Need to set the preceding variable on all platforms that support
5682 # interlibrary dependencies.
5683 # 'none' -- dependencies not supported.
5684 # `unknown' -- same as none, but documents that we really don't know.
5685 # 'pass_all' -- all dependencies passed with no checks.
5686 # 'test_compile' -- check by making test program.
5687 # 'file_magic [[regex]]' -- check by looking for files in library path
5688 # which responds to the $file_magic_cmd with a given extended regex.
5689 # If you have `file' or equivalent on your system and you're not sure
5690 # whether `pass_all' will *always* work, you probably want this one.
5691
5692 case $host_os in
5693 aix4* | aix5*)
5694   lt_cv_deplibs_check_method=pass_all
5695   ;;
5696
5697 beos*)
5698   lt_cv_deplibs_check_method=pass_all
5699   ;;
5700
5701 bsdi[45]*)
5702   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5703   lt_cv_file_magic_cmd='/usr/bin/file -L'
5704   lt_cv_file_magic_test_file=/shlib/libc.so
5705   ;;
5706
5707 cygwin*)
5708   # func_win32_libid is a shell function defined in ltmain.sh
5709   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5710   lt_cv_file_magic_cmd='func_win32_libid'
5711   ;;
5712
5713 mingw* | pw32*)
5714   # Base MSYS/MinGW do not provide the 'file' command needed by
5715   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5716   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5717   lt_cv_file_magic_cmd='$OBJDUMP -f'
5718   ;;
5719
5720 darwin* | rhapsody*)
5721   lt_cv_deplibs_check_method=pass_all
5722   ;;
5723
5724 freebsd* | kfreebsd*-gnu | dragonfly*)
5725   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5726     case $host_cpu in
5727     i*86 )
5728       # Not sure whether the presence of OpenBSD here was a mistake.
5729       # Let's accept both of them until this is cleared up.
5730       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5731       lt_cv_file_magic_cmd=/usr/bin/file
5732       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5733       ;;
5734     esac
5735   else
5736     lt_cv_deplibs_check_method=pass_all
5737   fi
5738   ;;
5739
5740 gnu*)
5741   lt_cv_deplibs_check_method=pass_all
5742   ;;
5743
5744 hpux10.20* | hpux11*)
5745   lt_cv_file_magic_cmd=/usr/bin/file
5746   case $host_cpu in
5747   ia64*)
5748     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5749     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5750     ;;
5751   hppa*64*)
5752     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]'
5753     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5754     ;;
5755   *)
5756     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5757     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5758     ;;
5759   esac
5760   ;;
5761
5762 interix3*)
5763   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5764   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5765   ;;
5766
5767 irix5* | irix6* | nonstopux*)
5768   case $LD in
5769   *-32|*"-32 ") libmagic=32-bit;;
5770   *-n32|*"-n32 ") libmagic=N32;;
5771   *-64|*"-64 ") libmagic=64-bit;;
5772   *) libmagic=never-match;;
5773   esac
5774   lt_cv_deplibs_check_method=pass_all
5775   ;;
5776
5777 # This must be Linux ELF.
5778 linux*)
5779   lt_cv_deplibs_check_method=pass_all
5780   ;;
5781
5782 netbsd*)
5783   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5784     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5785   else
5786     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5787   fi
5788   ;;
5789
5790 newos6*)
5791   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5792   lt_cv_file_magic_cmd=/usr/bin/file
5793   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5794   ;;
5795
5796 nto-qnx*)
5797   lt_cv_deplibs_check_method=unknown
5798   ;;
5799
5800 openbsd*)
5801   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5802     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5803   else
5804     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5805   fi
5806   ;;
5807
5808 osf3* | osf4* | osf5*)
5809   lt_cv_deplibs_check_method=pass_all
5810   ;;
5811
5812 solaris*)
5813   lt_cv_deplibs_check_method=pass_all
5814   ;;
5815
5816 sysv4 | sysv4.3*)
5817   case $host_vendor in
5818   motorola)
5819     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]'
5820     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5821     ;;
5822   ncr)
5823     lt_cv_deplibs_check_method=pass_all
5824     ;;
5825   sequent)
5826     lt_cv_file_magic_cmd='/bin/file'
5827     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5828     ;;
5829   sni)
5830     lt_cv_file_magic_cmd='/bin/file'
5831     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5832     lt_cv_file_magic_test_file=/lib/libc.so
5833     ;;
5834   siemens)
5835     lt_cv_deplibs_check_method=pass_all
5836     ;;
5837   pc)
5838     lt_cv_deplibs_check_method=pass_all
5839     ;;
5840   esac
5841   ;;
5842
5843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5844   lt_cv_deplibs_check_method=pass_all
5845   ;;
5846 esac
5847
5848 fi
5849 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5850 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5851 file_magic_cmd=$lt_cv_file_magic_cmd
5852 deplibs_check_method=$lt_cv_deplibs_check_method
5853 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5854
5855
5856
5857
5858 # If no C compiler was specified, use CC.
5859 LTCC=${LTCC-"$CC"}
5860
5861 # If no C compiler flags were specified, use CFLAGS.
5862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5863
5864 # Allow CC to be a program name with arguments.
5865 compiler=$CC
5866
5867 # Check whether --enable-libtool-lock was given.
5868 if test "${enable_libtool_lock+set}" = set; then
5869   enableval=$enable_libtool_lock;
5870 fi
5871
5872 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5873
5874 # Some flags need to be propagated to the compiler or linker for good
5875 # libtool support.
5876 case $host in
5877 ia64-*-hpux*)
5878   # Find out which ABI we are using.
5879   echo 'int i;' > conftest.$ac_ext
5880   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881   (eval $ac_compile) 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); }; then
5885     case `/usr/bin/file conftest.$ac_objext` in
5886     *ELF-32*)
5887       HPUX_IA64_MODE="32"
5888       ;;
5889     *ELF-64*)
5890       HPUX_IA64_MODE="64"
5891       ;;
5892     esac
5893   fi
5894   rm -rf conftest*
5895   ;;
5896 *-*-irix6*)
5897   # Find out which ABI we are using.
5898   echo '#line 5898 "configure"' > conftest.$ac_ext
5899   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900   (eval $ac_compile) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }; then
5904    if test "$lt_cv_prog_gnu_ld" = yes; then
5905     case `/usr/bin/file conftest.$ac_objext` in
5906     *32-bit*)
5907       LD="${LD-ld} -melf32bsmip"
5908       ;;
5909     *N32*)
5910       LD="${LD-ld} -melf32bmipn32"
5911       ;;
5912     *64-bit*)
5913       LD="${LD-ld} -melf64bmip"
5914       ;;
5915     esac
5916    else
5917     case `/usr/bin/file conftest.$ac_objext` in
5918     *32-bit*)
5919       LD="${LD-ld} -32"
5920       ;;
5921     *N32*)
5922       LD="${LD-ld} -n32"
5923       ;;
5924     *64-bit*)
5925       LD="${LD-ld} -64"
5926       ;;
5927     esac
5928    fi
5929   fi
5930   rm -rf conftest*
5931   ;;
5932
5933 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5934   # Find out which ABI we are using.
5935   echo 'int i;' > conftest.$ac_ext
5936   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937   (eval $ac_compile) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); }; then
5941     case `/usr/bin/file conftest.o` in
5942     *32-bit*)
5943       case $host in
5944         x86_64-*linux*)
5945           LD="${LD-ld} -m elf_i386"
5946           ;;
5947         ppc64-*linux*|powerpc64-*linux*)
5948           LD="${LD-ld} -m elf32ppclinux"
5949           ;;
5950         s390x-*linux*)
5951           LD="${LD-ld} -m elf_s390"
5952           ;;
5953         sparc64-*linux*)
5954           LD="${LD-ld} -m elf32_sparc"
5955           ;;
5956       esac
5957       ;;
5958     *64-bit*)
5959       case $host in
5960         x86_64-*linux*)
5961           LD="${LD-ld} -m elf_x86_64"
5962           ;;
5963         ppc*-*linux*|powerpc*-*linux*)
5964           LD="${LD-ld} -m elf64ppc"
5965           ;;
5966         s390*-*linux*)
5967           LD="${LD-ld} -m elf64_s390"
5968           ;;
5969         sparc*-*linux*)
5970           LD="${LD-ld} -m elf64_sparc"
5971           ;;
5972       esac
5973       ;;
5974     esac
5975   fi
5976   rm -rf conftest*
5977   ;;
5978
5979 *-*-sco3.2v5*)
5980   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5981   SAVE_CFLAGS="$CFLAGS"
5982   CFLAGS="$CFLAGS -belf"
5983   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5984 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5985 if test "${lt_cv_cc_needs_belf+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   ac_ext=c
5989 ac_cpp='$CPP $CPPFLAGS'
5990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5993
5994      cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000
6001 int
6002 main ()
6003 {
6004
6005   ;
6006   return 0;
6007 }
6008 _ACEOF
6009 rm -f conftest.$ac_objext conftest$ac_exeext
6010 if { (ac_try="$ac_link"
6011 case "(($ac_try" in
6012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013   *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016   (eval "$ac_link") 2>conftest.er1
6017   ac_status=$?
6018   grep -v '^ *+' conftest.er1 >conftest.err
6019   rm -f conftest.er1
6020   cat conftest.err >&5
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } &&
6023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024   { (case "(($ac_try" in
6025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026   *) ac_try_echo=$ac_try;;
6027 esac
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029   (eval "$ac_try") 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; } &&
6033          { ac_try='test -s conftest$ac_exeext'
6034   { (case "(($ac_try" in
6035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036   *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039   (eval "$ac_try") 2>&5
6040   ac_status=$?
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); }; }; then
6043   lt_cv_cc_needs_belf=yes
6044 else
6045   echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048         lt_cv_cc_needs_belf=no
6049 fi
6050
6051 rm -f core conftest.err conftest.$ac_objext \
6052       conftest$ac_exeext conftest.$ac_ext
6053      ac_ext=c
6054 ac_cpp='$CPP $CPPFLAGS'
6055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6058
6059 fi
6060 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6061 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6062   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6063     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6064     CFLAGS="$SAVE_CFLAGS"
6065   fi
6066   ;;
6067 sparc*-*solaris*)
6068   # Find out which ABI we are using.
6069   echo 'int i;' > conftest.$ac_ext
6070   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071   (eval $ac_compile) 2>&5
6072   ac_status=$?
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); }; then
6075     case `/usr/bin/file conftest.o` in
6076     *64-bit*)
6077       case $lt_cv_prog_gnu_ld in
6078       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6079       *)    LD="${LD-ld} -64" ;;
6080       esac
6081       ;;
6082     esac
6083   fi
6084   rm -rf conftest*
6085   ;;
6086
6087
6088 esac
6089
6090 need_locks="$enable_libtool_lock"
6091
6092
6093
6094 for ac_header in dlfcn.h
6095 do
6096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6098   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6101   echo $ECHO_N "(cached) $ECHO_C" >&6
6102 fi
6103 ac_res=`eval echo '${'$as_ac_Header'}'`
6104                { echo "$as_me:$LINENO: result: $ac_res" >&5
6105 echo "${ECHO_T}$ac_res" >&6; }
6106 else
6107   # Is the header compilable?
6108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h.  */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h.  */
6116 $ac_includes_default
6117 #include <$ac_header>
6118 _ACEOF
6119 rm -f conftest.$ac_objext
6120 if { (ac_try="$ac_compile"
6121 case "(($ac_try" in
6122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123   *) ac_try_echo=$ac_try;;
6124 esac
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126   (eval "$ac_compile") 2>conftest.er1
6127   ac_status=$?
6128   grep -v '^ *+' conftest.er1 >conftest.err
6129   rm -f conftest.er1
6130   cat conftest.err >&5
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); } &&
6133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6134   { (case "(($ac_try" in
6135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136   *) ac_try_echo=$ac_try;;
6137 esac
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139   (eval "$ac_try") 2>&5
6140   ac_status=$?
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); }; } &&
6143          { ac_try='test -s conftest.$ac_objext'
6144   { (case "(($ac_try" in
6145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146   *) ac_try_echo=$ac_try;;
6147 esac
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149   (eval "$ac_try") 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; }; then
6153   ac_header_compiler=yes
6154 else
6155   echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158         ac_header_compiler=no
6159 fi
6160
6161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6163 echo "${ECHO_T}$ac_header_compiler" >&6; }
6164
6165 # Is the header present?
6166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174 #include <$ac_header>
6175 _ACEOF
6176 if { (ac_try="$ac_cpp conftest.$ac_ext"
6177 case "(($ac_try" in
6178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179   *) ac_try_echo=$ac_try;;
6180 esac
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6183   ac_status=$?
6184   grep -v '^ *+' conftest.er1 >conftest.err
6185   rm -f conftest.er1
6186   cat conftest.err >&5
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); } >/dev/null; then
6189   if test -s conftest.err; then
6190     ac_cpp_err=$ac_c_preproc_warn_flag
6191     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6192   else
6193     ac_cpp_err=
6194   fi
6195 else
6196   ac_cpp_err=yes
6197 fi
6198 if test -z "$ac_cpp_err"; then
6199   ac_header_preproc=yes
6200 else
6201   echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204   ac_header_preproc=no
6205 fi
6206
6207 rm -f conftest.err conftest.$ac_ext
6208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6209 echo "${ECHO_T}$ac_header_preproc" >&6; }
6210
6211 # So?  What about this header?
6212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6213   yes:no: )
6214     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6218     ac_header_preproc=yes
6219     ;;
6220   no:yes:* )
6221     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6223     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6224 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6225     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6227     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6228 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6231     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6233
6234     ;;
6235 esac
6236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241   eval "$as_ac_Header=\$ac_header_preproc"
6242 fi
6243 ac_res=`eval echo '${'$as_ac_Header'}'`
6244                { echo "$as_me:$LINENO: result: $ac_res" >&5
6245 echo "${ECHO_T}$ac_res" >&6; }
6246
6247 fi
6248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6249   cat >>confdefs.h <<_ACEOF
6250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6251 _ACEOF
6252
6253 fi
6254
6255 done
6256
6257
6258
6259 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6260     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6261     (test "X$CXX" != "Xg++"))) ; then
6262   ac_ext=cpp
6263 ac_cpp='$CXXCPP $CPPFLAGS'
6264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6267 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6268 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6269 if test -z "$CXXCPP"; then
6270   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273       # Double quotes because CXXCPP needs to be expanded
6274     for CXXCPP in "$CXX -E" "/lib/cpp"
6275     do
6276       ac_preproc_ok=false
6277 for ac_cxx_preproc_warn_flag in '' yes
6278 do
6279   # Use a header file that comes with gcc, so configuring glibc
6280   # with a fresh cross-compiler works.
6281   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6282   # <limits.h> exists even on freestanding compilers.
6283   # On the NeXT, cc -E runs the code through the compiler's parser,
6284   # not just through cpp. "Syntax error" is here to catch this case.
6285   cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h.  */
6287 _ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h.  */
6291 #ifdef __STDC__
6292 # include <limits.h>
6293 #else
6294 # include <assert.h>
6295 #endif
6296                      Syntax error
6297 _ACEOF
6298 if { (ac_try="$ac_cpp conftest.$ac_ext"
6299 case "(($ac_try" in
6300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301   *) ac_try_echo=$ac_try;;
6302 esac
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6305   ac_status=$?
6306   grep -v '^ *+' conftest.er1 >conftest.err
6307   rm -f conftest.er1
6308   cat conftest.err >&5
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); } >/dev/null; then
6311   if test -s conftest.err; then
6312     ac_cpp_err=$ac_cxx_preproc_warn_flag
6313     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6314   else
6315     ac_cpp_err=
6316   fi
6317 else
6318   ac_cpp_err=yes
6319 fi
6320 if test -z "$ac_cpp_err"; then
6321   :
6322 else
6323   echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326   # Broken: fails on valid input.
6327 continue
6328 fi
6329
6330 rm -f conftest.err conftest.$ac_ext
6331
6332   # OK, works on sane cases.  Now check whether nonexistent headers
6333   # can be detected and how.
6334   cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h.  */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h.  */
6340 #include <ac_nonexistent.h>
6341 _ACEOF
6342 if { (ac_try="$ac_cpp conftest.$ac_ext"
6343 case "(($ac_try" in
6344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345   *) ac_try_echo=$ac_try;;
6346 esac
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6349   ac_status=$?
6350   grep -v '^ *+' conftest.er1 >conftest.err
6351   rm -f conftest.er1
6352   cat conftest.err >&5
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); } >/dev/null; then
6355   if test -s conftest.err; then
6356     ac_cpp_err=$ac_cxx_preproc_warn_flag
6357     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6358   else
6359     ac_cpp_err=
6360   fi
6361 else
6362   ac_cpp_err=yes
6363 fi
6364 if test -z "$ac_cpp_err"; then
6365   # Broken: success on invalid input.
6366 continue
6367 else
6368   echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371   # Passes both tests.
6372 ac_preproc_ok=:
6373 break
6374 fi
6375
6376 rm -f conftest.err conftest.$ac_ext
6377
6378 done
6379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6380 rm -f conftest.err conftest.$ac_ext
6381 if $ac_preproc_ok; then
6382   break
6383 fi
6384
6385     done
6386     ac_cv_prog_CXXCPP=$CXXCPP
6387
6388 fi
6389   CXXCPP=$ac_cv_prog_CXXCPP
6390 else
6391   ac_cv_prog_CXXCPP=$CXXCPP
6392 fi
6393 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6394 echo "${ECHO_T}$CXXCPP" >&6; }
6395 ac_preproc_ok=false
6396 for ac_cxx_preproc_warn_flag in '' yes
6397 do
6398   # Use a header file that comes with gcc, so configuring glibc
6399   # with a fresh cross-compiler works.
6400   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6401   # <limits.h> exists even on freestanding compilers.
6402   # On the NeXT, cc -E runs the code through the compiler's parser,
6403   # not just through cpp. "Syntax error" is here to catch this case.
6404   cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h.  */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h.  */
6410 #ifdef __STDC__
6411 # include <limits.h>
6412 #else
6413 # include <assert.h>
6414 #endif
6415                      Syntax error
6416 _ACEOF
6417 if { (ac_try="$ac_cpp conftest.$ac_ext"
6418 case "(($ac_try" in
6419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6420   *) ac_try_echo=$ac_try;;
6421 esac
6422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6424   ac_status=$?
6425   grep -v '^ *+' conftest.er1 >conftest.err
6426   rm -f conftest.er1
6427   cat conftest.err >&5
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); } >/dev/null; then
6430   if test -s conftest.err; then
6431     ac_cpp_err=$ac_cxx_preproc_warn_flag
6432     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6433   else
6434     ac_cpp_err=
6435   fi
6436 else
6437   ac_cpp_err=yes
6438 fi
6439 if test -z "$ac_cpp_err"; then
6440   :
6441 else
6442   echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445   # Broken: fails on valid input.
6446 continue
6447 fi
6448
6449 rm -f conftest.err conftest.$ac_ext
6450
6451   # OK, works on sane cases.  Now check whether nonexistent headers
6452   # can be detected and how.
6453   cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h.  */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h.  */
6459 #include <ac_nonexistent.h>
6460 _ACEOF
6461 if { (ac_try="$ac_cpp conftest.$ac_ext"
6462 case "(($ac_try" in
6463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464   *) ac_try_echo=$ac_try;;
6465 esac
6466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6468   ac_status=$?
6469   grep -v '^ *+' conftest.er1 >conftest.err
6470   rm -f conftest.er1
6471   cat conftest.err >&5
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); } >/dev/null; then
6474   if test -s conftest.err; then
6475     ac_cpp_err=$ac_cxx_preproc_warn_flag
6476     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6477   else
6478     ac_cpp_err=
6479   fi
6480 else
6481   ac_cpp_err=yes
6482 fi
6483 if test -z "$ac_cpp_err"; then
6484   # Broken: success on invalid input.
6485 continue
6486 else
6487   echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6489
6490   # Passes both tests.
6491 ac_preproc_ok=:
6492 break
6493 fi
6494
6495 rm -f conftest.err conftest.$ac_ext
6496
6497 done
6498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6499 rm -f conftest.err conftest.$ac_ext
6500 if $ac_preproc_ok; then
6501   :
6502 else
6503   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6504 See \`config.log' for more details." >&5
6505 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6506 See \`config.log' for more details." >&2;}
6507    { (exit 1); exit 1; }; }
6508 fi
6509
6510 ac_ext=cpp
6511 ac_cpp='$CXXCPP $CPPFLAGS'
6512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6515
6516 fi
6517
6518
6519 ac_ext=f
6520 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6521 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6522 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6523 if test -n "$ac_tool_prefix"; then
6524   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6525   do
6526     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_prog_F77+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   if test -n "$F77"; then
6534   ac_cv_prog_F77="$F77" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541   for ac_exec_ext in '' $ac_executable_extensions; do
6542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6543     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545     break 2
6546   fi
6547 done
6548 done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 F77=$ac_cv_prog_F77
6554 if test -n "$F77"; then
6555   { echo "$as_me:$LINENO: result: $F77" >&5
6556 echo "${ECHO_T}$F77" >&6; }
6557 else
6558   { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6560 fi
6561
6562
6563     test -n "$F77" && break
6564   done
6565 fi
6566 if test -z "$F77"; then
6567   ac_ct_F77=$F77
6568   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6569 do
6570   # Extract the first word of "$ac_prog", so it can be a program name with args.
6571 set dummy $ac_prog; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577   if test -n "$ac_ct_F77"; then
6578   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585   for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_ac_ct_F77="$ac_prog"
6588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6598 if test -n "$ac_ct_F77"; then
6599   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6600 echo "${ECHO_T}$ac_ct_F77" >&6; }
6601 else
6602   { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6604 fi
6605
6606
6607   test -n "$ac_ct_F77" && break
6608 done
6609
6610   if test "x$ac_ct_F77" = x; then
6611     F77=""
6612   else
6613     case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6616 whose name does not start with the host triplet.  If you think this
6617 configuration is useful to you, please write to autoconf@gnu.org." >&5
6618 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6619 whose name does not start with the host triplet.  If you think this
6620 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6621 ac_tool_warned=yes ;;
6622 esac
6623     F77=$ac_ct_F77
6624   fi
6625 fi
6626
6627
6628 # Provide some information about the compiler.
6629 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6630 ac_compiler=`set X $ac_compile; echo $2`
6631 { (ac_try="$ac_compiler --version >&5"
6632 case "(($ac_try" in
6633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634   *) ac_try_echo=$ac_try;;
6635 esac
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637   (eval "$ac_compiler --version >&5") 2>&5
6638   ac_status=$?
6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); }
6641 { (ac_try="$ac_compiler -v >&5"
6642 case "(($ac_try" in
6643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644   *) ac_try_echo=$ac_try;;
6645 esac
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647   (eval "$ac_compiler -v >&5") 2>&5
6648   ac_status=$?
6649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); }
6651 { (ac_try="$ac_compiler -V >&5"
6652 case "(($ac_try" in
6653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654   *) ac_try_echo=$ac_try;;
6655 esac
6656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6657   (eval "$ac_compiler -V >&5") 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); }
6661 rm -f a.out
6662
6663 # If we don't use `.F' as extension, the preprocessor is not run on the
6664 # input file.  (Note that this only needs to work for GNU compilers.)
6665 ac_save_ext=$ac_ext
6666 ac_ext=F
6667 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6668 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6669 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   cat >conftest.$ac_ext <<_ACEOF
6673       program main
6674 #ifndef __GNUC__
6675        choke me
6676 #endif
6677
6678       end
6679 _ACEOF
6680 rm -f conftest.$ac_objext
6681 if { (ac_try="$ac_compile"
6682 case "(($ac_try" in
6683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684   *) ac_try_echo=$ac_try;;
6685 esac
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687   (eval "$ac_compile") 2>conftest.er1
6688   ac_status=$?
6689   grep -v '^ *+' conftest.er1 >conftest.err
6690   rm -f conftest.er1
6691   cat conftest.err >&5
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); } &&
6694          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6695   { (case "(($ac_try" in
6696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697   *) ac_try_echo=$ac_try;;
6698 esac
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700   (eval "$ac_try") 2>&5
6701   ac_status=$?
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); }; } &&
6704          { ac_try='test -s conftest.$ac_objext'
6705   { (case "(($ac_try" in
6706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707   *) ac_try_echo=$ac_try;;
6708 esac
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710   (eval "$ac_try") 2>&5
6711   ac_status=$?
6712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713   (exit $ac_status); }; }; then
6714   ac_compiler_gnu=yes
6715 else
6716   echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6718
6719         ac_compiler_gnu=no
6720 fi
6721
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6724
6725 fi
6726 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6727 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6728 ac_ext=$ac_save_ext
6729 ac_test_FFLAGS=${FFLAGS+set}
6730 ac_save_FFLAGS=$FFLAGS
6731 FFLAGS=
6732 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6733 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6734 if test "${ac_cv_prog_f77_g+set}" = set; then
6735   echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737   FFLAGS=-g
6738 cat >conftest.$ac_ext <<_ACEOF
6739       program main
6740
6741       end
6742 _ACEOF
6743 rm -f conftest.$ac_objext
6744 if { (ac_try="$ac_compile"
6745 case "(($ac_try" in
6746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747   *) ac_try_echo=$ac_try;;
6748 esac
6749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6750   (eval "$ac_compile") 2>conftest.er1
6751   ac_status=$?
6752   grep -v '^ *+' conftest.er1 >conftest.err
6753   rm -f conftest.er1
6754   cat conftest.err >&5
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); } &&
6757          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6758   { (case "(($ac_try" in
6759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760   *) ac_try_echo=$ac_try;;
6761 esac
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763   (eval "$ac_try") 2>&5
6764   ac_status=$?
6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); }; } &&
6767          { ac_try='test -s conftest.$ac_objext'
6768   { (case "(($ac_try" in
6769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770   *) ac_try_echo=$ac_try;;
6771 esac
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773   (eval "$ac_try") 2>&5
6774   ac_status=$?
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); }; }; then
6777   ac_cv_prog_f77_g=yes
6778 else
6779   echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782         ac_cv_prog_f77_g=no
6783 fi
6784
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786
6787 fi
6788 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6789 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6790 if test "$ac_test_FFLAGS" = set; then
6791   FFLAGS=$ac_save_FFLAGS
6792 elif test $ac_cv_prog_f77_g = yes; then
6793   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6794     FFLAGS="-g -O2"
6795   else
6796     FFLAGS="-g"
6797   fi
6798 else
6799   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6800     FFLAGS="-O2"
6801   else
6802     FFLAGS=
6803   fi
6804 fi
6805
6806 G77=`test $ac_compiler_gnu = yes && echo yes`
6807 ac_ext=c
6808 ac_cpp='$CPP $CPPFLAGS'
6809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6812
6813
6814
6815 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6816
6817 # find the maximum length of command line arguments
6818 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6819 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6820 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823     i=0
6824   teststring="ABCD"
6825
6826   case $build_os in
6827   msdosdjgpp*)
6828     # On DJGPP, this test can blow up pretty badly due to problems in libc
6829     # (any single argument exceeding 2000 bytes causes a buffer overrun
6830     # during glob expansion).  Even if it were fixed, the result of this
6831     # check would be larger than it should be.
6832     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6833     ;;
6834
6835   gnu*)
6836     # Under GNU Hurd, this test is not required because there is
6837     # no limit to the length of command line arguments.
6838     # Libtool will interpret -1 as no limit whatsoever
6839     lt_cv_sys_max_cmd_len=-1;
6840     ;;
6841
6842   cygwin* | mingw*)
6843     # On Win9x/ME, this test blows up -- it succeeds, but takes
6844     # about 5 minutes as the teststring grows exponentially.
6845     # Worse, since 9x/ME are not pre-emptively multitasking,
6846     # you end up with a "frozen" computer, even though with patience
6847     # the test eventually succeeds (with a max line length of 256k).
6848     # Instead, let's just punt: use the minimum linelength reported by
6849     # all of the supported platforms: 8192 (on NT/2K/XP).
6850     lt_cv_sys_max_cmd_len=8192;
6851     ;;
6852
6853   amigaos*)
6854     # On AmigaOS with pdksh, this test takes hours, literally.
6855     # So we just punt and use a minimum line length of 8192.
6856     lt_cv_sys_max_cmd_len=8192;
6857     ;;
6858
6859   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6860     # This has been around since 386BSD, at least.  Likely further.
6861     if test -x /sbin/sysctl; then
6862       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6863     elif test -x /usr/sbin/sysctl; then
6864       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6865     else
6866       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6867     fi
6868     # And add a safety zone
6869     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6870     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6871     ;;
6872
6873   interix*)
6874     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6875     lt_cv_sys_max_cmd_len=196608
6876     ;;
6877
6878   osf*)
6879     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6880     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6881     # nice to cause kernel panics so lets avoid the loop below.
6882     # First set a reasonable default.
6883     lt_cv_sys_max_cmd_len=16384
6884     #
6885     if test -x /sbin/sysconfig; then
6886       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6887         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6888       esac
6889     fi
6890     ;;
6891   sco3.2v5*)
6892     lt_cv_sys_max_cmd_len=102400
6893     ;;
6894   sysv5* | sco5v6* | sysv4.2uw2*)
6895     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6896     if test -n "$kargmax"; then
6897       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6898     else
6899       lt_cv_sys_max_cmd_len=32768
6900     fi
6901     ;;
6902   *)
6903     # If test is not a shell built-in, we'll probably end up computing a
6904     # maximum length that is only half of the actual maximum length, but
6905     # we can't tell.
6906     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6907     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6908                = "XX$teststring") >/dev/null 2>&1 &&
6909             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6910             lt_cv_sys_max_cmd_len=$new_result &&
6911             test $i != 17 # 1/2 MB should be enough
6912     do
6913       i=`expr $i + 1`
6914       teststring=$teststring$teststring
6915     done
6916     teststring=
6917     # Add a significant safety factor because C++ compilers can tack on massive
6918     # amounts of additional arguments before passing them to the linker.
6919     # It appears as though 1/2 is a usable value.
6920     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6921     ;;
6922   esac
6923
6924 fi
6925
6926 if test -n $lt_cv_sys_max_cmd_len ; then
6927   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6928 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6929 else
6930   { echo "$as_me:$LINENO: result: none" >&5
6931 echo "${ECHO_T}none" >&6; }
6932 fi
6933
6934
6935
6936
6937 # Check for command to grab the raw symbol name followed by C symbol from nm.
6938 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6939 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6940 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6941   echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943
6944 # These are sane defaults that work on at least a few old systems.
6945 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6946
6947 # Character class describing NM global symbol codes.
6948 symcode='[BCDEGRST]'
6949
6950 # Regexp to match symbols that can be accessed directly from C.
6951 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6952
6953 # Transform an extracted symbol line into a proper C declaration
6954 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6955
6956 # Transform an extracted symbol line into symbol name and symbol address
6957 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'"
6958
6959 # Define system-specific variables.
6960 case $host_os in
6961 aix*)
6962   symcode='[BCDT]'
6963   ;;
6964 cygwin* | mingw* | pw32*)
6965   symcode='[ABCDGISTW]'
6966   ;;
6967 hpux*) # Its linker distinguishes data from code symbols
6968   if test "$host_cpu" = ia64; then
6969     symcode='[ABCDEGRST]'
6970   fi
6971   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6972   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'"
6973   ;;
6974 linux*)
6975   if test "$host_cpu" = ia64; then
6976     symcode='[ABCDGIRSTW]'
6977     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6978     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'"
6979   fi
6980   ;;
6981 irix* | nonstopux*)
6982   symcode='[BCDEGRST]'
6983   ;;
6984 osf*)
6985   symcode='[BCDEGQRST]'
6986   ;;
6987 solaris*)
6988   symcode='[BDRT]'
6989   ;;
6990 sco3.2v5*)
6991   symcode='[DT]'
6992   ;;
6993 sysv4.2uw2*)
6994   symcode='[DT]'
6995   ;;
6996 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6997   symcode='[ABDT]'
6998   ;;
6999 sysv4)
7000   symcode='[DFNSTU]'
7001   ;;
7002 esac
7003
7004 # Handle CRLF in mingw tool chain
7005 opt_cr=
7006 case $build_os in
7007 mingw*)
7008   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7009   ;;
7010 esac
7011
7012 # If we're using GNU nm, then use its standard symbol codes.
7013 case `$NM -V 2>&1` in
7014 *GNU* | *'with BFD'*)
7015   symcode='[ABCDGIRSTW]' ;;
7016 esac
7017
7018 # Try without a prefix undercore, then with it.
7019 for ac_symprfx in "" "_"; do
7020
7021   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7022   symxfrm="\\1 $ac_symprfx\\2 \\2"
7023
7024   # Write the raw and C identifiers.
7025   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7026
7027   # Check to see that the pipe works correctly.
7028   pipe_works=no
7029
7030   rm -f conftest*
7031   cat > conftest.$ac_ext <<EOF
7032 #ifdef __cplusplus
7033 extern "C" {
7034 #endif
7035 char nm_test_var;
7036 void nm_test_func(){}
7037 #ifdef __cplusplus
7038 }
7039 #endif
7040 int main(){nm_test_var='a';nm_test_func();return(0);}
7041 EOF
7042
7043   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044   (eval $ac_compile) 2>&5
7045   ac_status=$?
7046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047   (exit $ac_status); }; then
7048     # Now try to grab the symbols.
7049     nlist=conftest.nm
7050     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7051   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7052   ac_status=$?
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); } && test -s "$nlist"; then
7055       # Try sorting and uniquifying the output.
7056       if sort "$nlist" | uniq > "$nlist"T; then
7057         mv -f "$nlist"T "$nlist"
7058       else
7059         rm -f "$nlist"T
7060       fi
7061
7062       # Make sure that we snagged all the symbols we need.
7063       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7064         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7065           cat <<EOF > conftest.$ac_ext
7066 #ifdef __cplusplus
7067 extern "C" {
7068 #endif
7069
7070 EOF
7071           # Now generate the symbol file.
7072           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7073
7074           cat <<EOF >> conftest.$ac_ext
7075 #if defined (__STDC__) && __STDC__
7076 # define lt_ptr_t void *
7077 #else
7078 # define lt_ptr_t char *
7079 # define const
7080 #endif
7081
7082 /* The mapping between symbol names and symbols. */
7083 const struct {
7084   const char *name;
7085   lt_ptr_t address;
7086 }
7087 lt_preloaded_symbols[] =
7088 {
7089 EOF
7090           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7091           cat <<\EOF >> conftest.$ac_ext
7092   {0, (lt_ptr_t) 0}
7093 };
7094
7095 #ifdef __cplusplus
7096 }
7097 #endif
7098 EOF
7099           # Now try linking the two files.
7100           mv conftest.$ac_objext conftstm.$ac_objext
7101           lt_save_LIBS="$LIBS"
7102           lt_save_CFLAGS="$CFLAGS"
7103           LIBS="conftstm.$ac_objext"
7104           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7105           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7106   (eval $ac_link) 2>&5
7107   ac_status=$?
7108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7110             pipe_works=yes
7111           fi
7112           LIBS="$lt_save_LIBS"
7113           CFLAGS="$lt_save_CFLAGS"
7114         else
7115           echo "cannot find nm_test_func in $nlist" >&5
7116         fi
7117       else
7118         echo "cannot find nm_test_var in $nlist" >&5
7119       fi
7120     else
7121       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7122     fi
7123   else
7124     echo "$progname: failed program was:" >&5
7125     cat conftest.$ac_ext >&5
7126   fi
7127   rm -f conftest* conftst*
7128
7129   # Do not use the global_symbol_pipe unless it works.
7130   if test "$pipe_works" = yes; then
7131     break
7132   else
7133     lt_cv_sys_global_symbol_pipe=
7134   fi
7135 done
7136
7137 fi
7138
7139 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7140   lt_cv_sys_global_symbol_to_cdecl=
7141 fi
7142 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7143   { echo "$as_me:$LINENO: result: failed" >&5
7144 echo "${ECHO_T}failed" >&6; }
7145 else
7146   { echo "$as_me:$LINENO: result: ok" >&5
7147 echo "${ECHO_T}ok" >&6; }
7148 fi
7149
7150 { echo "$as_me:$LINENO: checking for objdir" >&5
7151 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7152 if test "${lt_cv_objdir+set}" = set; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155   rm -f .libs 2>/dev/null
7156 mkdir .libs 2>/dev/null
7157 if test -d .libs; then
7158   lt_cv_objdir=.libs
7159 else
7160   # MS-DOS does not allow filenames that begin with a dot.
7161   lt_cv_objdir=_libs
7162 fi
7163 rmdir .libs 2>/dev/null
7164 fi
7165 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7166 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7167 objdir=$lt_cv_objdir
7168
7169
7170
7171
7172
7173 case $host_os in
7174 aix3*)
7175   # AIX sometimes has problems with the GCC collect2 program.  For some
7176   # reason, if we set the COLLECT_NAMES environment variable, the problems
7177   # vanish in a puff of smoke.
7178   if test "X${COLLECT_NAMES+set}" != Xset; then
7179     COLLECT_NAMES=
7180     export COLLECT_NAMES
7181   fi
7182   ;;
7183 esac
7184
7185 # Sed substitution that helps us do robust quoting.  It backslashifies
7186 # metacharacters that are still active within double-quoted strings.
7187 Xsed='sed -e 1s/^X//'
7188 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7189
7190 # Same as above, but do not quote variable references.
7191 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7192
7193 # Sed substitution to delay expansion of an escaped shell variable in a
7194 # double_quote_subst'ed string.
7195 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7196
7197 # Sed substitution to avoid accidental globbing in evaled expressions
7198 no_glob_subst='s/\*/\\\*/g'
7199
7200 # Constants:
7201 rm="rm -f"
7202
7203 # Global variables:
7204 default_ofile=libtool
7205 can_build_shared=yes
7206
7207 # All known linkers require a `.a' archive for static linking (except MSVC,
7208 # which needs '.lib').
7209 libext=a
7210 ltmain="$ac_aux_dir/ltmain.sh"
7211 ofile="$default_ofile"
7212 with_gnu_ld="$lt_cv_prog_gnu_ld"
7213
7214 if test -n "$ac_tool_prefix"; then
7215   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7216 set dummy ${ac_tool_prefix}ar; ac_word=$2
7217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7219 if test "${ac_cv_prog_AR+set}" = set; then
7220   echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222   if test -n "$AR"; then
7223   ac_cv_prog_AR="$AR" # Let the user override the test.
7224 else
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7227 do
7228   IFS=$as_save_IFS
7229   test -z "$as_dir" && as_dir=.
7230   for ac_exec_ext in '' $ac_executable_extensions; do
7231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232     ac_cv_prog_AR="${ac_tool_prefix}ar"
7233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234     break 2
7235   fi
7236 done
7237 done
7238 IFS=$as_save_IFS
7239
7240 fi
7241 fi
7242 AR=$ac_cv_prog_AR
7243 if test -n "$AR"; then
7244   { echo "$as_me:$LINENO: result: $AR" >&5
7245 echo "${ECHO_T}$AR" >&6; }
7246 else
7247   { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7249 fi
7250
7251
7252 fi
7253 if test -z "$ac_cv_prog_AR"; then
7254   ac_ct_AR=$AR
7255   # Extract the first word of "ar", so it can be a program name with args.
7256 set dummy ar; ac_word=$2
7257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7260   echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262   if test -n "$ac_ct_AR"; then
7263   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7264 else
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268   IFS=$as_save_IFS
7269   test -z "$as_dir" && as_dir=.
7270   for ac_exec_ext in '' $ac_executable_extensions; do
7271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272     ac_cv_prog_ac_ct_AR="ar"
7273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274     break 2
7275   fi
7276 done
7277 done
7278 IFS=$as_save_IFS
7279
7280 fi
7281 fi
7282 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7283 if test -n "$ac_ct_AR"; then
7284   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7285 echo "${ECHO_T}$ac_ct_AR" >&6; }
7286 else
7287   { echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6; }
7289 fi
7290
7291   if test "x$ac_ct_AR" = x; then
7292     AR="false"
7293   else
7294     case $cross_compiling:$ac_tool_warned in
7295 yes:)
7296 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7297 whose name does not start with the host triplet.  If you think this
7298 configuration is useful to you, please write to autoconf@gnu.org." >&5
7299 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7300 whose name does not start with the host triplet.  If you think this
7301 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7302 ac_tool_warned=yes ;;
7303 esac
7304     AR=$ac_ct_AR
7305   fi
7306 else
7307   AR="$ac_cv_prog_AR"
7308 fi
7309
7310 if test -n "$ac_tool_prefix"; then
7311   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7312 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315 if test "${ac_cv_prog_RANLIB+set}" = set; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318   if test -n "$RANLIB"; then
7319   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324   IFS=$as_save_IFS
7325   test -z "$as_dir" && as_dir=.
7326   for ac_exec_ext in '' $ac_executable_extensions; do
7327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7328     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330     break 2
7331   fi
7332 done
7333 done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 RANLIB=$ac_cv_prog_RANLIB
7339 if test -n "$RANLIB"; then
7340   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7341 echo "${ECHO_T}$RANLIB" >&6; }
7342 else
7343   { echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6; }
7345 fi
7346
7347
7348 fi
7349 if test -z "$ac_cv_prog_RANLIB"; then
7350   ac_ct_RANLIB=$RANLIB
7351   # Extract the first word of "ranlib", so it can be a program name with args.
7352 set dummy ranlib; ac_word=$2
7353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7355 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7356   echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358   if test -n "$ac_ct_RANLIB"; then
7359   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366   for ac_exec_ext in '' $ac_executable_extensions; do
7367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7368     ac_cv_prog_ac_ct_RANLIB="ranlib"
7369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373 done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7379 if test -n "$ac_ct_RANLIB"; then
7380   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7381 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7382 else
7383   { echo "$as_me:$LINENO: result: no" >&5
7384 echo "${ECHO_T}no" >&6; }
7385 fi
7386
7387   if test "x$ac_ct_RANLIB" = x; then
7388     RANLIB=":"
7389   else
7390     case $cross_compiling:$ac_tool_warned in
7391 yes:)
7392 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7393 whose name does not start with the host triplet.  If you think this
7394 configuration is useful to you, please write to autoconf@gnu.org." >&5
7395 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7396 whose name does not start with the host triplet.  If you think this
7397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7398 ac_tool_warned=yes ;;
7399 esac
7400     RANLIB=$ac_ct_RANLIB
7401   fi
7402 else
7403   RANLIB="$ac_cv_prog_RANLIB"
7404 fi
7405
7406 if test -n "$ac_tool_prefix"; then
7407   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}strip; ac_word=$2
7409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7411 if test "${ac_cv_prog_STRIP+set}" = set; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   if test -n "$STRIP"; then
7415   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420   IFS=$as_save_IFS
7421   test -z "$as_dir" && as_dir=.
7422   for ac_exec_ext in '' $ac_executable_extensions; do
7423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7424     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426     break 2
7427   fi
7428 done
7429 done
7430 IFS=$as_save_IFS
7431
7432 fi
7433 fi
7434 STRIP=$ac_cv_prog_STRIP
7435 if test -n "$STRIP"; then
7436   { echo "$as_me:$LINENO: result: $STRIP" >&5
7437 echo "${ECHO_T}$STRIP" >&6; }
7438 else
7439   { echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6; }
7441 fi
7442
7443
7444 fi
7445 if test -z "$ac_cv_prog_STRIP"; then
7446   ac_ct_STRIP=$STRIP
7447   # Extract the first word of "strip", so it can be a program name with args.
7448 set dummy strip; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454   if test -n "$ac_ct_STRIP"; then
7455   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460   IFS=$as_save_IFS
7461   test -z "$as_dir" && as_dir=.
7462   for ac_exec_ext in '' $ac_executable_extensions; do
7463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7464     ac_cv_prog_ac_ct_STRIP="strip"
7465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466     break 2
7467   fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7475 if test -n "$ac_ct_STRIP"; then
7476   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7477 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7478 else
7479   { echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6; }
7481 fi
7482
7483   if test "x$ac_ct_STRIP" = x; then
7484     STRIP=":"
7485   else
7486     case $cross_compiling:$ac_tool_warned in
7487 yes:)
7488 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7489 whose name does not start with the host triplet.  If you think this
7490 configuration is useful to you, please write to autoconf@gnu.org." >&5
7491 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7492 whose name does not start with the host triplet.  If you think this
7493 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7494 ac_tool_warned=yes ;;
7495 esac
7496     STRIP=$ac_ct_STRIP
7497   fi
7498 else
7499   STRIP="$ac_cv_prog_STRIP"
7500 fi
7501
7502
7503 old_CC="$CC"
7504 old_CFLAGS="$CFLAGS"
7505
7506 # Set sane defaults for various variables
7507 test -z "$AR" && AR=ar
7508 test -z "$AR_FLAGS" && AR_FLAGS=cru
7509 test -z "$AS" && AS=as
7510 test -z "$CC" && CC=cc
7511 test -z "$LTCC" && LTCC=$CC
7512 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7513 test -z "$DLLTOOL" && DLLTOOL=dlltool
7514 test -z "$LD" && LD=ld
7515 test -z "$LN_S" && LN_S="ln -s"
7516 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7517 test -z "$NM" && NM=nm
7518 test -z "$SED" && SED=sed
7519 test -z "$OBJDUMP" && OBJDUMP=objdump
7520 test -z "$RANLIB" && RANLIB=:
7521 test -z "$STRIP" && STRIP=:
7522 test -z "$ac_objext" && ac_objext=o
7523
7524 # Determine commands to create old-style static archives.
7525 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7526 old_postinstall_cmds='chmod 644 $oldlib'
7527 old_postuninstall_cmds=
7528
7529 if test -n "$RANLIB"; then
7530   case $host_os in
7531   openbsd*)
7532     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7533     ;;
7534   *)
7535     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7536     ;;
7537   esac
7538   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7539 fi
7540
7541 for cc_temp in $compiler""; do
7542   case $cc_temp in
7543     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7544     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7545     \-*) ;;
7546     *) break;;
7547   esac
7548 done
7549 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7550
7551
7552 # Only perform the check for file, if the check method requires it
7553 case $deplibs_check_method in
7554 file_magic*)
7555   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7556     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7557 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7558 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7559   echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561   case $MAGIC_CMD in
7562 [\\/*] |  ?:[\\/]*)
7563   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7564   ;;
7565 *)
7566   lt_save_MAGIC_CMD="$MAGIC_CMD"
7567   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7568   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7569   for ac_dir in $ac_dummy; do
7570     IFS="$lt_save_ifs"
7571     test -z "$ac_dir" && ac_dir=.
7572     if test -f $ac_dir/${ac_tool_prefix}file; then
7573       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7574       if test -n "$file_magic_test_file"; then
7575         case $deplibs_check_method in
7576         "file_magic "*)
7577           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7578           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7579           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7580             $EGREP "$file_magic_regex" > /dev/null; then
7581             :
7582           else
7583             cat <<EOF 1>&2
7584
7585 *** Warning: the command libtool uses to detect shared libraries,
7586 *** $file_magic_cmd, produces output that libtool cannot recognize.
7587 *** The result is that libtool may fail to recognize shared libraries
7588 *** as such.  This will affect the creation of libtool libraries that
7589 *** depend on shared libraries, but programs linked with such libtool
7590 *** libraries will work regardless of this problem.  Nevertheless, you
7591 *** may want to report the problem to your system manager and/or to
7592 *** bug-libtool@gnu.org
7593
7594 EOF
7595           fi ;;
7596         esac
7597       fi
7598       break
7599     fi
7600   done
7601   IFS="$lt_save_ifs"
7602   MAGIC_CMD="$lt_save_MAGIC_CMD"
7603   ;;
7604 esac
7605 fi
7606
7607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7608 if test -n "$MAGIC_CMD"; then
7609   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7610 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7611 else
7612   { echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6; }
7614 fi
7615
7616 if test -z "$lt_cv_path_MAGIC_CMD"; then
7617   if test -n "$ac_tool_prefix"; then
7618     { echo "$as_me:$LINENO: checking for file" >&5
7619 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7620 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7621   echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623   case $MAGIC_CMD in
7624 [\\/*] |  ?:[\\/]*)
7625   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7626   ;;
7627 *)
7628   lt_save_MAGIC_CMD="$MAGIC_CMD"
7629   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7630   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7631   for ac_dir in $ac_dummy; do
7632     IFS="$lt_save_ifs"
7633     test -z "$ac_dir" && ac_dir=.
7634     if test -f $ac_dir/file; then
7635       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7636       if test -n "$file_magic_test_file"; then
7637         case $deplibs_check_method in
7638         "file_magic "*)
7639           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7640           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7641           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7642             $EGREP "$file_magic_regex" > /dev/null; then
7643             :
7644           else
7645             cat <<EOF 1>&2
7646
7647 *** Warning: the command libtool uses to detect shared libraries,
7648 *** $file_magic_cmd, produces output that libtool cannot recognize.
7649 *** The result is that libtool may fail to recognize shared libraries
7650 *** as such.  This will affect the creation of libtool libraries that
7651 *** depend on shared libraries, but programs linked with such libtool
7652 *** libraries will work regardless of this problem.  Nevertheless, you
7653 *** may want to report the problem to your system manager and/or to
7654 *** bug-libtool@gnu.org
7655
7656 EOF
7657           fi ;;
7658         esac
7659       fi
7660       break
7661     fi
7662   done
7663   IFS="$lt_save_ifs"
7664   MAGIC_CMD="$lt_save_MAGIC_CMD"
7665   ;;
7666 esac
7667 fi
7668
7669 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7670 if test -n "$MAGIC_CMD"; then
7671   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7672 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7673 else
7674   { echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6; }
7676 fi
7677
7678   else
7679     MAGIC_CMD=:
7680   fi
7681 fi
7682
7683   fi
7684   ;;
7685 esac
7686
7687 enable_dlopen=yes
7688 enable_win32_dll=no
7689
7690 # Check whether --enable-libtool-lock was given.
7691 if test "${enable_libtool_lock+set}" = set; then
7692   enableval=$enable_libtool_lock;
7693 fi
7694
7695 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7696
7697
7698 # Check whether --with-pic was given.
7699 if test "${with_pic+set}" = set; then
7700   withval=$with_pic; pic_mode="$withval"
7701 else
7702   pic_mode=default
7703 fi
7704
7705 test -z "$pic_mode" && pic_mode=default
7706
7707 # Use C for the default configuration in the libtool script
7708 tagname=
7709 lt_save_CC="$CC"
7710 ac_ext=c
7711 ac_cpp='$CPP $CPPFLAGS'
7712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715
7716
7717 # Source file extension for C test sources.
7718 ac_ext=c
7719
7720 # Object file extension for compiled C test sources.
7721 objext=o
7722 objext=$objext
7723
7724 # Code to be used in simple compile tests
7725 lt_simple_compile_test_code="int some_variable = 0;\n"
7726
7727 # Code to be used in simple link tests
7728 lt_simple_link_test_code='int main(){return(0);}\n'
7729
7730
7731 # If no C compiler was specified, use CC.
7732 LTCC=${LTCC-"$CC"}
7733
7734 # If no C compiler flags were specified, use CFLAGS.
7735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7736
7737 # Allow CC to be a program name with arguments.
7738 compiler=$CC
7739
7740
7741 # save warnings/boilerplate of simple test code
7742 ac_outfile=conftest.$ac_objext
7743 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7744 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7745 _lt_compiler_boilerplate=`cat conftest.err`
7746 $rm conftest*
7747
7748 ac_outfile=conftest.$ac_objext
7749 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7750 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7751 _lt_linker_boilerplate=`cat conftest.err`
7752 $rm conftest*
7753
7754
7755 ## CAVEAT EMPTOR:
7756 ## There is no encapsulation within the following macros, do not change
7757 ## the running order or otherwise move them around unless you know exactly
7758 ## what you are doing...
7759
7760 lt_prog_compiler_no_builtin_flag=
7761
7762 if test "$GCC" = yes; then
7763   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7764
7765
7766 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7767 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7768 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7769   echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771   lt_cv_prog_compiler_rtti_exceptions=no
7772   ac_outfile=conftest.$ac_objext
7773    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7774    lt_compiler_flag="-fno-rtti -fno-exceptions"
7775    # Insert the option either (1) after the last *FLAGS variable, or
7776    # (2) before a word containing "conftest.", or (3) at the end.
7777    # Note that $ac_compile itself does not contain backslashes and begins
7778    # with a dollar sign (not a hyphen), so the echo should work correctly.
7779    # The option is referenced via a variable to avoid confusing sed.
7780    lt_compile=`echo "$ac_compile" | $SED \
7781    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7782    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7783    -e 's:$: $lt_compiler_flag:'`
7784    (eval echo "\"\$as_me:7784: $lt_compile\"" >&5)
7785    (eval "$lt_compile" 2>conftest.err)
7786    ac_status=$?
7787    cat conftest.err >&5
7788    echo "$as_me:7788: \$? = $ac_status" >&5
7789    if (exit $ac_status) && test -s "$ac_outfile"; then
7790      # The compiler can only warn and ignore the option if not recognized
7791      # So say no if there are warnings other than the usual output.
7792      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7793      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7794      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7795        lt_cv_prog_compiler_rtti_exceptions=yes
7796      fi
7797    fi
7798    $rm conftest*
7799
7800 fi
7801 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7802 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7803
7804 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7805     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7806 else
7807     :
7808 fi
7809
7810 fi
7811
7812 lt_prog_compiler_wl=
7813 lt_prog_compiler_pic=
7814 lt_prog_compiler_static=
7815
7816 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7817 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7818
7819   if test "$GCC" = yes; then
7820     lt_prog_compiler_wl='-Wl,'
7821     lt_prog_compiler_static='-static'
7822
7823     case $host_os in
7824       aix*)
7825       # All AIX code is PIC.
7826       if test "$host_cpu" = ia64; then
7827         # AIX 5 now supports IA64 processor
7828         lt_prog_compiler_static='-Bstatic'
7829       fi
7830       ;;
7831
7832     amigaos*)
7833       # FIXME: we need at least 68020 code to build shared libraries, but
7834       # adding the `-m68020' flag to GCC prevents building anything better,
7835       # like `-m68040'.
7836       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7837       ;;
7838
7839     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7840       # PIC is the default for these OSes.
7841       ;;
7842
7843     mingw* | pw32* | os2*)
7844       # This hack is so that the source file can tell whether it is being
7845       # built for inclusion in a dll (and should export symbols for example).
7846       lt_prog_compiler_pic='-DDLL_EXPORT'
7847       ;;
7848
7849     darwin* | rhapsody*)
7850       # PIC is the default on this platform
7851       # Common symbols not allowed in MH_DYLIB files
7852       lt_prog_compiler_pic='-fno-common'
7853       ;;
7854
7855     interix3*)
7856       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7857       # Instead, we relocate shared libraries at runtime.
7858       ;;
7859
7860     msdosdjgpp*)
7861       # Just because we use GCC doesn't mean we suddenly get shared libraries
7862       # on systems that don't support them.
7863       lt_prog_compiler_can_build_shared=no
7864       enable_shared=no
7865       ;;
7866
7867     sysv4*MP*)
7868       if test -d /usr/nec; then
7869         lt_prog_compiler_pic=-Kconform_pic
7870       fi
7871       ;;
7872
7873     hpux*)
7874       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7875       # not for PA HP-UX.
7876       case $host_cpu in
7877       hppa*64*|ia64*)
7878         # +Z the default
7879         ;;
7880       *)
7881         lt_prog_compiler_pic='-fPIC'
7882         ;;
7883       esac
7884       ;;
7885
7886     *)
7887       lt_prog_compiler_pic='-fPIC'
7888       ;;
7889     esac
7890   else
7891     # PORTME Check for flag to pass linker flags through the system compiler.
7892     case $host_os in
7893     aix*)
7894       lt_prog_compiler_wl='-Wl,'
7895       if test "$host_cpu" = ia64; then
7896         # AIX 5 now supports IA64 processor
7897         lt_prog_compiler_static='-Bstatic'
7898       else
7899         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7900       fi
7901       ;;
7902       darwin*)
7903         # PIC is the default on this platform
7904         # Common symbols not allowed in MH_DYLIB files
7905        case $cc_basename in
7906          xlc*)
7907          lt_prog_compiler_pic='-qnocommon'
7908          lt_prog_compiler_wl='-Wl,'
7909          ;;
7910        esac
7911        ;;
7912
7913     mingw* | pw32* | os2*)
7914       # This hack is so that the source file can tell whether it is being
7915       # built for inclusion in a dll (and should export symbols for example).
7916       lt_prog_compiler_pic='-DDLL_EXPORT'
7917       ;;
7918
7919     hpux9* | hpux10* | hpux11*)
7920       lt_prog_compiler_wl='-Wl,'
7921       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7922       # not for PA HP-UX.
7923       case $host_cpu in
7924       hppa*64*|ia64*)
7925         # +Z the default
7926         ;;
7927       *)
7928         lt_prog_compiler_pic='+Z'
7929         ;;
7930       esac
7931       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7932       lt_prog_compiler_static='${wl}-a ${wl}archive'
7933       ;;
7934
7935     irix5* | irix6* | nonstopux*)
7936       lt_prog_compiler_wl='-Wl,'
7937       # PIC (with -KPIC) is the default.
7938       lt_prog_compiler_static='-non_shared'
7939       ;;
7940
7941     newsos6)
7942       lt_prog_compiler_pic='-KPIC'
7943       lt_prog_compiler_static='-Bstatic'
7944       ;;
7945
7946     linux*)
7947       case $cc_basename in
7948       icc* | ecc*)
7949         lt_prog_compiler_wl='-Wl,'
7950         lt_prog_compiler_pic='-KPIC'
7951         lt_prog_compiler_static='-static'
7952         ;;
7953       pgcc* | pgf77* | pgf90* | pgf95*)
7954         # Portland Group compilers (*not* the Pentium gcc compiler,
7955         # which looks to be a dead project)
7956         lt_prog_compiler_wl='-Wl,'
7957         lt_prog_compiler_pic='-fpic'
7958         lt_prog_compiler_static='-Bstatic'
7959         ;;
7960       ccc*)
7961         lt_prog_compiler_wl='-Wl,'
7962         # All Alpha code is PIC.
7963         lt_prog_compiler_static='-non_shared'
7964         ;;
7965       esac
7966       ;;
7967
7968     osf3* | osf4* | osf5*)
7969       lt_prog_compiler_wl='-Wl,'
7970       # All OSF/1 code is PIC.
7971       lt_prog_compiler_static='-non_shared'
7972       ;;
7973
7974     solaris*)
7975       lt_prog_compiler_pic='-KPIC'
7976       lt_prog_compiler_static='-Bstatic'
7977       case $cc_basename in
7978       f77* | f90* | f95*)
7979         lt_prog_compiler_wl='-Qoption ld ';;
7980       *)
7981         lt_prog_compiler_wl='-Wl,';;
7982       esac
7983       ;;
7984
7985     sunos4*)
7986       lt_prog_compiler_wl='-Qoption ld '
7987       lt_prog_compiler_pic='-PIC'
7988       lt_prog_compiler_static='-Bstatic'
7989       ;;
7990
7991     sysv4 | sysv4.2uw2* | sysv4.3*)
7992       lt_prog_compiler_wl='-Wl,'
7993       lt_prog_compiler_pic='-KPIC'
7994       lt_prog_compiler_static='-Bstatic'
7995       ;;
7996
7997     sysv4*MP*)
7998       if test -d /usr/nec ;then
7999         lt_prog_compiler_pic='-Kconform_pic'
8000         lt_prog_compiler_static='-Bstatic'
8001       fi
8002       ;;
8003
8004     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8005       lt_prog_compiler_wl='-Wl,'
8006       lt_prog_compiler_pic='-KPIC'
8007       lt_prog_compiler_static='-Bstatic'
8008       ;;
8009
8010     unicos*)
8011       lt_prog_compiler_wl='-Wl,'
8012       lt_prog_compiler_can_build_shared=no
8013       ;;
8014
8015     uts4*)
8016       lt_prog_compiler_pic='-pic'
8017       lt_prog_compiler_static='-Bstatic'
8018       ;;
8019
8020     *)
8021       lt_prog_compiler_can_build_shared=no
8022       ;;
8023     esac
8024   fi
8025
8026 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8027 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8028
8029 #
8030 # Check to make sure the PIC flag actually works.
8031 #
8032 if test -n "$lt_prog_compiler_pic"; then
8033
8034 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8035 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8036 if test "${lt_prog_compiler_pic_works+set}" = set; then
8037   echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039   lt_prog_compiler_pic_works=no
8040   ac_outfile=conftest.$ac_objext
8041    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8042    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8043    # Insert the option either (1) after the last *FLAGS variable, or
8044    # (2) before a word containing "conftest.", or (3) at the end.
8045    # Note that $ac_compile itself does not contain backslashes and begins
8046    # with a dollar sign (not a hyphen), so the echo should work correctly.
8047    # The option is referenced via a variable to avoid confusing sed.
8048    lt_compile=`echo "$ac_compile" | $SED \
8049    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8050    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8051    -e 's:$: $lt_compiler_flag:'`
8052    (eval echo "\"\$as_me:8052: $lt_compile\"" >&5)
8053    (eval "$lt_compile" 2>conftest.err)
8054    ac_status=$?
8055    cat conftest.err >&5
8056    echo "$as_me:8056: \$? = $ac_status" >&5
8057    if (exit $ac_status) && test -s "$ac_outfile"; then
8058      # The compiler can only warn and ignore the option if not recognized
8059      # So say no if there are warnings other than the usual output.
8060      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8061      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8062      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8063        lt_prog_compiler_pic_works=yes
8064      fi
8065    fi
8066    $rm conftest*
8067
8068 fi
8069 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8070 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8071
8072 if test x"$lt_prog_compiler_pic_works" = xyes; then
8073     case $lt_prog_compiler_pic in
8074      "" | " "*) ;;
8075      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8076      esac
8077 else
8078     lt_prog_compiler_pic=
8079      lt_prog_compiler_can_build_shared=no
8080 fi
8081
8082 fi
8083 case $host_os in
8084   # For platforms which do not support PIC, -DPIC is meaningless:
8085   *djgpp*)
8086     lt_prog_compiler_pic=
8087     ;;
8088   *)
8089     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8090     ;;
8091 esac
8092
8093 #
8094 # Check to make sure the static flag actually works.
8095 #
8096 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8097 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8098 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8099 if test "${lt_prog_compiler_static_works+set}" = set; then
8100   echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102   lt_prog_compiler_static_works=no
8103    save_LDFLAGS="$LDFLAGS"
8104    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8105    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8106    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8107      # The linker can only warn and ignore the option if not recognized
8108      # So say no if there are warnings
8109      if test -s conftest.err; then
8110        # Append any errors to the config.log.
8111        cat conftest.err 1>&5
8112        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8113        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8114        if diff conftest.exp conftest.er2 >/dev/null; then
8115          lt_prog_compiler_static_works=yes
8116        fi
8117      else
8118        lt_prog_compiler_static_works=yes
8119      fi
8120    fi
8121    $rm conftest*
8122    LDFLAGS="$save_LDFLAGS"
8123
8124 fi
8125 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8126 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8127
8128 if test x"$lt_prog_compiler_static_works" = xyes; then
8129     :
8130 else
8131     lt_prog_compiler_static=
8132 fi
8133
8134
8135 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8136 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8137 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   lt_cv_prog_compiler_c_o=no
8141    $rm -r conftest 2>/dev/null
8142    mkdir conftest
8143    cd conftest
8144    mkdir out
8145    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8146
8147    lt_compiler_flag="-o out/conftest2.$ac_objext"
8148    # Insert the option either (1) after the last *FLAGS variable, or
8149    # (2) before a word containing "conftest.", or (3) at the end.
8150    # Note that $ac_compile itself does not contain backslashes and begins
8151    # with a dollar sign (not a hyphen), so the echo should work correctly.
8152    lt_compile=`echo "$ac_compile" | $SED \
8153    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8154    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8155    -e 's:$: $lt_compiler_flag:'`
8156    (eval echo "\"\$as_me:8156: $lt_compile\"" >&5)
8157    (eval "$lt_compile" 2>out/conftest.err)
8158    ac_status=$?
8159    cat out/conftest.err >&5
8160    echo "$as_me:8160: \$? = $ac_status" >&5
8161    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8162    then
8163      # The compiler can only warn and ignore the option if not recognized
8164      # So say no if there are warnings
8165      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8166      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8167      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8168        lt_cv_prog_compiler_c_o=yes
8169      fi
8170    fi
8171    chmod u+w . 2>&5
8172    $rm conftest*
8173    # SGI C++ compiler will create directory out/ii_files/ for
8174    # template instantiation
8175    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8176    $rm out/* && rmdir out
8177    cd ..
8178    rmdir conftest
8179    $rm conftest*
8180
8181 fi
8182 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8183 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8184
8185
8186 hard_links="nottested"
8187 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8188   # do not overwrite the value of need_locks provided by the user
8189   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8190 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8191   hard_links=yes
8192   $rm conftest*
8193   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8194   touch conftest.a
8195   ln conftest.a conftest.b 2>&5 || hard_links=no
8196   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8197   { echo "$as_me:$LINENO: result: $hard_links" >&5
8198 echo "${ECHO_T}$hard_links" >&6; }
8199   if test "$hard_links" = no; then
8200     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8201 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8202     need_locks=warn
8203   fi
8204 else
8205   need_locks=no
8206 fi
8207
8208 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8209 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8210
8211   runpath_var=
8212   allow_undefined_flag=
8213   enable_shared_with_static_runtimes=no
8214   archive_cmds=
8215   archive_expsym_cmds=
8216   old_archive_From_new_cmds=
8217   old_archive_from_expsyms_cmds=
8218   export_dynamic_flag_spec=
8219   whole_archive_flag_spec=
8220   thread_safe_flag_spec=
8221   hardcode_libdir_flag_spec=
8222   hardcode_libdir_flag_spec_ld=
8223   hardcode_libdir_separator=
8224   hardcode_direct=no
8225   hardcode_minus_L=no
8226   hardcode_shlibpath_var=unsupported
8227   link_all_deplibs=unknown
8228   hardcode_automatic=no
8229   module_cmds=
8230   module_expsym_cmds=
8231   always_export_symbols=no
8232   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8233   # include_expsyms should be a list of space-separated symbols to be *always*
8234   # included in the symbol list
8235   include_expsyms=
8236   # exclude_expsyms can be an extended regexp of symbols to exclude
8237   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8238   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8239   # as well as any symbol that contains `d'.
8240   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8241   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8242   # platforms (ab)use it in PIC code, but their linkers get confused if
8243   # the symbol is explicitly referenced.  Since portable code cannot
8244   # rely on this symbol name, it's probably fine to never include it in
8245   # preloaded symbol tables.
8246   extract_expsyms_cmds=
8247   # Just being paranoid about ensuring that cc_basename is set.
8248   for cc_temp in $compiler""; do
8249   case $cc_temp in
8250     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8251     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8252     \-*) ;;
8253     *) break;;
8254   esac
8255 done
8256 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8257
8258   case $host_os in
8259   cygwin* | mingw* | pw32*)
8260     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8261     # When not using gcc, we currently assume that we are using
8262     # Microsoft Visual C++.
8263     if test "$GCC" != yes; then
8264       with_gnu_ld=no
8265     fi
8266     ;;
8267   interix*)
8268     # we just hope/assume this is gcc and not c89 (= MSVC++)
8269     with_gnu_ld=yes
8270     ;;
8271   openbsd*)
8272     with_gnu_ld=no
8273     ;;
8274   esac
8275
8276   ld_shlibs=yes
8277   if test "$with_gnu_ld" = yes; then
8278     # If archive_cmds runs LD, not CC, wlarc should be empty
8279     wlarc='${wl}'
8280
8281     # Set some defaults for GNU ld with shared library support. These
8282     # are reset later if shared libraries are not supported. Putting them
8283     # here allows them to be overridden if necessary.
8284     runpath_var=LD_RUN_PATH
8285     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8286     export_dynamic_flag_spec='${wl}--export-dynamic'
8287     # ancient GNU ld didn't support --whole-archive et. al.
8288     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8289         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8290       else
8291         whole_archive_flag_spec=
8292     fi
8293     supports_anon_versioning=no
8294     case `$LD -v 2>/dev/null` in
8295       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8296       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8297       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8298       *\ 2.11.*) ;; # other 2.11 versions
8299       *) supports_anon_versioning=yes ;;
8300     esac
8301
8302     # See if GNU ld supports shared libraries.
8303     case $host_os in
8304     aix3* | aix4* | aix5*)
8305       # On AIX/PPC, the GNU linker is very broken
8306       if test "$host_cpu" != ia64; then
8307         ld_shlibs=no
8308         cat <<EOF 1>&2
8309
8310 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8311 *** to be unable to reliably create shared libraries on AIX.
8312 *** Therefore, libtool is disabling shared libraries support.  If you
8313 *** really care for shared libraries, you may want to modify your PATH
8314 *** so that a non-GNU linker is found, and then restart.
8315
8316 EOF
8317       fi
8318       ;;
8319
8320     amigaos*)
8321       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)'
8322       hardcode_libdir_flag_spec='-L$libdir'
8323       hardcode_minus_L=yes
8324
8325       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8326       # that the semantics of dynamic libraries on AmigaOS, at least up
8327       # to version 4, is to share data among multiple programs linked
8328       # with the same dynamic library.  Since this doesn't match the
8329       # behavior of shared libraries on other platforms, we can't use
8330       # them.
8331       ld_shlibs=no
8332       ;;
8333
8334     beos*)
8335       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8336         allow_undefined_flag=unsupported
8337         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8338         # support --undefined.  This deserves some investigation.  FIXME
8339         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8340       else
8341         ld_shlibs=no
8342       fi
8343       ;;
8344
8345     cygwin* | mingw* | pw32*)
8346       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8347       # as there is no search path for DLLs.
8348       hardcode_libdir_flag_spec='-L$libdir'
8349       allow_undefined_flag=unsupported
8350       always_export_symbols=no
8351       enable_shared_with_static_runtimes=yes
8352       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8353
8354       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8355         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8356         # If the export-symbols file already is a .def file (1st line
8357         # is EXPORTS), use it as is; otherwise, prepend...
8358         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8359           cp $export_symbols $output_objdir/$soname.def;
8360         else
8361           echo EXPORTS > $output_objdir/$soname.def;
8362           cat $export_symbols >> $output_objdir/$soname.def;
8363         fi~
8364         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8365       else
8366         ld_shlibs=no
8367       fi
8368       ;;
8369
8370     interix3*)
8371       hardcode_direct=no
8372       hardcode_shlibpath_var=no
8373       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8374       export_dynamic_flag_spec='${wl}-E'
8375       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8376       # Instead, shared libraries are loaded at an image base (0x10000000 by
8377       # default) and relocated if they conflict, which is a slow very memory
8378       # consuming and fragmenting process.  To avoid this, we pick a random,
8379       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8380       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8381       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8382       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'
8383       ;;
8384
8385     linux*)
8386       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8387         tmp_addflag=
8388         case $cc_basename,$host_cpu in
8389         pgcc*)                          # Portland Group C compiler
8390           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'
8391           tmp_addflag=' $pic_flag'
8392           ;;
8393         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8394           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'
8395           tmp_addflag=' $pic_flag -Mnomain' ;;
8396         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8397           tmp_addflag=' -i_dynamic' ;;
8398         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8399           tmp_addflag=' -i_dynamic -nofor_main' ;;
8400         ifc* | ifort*)                  # Intel Fortran compiler
8401           tmp_addflag=' -nofor_main' ;;
8402         esac
8403         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8404
8405         if test $supports_anon_versioning = yes; then
8406           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8407   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8408   $echo "local: *; };" >> $output_objdir/$libname.ver~
8409           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8410         fi
8411       else
8412         ld_shlibs=no
8413       fi
8414       ;;
8415
8416     netbsd*)
8417       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8418         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8419         wlarc=
8420       else
8421         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8423       fi
8424       ;;
8425
8426     solaris*)
8427       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8428         ld_shlibs=no
8429         cat <<EOF 1>&2
8430
8431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8432 *** create shared libraries on Solaris systems.  Therefore, libtool
8433 *** is disabling shared libraries support.  We urge you to upgrade GNU
8434 *** binutils to release 2.9.1 or newer.  Another option is to modify
8435 *** your PATH or compiler configuration so that the native linker is
8436 *** used, and then restart.
8437
8438 EOF
8439       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8440         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8441         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8442       else
8443         ld_shlibs=no
8444       fi
8445       ;;
8446
8447     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8448       case `$LD -v 2>&1` in
8449         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8450         ld_shlibs=no
8451         cat <<_LT_EOF 1>&2
8452
8453 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8454 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8455 *** is disabling shared libraries support.  We urge you to upgrade GNU
8456 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8457 *** your PATH or compiler configuration so that the native linker is
8458 *** used, and then restart.
8459
8460 _LT_EOF
8461         ;;
8462         *)
8463           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8464             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8465             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8466             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8467           else
8468             ld_shlibs=no
8469           fi
8470         ;;
8471       esac
8472       ;;
8473
8474     sunos4*)
8475       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8476       wlarc=
8477       hardcode_direct=yes
8478       hardcode_shlibpath_var=no
8479       ;;
8480
8481     *)
8482       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8483         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8484         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8485       else
8486         ld_shlibs=no
8487       fi
8488       ;;
8489     esac
8490
8491     if test "$ld_shlibs" = no; then
8492       runpath_var=
8493       hardcode_libdir_flag_spec=
8494       export_dynamic_flag_spec=
8495       whole_archive_flag_spec=
8496     fi
8497   else
8498     # PORTME fill in a description of your system's linker (not GNU ld)
8499     case $host_os in
8500     aix3*)
8501       allow_undefined_flag=unsupported
8502       always_export_symbols=yes
8503       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'
8504       # Note: this linker hardcodes the directories in LIBPATH if there
8505       # are no directories specified by -L.
8506       hardcode_minus_L=yes
8507       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8508         # Neither direct hardcoding nor static linking is supported with a
8509         # broken collect2.
8510         hardcode_direct=unsupported
8511       fi
8512       ;;
8513
8514     aix4* | aix5*)
8515       if test "$host_cpu" = ia64; then
8516         # On IA64, the linker does run time linking by default, so we don't
8517         # have to do anything special.
8518         aix_use_runtimelinking=no
8519         exp_sym_flag='-Bexport'
8520         no_entry_flag=""
8521       else
8522         # If we're using GNU nm, then we don't want the "-C" option.
8523         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8524         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8525           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'
8526         else
8527           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'
8528         fi
8529         aix_use_runtimelinking=no
8530
8531         # Test if we are trying to use run time linking or normal
8532         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8533         # need to do runtime linking.
8534         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8535           for ld_flag in $LDFLAGS; do
8536           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8537             aix_use_runtimelinking=yes
8538             break
8539           fi
8540           done
8541           ;;
8542         esac
8543
8544         exp_sym_flag='-bexport'
8545         no_entry_flag='-bnoentry'
8546       fi
8547
8548       # When large executables or shared objects are built, AIX ld can
8549       # have problems creating the table of contents.  If linking a library
8550       # or program results in "error TOC overflow" add -mminimal-toc to
8551       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8552       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8553
8554       archive_cmds=''
8555       hardcode_direct=yes
8556       hardcode_libdir_separator=':'
8557       link_all_deplibs=yes
8558
8559       if test "$GCC" = yes; then
8560         case $host_os in aix4.[012]|aix4.[012].*)
8561         # We only want to do this on AIX 4.2 and lower, the check
8562         # below for broken collect2 doesn't work under 4.3+
8563           collect2name=`${CC} -print-prog-name=collect2`
8564           if test -f "$collect2name" && \
8565            strings "$collect2name" | grep resolve_lib_name >/dev/null
8566           then
8567           # We have reworked collect2
8568           hardcode_direct=yes
8569           else
8570           # We have old collect2
8571           hardcode_direct=unsupported
8572           # It fails to find uninstalled libraries when the uninstalled
8573           # path is not listed in the libpath.  Setting hardcode_minus_L
8574           # to unsupported forces relinking
8575           hardcode_minus_L=yes
8576           hardcode_libdir_flag_spec='-L$libdir'
8577           hardcode_libdir_separator=
8578           fi
8579           ;;
8580         esac
8581         shared_flag='-shared'
8582         if test "$aix_use_runtimelinking" = yes; then
8583           shared_flag="$shared_flag "'${wl}-G'
8584         fi
8585       else
8586         # not using gcc
8587         if test "$host_cpu" = ia64; then
8588         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8589         # chokes on -Wl,-G. The following line is correct:
8590           shared_flag='-G'
8591         else
8592           if test "$aix_use_runtimelinking" = yes; then
8593             shared_flag='${wl}-G'
8594           else
8595             shared_flag='${wl}-bM:SRE'
8596           fi
8597         fi
8598       fi
8599
8600       # It seems that -bexpall does not export symbols beginning with
8601       # underscore (_), so it is better to generate a list of symbols to export.
8602       always_export_symbols=yes
8603       if test "$aix_use_runtimelinking" = yes; then
8604         # Warning - without using the other runtime loading flags (-brtl),
8605         # -berok will link without error, but may produce a broken library.
8606         allow_undefined_flag='-berok'
8607        # Determine the default libpath from the value encoded in an empty executable.
8608        cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h.  */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h.  */
8614
8615 int
8616 main ()
8617 {
8618
8619   ;
8620   return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (ac_try="$ac_link"
8625 case "(($ac_try" in
8626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627   *) ac_try_echo=$ac_try;;
8628 esac
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630   (eval "$ac_link") 2>conftest.er1
8631   ac_status=$?
8632   grep -v '^ *+' conftest.er1 >conftest.err
8633   rm -f conftest.er1
8634   cat conftest.err >&5
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); } &&
8637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8638   { (case "(($ac_try" in
8639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640   *) ac_try_echo=$ac_try;;
8641 esac
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643   (eval "$ac_try") 2>&5
8644   ac_status=$?
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); }; } &&
8647          { ac_try='test -s conftest$ac_exeext'
8648   { (case "(($ac_try" in
8649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650   *) ac_try_echo=$ac_try;;
8651 esac
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653   (eval "$ac_try") 2>&5
8654   ac_status=$?
8655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656   (exit $ac_status); }; }; then
8657
8658 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8659 }'`
8660 # Check for a 64-bit object if we didn't find anything.
8661 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; }
8662 }'`; fi
8663 else
8664   echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667
8668 fi
8669
8670 rm -f core conftest.err conftest.$ac_objext \
8671       conftest$ac_exeext conftest.$ac_ext
8672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8673
8674        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8675         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"
8676        else
8677         if test "$host_cpu" = ia64; then
8678           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8679           allow_undefined_flag="-z nodefs"
8680           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"
8681         else
8682          # Determine the default libpath from the value encoded in an empty executable.
8683          cat >conftest.$ac_ext <<_ACEOF
8684 /* confdefs.h.  */
8685 _ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h.  */
8689
8690 int
8691 main ()
8692 {
8693
8694   ;
8695   return 0;
8696 }
8697 _ACEOF
8698 rm -f conftest.$ac_objext conftest$ac_exeext
8699 if { (ac_try="$ac_link"
8700 case "(($ac_try" in
8701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702   *) ac_try_echo=$ac_try;;
8703 esac
8704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705   (eval "$ac_link") 2>conftest.er1
8706   ac_status=$?
8707   grep -v '^ *+' conftest.er1 >conftest.err
8708   rm -f conftest.er1
8709   cat conftest.err >&5
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); } &&
8712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8713   { (case "(($ac_try" in
8714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715   *) ac_try_echo=$ac_try;;
8716 esac
8717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718   (eval "$ac_try") 2>&5
8719   ac_status=$?
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); }; } &&
8722          { ac_try='test -s conftest$ac_exeext'
8723   { (case "(($ac_try" in
8724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725   *) ac_try_echo=$ac_try;;
8726 esac
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728   (eval "$ac_try") 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); }; }; then
8732
8733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8734 }'`
8735 # Check for a 64-bit object if we didn't find anything.
8736 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; }
8737 }'`; fi
8738 else
8739   echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8741
8742
8743 fi
8744
8745 rm -f core conftest.err conftest.$ac_objext \
8746       conftest$ac_exeext conftest.$ac_ext
8747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8748
8749          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8750           # Warning - without using the other run time loading flags,
8751           # -berok will link without error, but may produce a broken library.
8752           no_undefined_flag=' ${wl}-bernotok'
8753           allow_undefined_flag=' ${wl}-berok'
8754           # Exported symbols can be pulled into shared objects from archives
8755           whole_archive_flag_spec='$convenience'
8756           archive_cmds_need_lc=yes
8757           # This is similar to how AIX traditionally builds its shared libraries.
8758           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'
8759         fi
8760       fi
8761       ;;
8762
8763     amigaos*)
8764       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)'
8765       hardcode_libdir_flag_spec='-L$libdir'
8766       hardcode_minus_L=yes
8767       # see comment about different semantics on the GNU ld section
8768       ld_shlibs=no
8769       ;;
8770
8771     bsdi[45]*)
8772       export_dynamic_flag_spec=-rdynamic
8773       ;;
8774
8775     cygwin* | mingw* | pw32*)
8776       # When not using gcc, we currently assume that we are using
8777       # Microsoft Visual C++.
8778       # hardcode_libdir_flag_spec is actually meaningless, as there is
8779       # no search path for DLLs.
8780       hardcode_libdir_flag_spec=' '
8781       allow_undefined_flag=unsupported
8782       # Tell ltmain to make .lib files, not .a files.
8783       libext=lib
8784       # Tell ltmain to make .dll files, not .so files.
8785       shrext_cmds=".dll"
8786       # FIXME: Setting linknames here is a bad hack.
8787       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8788       # The linker will automatically build a .lib file if we build a DLL.
8789       old_archive_From_new_cmds='true'
8790       # FIXME: Should let the user specify the lib program.
8791       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8792       fix_srcfile_path='`cygpath -w "$srcfile"`'
8793       enable_shared_with_static_runtimes=yes
8794       ;;
8795
8796     darwin* | rhapsody*)
8797       case $host_os in
8798         rhapsody* | darwin1.[012])
8799          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8800          ;;
8801        *) # Darwin 1.3 on
8802          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8803            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8804          else
8805            case ${MACOSX_DEPLOYMENT_TARGET} in
8806              10.[012])
8807                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8808                ;;
8809              10.*)
8810                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8811                ;;
8812            esac
8813          fi
8814          ;;
8815       esac
8816       archive_cmds_need_lc=no
8817       hardcode_direct=no
8818       hardcode_automatic=yes
8819       hardcode_shlibpath_var=unsupported
8820       whole_archive_flag_spec=''
8821       link_all_deplibs=yes
8822     if test "$GCC" = yes ; then
8823         output_verbose_link_cmd='echo'
8824         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8825       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8826       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8827       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}'
8828       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}'
8829     else
8830       case $cc_basename in
8831         xlc*)
8832          output_verbose_link_cmd='echo'
8833          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8834          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8835           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8836          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}'
8837           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}'
8838           ;;
8839        *)
8840          ld_shlibs=no
8841           ;;
8842       esac
8843     fi
8844       ;;
8845
8846     dgux*)
8847       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848       hardcode_libdir_flag_spec='-L$libdir'
8849       hardcode_shlibpath_var=no
8850       ;;
8851
8852     freebsd1*)
8853       ld_shlibs=no
8854       ;;
8855
8856     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8857     # support.  Future versions do this automatically, but an explicit c++rt0.o
8858     # does not break anything, and helps significantly (at the cost of a little
8859     # extra space).
8860     freebsd2.2*)
8861       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8862       hardcode_libdir_flag_spec='-R$libdir'
8863       hardcode_direct=yes
8864       hardcode_shlibpath_var=no
8865       ;;
8866
8867     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8868     freebsd2*)
8869       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8870       hardcode_direct=yes
8871       hardcode_minus_L=yes
8872       hardcode_shlibpath_var=no
8873       ;;
8874
8875     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8876     freebsd* | kfreebsd*-gnu | dragonfly*)
8877       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8878       hardcode_libdir_flag_spec='-R$libdir'
8879       hardcode_direct=yes
8880       hardcode_shlibpath_var=no
8881       ;;
8882
8883     hpux9*)
8884       if test "$GCC" = yes; then
8885         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'
8886       else
8887         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'
8888       fi
8889       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8890       hardcode_libdir_separator=:
8891       hardcode_direct=yes
8892
8893       # hardcode_minus_L: Not really in the search PATH,
8894       # but as the default location of the library.
8895       hardcode_minus_L=yes
8896       export_dynamic_flag_spec='${wl}-E'
8897       ;;
8898
8899     hpux10*)
8900       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8901         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8902       else
8903         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8904       fi
8905       if test "$with_gnu_ld" = no; then
8906         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8907         hardcode_libdir_separator=:
8908
8909         hardcode_direct=yes
8910         export_dynamic_flag_spec='${wl}-E'
8911
8912         # hardcode_minus_L: Not really in the search PATH,
8913         # but as the default location of the library.
8914         hardcode_minus_L=yes
8915       fi
8916       ;;
8917
8918     hpux11*)
8919       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8920         case $host_cpu in
8921         hppa*64*)
8922           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8923           ;;
8924         ia64*)
8925           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8926           ;;
8927         *)
8928           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8929           ;;
8930         esac
8931       else
8932         case $host_cpu in
8933         hppa*64*)
8934           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8935           ;;
8936         ia64*)
8937           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8938           ;;
8939         *)
8940           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8941           ;;
8942         esac
8943       fi
8944       if test "$with_gnu_ld" = no; then
8945         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8946         hardcode_libdir_separator=:
8947
8948         case $host_cpu in
8949         hppa*64*|ia64*)
8950           hardcode_libdir_flag_spec_ld='+b $libdir'
8951           hardcode_direct=no
8952           hardcode_shlibpath_var=no
8953           ;;
8954         *)
8955           hardcode_direct=yes
8956           export_dynamic_flag_spec='${wl}-E'
8957
8958           # hardcode_minus_L: Not really in the search PATH,
8959           # but as the default location of the library.
8960           hardcode_minus_L=yes
8961           ;;
8962         esac
8963       fi
8964       ;;
8965
8966     irix5* | irix6* | nonstopux*)
8967       if test "$GCC" = yes; then
8968         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'
8969       else
8970         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'
8971         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8972       fi
8973       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8974       hardcode_libdir_separator=:
8975       link_all_deplibs=yes
8976       ;;
8977
8978     netbsd*)
8979       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8980         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8981       else
8982         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8983       fi
8984       hardcode_libdir_flag_spec='-R$libdir'
8985       hardcode_direct=yes
8986       hardcode_shlibpath_var=no
8987       ;;
8988
8989     newsos6)
8990       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991       hardcode_direct=yes
8992       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8993       hardcode_libdir_separator=:
8994       hardcode_shlibpath_var=no
8995       ;;
8996
8997     openbsd*)
8998       hardcode_direct=yes
8999       hardcode_shlibpath_var=no
9000       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9001         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9002         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9003         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9004         export_dynamic_flag_spec='${wl}-E'
9005       else
9006        case $host_os in
9007          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9008            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9009            hardcode_libdir_flag_spec='-R$libdir'
9010            ;;
9011          *)
9012            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9013            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9014            ;;
9015        esac
9016       fi
9017       ;;
9018
9019     os2*)
9020       hardcode_libdir_flag_spec='-L$libdir'
9021       hardcode_minus_L=yes
9022       allow_undefined_flag=unsupported
9023       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'
9024       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9025       ;;
9026
9027     osf3*)
9028       if test "$GCC" = yes; then
9029         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9030         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'
9031       else
9032         allow_undefined_flag=' -expect_unresolved \*'
9033         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'
9034       fi
9035       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9036       hardcode_libdir_separator=:
9037       ;;
9038
9039     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9040       if test "$GCC" = yes; then
9041         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9042         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'
9043         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9044       else
9045         allow_undefined_flag=' -expect_unresolved \*'
9046         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'
9047         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9048         $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'
9049
9050         # Both c and cxx compiler support -rpath directly
9051         hardcode_libdir_flag_spec='-rpath $libdir'
9052       fi
9053       hardcode_libdir_separator=:
9054       ;;
9055
9056     solaris*)
9057       no_undefined_flag=' -z text'
9058       if test "$GCC" = yes; then
9059         wlarc='${wl}'
9060         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9061         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9062           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9063       else
9064         wlarc=''
9065         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9067         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9068       fi
9069       hardcode_libdir_flag_spec='-R$libdir'
9070       hardcode_shlibpath_var=no
9071       case $host_os in
9072       solaris2.[0-5] | solaris2.[0-5].*) ;;
9073       *)
9074         # The compiler driver will combine linker options so we
9075         # cannot just pass the convience library names through
9076         # without $wl, iff we do not link with $LD.
9077         # Luckily, gcc supports the same syntax we need for Sun Studio.
9078         # Supported since Solaris 2.6 (maybe 2.5.1?)
9079         case $wlarc in
9080         '')
9081           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9082         *)
9083           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' ;;
9084         esac ;;
9085       esac
9086       link_all_deplibs=yes
9087       ;;
9088
9089     sunos4*)
9090       if test "x$host_vendor" = xsequent; then
9091         # Use $CC to link under sequent, because it throws in some extra .o
9092         # files that make .init and .fini sections work.
9093         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9094       else
9095         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9096       fi
9097       hardcode_libdir_flag_spec='-L$libdir'
9098       hardcode_direct=yes
9099       hardcode_minus_L=yes
9100       hardcode_shlibpath_var=no
9101       ;;
9102
9103     sysv4)
9104       case $host_vendor in
9105         sni)
9106           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9107           hardcode_direct=yes # is this really true???
9108         ;;
9109         siemens)
9110           ## LD is ld it makes a PLAMLIB
9111           ## CC just makes a GrossModule.
9112           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9113           reload_cmds='$CC -r -o $output$reload_objs'
9114           hardcode_direct=no
9115         ;;
9116         motorola)
9117           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9119         ;;
9120       esac
9121       runpath_var='LD_RUN_PATH'
9122       hardcode_shlibpath_var=no
9123       ;;
9124
9125     sysv4.3*)
9126       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127       hardcode_shlibpath_var=no
9128       export_dynamic_flag_spec='-Bexport'
9129       ;;
9130
9131     sysv4*MP*)
9132       if test -d /usr/nec; then
9133         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9134         hardcode_shlibpath_var=no
9135         runpath_var=LD_RUN_PATH
9136         hardcode_runpath_var=yes
9137         ld_shlibs=yes
9138       fi
9139       ;;
9140
9141     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9142       no_undefined_flag='${wl}-z,text'
9143       archive_cmds_need_lc=no
9144       hardcode_shlibpath_var=no
9145       runpath_var='LD_RUN_PATH'
9146
9147       if test "$GCC" = yes; then
9148         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9149         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9150       else
9151         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9152         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9153       fi
9154       ;;
9155
9156     sysv5* | sco3.2v5* | sco5v6*)
9157       # Note: We can NOT use -z defs as we might desire, because we do not
9158       # link with -lc, and that would cause any symbols used from libc to
9159       # always be unresolved, which means just about no library would
9160       # ever link correctly.  If we're not using GNU ld we use -z text
9161       # though, which does catch some bad symbols but isn't as heavy-handed
9162       # as -z defs.
9163       no_undefined_flag='${wl}-z,text'
9164       allow_undefined_flag='${wl}-z,nodefs'
9165       archive_cmds_need_lc=no
9166       hardcode_shlibpath_var=no
9167       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9168       hardcode_libdir_separator=':'
9169       link_all_deplibs=yes
9170       export_dynamic_flag_spec='${wl}-Bexport'
9171       runpath_var='LD_RUN_PATH'
9172
9173       if test "$GCC" = yes; then
9174         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9175         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9176       else
9177         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9178         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179       fi
9180       ;;
9181
9182     uts4*)
9183       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9184       hardcode_libdir_flag_spec='-L$libdir'
9185       hardcode_shlibpath_var=no
9186       ;;
9187
9188     *)
9189       ld_shlibs=no
9190       ;;
9191     esac
9192   fi
9193
9194 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9195 echo "${ECHO_T}$ld_shlibs" >&6; }
9196 test "$ld_shlibs" = no && can_build_shared=no
9197
9198 #
9199 # Do we need to explicitly link libc?
9200 #
9201 case "x$archive_cmds_need_lc" in
9202 x|xyes)
9203   # Assume -lc should be added
9204   archive_cmds_need_lc=yes
9205
9206   if test "$enable_shared" = yes && test "$GCC" = yes; then
9207     case $archive_cmds in
9208     *'~'*)
9209       # FIXME: we may have to deal with multi-command sequences.
9210       ;;
9211     '$CC '*)
9212       # Test whether the compiler implicitly links with -lc since on some
9213       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9214       # to ld, don't add -lc before -lgcc.
9215       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9216 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9217       $rm conftest*
9218       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9219
9220       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9221   (eval $ac_compile) 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); } 2>conftest.err; then
9225         soname=conftest
9226         lib=conftest
9227         libobjs=conftest.$ac_objext
9228         deplibs=
9229         wl=$lt_prog_compiler_wl
9230         pic_flag=$lt_prog_compiler_pic
9231         compiler_flags=-v
9232         linker_flags=-v
9233         verstring=
9234         output_objdir=.
9235         libname=conftest
9236         lt_save_allow_undefined_flag=$allow_undefined_flag
9237         allow_undefined_flag=
9238         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9239   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9240   ac_status=$?
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); }
9243         then
9244           archive_cmds_need_lc=no
9245         else
9246           archive_cmds_need_lc=yes
9247         fi
9248         allow_undefined_flag=$lt_save_allow_undefined_flag
9249       else
9250         cat conftest.err 1>&5
9251       fi
9252       $rm conftest*
9253       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9254 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9255       ;;
9256     esac
9257   fi
9258   ;;
9259 esac
9260
9261 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9262 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9263 library_names_spec=
9264 libname_spec='lib$name'
9265 soname_spec=
9266 shrext_cmds=".so"
9267 postinstall_cmds=
9268 postuninstall_cmds=
9269 finish_cmds=
9270 finish_eval=
9271 shlibpath_var=
9272 shlibpath_overrides_runpath=unknown
9273 version_type=none
9274 dynamic_linker="$host_os ld.so"
9275 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9276 if test "$GCC" = yes; then
9277   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9278   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9279     # if the path contains ";" then we assume it to be the separator
9280     # otherwise default to the standard path separator (i.e. ":") - it is
9281     # assumed that no part of a normal pathname contains ";" but that should
9282     # okay in the real world where ";" in dirpaths is itself problematic.
9283     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9284   else
9285     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9286   fi
9287 else
9288   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9289 fi
9290 need_lib_prefix=unknown
9291 hardcode_into_libs=no
9292
9293 # when you set need_version to no, make sure it does not cause -set_version
9294 # flags to be left without arguments
9295 need_version=unknown
9296
9297 case $host_os in
9298 aix3*)
9299   version_type=linux
9300   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9301   shlibpath_var=LIBPATH
9302
9303   # AIX 3 has no versioning support, so we append a major version to the name.
9304   soname_spec='${libname}${release}${shared_ext}$major'
9305   ;;
9306
9307 aix4* | aix5*)
9308   version_type=linux
9309   need_lib_prefix=no
9310   need_version=no
9311   hardcode_into_libs=yes
9312   if test "$host_cpu" = ia64; then
9313     # AIX 5 supports IA64
9314     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9315     shlibpath_var=LD_LIBRARY_PATH
9316   else
9317     # With GCC up to 2.95.x, collect2 would create an import file
9318     # for dependence libraries.  The import file would start with
9319     # the line `#! .'.  This would cause the generated library to
9320     # depend on `.', always an invalid library.  This was fixed in
9321     # development snapshots of GCC prior to 3.0.
9322     case $host_os in
9323       aix4 | aix4.[01] | aix4.[01].*)
9324       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9325            echo ' yes '
9326            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9327         :
9328       else
9329         can_build_shared=no
9330       fi
9331       ;;
9332     esac
9333     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9334     # soname into executable. Probably we can add versioning support to
9335     # collect2, so additional links can be useful in future.
9336     if test "$aix_use_runtimelinking" = yes; then
9337       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9338       # instead of lib<name>.a to let people know that these are not
9339       # typical AIX shared libraries.
9340       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9341     else
9342       # We preserve .a as extension for shared libraries through AIX4.2
9343       # and later when we are not doing run time linking.
9344       library_names_spec='${libname}${release}.a $libname.a'
9345       soname_spec='${libname}${release}${shared_ext}$major'
9346     fi
9347     shlibpath_var=LIBPATH
9348   fi
9349   ;;
9350
9351 amigaos*)
9352   library_names_spec='$libname.ixlibrary $libname.a'
9353   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9354   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'
9355   ;;
9356
9357 beos*)
9358   library_names_spec='${libname}${shared_ext}'
9359   dynamic_linker="$host_os ld.so"
9360   shlibpath_var=LIBRARY_PATH
9361   ;;
9362
9363 bsdi[45]*)
9364   version_type=linux
9365   need_version=no
9366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367   soname_spec='${libname}${release}${shared_ext}$major'
9368   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9369   shlibpath_var=LD_LIBRARY_PATH
9370   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9371   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9372   # the default ld.so.conf also contains /usr/contrib/lib and
9373   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9374   # libtool to hard-code these into programs
9375   ;;
9376
9377 cygwin* | mingw* | pw32*)
9378   version_type=windows
9379   shrext_cmds=".dll"
9380   need_version=no
9381   need_lib_prefix=no
9382
9383   case $GCC,$host_os in
9384   yes,cygwin* | yes,mingw* | yes,pw32*)
9385     library_names_spec='$libname.dll.a'
9386     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9387     postinstall_cmds='base_file=`basename \${file}`~
9388       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9389       dldir=$destdir/`dirname \$dlpath`~
9390       test -d \$dldir || mkdir -p \$dldir~
9391       $install_prog $dir/$dlname \$dldir/$dlname~
9392       chmod a+x \$dldir/$dlname'
9393     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9394       dlpath=$dir/\$dldll~
9395        $rm \$dlpath'
9396     shlibpath_overrides_runpath=yes
9397
9398     case $host_os in
9399     cygwin*)
9400       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9401       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9402       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9403       ;;
9404     mingw*)
9405       # MinGW DLLs use traditional 'lib' prefix
9406       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9407       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9408       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9409         # It is most probably a Windows format PATH printed by
9410         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9411         # path with ; separators, and with drive letters. We can handle the
9412         # drive letters (cygwin fileutils understands them), so leave them,
9413         # especially as we might pass files found there to a mingw objdump,
9414         # which wouldn't understand a cygwinified path. Ahh.
9415         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9416       else
9417         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9418       fi
9419       ;;
9420     pw32*)
9421       # pw32 DLLs use 'pw' prefix rather than 'lib'
9422       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9423       ;;
9424     esac
9425     ;;
9426
9427   *)
9428     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9429     ;;
9430   esac
9431   dynamic_linker='Win32 ld.exe'
9432   # FIXME: first we should search . and the directory the executable is in
9433   shlibpath_var=PATH
9434   ;;
9435
9436 darwin* | rhapsody*)
9437   dynamic_linker="$host_os dyld"
9438   version_type=darwin
9439   need_lib_prefix=no
9440   need_version=no
9441   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9442   soname_spec='${libname}${release}${major}$shared_ext'
9443   shlibpath_overrides_runpath=yes
9444   shlibpath_var=DYLD_LIBRARY_PATH
9445   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9446   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9447   if test "$GCC" = yes; then
9448     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"`
9449   else
9450     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9451   fi
9452   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9453   ;;
9454
9455 dgux*)
9456   version_type=linux
9457   need_lib_prefix=no
9458   need_version=no
9459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9460   soname_spec='${libname}${release}${shared_ext}$major'
9461   shlibpath_var=LD_LIBRARY_PATH
9462   ;;
9463
9464 freebsd1*)
9465   dynamic_linker=no
9466   ;;
9467
9468 kfreebsd*-gnu)
9469   version_type=linux
9470   need_lib_prefix=no
9471   need_version=no
9472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9473   soname_spec='${libname}${release}${shared_ext}$major'
9474   shlibpath_var=LD_LIBRARY_PATH
9475   shlibpath_overrides_runpath=no
9476   hardcode_into_libs=yes
9477   dynamic_linker='GNU ld.so'
9478   ;;
9479
9480 freebsd* | dragonfly*)
9481   # DragonFly does not have aout.  When/if they implement a new
9482   # versioning mechanism, adjust this.
9483   if test -x /usr/bin/objformat; then
9484     objformat=`/usr/bin/objformat`
9485   else
9486     case $host_os in
9487     freebsd[123]*) objformat=aout ;;
9488     *) objformat=elf ;;
9489     esac
9490   fi
9491   version_type=freebsd-$objformat
9492   case $version_type in
9493     freebsd-elf*)
9494       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9495       need_version=no
9496       need_lib_prefix=no
9497       ;;
9498     freebsd-*)
9499       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9500       need_version=yes
9501       ;;
9502   esac
9503   shlibpath_var=LD_LIBRARY_PATH
9504   case $host_os in
9505   freebsd2*)
9506     shlibpath_overrides_runpath=yes
9507     ;;
9508   freebsd3.[01]* | freebsdelf3.[01]*)
9509     shlibpath_overrides_runpath=yes
9510     hardcode_into_libs=yes
9511     ;;
9512   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9513   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9514     shlibpath_overrides_runpath=no
9515     hardcode_into_libs=yes
9516     ;;
9517   freebsd*) # from 4.6 on
9518     shlibpath_overrides_runpath=yes
9519     hardcode_into_libs=yes
9520     ;;
9521   esac
9522   ;;
9523
9524 gnu*)
9525   version_type=linux
9526   need_lib_prefix=no
9527   need_version=no
9528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9529   soname_spec='${libname}${release}${shared_ext}$major'
9530   shlibpath_var=LD_LIBRARY_PATH
9531   hardcode_into_libs=yes
9532   ;;
9533
9534 hpux9* | hpux10* | hpux11*)
9535   # Give a soname corresponding to the major version so that dld.sl refuses to
9536   # link against other versions.
9537   version_type=sunos
9538   need_lib_prefix=no
9539   need_version=no
9540   case $host_cpu in
9541   ia64*)
9542     shrext_cmds='.so'
9543     hardcode_into_libs=yes
9544     dynamic_linker="$host_os dld.so"
9545     shlibpath_var=LD_LIBRARY_PATH
9546     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9547     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548     soname_spec='${libname}${release}${shared_ext}$major'
9549     if test "X$HPUX_IA64_MODE" = X32; then
9550       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9551     else
9552       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9553     fi
9554     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9555     ;;
9556    hppa*64*)
9557      shrext_cmds='.sl'
9558      hardcode_into_libs=yes
9559      dynamic_linker="$host_os dld.sl"
9560      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9561      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9562      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9563      soname_spec='${libname}${release}${shared_ext}$major'
9564      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9565      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9566      ;;
9567    *)
9568     shrext_cmds='.sl'
9569     dynamic_linker="$host_os dld.sl"
9570     shlibpath_var=SHLIB_PATH
9571     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573     soname_spec='${libname}${release}${shared_ext}$major'
9574     ;;
9575   esac
9576   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9577   postinstall_cmds='chmod 555 $lib'
9578   ;;
9579
9580 interix3*)
9581   version_type=linux
9582   need_lib_prefix=no
9583   need_version=no
9584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9585   soname_spec='${libname}${release}${shared_ext}$major'
9586   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9587   shlibpath_var=LD_LIBRARY_PATH
9588   shlibpath_overrides_runpath=no
9589   hardcode_into_libs=yes
9590   ;;
9591
9592 irix5* | irix6* | nonstopux*)
9593   case $host_os in
9594     nonstopux*) version_type=nonstopux ;;
9595     *)
9596         if test "$lt_cv_prog_gnu_ld" = yes; then
9597                 version_type=linux
9598         else
9599                 version_type=irix
9600         fi ;;
9601   esac
9602   need_lib_prefix=no
9603   need_version=no
9604   soname_spec='${libname}${release}${shared_ext}$major'
9605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9606   case $host_os in
9607   irix5* | nonstopux*)
9608     libsuff= shlibsuff=
9609     ;;
9610   *)
9611     case $LD in # libtool.m4 will add one of these switches to LD
9612     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9613       libsuff= shlibsuff= libmagic=32-bit;;
9614     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9615       libsuff=32 shlibsuff=N32 libmagic=N32;;
9616     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9617       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9618     *) libsuff= shlibsuff= libmagic=never-match;;
9619     esac
9620     ;;
9621   esac
9622   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9623   shlibpath_overrides_runpath=no
9624   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9625   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9626   hardcode_into_libs=yes
9627   ;;
9628
9629 # No shared lib support for Linux oldld, aout, or coff.
9630 linux*oldld* | linux*aout* | linux*coff*)
9631   dynamic_linker=no
9632   ;;
9633
9634 # This must be Linux ELF.
9635 linux*)
9636   version_type=linux
9637   need_lib_prefix=no
9638   need_version=no
9639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640   soname_spec='${libname}${release}${shared_ext}$major'
9641   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9642   shlibpath_var=LD_LIBRARY_PATH
9643   shlibpath_overrides_runpath=no
9644   # This implies no fast_install, which is unacceptable.
9645   # Some rework will be needed to allow for fast_install
9646   # before this can be enabled.
9647   hardcode_into_libs=yes
9648
9649   # Append ld.so.conf contents to the search path
9650   if test -f /etc/ld.so.conf; then
9651     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' ' '`
9652     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9653   fi
9654
9655   # We used to test for /lib/ld.so.1 and disable shared libraries on
9656   # powerpc, because MkLinux only supported shared libraries with the
9657   # GNU dynamic linker.  Since this was broken with cross compilers,
9658   # most powerpc-linux boxes support dynamic linking these days and
9659   # people can always --disable-shared, the test was removed, and we
9660   # assume the GNU/Linux dynamic linker is in use.
9661   dynamic_linker='GNU/Linux ld.so'
9662   ;;
9663
9664 knetbsd*-gnu)
9665   version_type=linux
9666   need_lib_prefix=no
9667   need_version=no
9668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9669   soname_spec='${libname}${release}${shared_ext}$major'
9670   shlibpath_var=LD_LIBRARY_PATH
9671   shlibpath_overrides_runpath=no
9672   hardcode_into_libs=yes
9673   dynamic_linker='GNU ld.so'
9674   ;;
9675
9676 netbsd*)
9677   version_type=sunos
9678   need_lib_prefix=no
9679   need_version=no
9680   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9682     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9683     dynamic_linker='NetBSD (a.out) ld.so'
9684   else
9685     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9686     soname_spec='${libname}${release}${shared_ext}$major'
9687     dynamic_linker='NetBSD ld.elf_so'
9688   fi
9689   shlibpath_var=LD_LIBRARY_PATH
9690   shlibpath_overrides_runpath=yes
9691   hardcode_into_libs=yes
9692   ;;
9693
9694 newsos6)
9695   version_type=linux
9696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697   shlibpath_var=LD_LIBRARY_PATH
9698   shlibpath_overrides_runpath=yes
9699   ;;
9700
9701 nto-qnx*)
9702   version_type=linux
9703   need_lib_prefix=no
9704   need_version=no
9705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706   soname_spec='${libname}${release}${shared_ext}$major'
9707   shlibpath_var=LD_LIBRARY_PATH
9708   shlibpath_overrides_runpath=yes
9709   ;;
9710
9711 openbsd*)
9712   version_type=sunos
9713   sys_lib_dlsearch_path_spec="/usr/lib"
9714   need_lib_prefix=no
9715   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9716   case $host_os in
9717     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9718     *)                         need_version=no  ;;
9719   esac
9720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9721   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9722   shlibpath_var=LD_LIBRARY_PATH
9723   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9724     case $host_os in
9725       openbsd2.[89] | openbsd2.[89].*)
9726         shlibpath_overrides_runpath=no
9727         ;;
9728       *)
9729         shlibpath_overrides_runpath=yes
9730         ;;
9731       esac
9732   else
9733     shlibpath_overrides_runpath=yes
9734   fi
9735   ;;
9736
9737 os2*)
9738   libname_spec='$name'
9739   shrext_cmds=".dll"
9740   need_lib_prefix=no
9741   library_names_spec='$libname${shared_ext} $libname.a'
9742   dynamic_linker='OS/2 ld.exe'
9743   shlibpath_var=LIBPATH
9744   ;;
9745
9746 osf3* | osf4* | osf5*)
9747   version_type=osf
9748   need_lib_prefix=no
9749   need_version=no
9750   soname_spec='${libname}${release}${shared_ext}$major'
9751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752   shlibpath_var=LD_LIBRARY_PATH
9753   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9754   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9755   ;;
9756
9757 solaris*)
9758   version_type=linux
9759   need_lib_prefix=no
9760   need_version=no
9761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762   soname_spec='${libname}${release}${shared_ext}$major'
9763   shlibpath_var=LD_LIBRARY_PATH
9764   shlibpath_overrides_runpath=yes
9765   hardcode_into_libs=yes
9766   # ldd complains unless libraries are executable
9767   postinstall_cmds='chmod +x $lib'
9768   ;;
9769
9770 sunos4*)
9771   version_type=sunos
9772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9773   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9774   shlibpath_var=LD_LIBRARY_PATH
9775   shlibpath_overrides_runpath=yes
9776   if test "$with_gnu_ld" = yes; then
9777     need_lib_prefix=no
9778   fi
9779   need_version=yes
9780   ;;
9781
9782 sysv4 | sysv4.3*)
9783   version_type=linux
9784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785   soname_spec='${libname}${release}${shared_ext}$major'
9786   shlibpath_var=LD_LIBRARY_PATH
9787   case $host_vendor in
9788     sni)
9789       shlibpath_overrides_runpath=no
9790       need_lib_prefix=no
9791       export_dynamic_flag_spec='${wl}-Blargedynsym'
9792       runpath_var=LD_RUN_PATH
9793       ;;
9794     siemens)
9795       need_lib_prefix=no
9796       ;;
9797     motorola)
9798       need_lib_prefix=no
9799       need_version=no
9800       shlibpath_overrides_runpath=no
9801       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9802       ;;
9803   esac
9804   ;;
9805
9806 sysv4*MP*)
9807   if test -d /usr/nec ;then
9808     version_type=linux
9809     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9810     soname_spec='$libname${shared_ext}.$major'
9811     shlibpath_var=LD_LIBRARY_PATH
9812   fi
9813   ;;
9814
9815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9816   version_type=freebsd-elf
9817   need_lib_prefix=no
9818   need_version=no
9819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9820   soname_spec='${libname}${release}${shared_ext}$major'
9821   shlibpath_var=LD_LIBRARY_PATH
9822   hardcode_into_libs=yes
9823   if test "$with_gnu_ld" = yes; then
9824     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9825     shlibpath_overrides_runpath=no
9826   else
9827     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9828     shlibpath_overrides_runpath=yes
9829     case $host_os in
9830       sco3.2v5*)
9831         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9832         ;;
9833     esac
9834   fi
9835   sys_lib_dlsearch_path_spec='/usr/lib'
9836   ;;
9837
9838 uts4*)
9839   version_type=linux
9840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841   soname_spec='${libname}${release}${shared_ext}$major'
9842   shlibpath_var=LD_LIBRARY_PATH
9843   ;;
9844
9845 *)
9846   dynamic_linker=no
9847   ;;
9848 esac
9849 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9850 echo "${ECHO_T}$dynamic_linker" >&6; }
9851 test "$dynamic_linker" = no && can_build_shared=no
9852
9853 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9854 if test "$GCC" = yes; then
9855   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9856 fi
9857
9858 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9859 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9860 hardcode_action=
9861 if test -n "$hardcode_libdir_flag_spec" || \
9862    test -n "$runpath_var" || \
9863    test "X$hardcode_automatic" = "Xyes" ; then
9864
9865   # We can hardcode non-existant directories.
9866   if test "$hardcode_direct" != no &&
9867      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9868      # have to relink, otherwise we might link with an installed library
9869      # when we should be linking with a yet-to-be-installed one
9870      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9871      test "$hardcode_minus_L" != no; then
9872     # Linking always hardcodes the temporary library directory.
9873     hardcode_action=relink
9874   else
9875     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9876     hardcode_action=immediate
9877   fi
9878 else
9879   # We cannot hardcode anything, or else we can only hardcode existing
9880   # directories.
9881   hardcode_action=unsupported
9882 fi
9883 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9884 echo "${ECHO_T}$hardcode_action" >&6; }
9885
9886 if test "$hardcode_action" = relink; then
9887   # Fast installation is not supported
9888   enable_fast_install=no
9889 elif test "$shlibpath_overrides_runpath" = yes ||
9890      test "$enable_shared" = no; then
9891   # Fast installation is not necessary
9892   enable_fast_install=needless
9893 fi
9894
9895 striplib=
9896 old_striplib=
9897 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9898 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9899 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9900   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9901   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9902   { echo "$as_me:$LINENO: result: yes" >&5
9903 echo "${ECHO_T}yes" >&6; }
9904 else
9905 # FIXME - insert some real tests, host_os isn't really good enough
9906   case $host_os in
9907    darwin*)
9908        if test -n "$STRIP" ; then
9909          striplib="$STRIP -x"
9910          { echo "$as_me:$LINENO: result: yes" >&5
9911 echo "${ECHO_T}yes" >&6; }
9912        else
9913   { echo "$as_me:$LINENO: result: no" >&5
9914 echo "${ECHO_T}no" >&6; }
9915 fi
9916        ;;
9917    *)
9918   { echo "$as_me:$LINENO: result: no" >&5
9919 echo "${ECHO_T}no" >&6; }
9920     ;;
9921   esac
9922 fi
9923
9924 if test "x$enable_dlopen" != xyes; then
9925   enable_dlopen=unknown
9926   enable_dlopen_self=unknown
9927   enable_dlopen_self_static=unknown
9928 else
9929   lt_cv_dlopen=no
9930   lt_cv_dlopen_libs=
9931
9932   case $host_os in
9933   beos*)
9934     lt_cv_dlopen="load_add_on"
9935     lt_cv_dlopen_libs=
9936     lt_cv_dlopen_self=yes
9937     ;;
9938
9939   mingw* | pw32*)
9940     lt_cv_dlopen="LoadLibrary"
9941     lt_cv_dlopen_libs=
9942    ;;
9943
9944   cygwin*)
9945     lt_cv_dlopen="dlopen"
9946     lt_cv_dlopen_libs=
9947    ;;
9948
9949   darwin*)
9950   # if libdl is installed we need to link against it
9951     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9952 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9954   echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956   ac_check_lib_save_LIBS=$LIBS
9957 LIBS="-ldl  $LIBS"
9958 cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h.  */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h.  */
9964
9965 /* Override any GCC internal prototype to avoid an error.
9966    Use char because int might match the return type of a GCC
9967    builtin and then its argument prototype would still apply.  */
9968 #ifdef __cplusplus
9969 extern "C"
9970 #endif
9971 char dlopen ();
9972 int
9973 main ()
9974 {
9975 return dlopen ();
9976   ;
9977   return 0;
9978 }
9979 _ACEOF
9980 rm -f conftest.$ac_objext conftest$ac_exeext
9981 if { (ac_try="$ac_link"
9982 case "(($ac_try" in
9983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984   *) ac_try_echo=$ac_try;;
9985 esac
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987   (eval "$ac_link") 2>conftest.er1
9988   ac_status=$?
9989   grep -v '^ *+' conftest.er1 >conftest.err
9990   rm -f conftest.er1
9991   cat conftest.err >&5
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); } &&
9994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9995   { (case "(($ac_try" in
9996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997   *) ac_try_echo=$ac_try;;
9998 esac
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000   (eval "$ac_try") 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; } &&
10004          { ac_try='test -s conftest$ac_exeext'
10005   { (case "(($ac_try" in
10006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007   *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010   (eval "$ac_try") 2>&5
10011   ac_status=$?
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); }; }; then
10014   ac_cv_lib_dl_dlopen=yes
10015 else
10016   echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019         ac_cv_lib_dl_dlopen=no
10020 fi
10021
10022 rm -f core conftest.err conftest.$ac_objext \
10023       conftest$ac_exeext conftest.$ac_ext
10024 LIBS=$ac_check_lib_save_LIBS
10025 fi
10026 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10027 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10028 if test $ac_cv_lib_dl_dlopen = yes; then
10029   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10030 else
10031
10032     lt_cv_dlopen="dyld"
10033     lt_cv_dlopen_libs=
10034     lt_cv_dlopen_self=yes
10035
10036 fi
10037
10038    ;;
10039
10040   *)
10041     { echo "$as_me:$LINENO: checking for shl_load" >&5
10042 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10043 if test "${ac_cv_func_shl_load+set}" = set; then
10044   echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046   cat >conftest.$ac_ext <<_ACEOF
10047 /* confdefs.h.  */
10048 _ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h.  */
10052 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10054 #define shl_load innocuous_shl_load
10055
10056 /* System header to define __stub macros and hopefully few prototypes,
10057     which can conflict with char shl_load (); below.
10058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10059     <limits.h> exists even on freestanding compilers.  */
10060
10061 #ifdef __STDC__
10062 # include <limits.h>
10063 #else
10064 # include <assert.h>
10065 #endif
10066
10067 #undef shl_load
10068
10069 /* Override any GCC internal prototype to avoid an error.
10070    Use char because int might match the return type of a GCC
10071    builtin and then its argument prototype would still apply.  */
10072 #ifdef __cplusplus
10073 extern "C"
10074 #endif
10075 char shl_load ();
10076 /* The GNU C library defines this for functions which it implements
10077     to always fail with ENOSYS.  Some functions are actually named
10078     something starting with __ and the normal name is an alias.  */
10079 #if defined __stub_shl_load || defined __stub___shl_load
10080 choke me
10081 #endif
10082
10083 int
10084 main ()
10085 {
10086 return shl_load ();
10087   ;
10088   return 0;
10089 }
10090 _ACEOF
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (ac_try="$ac_link"
10093 case "(($ac_try" in
10094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095   *) ac_try_echo=$ac_try;;
10096 esac
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098   (eval "$ac_link") 2>conftest.er1
10099   ac_status=$?
10100   grep -v '^ *+' conftest.er1 >conftest.err
10101   rm -f conftest.er1
10102   cat conftest.err >&5
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); } &&
10105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10106   { (case "(($ac_try" in
10107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10108   *) ac_try_echo=$ac_try;;
10109 esac
10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111   (eval "$ac_try") 2>&5
10112   ac_status=$?
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); }; } &&
10115          { ac_try='test -s conftest$ac_exeext'
10116   { (case "(($ac_try" in
10117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118   *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121   (eval "$ac_try") 2>&5
10122   ac_status=$?
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); }; }; then
10125   ac_cv_func_shl_load=yes
10126 else
10127   echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10129
10130         ac_cv_func_shl_load=no
10131 fi
10132
10133 rm -f core conftest.err conftest.$ac_objext \
10134       conftest$ac_exeext conftest.$ac_ext
10135 fi
10136 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10137 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10138 if test $ac_cv_func_shl_load = yes; then
10139   lt_cv_dlopen="shl_load"
10140 else
10141   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10142 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10143 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   ac_check_lib_save_LIBS=$LIBS
10147 LIBS="-ldld  $LIBS"
10148 cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h.  */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h.  */
10154
10155 /* Override any GCC internal prototype to avoid an error.
10156    Use char because int might match the return type of a GCC
10157    builtin and then its argument prototype would still apply.  */
10158 #ifdef __cplusplus
10159 extern "C"
10160 #endif
10161 char shl_load ();
10162 int
10163 main ()
10164 {
10165 return shl_load ();
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174   *) ac_try_echo=$ac_try;;
10175 esac
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177   (eval "$ac_link") 2>conftest.er1
10178   ac_status=$?
10179   grep -v '^ *+' conftest.er1 >conftest.err
10180   rm -f conftest.er1
10181   cat conftest.err >&5
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); } &&
10184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10185   { (case "(($ac_try" in
10186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187   *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190   (eval "$ac_try") 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); }; } &&
10194          { ac_try='test -s conftest$ac_exeext'
10195   { (case "(($ac_try" in
10196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197   *) ac_try_echo=$ac_try;;
10198 esac
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200   (eval "$ac_try") 2>&5
10201   ac_status=$?
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); }; }; then
10204   ac_cv_lib_dld_shl_load=yes
10205 else
10206   echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10208
10209         ac_cv_lib_dld_shl_load=no
10210 fi
10211
10212 rm -f core conftest.err conftest.$ac_objext \
10213       conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10215 fi
10216 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10217 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10218 if test $ac_cv_lib_dld_shl_load = yes; then
10219   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10220 else
10221   { echo "$as_me:$LINENO: checking for dlopen" >&5
10222 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10223 if test "${ac_cv_func_dlopen+set}" = set; then
10224   echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226   cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10232 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10234 #define dlopen innocuous_dlopen
10235
10236 /* System header to define __stub macros and hopefully few prototypes,
10237     which can conflict with char dlopen (); below.
10238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10239     <limits.h> exists even on freestanding compilers.  */
10240
10241 #ifdef __STDC__
10242 # include <limits.h>
10243 #else
10244 # include <assert.h>
10245 #endif
10246
10247 #undef dlopen
10248
10249 /* Override any GCC internal prototype to avoid an error.
10250    Use char because int might match the return type of a GCC
10251    builtin and then its argument prototype would still apply.  */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 char dlopen ();
10256 /* The GNU C library defines this for functions which it implements
10257     to always fail with ENOSYS.  Some functions are actually named
10258     something starting with __ and the normal name is an alias.  */
10259 #if defined __stub_dlopen || defined __stub___dlopen
10260 choke me
10261 #endif
10262
10263 int
10264 main ()
10265 {
10266 return dlopen ();
10267   ;
10268   return 0;
10269 }
10270 _ACEOF
10271 rm -f conftest.$ac_objext conftest$ac_exeext
10272 if { (ac_try="$ac_link"
10273 case "(($ac_try" in
10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275   *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278   (eval "$ac_link") 2>conftest.er1
10279   ac_status=$?
10280   grep -v '^ *+' conftest.er1 >conftest.err
10281   rm -f conftest.er1
10282   cat conftest.err >&5
10283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284   (exit $ac_status); } &&
10285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10286   { (case "(($ac_try" in
10287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288   *) ac_try_echo=$ac_try;;
10289 esac
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291   (eval "$ac_try") 2>&5
10292   ac_status=$?
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); }; } &&
10295          { ac_try='test -s conftest$ac_exeext'
10296   { (case "(($ac_try" in
10297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298   *) ac_try_echo=$ac_try;;
10299 esac
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301   (eval "$ac_try") 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); }; }; then
10305   ac_cv_func_dlopen=yes
10306 else
10307   echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10309
10310         ac_cv_func_dlopen=no
10311 fi
10312
10313 rm -f core conftest.err conftest.$ac_objext \
10314       conftest$ac_exeext conftest.$ac_ext
10315 fi
10316 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10317 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10318 if test $ac_cv_func_dlopen = yes; then
10319   lt_cv_dlopen="dlopen"
10320 else
10321   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10322 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10323 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326   ac_check_lib_save_LIBS=$LIBS
10327 LIBS="-ldl  $LIBS"
10328 cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h.  */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h.  */
10334
10335 /* Override any GCC internal prototype to avoid an error.
10336    Use char because int might match the return type of a GCC
10337    builtin and then its argument prototype would still apply.  */
10338 #ifdef __cplusplus
10339 extern "C"
10340 #endif
10341 char dlopen ();
10342 int
10343 main ()
10344 {
10345 return dlopen ();
10346   ;
10347   return 0;
10348 }
10349 _ACEOF
10350 rm -f conftest.$ac_objext conftest$ac_exeext
10351 if { (ac_try="$ac_link"
10352 case "(($ac_try" in
10353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354   *) ac_try_echo=$ac_try;;
10355 esac
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357   (eval "$ac_link") 2>conftest.er1
10358   ac_status=$?
10359   grep -v '^ *+' conftest.er1 >conftest.err
10360   rm -f conftest.er1
10361   cat conftest.err >&5
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); } &&
10364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10365   { (case "(($ac_try" in
10366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367   *) ac_try_echo=$ac_try;;
10368 esac
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370   (eval "$ac_try") 2>&5
10371   ac_status=$?
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); }; } &&
10374          { ac_try='test -s conftest$ac_exeext'
10375   { (case "(($ac_try" in
10376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377   *) ac_try_echo=$ac_try;;
10378 esac
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380   (eval "$ac_try") 2>&5
10381   ac_status=$?
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); }; }; then
10384   ac_cv_lib_dl_dlopen=yes
10385 else
10386   echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10388
10389         ac_cv_lib_dl_dlopen=no
10390 fi
10391
10392 rm -f core conftest.err conftest.$ac_objext \
10393       conftest$ac_exeext conftest.$ac_ext
10394 LIBS=$ac_check_lib_save_LIBS
10395 fi
10396 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10397 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10398 if test $ac_cv_lib_dl_dlopen = yes; then
10399   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10400 else
10401   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10402 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10403 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10404   echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406   ac_check_lib_save_LIBS=$LIBS
10407 LIBS="-lsvld  $LIBS"
10408 cat >conftest.$ac_ext <<_ACEOF
10409 /* confdefs.h.  */
10410 _ACEOF
10411 cat confdefs.h >>conftest.$ac_ext
10412 cat >>conftest.$ac_ext <<_ACEOF
10413 /* end confdefs.h.  */
10414
10415 /* Override any GCC internal prototype to avoid an error.
10416    Use char because int might match the return type of a GCC
10417    builtin and then its argument prototype would still apply.  */
10418 #ifdef __cplusplus
10419 extern "C"
10420 #endif
10421 char dlopen ();
10422 int
10423 main ()
10424 {
10425 return dlopen ();
10426   ;
10427   return 0;
10428 }
10429 _ACEOF
10430 rm -f conftest.$ac_objext conftest$ac_exeext
10431 if { (ac_try="$ac_link"
10432 case "(($ac_try" in
10433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434   *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437   (eval "$ac_link") 2>conftest.er1
10438   ac_status=$?
10439   grep -v '^ *+' conftest.er1 >conftest.err
10440   rm -f conftest.er1
10441   cat conftest.err >&5
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); } &&
10444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10445   { (case "(($ac_try" in
10446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447   *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450   (eval "$ac_try") 2>&5
10451   ac_status=$?
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); }; } &&
10454          { ac_try='test -s conftest$ac_exeext'
10455   { (case "(($ac_try" in
10456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457   *) ac_try_echo=$ac_try;;
10458 esac
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460   (eval "$ac_try") 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; }; then
10464   ac_cv_lib_svld_dlopen=yes
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469         ac_cv_lib_svld_dlopen=no
10470 fi
10471
10472 rm -f core conftest.err conftest.$ac_objext \
10473       conftest$ac_exeext conftest.$ac_ext
10474 LIBS=$ac_check_lib_save_LIBS
10475 fi
10476 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10477 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10478 if test $ac_cv_lib_svld_dlopen = yes; then
10479   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10480 else
10481   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10482 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10483 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10484   echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486   ac_check_lib_save_LIBS=$LIBS
10487 LIBS="-ldld  $LIBS"
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h.  */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h.  */
10494
10495 /* Override any GCC internal prototype to avoid an error.
10496    Use char because int might match the return type of a GCC
10497    builtin and then its argument prototype would still apply.  */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 char dld_link ();
10502 int
10503 main ()
10504 {
10505 return dld_link ();
10506   ;
10507   return 0;
10508 }
10509 _ACEOF
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514   *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517   (eval "$ac_link") 2>conftest.er1
10518   ac_status=$?
10519   grep -v '^ *+' conftest.er1 >conftest.err
10520   rm -f conftest.er1
10521   cat conftest.err >&5
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } &&
10524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10525   { (case "(($ac_try" in
10526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527   *) ac_try_echo=$ac_try;;
10528 esac
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530   (eval "$ac_try") 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); }; } &&
10534          { ac_try='test -s conftest$ac_exeext'
10535   { (case "(($ac_try" in
10536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537   *) ac_try_echo=$ac_try;;
10538 esac
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540   (eval "$ac_try") 2>&5
10541   ac_status=$?
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); }; }; then
10544   ac_cv_lib_dld_dld_link=yes
10545 else
10546   echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10548
10549         ac_cv_lib_dld_dld_link=no
10550 fi
10551
10552 rm -f core conftest.err conftest.$ac_objext \
10553       conftest$ac_exeext conftest.$ac_ext
10554 LIBS=$ac_check_lib_save_LIBS
10555 fi
10556 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10557 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10558 if test $ac_cv_lib_dld_dld_link = yes; then
10559   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10560 fi
10561
10562
10563 fi
10564
10565
10566 fi
10567
10568
10569 fi
10570
10571
10572 fi
10573
10574
10575 fi
10576
10577     ;;
10578   esac
10579
10580   if test "x$lt_cv_dlopen" != xno; then
10581     enable_dlopen=yes
10582   else
10583     enable_dlopen=no
10584   fi
10585
10586   case $lt_cv_dlopen in
10587   dlopen)
10588     save_CPPFLAGS="$CPPFLAGS"
10589     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10590
10591     save_LDFLAGS="$LDFLAGS"
10592     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10593
10594     save_LIBS="$LIBS"
10595     LIBS="$lt_cv_dlopen_libs $LIBS"
10596
10597     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10598 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10599 if test "${lt_cv_dlopen_self+set}" = set; then
10600   echo $ECHO_N "(cached) $ECHO_C" >&6
10601 else
10602           if test "$cross_compiling" = yes; then :
10603   lt_cv_dlopen_self=cross
10604 else
10605   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10606   lt_status=$lt_dlunknown
10607   cat > conftest.$ac_ext <<EOF
10608 #line 10608 "configure"
10609 #include "confdefs.h"
10610
10611 #if HAVE_DLFCN_H
10612 #include <dlfcn.h>
10613 #endif
10614
10615 #include <stdio.h>
10616
10617 #ifdef RTLD_GLOBAL
10618 #  define LT_DLGLOBAL           RTLD_GLOBAL
10619 #else
10620 #  ifdef DL_GLOBAL
10621 #    define LT_DLGLOBAL         DL_GLOBAL
10622 #  else
10623 #    define LT_DLGLOBAL         0
10624 #  endif
10625 #endif
10626
10627 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10628    find out it does not work in some platform. */
10629 #ifndef LT_DLLAZY_OR_NOW
10630 #  ifdef RTLD_LAZY
10631 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10632 #  else
10633 #    ifdef DL_LAZY
10634 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10635 #    else
10636 #      ifdef RTLD_NOW
10637 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10638 #      else
10639 #        ifdef DL_NOW
10640 #          define LT_DLLAZY_OR_NOW      DL_NOW
10641 #        else
10642 #          define LT_DLLAZY_OR_NOW      0
10643 #        endif
10644 #      endif
10645 #    endif
10646 #  endif
10647 #endif
10648
10649 #ifdef __cplusplus
10650 extern "C" void exit (int);
10651 #endif
10652
10653 void fnord() { int i=42;}
10654 int main ()
10655 {
10656   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10657   int status = $lt_dlunknown;
10658
10659   if (self)
10660     {
10661       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10662       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10663       /* dlclose (self); */
10664     }
10665   else
10666     puts (dlerror ());
10667
10668     exit (status);
10669 }
10670 EOF
10671   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672   (eval $ac_link) 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10676     (./conftest; exit; ) >&5 2>/dev/null
10677     lt_status=$?
10678     case x$lt_status in
10679       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10680       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10681       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10682     esac
10683   else :
10684     # compilation failed
10685     lt_cv_dlopen_self=no
10686   fi
10687 fi
10688 rm -fr conftest*
10689
10690
10691 fi
10692 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10693 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10694
10695     if test "x$lt_cv_dlopen_self" = xyes; then
10696       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10697       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10698 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10699 if test "${lt_cv_dlopen_self_static+set}" = set; then
10700   echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702           if test "$cross_compiling" = yes; then :
10703   lt_cv_dlopen_self_static=cross
10704 else
10705   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10706   lt_status=$lt_dlunknown
10707   cat > conftest.$ac_ext <<EOF
10708 #line 10708 "configure"
10709 #include "confdefs.h"
10710
10711 #if HAVE_DLFCN_H
10712 #include <dlfcn.h>
10713 #endif
10714
10715 #include <stdio.h>
10716
10717 #ifdef RTLD_GLOBAL
10718 #  define LT_DLGLOBAL           RTLD_GLOBAL
10719 #else
10720 #  ifdef DL_GLOBAL
10721 #    define LT_DLGLOBAL         DL_GLOBAL
10722 #  else
10723 #    define LT_DLGLOBAL         0
10724 #  endif
10725 #endif
10726
10727 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10728    find out it does not work in some platform. */
10729 #ifndef LT_DLLAZY_OR_NOW
10730 #  ifdef RTLD_LAZY
10731 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10732 #  else
10733 #    ifdef DL_LAZY
10734 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10735 #    else
10736 #      ifdef RTLD_NOW
10737 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10738 #      else
10739 #        ifdef DL_NOW
10740 #          define LT_DLLAZY_OR_NOW      DL_NOW
10741 #        else
10742 #          define LT_DLLAZY_OR_NOW      0
10743 #        endif
10744 #      endif
10745 #    endif
10746 #  endif
10747 #endif
10748
10749 #ifdef __cplusplus
10750 extern "C" void exit (int);
10751 #endif
10752
10753 void fnord() { int i=42;}
10754 int main ()
10755 {
10756   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10757   int status = $lt_dlunknown;
10758
10759   if (self)
10760     {
10761       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10762       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10763       /* dlclose (self); */
10764     }
10765   else
10766     puts (dlerror ());
10767
10768     exit (status);
10769 }
10770 EOF
10771   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10772   (eval $ac_link) 2>&5
10773   ac_status=$?
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10776     (./conftest; exit; ) >&5 2>/dev/null
10777     lt_status=$?
10778     case x$lt_status in
10779       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10780       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10781       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10782     esac
10783   else :
10784     # compilation failed
10785     lt_cv_dlopen_self_static=no
10786   fi
10787 fi
10788 rm -fr conftest*
10789
10790
10791 fi
10792 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10793 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10794     fi
10795
10796     CPPFLAGS="$save_CPPFLAGS"
10797     LDFLAGS="$save_LDFLAGS"
10798     LIBS="$save_LIBS"
10799     ;;
10800   esac
10801
10802   case $lt_cv_dlopen_self in
10803   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10804   *) enable_dlopen_self=unknown ;;
10805   esac
10806
10807   case $lt_cv_dlopen_self_static in
10808   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10809   *) enable_dlopen_self_static=unknown ;;
10810   esac
10811 fi
10812
10813
10814 # Report which library types will actually be built
10815 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10816 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10817 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10818 echo "${ECHO_T}$can_build_shared" >&6; }
10819
10820 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10821 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10822 test "$can_build_shared" = "no" && enable_shared=no
10823
10824 # On AIX, shared libraries and static libraries use the same namespace, and
10825 # are all built from PIC.
10826 case $host_os in
10827 aix3*)
10828   test "$enable_shared" = yes && enable_static=no
10829   if test -n "$RANLIB"; then
10830     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10831     postinstall_cmds='$RANLIB $lib'
10832   fi
10833   ;;
10834
10835 aix4* | aix5*)
10836   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10837     test "$enable_shared" = yes && enable_static=no
10838   fi
10839     ;;
10840 esac
10841 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10842 echo "${ECHO_T}$enable_shared" >&6; }
10843
10844 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10845 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10846 # Make sure either enable_shared or enable_static is yes.
10847 test "$enable_shared" = yes || enable_static=yes
10848 { echo "$as_me:$LINENO: result: $enable_static" >&5
10849 echo "${ECHO_T}$enable_static" >&6; }
10850
10851 # The else clause should only fire when bootstrapping the
10852 # libtool distribution, otherwise you forgot to ship ltmain.sh
10853 # with your package, and you will get complaints that there are
10854 # no rules to generate ltmain.sh.
10855 if test -f "$ltmain"; then
10856   # See if we are running on zsh, and set the options which allow our commands through
10857   # without removal of \ escapes.
10858   if test -n "${ZSH_VERSION+set}" ; then
10859     setopt NO_GLOB_SUBST
10860   fi
10861   # Now quote all the things that may contain metacharacters while being
10862   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10863   # variables and quote the copies for generation of the libtool script.
10864   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10865     SED SHELL STRIP \
10866     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10867     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10868     deplibs_check_method reload_flag reload_cmds need_locks \
10869     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10870     lt_cv_sys_global_symbol_to_c_name_address \
10871     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10872     old_postinstall_cmds old_postuninstall_cmds \
10873     compiler \
10874     CC \
10875     LD \
10876     lt_prog_compiler_wl \
10877     lt_prog_compiler_pic \
10878     lt_prog_compiler_static \
10879     lt_prog_compiler_no_builtin_flag \
10880     export_dynamic_flag_spec \
10881     thread_safe_flag_spec \
10882     whole_archive_flag_spec \
10883     enable_shared_with_static_runtimes \
10884     old_archive_cmds \
10885     old_archive_from_new_cmds \
10886     predep_objects \
10887     postdep_objects \
10888     predeps \
10889     postdeps \
10890     compiler_lib_search_path \
10891     archive_cmds \
10892     archive_expsym_cmds \
10893     postinstall_cmds \
10894     postuninstall_cmds \
10895     old_archive_from_expsyms_cmds \
10896     allow_undefined_flag \
10897     no_undefined_flag \
10898     export_symbols_cmds \
10899     hardcode_libdir_flag_spec \
10900     hardcode_libdir_flag_spec_ld \
10901     hardcode_libdir_separator \
10902     hardcode_automatic \
10903     module_cmds \
10904     module_expsym_cmds \
10905     lt_cv_prog_compiler_c_o \
10906     exclude_expsyms \
10907     include_expsyms; do
10908
10909     case $var in
10910     old_archive_cmds | \
10911     old_archive_from_new_cmds | \
10912     archive_cmds | \
10913     archive_expsym_cmds | \
10914     module_cmds | \
10915     module_expsym_cmds | \
10916     old_archive_from_expsyms_cmds | \
10917     export_symbols_cmds | \
10918     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10919     postinstall_cmds | postuninstall_cmds | \
10920     old_postinstall_cmds | old_postuninstall_cmds | \
10921     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10922       # Double-quote double-evaled strings.
10923       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10924       ;;
10925     *)
10926       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10927       ;;
10928     esac
10929   done
10930
10931   case $lt_echo in
10932   *'\$0 --fallback-echo"')
10933     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10934     ;;
10935   esac
10936
10937 cfgfile="${ofile}T"
10938   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10939   $rm -f "$cfgfile"
10940   { echo "$as_me:$LINENO: creating $ofile" >&5
10941 echo "$as_me: creating $ofile" >&6;}
10942
10943   cat <<__EOF__ >> "$cfgfile"
10944 #! $SHELL
10945
10946 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10947 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10948 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10949 #
10950 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10951 # Free Software Foundation, Inc.
10952 #
10953 # This file is part of GNU Libtool:
10954 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10955 #
10956 # This program is free software; you can redistribute it and/or modify
10957 # it under the terms of the GNU General Public License as published by
10958 # the Free Software Foundation; either version 2 of the License, or
10959 # (at your option) any later version.
10960 #
10961 # This program is distributed in the hope that it will be useful, but
10962 # WITHOUT ANY WARRANTY; without even the implied warranty of
10963 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10964 # General Public License for more details.
10965 #
10966 # You should have received a copy of the GNU General Public License
10967 # along with this program; if not, write to the Free Software
10968 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10969 #
10970 # As a special exception to the GNU General Public License, if you
10971 # distribute this file as part of a program that contains a
10972 # configuration script generated by Autoconf, you may include it under
10973 # the same distribution terms that you use for the rest of that program.
10974
10975 # A sed program that does not truncate output.
10976 SED=$lt_SED
10977
10978 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10979 Xsed="$SED -e 1s/^X//"
10980
10981 # The HP-UX ksh and POSIX shell print the target directory to stdout
10982 # if CDPATH is set.
10983 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10984
10985 # The names of the tagged configurations supported by this script.
10986 available_tags=
10987
10988 # ### BEGIN LIBTOOL CONFIG
10989
10990 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10991
10992 # Shell to use when invoking shell scripts.
10993 SHELL=$lt_SHELL
10994
10995 # Whether or not to build shared libraries.
10996 build_libtool_libs=$enable_shared
10997
10998 # Whether or not to build static libraries.
10999 build_old_libs=$enable_static
11000
11001 # Whether or not to add -lc for building shared libraries.
11002 build_libtool_need_lc=$archive_cmds_need_lc
11003
11004 # Whether or not to disallow shared libs when runtime libs are static
11005 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11006
11007 # Whether or not to optimize for fast installation.
11008 fast_install=$enable_fast_install
11009
11010 # The host system.
11011 host_alias=$host_alias
11012 host=$host
11013 host_os=$host_os
11014
11015 # The build system.
11016 build_alias=$build_alias
11017 build=$build
11018 build_os=$build_os
11019
11020 # An echo program that does not interpret backslashes.
11021 echo=$lt_echo
11022
11023 # The archiver.
11024 AR=$lt_AR
11025 AR_FLAGS=$lt_AR_FLAGS
11026
11027 # A C compiler.
11028 LTCC=$lt_LTCC
11029
11030 # LTCC compiler flags.
11031 LTCFLAGS=$lt_LTCFLAGS
11032
11033 # A language-specific compiler.
11034 CC=$lt_compiler
11035
11036 # Is the compiler the GNU C compiler?
11037 with_gcc=$GCC
11038
11039 # An ERE matcher.
11040 EGREP=$lt_EGREP
11041
11042 # The linker used to build libraries.
11043 LD=$lt_LD
11044
11045 # Whether we need hard or soft links.
11046 LN_S=$lt_LN_S
11047
11048 # A BSD-compatible nm program.
11049 NM=$lt_NM
11050
11051 # A symbol stripping program
11052 STRIP=$lt_STRIP
11053
11054 # Used to examine libraries when file_magic_cmd begins "file"
11055 MAGIC_CMD=$MAGIC_CMD
11056
11057 # Used on cygwin: DLL creation program.
11058 DLLTOOL="$DLLTOOL"
11059
11060 # Used on cygwin: object dumper.
11061 OBJDUMP="$OBJDUMP"
11062
11063 # Used on cygwin: assembler.
11064 AS="$AS"
11065
11066 # The name of the directory that contains temporary libtool files.
11067 objdir=$objdir
11068
11069 # How to create reloadable object files.
11070 reload_flag=$lt_reload_flag
11071 reload_cmds=$lt_reload_cmds
11072
11073 # How to pass a linker flag through the compiler.
11074 wl=$lt_lt_prog_compiler_wl
11075
11076 # Object file suffix (normally "o").
11077 objext="$ac_objext"
11078
11079 # Old archive suffix (normally "a").
11080 libext="$libext"
11081
11082 # Shared library suffix (normally ".so").
11083 shrext_cmds='$shrext_cmds'
11084
11085 # Executable file suffix (normally "").
11086 exeext="$exeext"
11087
11088 # Additional compiler flags for building library objects.
11089 pic_flag=$lt_lt_prog_compiler_pic
11090 pic_mode=$pic_mode
11091
11092 # What is the maximum length of a command?
11093 max_cmd_len=$lt_cv_sys_max_cmd_len
11094
11095 # Does compiler simultaneously support -c and -o options?
11096 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11097
11098 # Must we lock files when doing compilation?
11099 need_locks=$lt_need_locks
11100
11101 # Do we need the lib prefix for modules?
11102 need_lib_prefix=$need_lib_prefix
11103
11104 # Do we need a version for libraries?
11105 need_version=$need_version
11106
11107 # Whether dlopen is supported.
11108 dlopen_support=$enable_dlopen
11109
11110 # Whether dlopen of programs is supported.
11111 dlopen_self=$enable_dlopen_self
11112
11113 # Whether dlopen of statically linked programs is supported.
11114 dlopen_self_static=$enable_dlopen_self_static
11115
11116 # Compiler flag to prevent dynamic linking.
11117 link_static_flag=$lt_lt_prog_compiler_static
11118
11119 # Compiler flag to turn off builtin functions.
11120 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11121
11122 # Compiler flag to allow reflexive dlopens.
11123 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11124
11125 # Compiler flag to generate shared objects directly from archives.
11126 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11127
11128 # Compiler flag to generate thread-safe objects.
11129 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11130
11131 # Library versioning type.
11132 version_type=$version_type
11133
11134 # Format of library name prefix.
11135 libname_spec=$lt_libname_spec
11136
11137 # List of archive names.  First name is the real one, the rest are links.
11138 # The last name is the one that the linker finds with -lNAME.
11139 library_names_spec=$lt_library_names_spec
11140
11141 # The coded name of the library, if different from the real name.
11142 soname_spec=$lt_soname_spec
11143
11144 # Commands used to build and install an old-style archive.
11145 RANLIB=$lt_RANLIB
11146 old_archive_cmds=$lt_old_archive_cmds
11147 old_postinstall_cmds=$lt_old_postinstall_cmds
11148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11149
11150 # Create an old-style archive from a shared archive.
11151 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11152
11153 # Create a temporary old-style archive to link instead of a shared archive.
11154 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11155
11156 # Commands used to build and install a shared archive.
11157 archive_cmds=$lt_archive_cmds
11158 archive_expsym_cmds=$lt_archive_expsym_cmds
11159 postinstall_cmds=$lt_postinstall_cmds
11160 postuninstall_cmds=$lt_postuninstall_cmds
11161
11162 # Commands used to build a loadable module (assumed same as above if empty)
11163 module_cmds=$lt_module_cmds
11164 module_expsym_cmds=$lt_module_expsym_cmds
11165
11166 # Commands to strip libraries.
11167 old_striplib=$lt_old_striplib
11168 striplib=$lt_striplib
11169
11170 # Dependencies to place before the objects being linked to create a
11171 # shared library.
11172 predep_objects=$lt_predep_objects
11173
11174 # Dependencies to place after the objects being linked to create a
11175 # shared library.
11176 postdep_objects=$lt_postdep_objects
11177
11178 # Dependencies to place before the objects being linked to create a
11179 # shared library.
11180 predeps=$lt_predeps
11181
11182 # Dependencies to place after the objects being linked to create a
11183 # shared library.
11184 postdeps=$lt_postdeps
11185
11186 # The library search path used internally by the compiler when linking
11187 # a shared library.
11188 compiler_lib_search_path=$lt_compiler_lib_search_path
11189
11190 # Method to check whether dependent libraries are shared objects.
11191 deplibs_check_method=$lt_deplibs_check_method
11192
11193 # Command to use when deplibs_check_method == file_magic.
11194 file_magic_cmd=$lt_file_magic_cmd
11195
11196 # Flag that allows shared libraries with undefined symbols to be built.
11197 allow_undefined_flag=$lt_allow_undefined_flag
11198
11199 # Flag that forces no undefined symbols.
11200 no_undefined_flag=$lt_no_undefined_flag
11201
11202 # Commands used to finish a libtool library installation in a directory.
11203 finish_cmds=$lt_finish_cmds
11204
11205 # Same as above, but a single script fragment to be evaled but not shown.
11206 finish_eval=$lt_finish_eval
11207
11208 # Take the output of nm and produce a listing of raw symbols and C names.
11209 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11210
11211 # Transform the output of nm in a proper C declaration
11212 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11213
11214 # Transform the output of nm in a C name address pair
11215 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11216
11217 # This is the shared library runtime path variable.
11218 runpath_var=$runpath_var
11219
11220 # This is the shared library path variable.
11221 shlibpath_var=$shlibpath_var
11222
11223 # Is shlibpath searched before the hard-coded library search path?
11224 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11225
11226 # How to hardcode a shared library path into an executable.
11227 hardcode_action=$hardcode_action
11228
11229 # Whether we should hardcode library paths into libraries.
11230 hardcode_into_libs=$hardcode_into_libs
11231
11232 # Flag to hardcode \$libdir into a binary during linking.
11233 # This must work even if \$libdir does not exist.
11234 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11235
11236 # If ld is used when linking, flag to hardcode \$libdir into
11237 # a binary during linking. This must work even if \$libdir does
11238 # not exist.
11239 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11240
11241 # Whether we need a single -rpath flag with a separated argument.
11242 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11243
11244 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11245 # resulting binary.
11246 hardcode_direct=$hardcode_direct
11247
11248 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11249 # resulting binary.
11250 hardcode_minus_L=$hardcode_minus_L
11251
11252 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11253 # the resulting binary.
11254 hardcode_shlibpath_var=$hardcode_shlibpath_var
11255
11256 # Set to yes if building a shared library automatically hardcodes DIR into the library
11257 # and all subsequent libraries and executables linked against it.
11258 hardcode_automatic=$hardcode_automatic
11259
11260 # Variables whose values should be saved in libtool wrapper scripts and
11261 # restored at relink time.
11262 variables_saved_for_relink="$variables_saved_for_relink"
11263
11264 # Whether libtool must link a program against all its dependency libraries.
11265 link_all_deplibs=$link_all_deplibs
11266
11267 # Compile-time system search path for libraries
11268 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11269
11270 # Run-time system search path for libraries
11271 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11272
11273 # Fix the shell variable \$srcfile for the compiler.
11274 fix_srcfile_path="$fix_srcfile_path"
11275
11276 # Set to yes if exported symbols are required.
11277 always_export_symbols=$always_export_symbols
11278
11279 # The commands to list exported symbols.
11280 export_symbols_cmds=$lt_export_symbols_cmds
11281
11282 # The commands to extract the exported symbol list from a shared archive.
11283 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11284
11285 # Symbols that should not be listed in the preloaded symbols.
11286 exclude_expsyms=$lt_exclude_expsyms
11287
11288 # Symbols that must always be exported.
11289 include_expsyms=$lt_include_expsyms
11290
11291 # ### END LIBTOOL CONFIG
11292
11293 __EOF__
11294
11295
11296   case $host_os in
11297   aix3*)
11298     cat <<\EOF >> "$cfgfile"
11299
11300 # AIX sometimes has problems with the GCC collect2 program.  For some
11301 # reason, if we set the COLLECT_NAMES environment variable, the problems
11302 # vanish in a puff of smoke.
11303 if test "X${COLLECT_NAMES+set}" != Xset; then
11304   COLLECT_NAMES=
11305   export COLLECT_NAMES
11306 fi
11307 EOF
11308     ;;
11309   esac
11310
11311   # We use sed instead of cat because bash on DJGPP gets confused if
11312   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11313   # text mode, it properly converts lines to CR/LF.  This bash problem
11314   # is reportedly fixed, but why not run on old versions too?
11315   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11316
11317   mv -f "$cfgfile" "$ofile" || \
11318     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11319   chmod +x "$ofile"
11320
11321 else
11322   # If there is no Makefile yet, we rely on a make rule to execute
11323   # `config.status --recheck' to rerun these tests and create the
11324   # libtool script then.
11325   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11326   if test -f "$ltmain_in"; then
11327     test -f Makefile && make "$ltmain"
11328   fi
11329 fi
11330
11331
11332 ac_ext=c
11333 ac_cpp='$CPP $CPPFLAGS'
11334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11337
11338 CC="$lt_save_CC"
11339
11340
11341 # Check whether --with-tags was given.
11342 if test "${with_tags+set}" = set; then
11343   withval=$with_tags; tagnames="$withval"
11344 fi
11345
11346
11347 if test -f "$ltmain" && test -n "$tagnames"; then
11348   if test ! -f "${ofile}"; then
11349     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11350 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11351   fi
11352
11353   if test -z "$LTCC"; then
11354     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11355     if test -z "$LTCC"; then
11356       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11357 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11358     else
11359       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11360 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11361     fi
11362   fi
11363   if test -z "$LTCFLAGS"; then
11364     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11365   fi
11366
11367   # Extract list of available tagged configurations in $ofile.
11368   # Note that this assumes the entire list is on one line.
11369   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11370
11371   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11372   for tagname in $tagnames; do
11373     IFS="$lt_save_ifs"
11374     # Check whether tagname contains only valid characters
11375     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11376     "") ;;
11377     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11378 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11379    { (exit 1); exit 1; }; }
11380         ;;
11381     esac
11382
11383     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11384     then
11385       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11386 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11387    { (exit 1); exit 1; }; }
11388     fi
11389
11390     # Update the list of available tags.
11391     if test -n "$tagname"; then
11392       echo appending configuration tag \"$tagname\" to $ofile
11393
11394       case $tagname in
11395       CXX)
11396         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11397             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11398             (test "X$CXX" != "Xg++"))) ; then
11399           ac_ext=cpp
11400 ac_cpp='$CXXCPP $CPPFLAGS'
11401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11404
11405
11406
11407
11408 archive_cmds_need_lc_CXX=no
11409 allow_undefined_flag_CXX=
11410 always_export_symbols_CXX=no
11411 archive_expsym_cmds_CXX=
11412 export_dynamic_flag_spec_CXX=
11413 hardcode_direct_CXX=no
11414 hardcode_libdir_flag_spec_CXX=
11415 hardcode_libdir_flag_spec_ld_CXX=
11416 hardcode_libdir_separator_CXX=
11417 hardcode_minus_L_CXX=no
11418 hardcode_shlibpath_var_CXX=unsupported
11419 hardcode_automatic_CXX=no
11420 module_cmds_CXX=
11421 module_expsym_cmds_CXX=
11422 link_all_deplibs_CXX=unknown
11423 old_archive_cmds_CXX=$old_archive_cmds
11424 no_undefined_flag_CXX=
11425 whole_archive_flag_spec_CXX=
11426 enable_shared_with_static_runtimes_CXX=no
11427
11428 # Dependencies to place before and after the object being linked:
11429 predep_objects_CXX=
11430 postdep_objects_CXX=
11431 predeps_CXX=
11432 postdeps_CXX=
11433 compiler_lib_search_path_CXX=
11434
11435 # Source file extension for C++ test sources.
11436 ac_ext=cpp
11437
11438 # Object file extension for compiled C++ test sources.
11439 objext=o
11440 objext_CXX=$objext
11441
11442 # Code to be used in simple compile tests
11443 lt_simple_compile_test_code="int some_variable = 0;\n"
11444
11445 # Code to be used in simple link tests
11446 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11447
11448 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11449
11450 # If no C compiler was specified, use CC.
11451 LTCC=${LTCC-"$CC"}
11452
11453 # If no C compiler flags were specified, use CFLAGS.
11454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11455
11456 # Allow CC to be a program name with arguments.
11457 compiler=$CC
11458
11459
11460 # save warnings/boilerplate of simple test code
11461 ac_outfile=conftest.$ac_objext
11462 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11463 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11464 _lt_compiler_boilerplate=`cat conftest.err`
11465 $rm conftest*
11466
11467 ac_outfile=conftest.$ac_objext
11468 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11469 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11470 _lt_linker_boilerplate=`cat conftest.err`
11471 $rm conftest*
11472
11473
11474 # Allow CC to be a program name with arguments.
11475 lt_save_CC=$CC
11476 lt_save_LD=$LD
11477 lt_save_GCC=$GCC
11478 GCC=$GXX
11479 lt_save_with_gnu_ld=$with_gnu_ld
11480 lt_save_path_LD=$lt_cv_path_LD
11481 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11482   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11483 else
11484   $as_unset lt_cv_prog_gnu_ld
11485 fi
11486 if test -n "${lt_cv_path_LDCXX+set}"; then
11487   lt_cv_path_LD=$lt_cv_path_LDCXX
11488 else
11489   $as_unset lt_cv_path_LD
11490 fi
11491 test -z "${LDCXX+set}" || LD=$LDCXX
11492 CC=${CXX-"c++"}
11493 compiler=$CC
11494 compiler_CXX=$CC
11495 for cc_temp in $compiler""; do
11496   case $cc_temp in
11497     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11498     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11499     \-*) ;;
11500     *) break;;
11501   esac
11502 done
11503 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11504
11505
11506 # We don't want -fno-exception wen compiling C++ code, so set the
11507 # no_builtin_flag separately
11508 if test "$GXX" = yes; then
11509   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11510 else
11511   lt_prog_compiler_no_builtin_flag_CXX=
11512 fi
11513
11514 if test "$GXX" = yes; then
11515   # Set up default GNU C++ configuration
11516
11517
11518 # Check whether --with-gnu-ld was given.
11519 if test "${with_gnu_ld+set}" = set; then
11520   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11521 else
11522   with_gnu_ld=no
11523 fi
11524
11525 ac_prog=ld
11526 if test "$GCC" = yes; then
11527   # Check if gcc -print-prog-name=ld gives a path.
11528   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11529 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11530   case $host in
11531   *-*-mingw*)
11532     # gcc leaves a trailing carriage return which upsets mingw
11533     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11534   *)
11535     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11536   esac
11537   case $ac_prog in
11538     # Accept absolute paths.
11539     [\\/]* | ?:[\\/]*)
11540       re_direlt='/[^/][^/]*/\.\./'
11541       # Canonicalize the pathname of ld
11542       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11543       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11544         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11545       done
11546       test -z "$LD" && LD="$ac_prog"
11547       ;;
11548   "")
11549     # If it fails, then pretend we aren't using GCC.
11550     ac_prog=ld
11551     ;;
11552   *)
11553     # If it is relative, then search for the first ld in PATH.
11554     with_gnu_ld=unknown
11555     ;;
11556   esac
11557 elif test "$with_gnu_ld" = yes; then
11558   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11559 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11560 else
11561   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11562 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11563 fi
11564 if test "${lt_cv_path_LD+set}" = set; then
11565   echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567   if test -z "$LD"; then
11568   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11569   for ac_dir in $PATH; do
11570     IFS="$lt_save_ifs"
11571     test -z "$ac_dir" && ac_dir=.
11572     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11573       lt_cv_path_LD="$ac_dir/$ac_prog"
11574       # Check to see if the program is GNU ld.  I'd rather use --version,
11575       # but apparently some variants of GNU ld only accept -v.
11576       # Break only if it was the GNU/non-GNU ld that we prefer.
11577       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11578       *GNU* | *'with BFD'*)
11579         test "$with_gnu_ld" != no && break
11580         ;;
11581       *)
11582         test "$with_gnu_ld" != yes && break
11583         ;;
11584       esac
11585     fi
11586   done
11587   IFS="$lt_save_ifs"
11588 else
11589   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11590 fi
11591 fi
11592
11593 LD="$lt_cv_path_LD"
11594 if test -n "$LD"; then
11595   { echo "$as_me:$LINENO: result: $LD" >&5
11596 echo "${ECHO_T}$LD" >&6; }
11597 else
11598   { echo "$as_me:$LINENO: result: no" >&5
11599 echo "${ECHO_T}no" >&6; }
11600 fi
11601 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11602 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11603    { (exit 1); exit 1; }; }
11604 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11605 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11606 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11607   echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11610 case `$LD -v 2>&1 </dev/null` in
11611 *GNU* | *'with BFD'*)
11612   lt_cv_prog_gnu_ld=yes
11613   ;;
11614 *)
11615   lt_cv_prog_gnu_ld=no
11616   ;;
11617 esac
11618 fi
11619 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11620 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11621 with_gnu_ld=$lt_cv_prog_gnu_ld
11622
11623
11624
11625   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11626   # archiving commands below assume that GNU ld is being used.
11627   if test "$with_gnu_ld" = yes; then
11628     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11629     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'
11630
11631     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11632     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11633
11634     # If archive_cmds runs LD, not CC, wlarc should be empty
11635     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11636     #     investigate it a little bit more. (MM)
11637     wlarc='${wl}'
11638
11639     # ancient GNU ld didn't support --whole-archive et. al.
11640     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11641         grep 'no-whole-archive' > /dev/null; then
11642       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11643     else
11644       whole_archive_flag_spec_CXX=
11645     fi
11646   else
11647     with_gnu_ld=no
11648     wlarc=
11649
11650     # A generic and very simple default shared library creation
11651     # command for GNU C++ for the case where it uses the native
11652     # linker, instead of GNU ld.  If possible, this setting should
11653     # overridden to take advantage of the native linker features on
11654     # the platform it is being used on.
11655     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11656   fi
11657
11658   # Commands to make compiler produce verbose output that lists
11659   # what "hidden" libraries, object files and flags are used when
11660   # linking a shared library.
11661   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11662
11663 else
11664   GXX=no
11665   with_gnu_ld=no
11666   wlarc=
11667 fi
11668
11669 # PORTME: fill in a description of your system's C++ link characteristics
11670 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11671 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11672 ld_shlibs_CXX=yes
11673 case $host_os in
11674   aix3*)
11675     # FIXME: insert proper C++ library support
11676     ld_shlibs_CXX=no
11677     ;;
11678   aix4* | aix5*)
11679     if test "$host_cpu" = ia64; then
11680       # On IA64, the linker does run time linking by default, so we don't
11681       # have to do anything special.
11682       aix_use_runtimelinking=no
11683       exp_sym_flag='-Bexport'
11684       no_entry_flag=""
11685     else
11686       aix_use_runtimelinking=no
11687
11688       # Test if we are trying to use run time linking or normal
11689       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11690       # need to do runtime linking.
11691       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11692         for ld_flag in $LDFLAGS; do
11693           case $ld_flag in
11694           *-brtl*)
11695             aix_use_runtimelinking=yes
11696             break
11697             ;;
11698           esac
11699         done
11700         ;;
11701       esac
11702
11703       exp_sym_flag='-bexport'
11704       no_entry_flag='-bnoentry'
11705     fi
11706
11707     # When large executables or shared objects are built, AIX ld can
11708     # have problems creating the table of contents.  If linking a library
11709     # or program results in "error TOC overflow" add -mminimal-toc to
11710     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11711     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11712
11713     archive_cmds_CXX=''
11714     hardcode_direct_CXX=yes
11715     hardcode_libdir_separator_CXX=':'
11716     link_all_deplibs_CXX=yes
11717
11718     if test "$GXX" = yes; then
11719       case $host_os in aix4.[012]|aix4.[012].*)
11720       # We only want to do this on AIX 4.2 and lower, the check
11721       # below for broken collect2 doesn't work under 4.3+
11722         collect2name=`${CC} -print-prog-name=collect2`
11723         if test -f "$collect2name" && \
11724            strings "$collect2name" | grep resolve_lib_name >/dev/null
11725         then
11726           # We have reworked collect2
11727           hardcode_direct_CXX=yes
11728         else
11729           # We have old collect2
11730           hardcode_direct_CXX=unsupported
11731           # It fails to find uninstalled libraries when the uninstalled
11732           # path is not listed in the libpath.  Setting hardcode_minus_L
11733           # to unsupported forces relinking
11734           hardcode_minus_L_CXX=yes
11735           hardcode_libdir_flag_spec_CXX='-L$libdir'
11736           hardcode_libdir_separator_CXX=
11737         fi
11738         ;;
11739       esac
11740       shared_flag='-shared'
11741       if test "$aix_use_runtimelinking" = yes; then
11742         shared_flag="$shared_flag "'${wl}-G'
11743       fi
11744     else
11745       # not using gcc
11746       if test "$host_cpu" = ia64; then
11747         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11748         # chokes on -Wl,-G. The following line is correct:
11749         shared_flag='-G'
11750       else
11751         if test "$aix_use_runtimelinking" = yes; then
11752           shared_flag='${wl}-G'
11753         else
11754           shared_flag='${wl}-bM:SRE'
11755         fi
11756       fi
11757     fi
11758
11759     # It seems that -bexpall does not export symbols beginning with
11760     # underscore (_), so it is better to generate a list of symbols to export.
11761     always_export_symbols_CXX=yes
11762     if test "$aix_use_runtimelinking" = yes; then
11763       # Warning - without using the other runtime loading flags (-brtl),
11764       # -berok will link without error, but may produce a broken library.
11765       allow_undefined_flag_CXX='-berok'
11766       # Determine the default libpath from the value encoded in an empty executable.
11767       cat >conftest.$ac_ext <<_ACEOF
11768 /* confdefs.h.  */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h.  */
11773
11774 int
11775 main ()
11776 {
11777
11778   ;
11779   return 0;
11780 }
11781 _ACEOF
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (ac_try="$ac_link"
11784 case "(($ac_try" in
11785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786   *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789   (eval "$ac_link") 2>conftest.er1
11790   ac_status=$?
11791   grep -v '^ *+' conftest.er1 >conftest.err
11792   rm -f conftest.er1
11793   cat conftest.err >&5
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } &&
11796          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11797   { (case "(($ac_try" in
11798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799   *) ac_try_echo=$ac_try;;
11800 esac
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802   (eval "$ac_try") 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); }; } &&
11806          { ac_try='test -s conftest$ac_exeext'
11807   { (case "(($ac_try" in
11808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809   *) ac_try_echo=$ac_try;;
11810 esac
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812   (eval "$ac_try") 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); }; }; then
11816
11817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11818 }'`
11819 # Check for a 64-bit object if we didn't find anything.
11820 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; }
11821 }'`; fi
11822 else
11823   echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11825
11826
11827 fi
11828
11829 rm -f core conftest.err conftest.$ac_objext \
11830       conftest$ac_exeext conftest.$ac_ext
11831 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11832
11833       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11834
11835       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"
11836      else
11837       if test "$host_cpu" = ia64; then
11838         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11839         allow_undefined_flag_CXX="-z nodefs"
11840         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"
11841       else
11842         # Determine the default libpath from the value encoded in an empty executable.
11843         cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h.  */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h.  */
11849
11850 int
11851 main ()
11852 {
11853
11854   ;
11855   return 0;
11856 }
11857 _ACEOF
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (ac_try="$ac_link"
11860 case "(($ac_try" in
11861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862   *) ac_try_echo=$ac_try;;
11863 esac
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865   (eval "$ac_link") 2>conftest.er1
11866   ac_status=$?
11867   grep -v '^ *+' conftest.er1 >conftest.err
11868   rm -f conftest.er1
11869   cat conftest.err >&5
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); } &&
11872          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11873   { (case "(($ac_try" in
11874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875   *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878   (eval "$ac_try") 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; } &&
11882          { ac_try='test -s conftest$ac_exeext'
11883   { (case "(($ac_try" in
11884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885   *) ac_try_echo=$ac_try;;
11886 esac
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888   (eval "$ac_try") 2>&5
11889   ac_status=$?
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); }; }; then
11892
11893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11894 }'`
11895 # Check for a 64-bit object if we didn't find anything.
11896 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; }
11897 }'`; fi
11898 else
11899   echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902
11903 fi
11904
11905 rm -f core conftest.err conftest.$ac_objext \
11906       conftest$ac_exeext conftest.$ac_ext
11907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11908
11909         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11910         # Warning - without using the other run time loading flags,
11911         # -berok will link without error, but may produce a broken library.
11912         no_undefined_flag_CXX=' ${wl}-bernotok'
11913         allow_undefined_flag_CXX=' ${wl}-berok'
11914         # Exported symbols can be pulled into shared objects from archives
11915         whole_archive_flag_spec_CXX='$convenience'
11916         archive_cmds_need_lc_CXX=yes
11917         # This is similar to how AIX traditionally builds its shared libraries.
11918         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'
11919       fi
11920     fi
11921     ;;
11922
11923   beos*)
11924     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11925       allow_undefined_flag_CXX=unsupported
11926       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11927       # support --undefined.  This deserves some investigation.  FIXME
11928       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11929     else
11930       ld_shlibs_CXX=no
11931     fi
11932     ;;
11933
11934   chorus*)
11935     case $cc_basename in
11936       *)
11937         # FIXME: insert proper C++ library support
11938         ld_shlibs_CXX=no
11939         ;;
11940     esac
11941     ;;
11942
11943   cygwin* | mingw* | pw32*)
11944     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11945     # as there is no search path for DLLs.
11946     hardcode_libdir_flag_spec_CXX='-L$libdir'
11947     allow_undefined_flag_CXX=unsupported
11948     always_export_symbols_CXX=no
11949     enable_shared_with_static_runtimes_CXX=yes
11950
11951     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11952       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'
11953       # If the export-symbols file already is a .def file (1st line
11954       # is EXPORTS), use it as is; otherwise, prepend...
11955       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11956         cp $export_symbols $output_objdir/$soname.def;
11957       else
11958         echo EXPORTS > $output_objdir/$soname.def;
11959         cat $export_symbols >> $output_objdir/$soname.def;
11960       fi~
11961       $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'
11962     else
11963       ld_shlibs_CXX=no
11964     fi
11965   ;;
11966       darwin* | rhapsody*)
11967         case $host_os in
11968         rhapsody* | darwin1.[012])
11969          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11970          ;;
11971        *) # Darwin 1.3 on
11972          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11973            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11974          else
11975            case ${MACOSX_DEPLOYMENT_TARGET} in
11976              10.[012])
11977                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11978                ;;
11979              10.*)
11980                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11981                ;;
11982            esac
11983          fi
11984          ;;
11985         esac
11986       archive_cmds_need_lc_CXX=no
11987       hardcode_direct_CXX=no
11988       hardcode_automatic_CXX=yes
11989       hardcode_shlibpath_var_CXX=unsupported
11990       whole_archive_flag_spec_CXX=''
11991       link_all_deplibs_CXX=yes
11992
11993     if test "$GXX" = yes ; then
11994       lt_int_apple_cc_single_mod=no
11995       output_verbose_link_cmd='echo'
11996       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11997        lt_int_apple_cc_single_mod=yes
11998       fi
11999       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12000        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12001       else
12002           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'
12003         fi
12004         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12005         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12006           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12007             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}'
12008           else
12009             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}'
12010           fi
12011             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}'
12012       else
12013       case $cc_basename in
12014         xlc*)
12015          output_verbose_link_cmd='echo'
12016           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'
12017           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12018           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12019           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}'
12020           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}'
12021           ;;
12022        *)
12023          ld_shlibs_CXX=no
12024           ;;
12025       esac
12026       fi
12027         ;;
12028
12029   dgux*)
12030     case $cc_basename in
12031       ec++*)
12032         # FIXME: insert proper C++ library support
12033         ld_shlibs_CXX=no
12034         ;;
12035       ghcx*)
12036         # Green Hills C++ Compiler
12037         # FIXME: insert proper C++ library support
12038         ld_shlibs_CXX=no
12039         ;;
12040       *)
12041         # FIXME: insert proper C++ library support
12042         ld_shlibs_CXX=no
12043         ;;
12044     esac
12045     ;;
12046   freebsd[12]*)
12047     # C++ shared libraries reported to be fairly broken before switch to ELF
12048     ld_shlibs_CXX=no
12049     ;;
12050   freebsd-elf*)
12051     archive_cmds_need_lc_CXX=no
12052     ;;
12053   freebsd* | kfreebsd*-gnu | dragonfly*)
12054     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12055     # conventions
12056     ld_shlibs_CXX=yes
12057     ;;
12058   gnu*)
12059     ;;
12060   hpux9*)
12061     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12062     hardcode_libdir_separator_CXX=:
12063     export_dynamic_flag_spec_CXX='${wl}-E'
12064     hardcode_direct_CXX=yes
12065     hardcode_minus_L_CXX=yes # Not in the search PATH,
12066                                 # but as the default
12067                                 # location of the library.
12068
12069     case $cc_basename in
12070     CC*)
12071       # FIXME: insert proper C++ library support
12072       ld_shlibs_CXX=no
12073       ;;
12074     aCC*)
12075       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'
12076       # Commands to make compiler produce verbose output that lists
12077       # what "hidden" libraries, object files and flags are used when
12078       # linking a shared library.
12079       #
12080       # There doesn't appear to be a way to prevent this compiler from
12081       # explicitly linking system object files so we need to strip them
12082       # from the output so that they don't get included in the library
12083       # dependencies.
12084       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'
12085       ;;
12086     *)
12087       if test "$GXX" = yes; then
12088         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'
12089       else
12090         # FIXME: insert proper C++ library support
12091         ld_shlibs_CXX=no
12092       fi
12093       ;;
12094     esac
12095     ;;
12096   hpux10*|hpux11*)
12097     if test $with_gnu_ld = no; then
12098       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12099       hardcode_libdir_separator_CXX=:
12100
12101       case $host_cpu in
12102       hppa*64*|ia64*)
12103         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12104         ;;
12105       *)
12106         export_dynamic_flag_spec_CXX='${wl}-E'
12107         ;;
12108       esac
12109     fi
12110     case $host_cpu in
12111     hppa*64*|ia64*)
12112       hardcode_direct_CXX=no
12113       hardcode_shlibpath_var_CXX=no
12114       ;;
12115     *)
12116       hardcode_direct_CXX=yes
12117       hardcode_minus_L_CXX=yes # Not in the search PATH,
12118                                               # but as the default
12119                                               # location of the library.
12120       ;;
12121     esac
12122
12123     case $cc_basename in
12124       CC*)
12125         # FIXME: insert proper C++ library support
12126         ld_shlibs_CXX=no
12127         ;;
12128       aCC*)
12129         case $host_cpu in
12130         hppa*64*)
12131           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12132           ;;
12133         ia64*)
12134           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12135           ;;
12136         *)
12137           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12138           ;;
12139         esac
12140         # Commands to make compiler produce verbose output that lists
12141         # what "hidden" libraries, object files and flags are used when
12142         # linking a shared library.
12143         #
12144         # There doesn't appear to be a way to prevent this compiler from
12145         # explicitly linking system object files so we need to strip them
12146         # from the output so that they don't get included in the library
12147         # dependencies.
12148         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'
12149         ;;
12150       *)
12151         if test "$GXX" = yes; then
12152           if test $with_gnu_ld = no; then
12153             case $host_cpu in
12154             hppa*64*)
12155               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12156               ;;
12157             ia64*)
12158               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12159               ;;
12160             *)
12161               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'
12162               ;;
12163             esac
12164           fi
12165         else
12166           # FIXME: insert proper C++ library support
12167           ld_shlibs_CXX=no
12168         fi
12169         ;;
12170     esac
12171     ;;
12172   interix3*)
12173     hardcode_direct_CXX=no
12174     hardcode_shlibpath_var_CXX=no
12175     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12176     export_dynamic_flag_spec_CXX='${wl}-E'
12177     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12178     # Instead, shared libraries are loaded at an image base (0x10000000 by
12179     # default) and relocated if they conflict, which is a slow very memory
12180     # consuming and fragmenting process.  To avoid this, we pick a random,
12181     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12182     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12183     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'
12184     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'
12185     ;;
12186   irix5* | irix6*)
12187     case $cc_basename in
12188       CC*)
12189         # SGI C++
12190         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'
12191
12192         # Archives containing C++ object files must be created using
12193         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12194         # necessary to make sure instantiated templates are included
12195         # in the archive.
12196         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12197         ;;
12198       *)
12199         if test "$GXX" = yes; then
12200           if test "$with_gnu_ld" = no; then
12201             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'
12202           else
12203             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'
12204           fi
12205         fi
12206         link_all_deplibs_CXX=yes
12207         ;;
12208     esac
12209     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12210     hardcode_libdir_separator_CXX=:
12211     ;;
12212   linux*)
12213     case $cc_basename in
12214       KCC*)
12215         # Kuck and Associates, Inc. (KAI) C++ Compiler
12216
12217         # KCC will only create a shared library if the output file
12218         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12219         # to its proper name (with version) after linking.
12220         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'
12221         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'
12222         # Commands to make compiler produce verbose output that lists
12223         # what "hidden" libraries, object files and flags are used when
12224         # linking a shared library.
12225         #
12226         # There doesn't appear to be a way to prevent this compiler from
12227         # explicitly linking system object files so we need to strip them
12228         # from the output so that they don't get included in the library
12229         # dependencies.
12230         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'
12231
12232         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12233         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12234
12235         # Archives containing C++ object files must be created using
12236         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12237         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12238         ;;
12239       icpc*)
12240         # Intel C++
12241         with_gnu_ld=yes
12242         # version 8.0 and above of icpc choke on multiply defined symbols
12243         # if we add $predep_objects and $postdep_objects, however 7.1 and
12244         # earlier do not add the objects themselves.
12245         case `$CC -V 2>&1` in
12246         *"Version 7."*)
12247           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12248           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'
12249           ;;
12250         *)  # Version 8.0 or newer
12251           tmp_idyn=
12252           case $host_cpu in
12253             ia64*) tmp_idyn=' -i_dynamic';;
12254           esac
12255           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12256           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'
12257           ;;
12258         esac
12259         archive_cmds_need_lc_CXX=no
12260         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12261         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12262         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12263         ;;
12264       pgCC*)
12265         # Portland Group C++ compiler
12266         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12267         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'
12268
12269         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12270         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12271         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'
12272         ;;
12273       cxx*)
12274         # Compaq C++
12275         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12276         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'
12277
12278         runpath_var=LD_RUN_PATH
12279         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12280         hardcode_libdir_separator_CXX=:
12281
12282         # Commands to make compiler produce verbose output that lists
12283         # what "hidden" libraries, object files and flags are used when
12284         # linking a shared library.
12285         #
12286         # There doesn't appear to be a way to prevent this compiler from
12287         # explicitly linking system object files so we need to strip them
12288         # from the output so that they don't get included in the library
12289         # dependencies.
12290         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'
12291         ;;
12292     esac
12293     ;;
12294   lynxos*)
12295     # FIXME: insert proper C++ library support
12296     ld_shlibs_CXX=no
12297     ;;
12298   m88k*)
12299     # FIXME: insert proper C++ library support
12300     ld_shlibs_CXX=no
12301     ;;
12302   mvs*)
12303     case $cc_basename in
12304       cxx*)
12305         # FIXME: insert proper C++ library support
12306         ld_shlibs_CXX=no
12307         ;;
12308       *)
12309         # FIXME: insert proper C++ library support
12310         ld_shlibs_CXX=no
12311         ;;
12312     esac
12313     ;;
12314   netbsd*)
12315     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12316       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12317       wlarc=
12318       hardcode_libdir_flag_spec_CXX='-R$libdir'
12319       hardcode_direct_CXX=yes
12320       hardcode_shlibpath_var_CXX=no
12321     fi
12322     # Workaround some broken pre-1.5 toolchains
12323     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12324     ;;
12325   openbsd2*)
12326     # C++ shared libraries are fairly broken
12327     ld_shlibs_CXX=no
12328     ;;
12329   openbsd*)
12330     hardcode_direct_CXX=yes
12331     hardcode_shlibpath_var_CXX=no
12332     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12333     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12334     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12335       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12336       export_dynamic_flag_spec_CXX='${wl}-E'
12337       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12338     fi
12339     output_verbose_link_cmd='echo'
12340     ;;
12341   osf3*)
12342     case $cc_basename in
12343       KCC*)
12344         # Kuck and Associates, Inc. (KAI) C++ Compiler
12345
12346         # KCC will only create a shared library if the output file
12347         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12348         # to its proper name (with version) after linking.
12349         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'
12350
12351         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12352         hardcode_libdir_separator_CXX=:
12353
12354         # Archives containing C++ object files must be created using
12355         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12356         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12357
12358         ;;
12359       RCC*)
12360         # Rational C++ 2.4.1
12361         # FIXME: insert proper C++ library support
12362         ld_shlibs_CXX=no
12363         ;;
12364       cxx*)
12365         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12366         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'
12367
12368         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12369         hardcode_libdir_separator_CXX=:
12370
12371         # Commands to make compiler produce verbose output that lists
12372         # what "hidden" libraries, object files and flags are used when
12373         # linking a shared library.
12374         #
12375         # There doesn't appear to be a way to prevent this compiler from
12376         # explicitly linking system object files so we need to strip them
12377         # from the output so that they don't get included in the library
12378         # dependencies.
12379         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'
12380         ;;
12381       *)
12382         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12383           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12384           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'
12385
12386           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12387           hardcode_libdir_separator_CXX=:
12388
12389           # Commands to make compiler produce verbose output that lists
12390           # what "hidden" libraries, object files and flags are used when
12391           # linking a shared library.
12392           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12393
12394         else
12395           # FIXME: insert proper C++ library support
12396           ld_shlibs_CXX=no
12397         fi
12398         ;;
12399     esac
12400     ;;
12401   osf4* | osf5*)
12402     case $cc_basename in
12403       KCC*)
12404         # Kuck and Associates, Inc. (KAI) C++ Compiler
12405
12406         # KCC will only create a shared library if the output file
12407         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12408         # to its proper name (with version) after linking.
12409         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'
12410
12411         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12412         hardcode_libdir_separator_CXX=:
12413
12414         # Archives containing C++ object files must be created using
12415         # the KAI C++ compiler.
12416         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12417         ;;
12418       RCC*)
12419         # Rational C++ 2.4.1
12420         # FIXME: insert proper C++ library support
12421         ld_shlibs_CXX=no
12422         ;;
12423       cxx*)
12424         allow_undefined_flag_CXX=' -expect_unresolved \*'
12425         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'
12426         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12427           echo "-hidden">> $lib.exp~
12428           $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~
12429           $rm $lib.exp'
12430
12431         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12432         hardcode_libdir_separator_CXX=:
12433
12434         # Commands to make compiler produce verbose output that lists
12435         # what "hidden" libraries, object files and flags are used when
12436         # linking a shared library.
12437         #
12438         # There doesn't appear to be a way to prevent this compiler from
12439         # explicitly linking system object files so we need to strip them
12440         # from the output so that they don't get included in the library
12441         # dependencies.
12442         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'
12443         ;;
12444       *)
12445         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12446           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12447          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'
12448
12449           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12450           hardcode_libdir_separator_CXX=:
12451
12452           # Commands to make compiler produce verbose output that lists
12453           # what "hidden" libraries, object files and flags are used when
12454           # linking a shared library.
12455           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12456
12457         else
12458           # FIXME: insert proper C++ library support
12459           ld_shlibs_CXX=no
12460         fi
12461         ;;
12462     esac
12463     ;;
12464   psos*)
12465     # FIXME: insert proper C++ library support
12466     ld_shlibs_CXX=no
12467     ;;
12468   sunos4*)
12469     case $cc_basename in
12470       CC*)
12471         # Sun C++ 4.x
12472         # FIXME: insert proper C++ library support
12473         ld_shlibs_CXX=no
12474         ;;
12475       lcc*)
12476         # Lucid
12477         # FIXME: insert proper C++ library support
12478         ld_shlibs_CXX=no
12479         ;;
12480       *)
12481         # FIXME: insert proper C++ library support
12482         ld_shlibs_CXX=no
12483         ;;
12484     esac
12485     ;;
12486   solaris*)
12487     case $cc_basename in
12488       CC*)
12489         # Sun C++ 4.2, 5.x and Centerline C++
12490         archive_cmds_need_lc_CXX=yes
12491         no_undefined_flag_CXX=' -zdefs'
12492         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12493         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12494         $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'
12495
12496         hardcode_libdir_flag_spec_CXX='-R$libdir'
12497         hardcode_shlibpath_var_CXX=no
12498         case $host_os in
12499           solaris2.[0-5] | solaris2.[0-5].*) ;;
12500           *)
12501             # The C++ compiler is used as linker so we must use $wl
12502             # flag to pass the commands to the underlying system
12503             # linker. We must also pass each convience library through
12504             # to the system linker between allextract/defaultextract.
12505             # The C++ compiler will combine linker options so we
12506             # cannot just pass the convience library names through
12507             # without $wl.
12508             # Supported since Solaris 2.6 (maybe 2.5.1?)
12509             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'
12510             ;;
12511         esac
12512         link_all_deplibs_CXX=yes
12513
12514         output_verbose_link_cmd='echo'
12515
12516         # Archives containing C++ object files must be created using
12517         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12518         # necessary to make sure instantiated templates are included
12519         # in the archive.
12520         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12521         ;;
12522       gcx*)
12523         # Green Hills C++ Compiler
12524         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12525
12526         # The C++ compiler must be used to create the archive.
12527         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12528         ;;
12529       *)
12530         # GNU C++ compiler with Solaris linker
12531         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12532           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12533           if $CC --version | grep -v '^2\.7' > /dev/null; then
12534             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12535             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12536                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12537
12538             # Commands to make compiler produce verbose output that lists
12539             # what "hidden" libraries, object files and flags are used when
12540             # linking a shared library.
12541             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12542           else
12543             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12544             # platform.
12545             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12546             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12547                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12548
12549             # Commands to make compiler produce verbose output that lists
12550             # what "hidden" libraries, object files and flags are used when
12551             # linking a shared library.
12552             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12553           fi
12554
12555           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12556         fi
12557         ;;
12558     esac
12559     ;;
12560   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12561     no_undefined_flag_CXX='${wl}-z,text'
12562     archive_cmds_need_lc_CXX=no
12563     hardcode_shlibpath_var_CXX=no
12564     runpath_var='LD_RUN_PATH'
12565
12566     case $cc_basename in
12567       CC*)
12568         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12569         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12570         ;;
12571       *)
12572         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12573         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12574         ;;
12575     esac
12576     ;;
12577   sysv5* | sco3.2v5* | sco5v6*)
12578     # Note: We can NOT use -z defs as we might desire, because we do not
12579     # link with -lc, and that would cause any symbols used from libc to
12580     # always be unresolved, which means just about no library would
12581     # ever link correctly.  If we're not using GNU ld we use -z text
12582     # though, which does catch some bad symbols but isn't as heavy-handed
12583     # as -z defs.
12584     # For security reasons, it is highly recommended that you always
12585     # use absolute paths for naming shared libraries, and exclude the
12586     # DT_RUNPATH tag from executables and libraries.  But doing so
12587     # requires that you compile everything twice, which is a pain.
12588     # So that behaviour is only enabled if SCOABSPATH is set to a
12589     # non-empty value in the environment.  Most likely only useful for
12590     # creating official distributions of packages.
12591     # This is a hack until libtool officially supports absolute path
12592     # names for shared libraries.
12593     no_undefined_flag_CXX='${wl}-z,text'
12594     allow_undefined_flag_CXX='${wl}-z,nodefs'
12595     archive_cmds_need_lc_CXX=no
12596     hardcode_shlibpath_var_CXX=no
12597     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12598     hardcode_libdir_separator_CXX=':'
12599     link_all_deplibs_CXX=yes
12600     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12601     runpath_var='LD_RUN_PATH'
12602
12603     case $cc_basename in
12604       CC*)
12605         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12606         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12607         ;;
12608       *)
12609         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12610         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12611         ;;
12612     esac
12613     ;;
12614   tandem*)
12615     case $cc_basename in
12616       NCC*)
12617         # NonStop-UX NCC 3.20
12618         # FIXME: insert proper C++ library support
12619         ld_shlibs_CXX=no
12620         ;;
12621       *)
12622         # FIXME: insert proper C++ library support
12623         ld_shlibs_CXX=no
12624         ;;
12625     esac
12626     ;;
12627   vxworks*)
12628     # FIXME: insert proper C++ library support
12629     ld_shlibs_CXX=no
12630     ;;
12631   *)
12632     # FIXME: insert proper C++ library support
12633     ld_shlibs_CXX=no
12634     ;;
12635 esac
12636 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12637 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12638 test "$ld_shlibs_CXX" = no && can_build_shared=no
12639
12640 GCC_CXX="$GXX"
12641 LD_CXX="$LD"
12642
12643 ## CAVEAT EMPTOR:
12644 ## There is no encapsulation within the following macros, do not change
12645 ## the running order or otherwise move them around unless you know exactly
12646 ## what you are doing...
12647
12648 cat > conftest.$ac_ext <<EOF
12649 class Foo
12650 {
12651 public:
12652   Foo (void) { a = 0; }
12653 private:
12654   int a;
12655 };
12656 EOF
12657
12658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12659   (eval $ac_compile) 2>&5
12660   ac_status=$?
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); }; then
12663   # Parse the compiler output and extract the necessary
12664   # objects, libraries and library flags.
12665
12666   # Sentinel used to keep track of whether or not we are before
12667   # the conftest object file.
12668   pre_test_object_deps_done=no
12669
12670   # The `*' in the case matches for architectures that use `case' in
12671   # $output_verbose_cmd can trigger glob expansion during the loop
12672   # eval without this substitution.
12673   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12674
12675   for p in `eval $output_verbose_link_cmd`; do
12676     case $p in
12677
12678     -L* | -R* | -l*)
12679        # Some compilers place space between "-{L,R}" and the path.
12680        # Remove the space.
12681        if test $p = "-L" \
12682           || test $p = "-R"; then
12683          prev=$p
12684          continue
12685        else
12686          prev=
12687        fi
12688
12689        if test "$pre_test_object_deps_done" = no; then
12690          case $p in
12691          -L* | -R*)
12692            # Internal compiler library paths should come after those
12693            # provided the user.  The postdeps already come after the
12694            # user supplied libs so there is no need to process them.
12695            if test -z "$compiler_lib_search_path_CXX"; then
12696              compiler_lib_search_path_CXX="${prev}${p}"
12697            else
12698              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12699            fi
12700            ;;
12701          # The "-l" case would never come before the object being
12702          # linked, so don't bother handling this case.
12703          esac
12704        else
12705          if test -z "$postdeps_CXX"; then
12706            postdeps_CXX="${prev}${p}"
12707          else
12708            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12709          fi
12710        fi
12711        ;;
12712
12713     *.$objext)
12714        # This assumes that the test object file only shows up
12715        # once in the compiler output.
12716        if test "$p" = "conftest.$objext"; then
12717          pre_test_object_deps_done=yes
12718          continue
12719        fi
12720
12721        if test "$pre_test_object_deps_done" = no; then
12722          if test -z "$predep_objects_CXX"; then
12723            predep_objects_CXX="$p"
12724          else
12725            predep_objects_CXX="$predep_objects_CXX $p"
12726          fi
12727        else
12728          if test -z "$postdep_objects_CXX"; then
12729            postdep_objects_CXX="$p"
12730          else
12731            postdep_objects_CXX="$postdep_objects_CXX $p"
12732          fi
12733        fi
12734        ;;
12735
12736     *) ;; # Ignore the rest.
12737
12738     esac
12739   done
12740
12741   # Clean up.
12742   rm -f a.out a.exe
12743 else
12744   echo "libtool.m4: error: problem compiling CXX test program"
12745 fi
12746
12747 $rm -f confest.$objext
12748
12749 # PORTME: override above test on systems where it is broken
12750 case $host_os in
12751 interix3*)
12752   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12753   # hack all around it, let's just trust "g++" to DTRT.
12754   predep_objects_CXX=
12755   postdep_objects_CXX=
12756   postdeps_CXX=
12757   ;;
12758
12759 solaris*)
12760   case $cc_basename in
12761   CC*)
12762     # Adding this requires a known-good setup of shared libraries for
12763     # Sun compiler versions before 5.6, else PIC objects from an old
12764     # archive will be linked into the output, leading to subtle bugs.
12765     postdeps_CXX='-lCstd -lCrun'
12766     ;;
12767   esac
12768   ;;
12769 esac
12770
12771
12772 case " $postdeps_CXX " in
12773 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12774 esac
12775
12776 lt_prog_compiler_wl_CXX=
12777 lt_prog_compiler_pic_CXX=
12778 lt_prog_compiler_static_CXX=
12779
12780 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12781 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12782
12783   # C++ specific cases for pic, static, wl, etc.
12784   if test "$GXX" = yes; then
12785     lt_prog_compiler_wl_CXX='-Wl,'
12786     lt_prog_compiler_static_CXX='-static'
12787
12788     case $host_os in
12789     aix*)
12790       # All AIX code is PIC.
12791       if test "$host_cpu" = ia64; then
12792         # AIX 5 now supports IA64 processor
12793         lt_prog_compiler_static_CXX='-Bstatic'
12794       fi
12795       ;;
12796     amigaos*)
12797       # FIXME: we need at least 68020 code to build shared libraries, but
12798       # adding the `-m68020' flag to GCC prevents building anything better,
12799       # like `-m68040'.
12800       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12801       ;;
12802     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12803       # PIC is the default for these OSes.
12804       ;;
12805     mingw* | os2* | pw32*)
12806       # This hack is so that the source file can tell whether it is being
12807       # built for inclusion in a dll (and should export symbols for example).
12808       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12809       ;;
12810     darwin* | rhapsody*)
12811       # PIC is the default on this platform
12812       # Common symbols not allowed in MH_DYLIB files
12813       lt_prog_compiler_pic_CXX='-fno-common'
12814       ;;
12815     *djgpp*)
12816       # DJGPP does not support shared libraries at all
12817       lt_prog_compiler_pic_CXX=
12818       ;;
12819     interix3*)
12820       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12821       # Instead, we relocate shared libraries at runtime.
12822       ;;
12823     sysv4*MP*)
12824       if test -d /usr/nec; then
12825         lt_prog_compiler_pic_CXX=-Kconform_pic
12826       fi
12827       ;;
12828     hpux*)
12829       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12830       # not for PA HP-UX.
12831       case $host_cpu in
12832       hppa*64*|ia64*)
12833         ;;
12834       *)
12835         lt_prog_compiler_pic_CXX='-fPIC'
12836         ;;
12837       esac
12838       ;;
12839     *)
12840       lt_prog_compiler_pic_CXX='-fPIC'
12841       ;;
12842     esac
12843   else
12844     case $host_os in
12845       aix4* | aix5*)
12846         # All AIX code is PIC.
12847         if test "$host_cpu" = ia64; then
12848           # AIX 5 now supports IA64 processor
12849           lt_prog_compiler_static_CXX='-Bstatic'
12850         else
12851           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12852         fi
12853         ;;
12854       chorus*)
12855         case $cc_basename in
12856         cxch68*)
12857           # Green Hills C++ Compiler
12858           # _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"
12859           ;;
12860         esac
12861         ;;
12862        darwin*)
12863          # PIC is the default on this platform
12864          # Common symbols not allowed in MH_DYLIB files
12865          case $cc_basename in
12866            xlc*)
12867            lt_prog_compiler_pic_CXX='-qnocommon'
12868            lt_prog_compiler_wl_CXX='-Wl,'
12869            ;;
12870          esac
12871        ;;
12872       dgux*)
12873         case $cc_basename in
12874           ec++*)
12875             lt_prog_compiler_pic_CXX='-KPIC'
12876             ;;
12877           ghcx*)
12878             # Green Hills C++ Compiler
12879             lt_prog_compiler_pic_CXX='-pic'
12880             ;;
12881           *)
12882             ;;
12883         esac
12884         ;;
12885       freebsd* | kfreebsd*-gnu | dragonfly*)
12886         # FreeBSD uses GNU C++
12887         ;;
12888       hpux9* | hpux10* | hpux11*)
12889         case $cc_basename in
12890           CC*)
12891             lt_prog_compiler_wl_CXX='-Wl,'
12892             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12893             if test "$host_cpu" != ia64; then
12894               lt_prog_compiler_pic_CXX='+Z'
12895             fi
12896             ;;
12897           aCC*)
12898             lt_prog_compiler_wl_CXX='-Wl,'
12899             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12900             case $host_cpu in
12901             hppa*64*|ia64*)
12902               # +Z the default
12903               ;;
12904             *)
12905               lt_prog_compiler_pic_CXX='+Z'
12906               ;;
12907             esac
12908             ;;
12909           *)
12910             ;;
12911         esac
12912         ;;
12913       interix*)
12914         # This is c89, which is MS Visual C++ (no shared libs)
12915         # Anyone wants to do a port?
12916         ;;
12917       irix5* | irix6* | nonstopux*)
12918         case $cc_basename in
12919           CC*)
12920             lt_prog_compiler_wl_CXX='-Wl,'
12921             lt_prog_compiler_static_CXX='-non_shared'
12922             # CC pic flag -KPIC is the default.
12923             ;;
12924           *)
12925             ;;
12926         esac
12927         ;;
12928       linux*)
12929         case $cc_basename in
12930           KCC*)
12931             # KAI C++ Compiler
12932             lt_prog_compiler_wl_CXX='--backend -Wl,'
12933             lt_prog_compiler_pic_CXX='-fPIC'
12934             ;;
12935           icpc* | ecpc*)
12936             # Intel C++
12937             lt_prog_compiler_wl_CXX='-Wl,'
12938             lt_prog_compiler_pic_CXX='-KPIC'
12939             lt_prog_compiler_static_CXX='-static'
12940             ;;
12941           pgCC*)
12942             # Portland Group C++ compiler.
12943             lt_prog_compiler_wl_CXX='-Wl,'
12944             lt_prog_compiler_pic_CXX='-fpic'
12945             lt_prog_compiler_static_CXX='-Bstatic'
12946             ;;
12947           cxx*)
12948             # Compaq C++
12949             # Make sure the PIC flag is empty.  It appears that all Alpha
12950             # Linux and Compaq Tru64 Unix objects are PIC.
12951             lt_prog_compiler_pic_CXX=
12952             lt_prog_compiler_static_CXX='-non_shared'
12953             ;;
12954           *)
12955             ;;
12956         esac
12957         ;;
12958       lynxos*)
12959         ;;
12960       m88k*)
12961         ;;
12962       mvs*)
12963         case $cc_basename in
12964           cxx*)
12965             lt_prog_compiler_pic_CXX='-W c,exportall'
12966             ;;
12967           *)
12968             ;;
12969         esac
12970         ;;
12971       netbsd*)
12972         ;;
12973       osf3* | osf4* | osf5*)
12974         case $cc_basename in
12975           KCC*)
12976             lt_prog_compiler_wl_CXX='--backend -Wl,'
12977             ;;
12978           RCC*)
12979             # Rational C++ 2.4.1
12980             lt_prog_compiler_pic_CXX='-pic'
12981             ;;
12982           cxx*)
12983             # Digital/Compaq C++
12984             lt_prog_compiler_wl_CXX='-Wl,'
12985             # Make sure the PIC flag is empty.  It appears that all Alpha
12986             # Linux and Compaq Tru64 Unix objects are PIC.
12987             lt_prog_compiler_pic_CXX=
12988             lt_prog_compiler_static_CXX='-non_shared'
12989             ;;
12990           *)
12991             ;;
12992         esac
12993         ;;
12994       psos*)
12995         ;;
12996       solaris*)
12997         case $cc_basename in
12998           CC*)
12999             # Sun C++ 4.2, 5.x and Centerline C++
13000             lt_prog_compiler_pic_CXX='-KPIC'
13001             lt_prog_compiler_static_CXX='-Bstatic'
13002             lt_prog_compiler_wl_CXX='-Qoption ld '
13003             ;;
13004           gcx*)
13005             # Green Hills C++ Compiler
13006             lt_prog_compiler_pic_CXX='-PIC'
13007             ;;
13008           *)
13009             ;;
13010         esac
13011         ;;
13012       sunos4*)
13013         case $cc_basename in
13014           CC*)
13015             # Sun C++ 4.x
13016             lt_prog_compiler_pic_CXX='-pic'
13017             lt_prog_compiler_static_CXX='-Bstatic'
13018             ;;
13019           lcc*)
13020             # Lucid
13021             lt_prog_compiler_pic_CXX='-pic'
13022             ;;
13023           *)
13024             ;;
13025         esac
13026         ;;
13027       tandem*)
13028         case $cc_basename in
13029           NCC*)
13030             # NonStop-UX NCC 3.20
13031             lt_prog_compiler_pic_CXX='-KPIC'
13032             ;;
13033           *)
13034             ;;
13035         esac
13036         ;;
13037       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13038         case $cc_basename in
13039           CC*)
13040             lt_prog_compiler_wl_CXX='-Wl,'
13041             lt_prog_compiler_pic_CXX='-KPIC'
13042             lt_prog_compiler_static_CXX='-Bstatic'
13043             ;;
13044         esac
13045         ;;
13046       vxworks*)
13047         ;;
13048       *)
13049         lt_prog_compiler_can_build_shared_CXX=no
13050         ;;
13051     esac
13052   fi
13053
13054 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13055 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13056
13057 #
13058 # Check to make sure the PIC flag actually works.
13059 #
13060 if test -n "$lt_prog_compiler_pic_CXX"; then
13061
13062 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13063 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13064 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13065   echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067   lt_prog_compiler_pic_works_CXX=no
13068   ac_outfile=conftest.$ac_objext
13069    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13070    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13071    # Insert the option either (1) after the last *FLAGS variable, or
13072    # (2) before a word containing "conftest.", or (3) at the end.
13073    # Note that $ac_compile itself does not contain backslashes and begins
13074    # with a dollar sign (not a hyphen), so the echo should work correctly.
13075    # The option is referenced via a variable to avoid confusing sed.
13076    lt_compile=`echo "$ac_compile" | $SED \
13077    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13078    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13079    -e 's:$: $lt_compiler_flag:'`
13080    (eval echo "\"\$as_me:13080: $lt_compile\"" >&5)
13081    (eval "$lt_compile" 2>conftest.err)
13082    ac_status=$?
13083    cat conftest.err >&5
13084    echo "$as_me:13084: \$? = $ac_status" >&5
13085    if (exit $ac_status) && test -s "$ac_outfile"; then
13086      # The compiler can only warn and ignore the option if not recognized
13087      # So say no if there are warnings other than the usual output.
13088      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13089      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13090      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13091        lt_prog_compiler_pic_works_CXX=yes
13092      fi
13093    fi
13094    $rm conftest*
13095
13096 fi
13097 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13098 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13099
13100 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13101     case $lt_prog_compiler_pic_CXX in
13102      "" | " "*) ;;
13103      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13104      esac
13105 else
13106     lt_prog_compiler_pic_CXX=
13107      lt_prog_compiler_can_build_shared_CXX=no
13108 fi
13109
13110 fi
13111 case $host_os in
13112   # For platforms which do not support PIC, -DPIC is meaningless:
13113   *djgpp*)
13114     lt_prog_compiler_pic_CXX=
13115     ;;
13116   *)
13117     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13118     ;;
13119 esac
13120
13121 #
13122 # Check to make sure the static flag actually works.
13123 #
13124 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13125 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13126 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13127 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13128   echo $ECHO_N "(cached) $ECHO_C" >&6
13129 else
13130   lt_prog_compiler_static_works_CXX=no
13131    save_LDFLAGS="$LDFLAGS"
13132    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13133    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13134    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13135      # The linker can only warn and ignore the option if not recognized
13136      # So say no if there are warnings
13137      if test -s conftest.err; then
13138        # Append any errors to the config.log.
13139        cat conftest.err 1>&5
13140        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13141        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13142        if diff conftest.exp conftest.er2 >/dev/null; then
13143          lt_prog_compiler_static_works_CXX=yes
13144        fi
13145      else
13146        lt_prog_compiler_static_works_CXX=yes
13147      fi
13148    fi
13149    $rm conftest*
13150    LDFLAGS="$save_LDFLAGS"
13151
13152 fi
13153 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13154 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13155
13156 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13157     :
13158 else
13159     lt_prog_compiler_static_CXX=
13160 fi
13161
13162
13163 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13164 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13165 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13166   echo $ECHO_N "(cached) $ECHO_C" >&6
13167 else
13168   lt_cv_prog_compiler_c_o_CXX=no
13169    $rm -r conftest 2>/dev/null
13170    mkdir conftest
13171    cd conftest
13172    mkdir out
13173    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13174
13175    lt_compiler_flag="-o out/conftest2.$ac_objext"
13176    # Insert the option either (1) after the last *FLAGS variable, or
13177    # (2) before a word containing "conftest.", or (3) at the end.
13178    # Note that $ac_compile itself does not contain backslashes and begins
13179    # with a dollar sign (not a hyphen), so the echo should work correctly.
13180    lt_compile=`echo "$ac_compile" | $SED \
13181    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13182    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13183    -e 's:$: $lt_compiler_flag:'`
13184    (eval echo "\"\$as_me:13184: $lt_compile\"" >&5)
13185    (eval "$lt_compile" 2>out/conftest.err)
13186    ac_status=$?
13187    cat out/conftest.err >&5
13188    echo "$as_me:13188: \$? = $ac_status" >&5
13189    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13190    then
13191      # The compiler can only warn and ignore the option if not recognized
13192      # So say no if there are warnings
13193      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13194      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13195      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13196        lt_cv_prog_compiler_c_o_CXX=yes
13197      fi
13198    fi
13199    chmod u+w . 2>&5
13200    $rm conftest*
13201    # SGI C++ compiler will create directory out/ii_files/ for
13202    # template instantiation
13203    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13204    $rm out/* && rmdir out
13205    cd ..
13206    rmdir conftest
13207    $rm conftest*
13208
13209 fi
13210 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13211 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13212
13213
13214 hard_links="nottested"
13215 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13216   # do not overwrite the value of need_locks provided by the user
13217   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13218 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13219   hard_links=yes
13220   $rm conftest*
13221   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13222   touch conftest.a
13223   ln conftest.a conftest.b 2>&5 || hard_links=no
13224   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13225   { echo "$as_me:$LINENO: result: $hard_links" >&5
13226 echo "${ECHO_T}$hard_links" >&6; }
13227   if test "$hard_links" = no; then
13228     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13229 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13230     need_locks=warn
13231   fi
13232 else
13233   need_locks=no
13234 fi
13235
13236 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13237 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13238
13239   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13240   case $host_os in
13241   aix4* | aix5*)
13242     # If we're using GNU nm, then we don't want the "-C" option.
13243     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13244     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13245       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'
13246     else
13247       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'
13248     fi
13249     ;;
13250   pw32*)
13251     export_symbols_cmds_CXX="$ltdll_cmds"
13252   ;;
13253   cygwin* | mingw*)
13254     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'
13255   ;;
13256   *)
13257     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13258   ;;
13259   esac
13260
13261 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13262 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13263 test "$ld_shlibs_CXX" = no && can_build_shared=no
13264
13265 #
13266 # Do we need to explicitly link libc?
13267 #
13268 case "x$archive_cmds_need_lc_CXX" in
13269 x|xyes)
13270   # Assume -lc should be added
13271   archive_cmds_need_lc_CXX=yes
13272
13273   if test "$enable_shared" = yes && test "$GCC" = yes; then
13274     case $archive_cmds_CXX in
13275     *'~'*)
13276       # FIXME: we may have to deal with multi-command sequences.
13277       ;;
13278     '$CC '*)
13279       # Test whether the compiler implicitly links with -lc since on some
13280       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13281       # to ld, don't add -lc before -lgcc.
13282       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13283 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13284       $rm conftest*
13285       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13286
13287       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13288   (eval $ac_compile) 2>&5
13289   ac_status=$?
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } 2>conftest.err; then
13292         soname=conftest
13293         lib=conftest
13294         libobjs=conftest.$ac_objext
13295         deplibs=
13296         wl=$lt_prog_compiler_wl_CXX
13297         pic_flag=$lt_prog_compiler_pic_CXX
13298         compiler_flags=-v
13299         linker_flags=-v
13300         verstring=
13301         output_objdir=.
13302         libname=conftest
13303         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13304         allow_undefined_flag_CXX=
13305         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13306   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13307   ac_status=$?
13308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); }
13310         then
13311           archive_cmds_need_lc_CXX=no
13312         else
13313           archive_cmds_need_lc_CXX=yes
13314         fi
13315         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13316       else
13317         cat conftest.err 1>&5
13318       fi
13319       $rm conftest*
13320       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13321 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13322       ;;
13323     esac
13324   fi
13325   ;;
13326 esac
13327
13328 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13329 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13330 library_names_spec=
13331 libname_spec='lib$name'
13332 soname_spec=
13333 shrext_cmds=".so"
13334 postinstall_cmds=
13335 postuninstall_cmds=
13336 finish_cmds=
13337 finish_eval=
13338 shlibpath_var=
13339 shlibpath_overrides_runpath=unknown
13340 version_type=none
13341 dynamic_linker="$host_os ld.so"
13342 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13343 if test "$GCC" = yes; then
13344   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13345   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13346     # if the path contains ";" then we assume it to be the separator
13347     # otherwise default to the standard path separator (i.e. ":") - it is
13348     # assumed that no part of a normal pathname contains ";" but that should
13349     # okay in the real world where ";" in dirpaths is itself problematic.
13350     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13351   else
13352     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13353   fi
13354 else
13355   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13356 fi
13357 need_lib_prefix=unknown
13358 hardcode_into_libs=no
13359
13360 # when you set need_version to no, make sure it does not cause -set_version
13361 # flags to be left without arguments
13362 need_version=unknown
13363
13364 case $host_os in
13365 aix3*)
13366   version_type=linux
13367   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13368   shlibpath_var=LIBPATH
13369
13370   # AIX 3 has no versioning support, so we append a major version to the name.
13371   soname_spec='${libname}${release}${shared_ext}$major'
13372   ;;
13373
13374 aix4* | aix5*)
13375   version_type=linux
13376   need_lib_prefix=no
13377   need_version=no
13378   hardcode_into_libs=yes
13379   if test "$host_cpu" = ia64; then
13380     # AIX 5 supports IA64
13381     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13382     shlibpath_var=LD_LIBRARY_PATH
13383   else
13384     # With GCC up to 2.95.x, collect2 would create an import file
13385     # for dependence libraries.  The import file would start with
13386     # the line `#! .'.  This would cause the generated library to
13387     # depend on `.', always an invalid library.  This was fixed in
13388     # development snapshots of GCC prior to 3.0.
13389     case $host_os in
13390       aix4 | aix4.[01] | aix4.[01].*)
13391       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13392            echo ' yes '
13393            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13394         :
13395       else
13396         can_build_shared=no
13397       fi
13398       ;;
13399     esac
13400     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13401     # soname into executable. Probably we can add versioning support to
13402     # collect2, so additional links can be useful in future.
13403     if test "$aix_use_runtimelinking" = yes; then
13404       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13405       # instead of lib<name>.a to let people know that these are not
13406       # typical AIX shared libraries.
13407       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408     else
13409       # We preserve .a as extension for shared libraries through AIX4.2
13410       # and later when we are not doing run time linking.
13411       library_names_spec='${libname}${release}.a $libname.a'
13412       soname_spec='${libname}${release}${shared_ext}$major'
13413     fi
13414     shlibpath_var=LIBPATH
13415   fi
13416   ;;
13417
13418 amigaos*)
13419   library_names_spec='$libname.ixlibrary $libname.a'
13420   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13421   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'
13422   ;;
13423
13424 beos*)
13425   library_names_spec='${libname}${shared_ext}'
13426   dynamic_linker="$host_os ld.so"
13427   shlibpath_var=LIBRARY_PATH
13428   ;;
13429
13430 bsdi[45]*)
13431   version_type=linux
13432   need_version=no
13433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13434   soname_spec='${libname}${release}${shared_ext}$major'
13435   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13436   shlibpath_var=LD_LIBRARY_PATH
13437   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13438   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13439   # the default ld.so.conf also contains /usr/contrib/lib and
13440   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13441   # libtool to hard-code these into programs
13442   ;;
13443
13444 cygwin* | mingw* | pw32*)
13445   version_type=windows
13446   shrext_cmds=".dll"
13447   need_version=no
13448   need_lib_prefix=no
13449
13450   case $GCC,$host_os in
13451   yes,cygwin* | yes,mingw* | yes,pw32*)
13452     library_names_spec='$libname.dll.a'
13453     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13454     postinstall_cmds='base_file=`basename \${file}`~
13455       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13456       dldir=$destdir/`dirname \$dlpath`~
13457       test -d \$dldir || mkdir -p \$dldir~
13458       $install_prog $dir/$dlname \$dldir/$dlname~
13459       chmod a+x \$dldir/$dlname'
13460     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13461       dlpath=$dir/\$dldll~
13462        $rm \$dlpath'
13463     shlibpath_overrides_runpath=yes
13464
13465     case $host_os in
13466     cygwin*)
13467       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13468       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13469       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13470       ;;
13471     mingw*)
13472       # MinGW DLLs use traditional 'lib' prefix
13473       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13474       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13475       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13476         # It is most probably a Windows format PATH printed by
13477         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13478         # path with ; separators, and with drive letters. We can handle the
13479         # drive letters (cygwin fileutils understands them), so leave them,
13480         # especially as we might pass files found there to a mingw objdump,
13481         # which wouldn't understand a cygwinified path. Ahh.
13482         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13483       else
13484         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13485       fi
13486       ;;
13487     pw32*)
13488       # pw32 DLLs use 'pw' prefix rather than 'lib'
13489       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13490       ;;
13491     esac
13492     ;;
13493
13494   *)
13495     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13496     ;;
13497   esac
13498   dynamic_linker='Win32 ld.exe'
13499   # FIXME: first we should search . and the directory the executable is in
13500   shlibpath_var=PATH
13501   ;;
13502
13503 darwin* | rhapsody*)
13504   dynamic_linker="$host_os dyld"
13505   version_type=darwin
13506   need_lib_prefix=no
13507   need_version=no
13508   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13509   soname_spec='${libname}${release}${major}$shared_ext'
13510   shlibpath_overrides_runpath=yes
13511   shlibpath_var=DYLD_LIBRARY_PATH
13512   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13513   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13514   if test "$GCC" = yes; then
13515     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"`
13516   else
13517     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13518   fi
13519   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13520   ;;
13521
13522 dgux*)
13523   version_type=linux
13524   need_lib_prefix=no
13525   need_version=no
13526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13527   soname_spec='${libname}${release}${shared_ext}$major'
13528   shlibpath_var=LD_LIBRARY_PATH
13529   ;;
13530
13531 freebsd1*)
13532   dynamic_linker=no
13533   ;;
13534
13535 kfreebsd*-gnu)
13536   version_type=linux
13537   need_lib_prefix=no
13538   need_version=no
13539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13540   soname_spec='${libname}${release}${shared_ext}$major'
13541   shlibpath_var=LD_LIBRARY_PATH
13542   shlibpath_overrides_runpath=no
13543   hardcode_into_libs=yes
13544   dynamic_linker='GNU ld.so'
13545   ;;
13546
13547 freebsd* | dragonfly*)
13548   # DragonFly does not have aout.  When/if they implement a new
13549   # versioning mechanism, adjust this.
13550   if test -x /usr/bin/objformat; then
13551     objformat=`/usr/bin/objformat`
13552   else
13553     case $host_os in
13554     freebsd[123]*) objformat=aout ;;
13555     *) objformat=elf ;;
13556     esac
13557   fi
13558   version_type=freebsd-$objformat
13559   case $version_type in
13560     freebsd-elf*)
13561       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13562       need_version=no
13563       need_lib_prefix=no
13564       ;;
13565     freebsd-*)
13566       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13567       need_version=yes
13568       ;;
13569   esac
13570   shlibpath_var=LD_LIBRARY_PATH
13571   case $host_os in
13572   freebsd2*)
13573     shlibpath_overrides_runpath=yes
13574     ;;
13575   freebsd3.[01]* | freebsdelf3.[01]*)
13576     shlibpath_overrides_runpath=yes
13577     hardcode_into_libs=yes
13578     ;;
13579   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13580   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13581     shlibpath_overrides_runpath=no
13582     hardcode_into_libs=yes
13583     ;;
13584   freebsd*) # from 4.6 on
13585     shlibpath_overrides_runpath=yes
13586     hardcode_into_libs=yes
13587     ;;
13588   esac
13589   ;;
13590
13591 gnu*)
13592   version_type=linux
13593   need_lib_prefix=no
13594   need_version=no
13595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13596   soname_spec='${libname}${release}${shared_ext}$major'
13597   shlibpath_var=LD_LIBRARY_PATH
13598   hardcode_into_libs=yes
13599   ;;
13600
13601 hpux9* | hpux10* | hpux11*)
13602   # Give a soname corresponding to the major version so that dld.sl refuses to
13603   # link against other versions.
13604   version_type=sunos
13605   need_lib_prefix=no
13606   need_version=no
13607   case $host_cpu in
13608   ia64*)
13609     shrext_cmds='.so'
13610     hardcode_into_libs=yes
13611     dynamic_linker="$host_os dld.so"
13612     shlibpath_var=LD_LIBRARY_PATH
13613     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615     soname_spec='${libname}${release}${shared_ext}$major'
13616     if test "X$HPUX_IA64_MODE" = X32; then
13617       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13618     else
13619       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13620     fi
13621     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13622     ;;
13623    hppa*64*)
13624      shrext_cmds='.sl'
13625      hardcode_into_libs=yes
13626      dynamic_linker="$host_os dld.sl"
13627      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13628      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13629      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13630      soname_spec='${libname}${release}${shared_ext}$major'
13631      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13632      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13633      ;;
13634    *)
13635     shrext_cmds='.sl'
13636     dynamic_linker="$host_os dld.sl"
13637     shlibpath_var=SHLIB_PATH
13638     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13639     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13640     soname_spec='${libname}${release}${shared_ext}$major'
13641     ;;
13642   esac
13643   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13644   postinstall_cmds='chmod 555 $lib'
13645   ;;
13646
13647 interix3*)
13648   version_type=linux
13649   need_lib_prefix=no
13650   need_version=no
13651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13652   soname_spec='${libname}${release}${shared_ext}$major'
13653   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13654   shlibpath_var=LD_LIBRARY_PATH
13655   shlibpath_overrides_runpath=no
13656   hardcode_into_libs=yes
13657   ;;
13658
13659 irix5* | irix6* | nonstopux*)
13660   case $host_os in
13661     nonstopux*) version_type=nonstopux ;;
13662     *)
13663         if test "$lt_cv_prog_gnu_ld" = yes; then
13664                 version_type=linux
13665         else
13666                 version_type=irix
13667         fi ;;
13668   esac
13669   need_lib_prefix=no
13670   need_version=no
13671   soname_spec='${libname}${release}${shared_ext}$major'
13672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13673   case $host_os in
13674   irix5* | nonstopux*)
13675     libsuff= shlibsuff=
13676     ;;
13677   *)
13678     case $LD in # libtool.m4 will add one of these switches to LD
13679     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13680       libsuff= shlibsuff= libmagic=32-bit;;
13681     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13682       libsuff=32 shlibsuff=N32 libmagic=N32;;
13683     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13684       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13685     *) libsuff= shlibsuff= libmagic=never-match;;
13686     esac
13687     ;;
13688   esac
13689   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13690   shlibpath_overrides_runpath=no
13691   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13692   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13693   hardcode_into_libs=yes
13694   ;;
13695
13696 # No shared lib support for Linux oldld, aout, or coff.
13697 linux*oldld* | linux*aout* | linux*coff*)
13698   dynamic_linker=no
13699   ;;
13700
13701 # This must be Linux ELF.
13702 linux*)
13703   version_type=linux
13704   need_lib_prefix=no
13705   need_version=no
13706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13707   soname_spec='${libname}${release}${shared_ext}$major'
13708   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13709   shlibpath_var=LD_LIBRARY_PATH
13710   shlibpath_overrides_runpath=no
13711   # This implies no fast_install, which is unacceptable.
13712   # Some rework will be needed to allow for fast_install
13713   # before this can be enabled.
13714   hardcode_into_libs=yes
13715
13716   # Append ld.so.conf contents to the search path
13717   if test -f /etc/ld.so.conf; then
13718     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' ' '`
13719     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13720   fi
13721
13722   # We used to test for /lib/ld.so.1 and disable shared libraries on
13723   # powerpc, because MkLinux only supported shared libraries with the
13724   # GNU dynamic linker.  Since this was broken with cross compilers,
13725   # most powerpc-linux boxes support dynamic linking these days and
13726   # people can always --disable-shared, the test was removed, and we
13727   # assume the GNU/Linux dynamic linker is in use.
13728   dynamic_linker='GNU/Linux ld.so'
13729   ;;
13730
13731 knetbsd*-gnu)
13732   version_type=linux
13733   need_lib_prefix=no
13734   need_version=no
13735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13736   soname_spec='${libname}${release}${shared_ext}$major'
13737   shlibpath_var=LD_LIBRARY_PATH
13738   shlibpath_overrides_runpath=no
13739   hardcode_into_libs=yes
13740   dynamic_linker='GNU ld.so'
13741   ;;
13742
13743 netbsd*)
13744   version_type=sunos
13745   need_lib_prefix=no
13746   need_version=no
13747   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13749     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13750     dynamic_linker='NetBSD (a.out) ld.so'
13751   else
13752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13753     soname_spec='${libname}${release}${shared_ext}$major'
13754     dynamic_linker='NetBSD ld.elf_so'
13755   fi
13756   shlibpath_var=LD_LIBRARY_PATH
13757   shlibpath_overrides_runpath=yes
13758   hardcode_into_libs=yes
13759   ;;
13760
13761 newsos6)
13762   version_type=linux
13763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764   shlibpath_var=LD_LIBRARY_PATH
13765   shlibpath_overrides_runpath=yes
13766   ;;
13767
13768 nto-qnx*)
13769   version_type=linux
13770   need_lib_prefix=no
13771   need_version=no
13772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13773   soname_spec='${libname}${release}${shared_ext}$major'
13774   shlibpath_var=LD_LIBRARY_PATH
13775   shlibpath_overrides_runpath=yes
13776   ;;
13777
13778 openbsd*)
13779   version_type=sunos
13780   sys_lib_dlsearch_path_spec="/usr/lib"
13781   need_lib_prefix=no
13782   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13783   case $host_os in
13784     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13785     *)                         need_version=no  ;;
13786   esac
13787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13788   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13789   shlibpath_var=LD_LIBRARY_PATH
13790   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13791     case $host_os in
13792       openbsd2.[89] | openbsd2.[89].*)
13793         shlibpath_overrides_runpath=no
13794         ;;
13795       *)
13796         shlibpath_overrides_runpath=yes
13797         ;;
13798       esac
13799   else
13800     shlibpath_overrides_runpath=yes
13801   fi
13802   ;;
13803
13804 os2*)
13805   libname_spec='$name'
13806   shrext_cmds=".dll"
13807   need_lib_prefix=no
13808   library_names_spec='$libname${shared_ext} $libname.a'
13809   dynamic_linker='OS/2 ld.exe'
13810   shlibpath_var=LIBPATH
13811   ;;
13812
13813 osf3* | osf4* | osf5*)
13814   version_type=osf
13815   need_lib_prefix=no
13816   need_version=no
13817   soname_spec='${libname}${release}${shared_ext}$major'
13818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13819   shlibpath_var=LD_LIBRARY_PATH
13820   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13821   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13822   ;;
13823
13824 solaris*)
13825   version_type=linux
13826   need_lib_prefix=no
13827   need_version=no
13828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13829   soname_spec='${libname}${release}${shared_ext}$major'
13830   shlibpath_var=LD_LIBRARY_PATH
13831   shlibpath_overrides_runpath=yes
13832   hardcode_into_libs=yes
13833   # ldd complains unless libraries are executable
13834   postinstall_cmds='chmod +x $lib'
13835   ;;
13836
13837 sunos4*)
13838   version_type=sunos
13839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13840   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13841   shlibpath_var=LD_LIBRARY_PATH
13842   shlibpath_overrides_runpath=yes
13843   if test "$with_gnu_ld" = yes; then
13844     need_lib_prefix=no
13845   fi
13846   need_version=yes
13847   ;;
13848
13849 sysv4 | sysv4.3*)
13850   version_type=linux
13851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13852   soname_spec='${libname}${release}${shared_ext}$major'
13853   shlibpath_var=LD_LIBRARY_PATH
13854   case $host_vendor in
13855     sni)
13856       shlibpath_overrides_runpath=no
13857       need_lib_prefix=no
13858       export_dynamic_flag_spec='${wl}-Blargedynsym'
13859       runpath_var=LD_RUN_PATH
13860       ;;
13861     siemens)
13862       need_lib_prefix=no
13863       ;;
13864     motorola)
13865       need_lib_prefix=no
13866       need_version=no
13867       shlibpath_overrides_runpath=no
13868       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13869       ;;
13870   esac
13871   ;;
13872
13873 sysv4*MP*)
13874   if test -d /usr/nec ;then
13875     version_type=linux
13876     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13877     soname_spec='$libname${shared_ext}.$major'
13878     shlibpath_var=LD_LIBRARY_PATH
13879   fi
13880   ;;
13881
13882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13883   version_type=freebsd-elf
13884   need_lib_prefix=no
13885   need_version=no
13886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13887   soname_spec='${libname}${release}${shared_ext}$major'
13888   shlibpath_var=LD_LIBRARY_PATH
13889   hardcode_into_libs=yes
13890   if test "$with_gnu_ld" = yes; then
13891     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13892     shlibpath_overrides_runpath=no
13893   else
13894     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13895     shlibpath_overrides_runpath=yes
13896     case $host_os in
13897       sco3.2v5*)
13898         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13899         ;;
13900     esac
13901   fi
13902   sys_lib_dlsearch_path_spec='/usr/lib'
13903   ;;
13904
13905 uts4*)
13906   version_type=linux
13907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13908   soname_spec='${libname}${release}${shared_ext}$major'
13909   shlibpath_var=LD_LIBRARY_PATH
13910   ;;
13911
13912 *)
13913   dynamic_linker=no
13914   ;;
13915 esac
13916 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13917 echo "${ECHO_T}$dynamic_linker" >&6; }
13918 test "$dynamic_linker" = no && can_build_shared=no
13919
13920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13921 if test "$GCC" = yes; then
13922   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13923 fi
13924
13925 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13926 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13927 hardcode_action_CXX=
13928 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13929    test -n "$runpath_var_CXX" || \
13930    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13931
13932   # We can hardcode non-existant directories.
13933   if test "$hardcode_direct_CXX" != no &&
13934      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13935      # have to relink, otherwise we might link with an installed library
13936      # when we should be linking with a yet-to-be-installed one
13937      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13938      test "$hardcode_minus_L_CXX" != no; then
13939     # Linking always hardcodes the temporary library directory.
13940     hardcode_action_CXX=relink
13941   else
13942     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13943     hardcode_action_CXX=immediate
13944   fi
13945 else
13946   # We cannot hardcode anything, or else we can only hardcode existing
13947   # directories.
13948   hardcode_action_CXX=unsupported
13949 fi
13950 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13951 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13952
13953 if test "$hardcode_action_CXX" = relink; then
13954   # Fast installation is not supported
13955   enable_fast_install=no
13956 elif test "$shlibpath_overrides_runpath" = yes ||
13957      test "$enable_shared" = no; then
13958   # Fast installation is not necessary
13959   enable_fast_install=needless
13960 fi
13961
13962
13963 # The else clause should only fire when bootstrapping the
13964 # libtool distribution, otherwise you forgot to ship ltmain.sh
13965 # with your package, and you will get complaints that there are
13966 # no rules to generate ltmain.sh.
13967 if test -f "$ltmain"; then
13968   # See if we are running on zsh, and set the options which allow our commands through
13969   # without removal of \ escapes.
13970   if test -n "${ZSH_VERSION+set}" ; then
13971     setopt NO_GLOB_SUBST
13972   fi
13973   # Now quote all the things that may contain metacharacters while being
13974   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13975   # variables and quote the copies for generation of the libtool script.
13976   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13977     SED SHELL STRIP \
13978     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13979     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13980     deplibs_check_method reload_flag reload_cmds need_locks \
13981     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13982     lt_cv_sys_global_symbol_to_c_name_address \
13983     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13984     old_postinstall_cmds old_postuninstall_cmds \
13985     compiler_CXX \
13986     CC_CXX \
13987     LD_CXX \
13988     lt_prog_compiler_wl_CXX \
13989     lt_prog_compiler_pic_CXX \
13990     lt_prog_compiler_static_CXX \
13991     lt_prog_compiler_no_builtin_flag_CXX \
13992     export_dynamic_flag_spec_CXX \
13993     thread_safe_flag_spec_CXX \
13994     whole_archive_flag_spec_CXX \
13995     enable_shared_with_static_runtimes_CXX \
13996     old_archive_cmds_CXX \
13997     old_archive_from_new_cmds_CXX \
13998     predep_objects_CXX \
13999     postdep_objects_CXX \
14000     predeps_CXX \
14001     postdeps_CXX \
14002     compiler_lib_search_path_CXX \
14003     archive_cmds_CXX \
14004     archive_expsym_cmds_CXX \
14005     postinstall_cmds_CXX \
14006     postuninstall_cmds_CXX \
14007     old_archive_from_expsyms_cmds_CXX \
14008     allow_undefined_flag_CXX \
14009     no_undefined_flag_CXX \
14010     export_symbols_cmds_CXX \
14011     hardcode_libdir_flag_spec_CXX \
14012     hardcode_libdir_flag_spec_ld_CXX \
14013     hardcode_libdir_separator_CXX \
14014     hardcode_automatic_CXX \
14015     module_cmds_CXX \
14016     module_expsym_cmds_CXX \
14017     lt_cv_prog_compiler_c_o_CXX \
14018     exclude_expsyms_CXX \
14019     include_expsyms_CXX; do
14020
14021     case $var in
14022     old_archive_cmds_CXX | \
14023     old_archive_from_new_cmds_CXX | \
14024     archive_cmds_CXX | \
14025     archive_expsym_cmds_CXX | \
14026     module_cmds_CXX | \
14027     module_expsym_cmds_CXX | \
14028     old_archive_from_expsyms_cmds_CXX | \
14029     export_symbols_cmds_CXX | \
14030     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14031     postinstall_cmds | postuninstall_cmds | \
14032     old_postinstall_cmds | old_postuninstall_cmds | \
14033     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14034       # Double-quote double-evaled strings.
14035       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14036       ;;
14037     *)
14038       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14039       ;;
14040     esac
14041   done
14042
14043   case $lt_echo in
14044   *'\$0 --fallback-echo"')
14045     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14046     ;;
14047   esac
14048
14049 cfgfile="$ofile"
14050
14051   cat <<__EOF__ >> "$cfgfile"
14052 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14053
14054 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14055
14056 # Shell to use when invoking shell scripts.
14057 SHELL=$lt_SHELL
14058
14059 # Whether or not to build shared libraries.
14060 build_libtool_libs=$enable_shared
14061
14062 # Whether or not to build static libraries.
14063 build_old_libs=$enable_static
14064
14065 # Whether or not to add -lc for building shared libraries.
14066 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14067
14068 # Whether or not to disallow shared libs when runtime libs are static
14069 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14070
14071 # Whether or not to optimize for fast installation.
14072 fast_install=$enable_fast_install
14073
14074 # The host system.
14075 host_alias=$host_alias
14076 host=$host
14077 host_os=$host_os
14078
14079 # The build system.
14080 build_alias=$build_alias
14081 build=$build
14082 build_os=$build_os
14083
14084 # An echo program that does not interpret backslashes.
14085 echo=$lt_echo
14086
14087 # The archiver.
14088 AR=$lt_AR
14089 AR_FLAGS=$lt_AR_FLAGS
14090
14091 # A C compiler.
14092 LTCC=$lt_LTCC
14093
14094 # LTCC compiler flags.
14095 LTCFLAGS=$lt_LTCFLAGS
14096
14097 # A language-specific compiler.
14098 CC=$lt_compiler_CXX
14099
14100 # Is the compiler the GNU C compiler?
14101 with_gcc=$GCC_CXX
14102
14103 # An ERE matcher.
14104 EGREP=$lt_EGREP
14105
14106 # The linker used to build libraries.
14107 LD=$lt_LD_CXX
14108
14109 # Whether we need hard or soft links.
14110 LN_S=$lt_LN_S
14111
14112 # A BSD-compatible nm program.
14113 NM=$lt_NM
14114
14115 # A symbol stripping program
14116 STRIP=$lt_STRIP
14117
14118 # Used to examine libraries when file_magic_cmd begins "file"
14119 MAGIC_CMD=$MAGIC_CMD
14120
14121 # Used on cygwin: DLL creation program.
14122 DLLTOOL="$DLLTOOL"
14123
14124 # Used on cygwin: object dumper.
14125 OBJDUMP="$OBJDUMP"
14126
14127 # Used on cygwin: assembler.
14128 AS="$AS"
14129
14130 # The name of the directory that contains temporary libtool files.
14131 objdir=$objdir
14132
14133 # How to create reloadable object files.
14134 reload_flag=$lt_reload_flag
14135 reload_cmds=$lt_reload_cmds
14136
14137 # How to pass a linker flag through the compiler.
14138 wl=$lt_lt_prog_compiler_wl_CXX
14139
14140 # Object file suffix (normally "o").
14141 objext="$ac_objext"
14142
14143 # Old archive suffix (normally "a").
14144 libext="$libext"
14145
14146 # Shared library suffix (normally ".so").
14147 shrext_cmds='$shrext_cmds'
14148
14149 # Executable file suffix (normally "").
14150 exeext="$exeext"
14151
14152 # Additional compiler flags for building library objects.
14153 pic_flag=$lt_lt_prog_compiler_pic_CXX
14154 pic_mode=$pic_mode
14155
14156 # What is the maximum length of a command?
14157 max_cmd_len=$lt_cv_sys_max_cmd_len
14158
14159 # Does compiler simultaneously support -c and -o options?
14160 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14161
14162 # Must we lock files when doing compilation?
14163 need_locks=$lt_need_locks
14164
14165 # Do we need the lib prefix for modules?
14166 need_lib_prefix=$need_lib_prefix
14167
14168 # Do we need a version for libraries?
14169 need_version=$need_version
14170
14171 # Whether dlopen is supported.
14172 dlopen_support=$enable_dlopen
14173
14174 # Whether dlopen of programs is supported.
14175 dlopen_self=$enable_dlopen_self
14176
14177 # Whether dlopen of statically linked programs is supported.
14178 dlopen_self_static=$enable_dlopen_self_static
14179
14180 # Compiler flag to prevent dynamic linking.
14181 link_static_flag=$lt_lt_prog_compiler_static_CXX
14182
14183 # Compiler flag to turn off builtin functions.
14184 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14185
14186 # Compiler flag to allow reflexive dlopens.
14187 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14188
14189 # Compiler flag to generate shared objects directly from archives.
14190 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14191
14192 # Compiler flag to generate thread-safe objects.
14193 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14194
14195 # Library versioning type.
14196 version_type=$version_type
14197
14198 # Format of library name prefix.
14199 libname_spec=$lt_libname_spec
14200
14201 # List of archive names.  First name is the real one, the rest are links.
14202 # The last name is the one that the linker finds with -lNAME.
14203 library_names_spec=$lt_library_names_spec
14204
14205 # The coded name of the library, if different from the real name.
14206 soname_spec=$lt_soname_spec
14207
14208 # Commands used to build and install an old-style archive.
14209 RANLIB=$lt_RANLIB
14210 old_archive_cmds=$lt_old_archive_cmds_CXX
14211 old_postinstall_cmds=$lt_old_postinstall_cmds
14212 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14213
14214 # Create an old-style archive from a shared archive.
14215 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14216
14217 # Create a temporary old-style archive to link instead of a shared archive.
14218 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14219
14220 # Commands used to build and install a shared archive.
14221 archive_cmds=$lt_archive_cmds_CXX
14222 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14223 postinstall_cmds=$lt_postinstall_cmds
14224 postuninstall_cmds=$lt_postuninstall_cmds
14225
14226 # Commands used to build a loadable module (assumed same as above if empty)
14227 module_cmds=$lt_module_cmds_CXX
14228 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14229
14230 # Commands to strip libraries.
14231 old_striplib=$lt_old_striplib
14232 striplib=$lt_striplib
14233
14234 # Dependencies to place before the objects being linked to create a
14235 # shared library.
14236 predep_objects=$lt_predep_objects_CXX
14237
14238 # Dependencies to place after the objects being linked to create a
14239 # shared library.
14240 postdep_objects=$lt_postdep_objects_CXX
14241
14242 # Dependencies to place before the objects being linked to create a
14243 # shared library.
14244 predeps=$lt_predeps_CXX
14245
14246 # Dependencies to place after the objects being linked to create a
14247 # shared library.
14248 postdeps=$lt_postdeps_CXX
14249
14250 # The library search path used internally by the compiler when linking
14251 # a shared library.
14252 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14253
14254 # Method to check whether dependent libraries are shared objects.
14255 deplibs_check_method=$lt_deplibs_check_method
14256
14257 # Command to use when deplibs_check_method == file_magic.
14258 file_magic_cmd=$lt_file_magic_cmd
14259
14260 # Flag that allows shared libraries with undefined symbols to be built.
14261 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14262
14263 # Flag that forces no undefined symbols.
14264 no_undefined_flag=$lt_no_undefined_flag_CXX
14265
14266 # Commands used to finish a libtool library installation in a directory.
14267 finish_cmds=$lt_finish_cmds
14268
14269 # Same as above, but a single script fragment to be evaled but not shown.
14270 finish_eval=$lt_finish_eval
14271
14272 # Take the output of nm and produce a listing of raw symbols and C names.
14273 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14274
14275 # Transform the output of nm in a proper C declaration
14276 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14277
14278 # Transform the output of nm in a C name address pair
14279 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14280
14281 # This is the shared library runtime path variable.
14282 runpath_var=$runpath_var
14283
14284 # This is the shared library path variable.
14285 shlibpath_var=$shlibpath_var
14286
14287 # Is shlibpath searched before the hard-coded library search path?
14288 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14289
14290 # How to hardcode a shared library path into an executable.
14291 hardcode_action=$hardcode_action_CXX
14292
14293 # Whether we should hardcode library paths into libraries.
14294 hardcode_into_libs=$hardcode_into_libs
14295
14296 # Flag to hardcode \$libdir into a binary during linking.
14297 # This must work even if \$libdir does not exist.
14298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14299
14300 # If ld is used when linking, flag to hardcode \$libdir into
14301 # a binary during linking. This must work even if \$libdir does
14302 # not exist.
14303 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14304
14305 # Whether we need a single -rpath flag with a separated argument.
14306 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14307
14308 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14309 # resulting binary.
14310 hardcode_direct=$hardcode_direct_CXX
14311
14312 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14313 # resulting binary.
14314 hardcode_minus_L=$hardcode_minus_L_CXX
14315
14316 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14317 # the resulting binary.
14318 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14319
14320 # Set to yes if building a shared library automatically hardcodes DIR into the library
14321 # and all subsequent libraries and executables linked against it.
14322 hardcode_automatic=$hardcode_automatic_CXX
14323
14324 # Variables whose values should be saved in libtool wrapper scripts and
14325 # restored at relink time.
14326 variables_saved_for_relink="$variables_saved_for_relink"
14327
14328 # Whether libtool must link a program against all its dependency libraries.
14329 link_all_deplibs=$link_all_deplibs_CXX
14330
14331 # Compile-time system search path for libraries
14332 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14333
14334 # Run-time system search path for libraries
14335 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14336
14337 # Fix the shell variable \$srcfile for the compiler.
14338 fix_srcfile_path="$fix_srcfile_path_CXX"
14339
14340 # Set to yes if exported symbols are required.
14341 always_export_symbols=$always_export_symbols_CXX
14342
14343 # The commands to list exported symbols.
14344 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14345
14346 # The commands to extract the exported symbol list from a shared archive.
14347 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14348
14349 # Symbols that should not be listed in the preloaded symbols.
14350 exclude_expsyms=$lt_exclude_expsyms_CXX
14351
14352 # Symbols that must always be exported.
14353 include_expsyms=$lt_include_expsyms_CXX
14354
14355 # ### END LIBTOOL TAG CONFIG: $tagname
14356
14357 __EOF__
14358
14359
14360 else
14361   # If there is no Makefile yet, we rely on a make rule to execute
14362   # `config.status --recheck' to rerun these tests and create the
14363   # libtool script then.
14364   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14365   if test -f "$ltmain_in"; then
14366     test -f Makefile && make "$ltmain"
14367   fi
14368 fi
14369
14370
14371 ac_ext=c
14372 ac_cpp='$CPP $CPPFLAGS'
14373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14376
14377 CC=$lt_save_CC
14378 LDCXX=$LD
14379 LD=$lt_save_LD
14380 GCC=$lt_save_GCC
14381 with_gnu_ldcxx=$with_gnu_ld
14382 with_gnu_ld=$lt_save_with_gnu_ld
14383 lt_cv_path_LDCXX=$lt_cv_path_LD
14384 lt_cv_path_LD=$lt_save_path_LD
14385 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14386 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14387
14388         else
14389           tagname=""
14390         fi
14391         ;;
14392
14393       F77)
14394         if test -n "$F77" && test "X$F77" != "Xno"; then
14395
14396 ac_ext=f
14397 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14398 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14399 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14400
14401
14402 archive_cmds_need_lc_F77=no
14403 allow_undefined_flag_F77=
14404 always_export_symbols_F77=no
14405 archive_expsym_cmds_F77=
14406 export_dynamic_flag_spec_F77=
14407 hardcode_direct_F77=no
14408 hardcode_libdir_flag_spec_F77=
14409 hardcode_libdir_flag_spec_ld_F77=
14410 hardcode_libdir_separator_F77=
14411 hardcode_minus_L_F77=no
14412 hardcode_automatic_F77=no
14413 module_cmds_F77=
14414 module_expsym_cmds_F77=
14415 link_all_deplibs_F77=unknown
14416 old_archive_cmds_F77=$old_archive_cmds
14417 no_undefined_flag_F77=
14418 whole_archive_flag_spec_F77=
14419 enable_shared_with_static_runtimes_F77=no
14420
14421 # Source file extension for f77 test sources.
14422 ac_ext=f
14423
14424 # Object file extension for compiled f77 test sources.
14425 objext=o
14426 objext_F77=$objext
14427
14428 # Code to be used in simple compile tests
14429 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14430
14431 # Code to be used in simple link tests
14432 lt_simple_link_test_code="      program t\n      end\n"
14433
14434 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14435
14436 # If no C compiler was specified, use CC.
14437 LTCC=${LTCC-"$CC"}
14438
14439 # If no C compiler flags were specified, use CFLAGS.
14440 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14441
14442 # Allow CC to be a program name with arguments.
14443 compiler=$CC
14444
14445
14446 # save warnings/boilerplate of simple test code
14447 ac_outfile=conftest.$ac_objext
14448 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14449 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14450 _lt_compiler_boilerplate=`cat conftest.err`
14451 $rm conftest*
14452
14453 ac_outfile=conftest.$ac_objext
14454 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14455 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14456 _lt_linker_boilerplate=`cat conftest.err`
14457 $rm conftest*
14458
14459
14460 # Allow CC to be a program name with arguments.
14461 lt_save_CC="$CC"
14462 CC=${F77-"f77"}
14463 compiler=$CC
14464 compiler_F77=$CC
14465 for cc_temp in $compiler""; do
14466   case $cc_temp in
14467     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14468     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14469     \-*) ;;
14470     *) break;;
14471   esac
14472 done
14473 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14474
14475
14476 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14477 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14478 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14479 echo "${ECHO_T}$can_build_shared" >&6; }
14480
14481 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14482 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14483 test "$can_build_shared" = "no" && enable_shared=no
14484
14485 # On AIX, shared libraries and static libraries use the same namespace, and
14486 # are all built from PIC.
14487 case $host_os in
14488 aix3*)
14489   test "$enable_shared" = yes && enable_static=no
14490   if test -n "$RANLIB"; then
14491     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14492     postinstall_cmds='$RANLIB $lib'
14493   fi
14494   ;;
14495 aix4* | aix5*)
14496   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14497     test "$enable_shared" = yes && enable_static=no
14498   fi
14499   ;;
14500 esac
14501 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14502 echo "${ECHO_T}$enable_shared" >&6; }
14503
14504 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14505 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14506 # Make sure either enable_shared or enable_static is yes.
14507 test "$enable_shared" = yes || enable_static=yes
14508 { echo "$as_me:$LINENO: result: $enable_static" >&5
14509 echo "${ECHO_T}$enable_static" >&6; }
14510
14511 GCC_F77="$G77"
14512 LD_F77="$LD"
14513
14514 lt_prog_compiler_wl_F77=
14515 lt_prog_compiler_pic_F77=
14516 lt_prog_compiler_static_F77=
14517
14518 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14519 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14520
14521   if test "$GCC" = yes; then
14522     lt_prog_compiler_wl_F77='-Wl,'
14523     lt_prog_compiler_static_F77='-static'
14524
14525     case $host_os in
14526       aix*)
14527       # All AIX code is PIC.
14528       if test "$host_cpu" = ia64; then
14529         # AIX 5 now supports IA64 processor
14530         lt_prog_compiler_static_F77='-Bstatic'
14531       fi
14532       ;;
14533
14534     amigaos*)
14535       # FIXME: we need at least 68020 code to build shared libraries, but
14536       # adding the `-m68020' flag to GCC prevents building anything better,
14537       # like `-m68040'.
14538       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14539       ;;
14540
14541     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14542       # PIC is the default for these OSes.
14543       ;;
14544
14545     mingw* | pw32* | os2*)
14546       # This hack is so that the source file can tell whether it is being
14547       # built for inclusion in a dll (and should export symbols for example).
14548       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14549       ;;
14550
14551     darwin* | rhapsody*)
14552       # PIC is the default on this platform
14553       # Common symbols not allowed in MH_DYLIB files
14554       lt_prog_compiler_pic_F77='-fno-common'
14555       ;;
14556
14557     interix3*)
14558       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14559       # Instead, we relocate shared libraries at runtime.
14560       ;;
14561
14562     msdosdjgpp*)
14563       # Just because we use GCC doesn't mean we suddenly get shared libraries
14564       # on systems that don't support them.
14565       lt_prog_compiler_can_build_shared_F77=no
14566       enable_shared=no
14567       ;;
14568
14569     sysv4*MP*)
14570       if test -d /usr/nec; then
14571         lt_prog_compiler_pic_F77=-Kconform_pic
14572       fi
14573       ;;
14574
14575     hpux*)
14576       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14577       # not for PA HP-UX.
14578       case $host_cpu in
14579       hppa*64*|ia64*)
14580         # +Z the default
14581         ;;
14582       *)
14583         lt_prog_compiler_pic_F77='-fPIC'
14584         ;;
14585       esac
14586       ;;
14587
14588     *)
14589       lt_prog_compiler_pic_F77='-fPIC'
14590       ;;
14591     esac
14592   else
14593     # PORTME Check for flag to pass linker flags through the system compiler.
14594     case $host_os in
14595     aix*)
14596       lt_prog_compiler_wl_F77='-Wl,'
14597       if test "$host_cpu" = ia64; then
14598         # AIX 5 now supports IA64 processor
14599         lt_prog_compiler_static_F77='-Bstatic'
14600       else
14601         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14602       fi
14603       ;;
14604       darwin*)
14605         # PIC is the default on this platform
14606         # Common symbols not allowed in MH_DYLIB files
14607        case $cc_basename in
14608          xlc*)
14609          lt_prog_compiler_pic_F77='-qnocommon'
14610          lt_prog_compiler_wl_F77='-Wl,'
14611          ;;
14612        esac
14613        ;;
14614
14615     mingw* | pw32* | os2*)
14616       # This hack is so that the source file can tell whether it is being
14617       # built for inclusion in a dll (and should export symbols for example).
14618       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14619       ;;
14620
14621     hpux9* | hpux10* | hpux11*)
14622       lt_prog_compiler_wl_F77='-Wl,'
14623       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14624       # not for PA HP-UX.
14625       case $host_cpu in
14626       hppa*64*|ia64*)
14627         # +Z the default
14628         ;;
14629       *)
14630         lt_prog_compiler_pic_F77='+Z'
14631         ;;
14632       esac
14633       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14634       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14635       ;;
14636
14637     irix5* | irix6* | nonstopux*)
14638       lt_prog_compiler_wl_F77='-Wl,'
14639       # PIC (with -KPIC) is the default.
14640       lt_prog_compiler_static_F77='-non_shared'
14641       ;;
14642
14643     newsos6)
14644       lt_prog_compiler_pic_F77='-KPIC'
14645       lt_prog_compiler_static_F77='-Bstatic'
14646       ;;
14647
14648     linux*)
14649       case $cc_basename in
14650       icc* | ecc*)
14651         lt_prog_compiler_wl_F77='-Wl,'
14652         lt_prog_compiler_pic_F77='-KPIC'
14653         lt_prog_compiler_static_F77='-static'
14654         ;;
14655       pgcc* | pgf77* | pgf90* | pgf95*)
14656         # Portland Group compilers (*not* the Pentium gcc compiler,
14657         # which looks to be a dead project)
14658         lt_prog_compiler_wl_F77='-Wl,'
14659         lt_prog_compiler_pic_F77='-fpic'
14660         lt_prog_compiler_static_F77='-Bstatic'
14661         ;;
14662       ccc*)
14663         lt_prog_compiler_wl_F77='-Wl,'
14664         # All Alpha code is PIC.
14665         lt_prog_compiler_static_F77='-non_shared'
14666         ;;
14667       esac
14668       ;;
14669
14670     osf3* | osf4* | osf5*)
14671       lt_prog_compiler_wl_F77='-Wl,'
14672       # All OSF/1 code is PIC.
14673       lt_prog_compiler_static_F77='-non_shared'
14674       ;;
14675
14676     solaris*)
14677       lt_prog_compiler_pic_F77='-KPIC'
14678       lt_prog_compiler_static_F77='-Bstatic'
14679       case $cc_basename in
14680       f77* | f90* | f95*)
14681         lt_prog_compiler_wl_F77='-Qoption ld ';;
14682       *)
14683         lt_prog_compiler_wl_F77='-Wl,';;
14684       esac
14685       ;;
14686
14687     sunos4*)
14688       lt_prog_compiler_wl_F77='-Qoption ld '
14689       lt_prog_compiler_pic_F77='-PIC'
14690       lt_prog_compiler_static_F77='-Bstatic'
14691       ;;
14692
14693     sysv4 | sysv4.2uw2* | sysv4.3*)
14694       lt_prog_compiler_wl_F77='-Wl,'
14695       lt_prog_compiler_pic_F77='-KPIC'
14696       lt_prog_compiler_static_F77='-Bstatic'
14697       ;;
14698
14699     sysv4*MP*)
14700       if test -d /usr/nec ;then
14701         lt_prog_compiler_pic_F77='-Kconform_pic'
14702         lt_prog_compiler_static_F77='-Bstatic'
14703       fi
14704       ;;
14705
14706     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14707       lt_prog_compiler_wl_F77='-Wl,'
14708       lt_prog_compiler_pic_F77='-KPIC'
14709       lt_prog_compiler_static_F77='-Bstatic'
14710       ;;
14711
14712     unicos*)
14713       lt_prog_compiler_wl_F77='-Wl,'
14714       lt_prog_compiler_can_build_shared_F77=no
14715       ;;
14716
14717     uts4*)
14718       lt_prog_compiler_pic_F77='-pic'
14719       lt_prog_compiler_static_F77='-Bstatic'
14720       ;;
14721
14722     *)
14723       lt_prog_compiler_can_build_shared_F77=no
14724       ;;
14725     esac
14726   fi
14727
14728 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14729 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14730
14731 #
14732 # Check to make sure the PIC flag actually works.
14733 #
14734 if test -n "$lt_prog_compiler_pic_F77"; then
14735
14736 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14737 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14738 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14739   echo $ECHO_N "(cached) $ECHO_C" >&6
14740 else
14741   lt_prog_compiler_pic_works_F77=no
14742   ac_outfile=conftest.$ac_objext
14743    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14744    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14745    # Insert the option either (1) after the last *FLAGS variable, or
14746    # (2) before a word containing "conftest.", or (3) at the end.
14747    # Note that $ac_compile itself does not contain backslashes and begins
14748    # with a dollar sign (not a hyphen), so the echo should work correctly.
14749    # The option is referenced via a variable to avoid confusing sed.
14750    lt_compile=`echo "$ac_compile" | $SED \
14751    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14752    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14753    -e 's:$: $lt_compiler_flag:'`
14754    (eval echo "\"\$as_me:14754: $lt_compile\"" >&5)
14755    (eval "$lt_compile" 2>conftest.err)
14756    ac_status=$?
14757    cat conftest.err >&5
14758    echo "$as_me:14758: \$? = $ac_status" >&5
14759    if (exit $ac_status) && test -s "$ac_outfile"; then
14760      # The compiler can only warn and ignore the option if not recognized
14761      # So say no if there are warnings other than the usual output.
14762      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14763      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14764      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14765        lt_prog_compiler_pic_works_F77=yes
14766      fi
14767    fi
14768    $rm conftest*
14769
14770 fi
14771 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14772 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14773
14774 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14775     case $lt_prog_compiler_pic_F77 in
14776      "" | " "*) ;;
14777      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14778      esac
14779 else
14780     lt_prog_compiler_pic_F77=
14781      lt_prog_compiler_can_build_shared_F77=no
14782 fi
14783
14784 fi
14785 case $host_os in
14786   # For platforms which do not support PIC, -DPIC is meaningless:
14787   *djgpp*)
14788     lt_prog_compiler_pic_F77=
14789     ;;
14790   *)
14791     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14792     ;;
14793 esac
14794
14795 #
14796 # Check to make sure the static flag actually works.
14797 #
14798 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14799 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14800 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14801 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14802   echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804   lt_prog_compiler_static_works_F77=no
14805    save_LDFLAGS="$LDFLAGS"
14806    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14807    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14808    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14809      # The linker can only warn and ignore the option if not recognized
14810      # So say no if there are warnings
14811      if test -s conftest.err; then
14812        # Append any errors to the config.log.
14813        cat conftest.err 1>&5
14814        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14815        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14816        if diff conftest.exp conftest.er2 >/dev/null; then
14817          lt_prog_compiler_static_works_F77=yes
14818        fi
14819      else
14820        lt_prog_compiler_static_works_F77=yes
14821      fi
14822    fi
14823    $rm conftest*
14824    LDFLAGS="$save_LDFLAGS"
14825
14826 fi
14827 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14828 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14829
14830 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14831     :
14832 else
14833     lt_prog_compiler_static_F77=
14834 fi
14835
14836
14837 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14838 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14839 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14840   echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842   lt_cv_prog_compiler_c_o_F77=no
14843    $rm -r conftest 2>/dev/null
14844    mkdir conftest
14845    cd conftest
14846    mkdir out
14847    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14848
14849    lt_compiler_flag="-o out/conftest2.$ac_objext"
14850    # Insert the option either (1) after the last *FLAGS variable, or
14851    # (2) before a word containing "conftest.", or (3) at the end.
14852    # Note that $ac_compile itself does not contain backslashes and begins
14853    # with a dollar sign (not a hyphen), so the echo should work correctly.
14854    lt_compile=`echo "$ac_compile" | $SED \
14855    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14857    -e 's:$: $lt_compiler_flag:'`
14858    (eval echo "\"\$as_me:14858: $lt_compile\"" >&5)
14859    (eval "$lt_compile" 2>out/conftest.err)
14860    ac_status=$?
14861    cat out/conftest.err >&5
14862    echo "$as_me:14862: \$? = $ac_status" >&5
14863    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14864    then
14865      # The compiler can only warn and ignore the option if not recognized
14866      # So say no if there are warnings
14867      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14868      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14869      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14870        lt_cv_prog_compiler_c_o_F77=yes
14871      fi
14872    fi
14873    chmod u+w . 2>&5
14874    $rm conftest*
14875    # SGI C++ compiler will create directory out/ii_files/ for
14876    # template instantiation
14877    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14878    $rm out/* && rmdir out
14879    cd ..
14880    rmdir conftest
14881    $rm conftest*
14882
14883 fi
14884 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14885 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14886
14887
14888 hard_links="nottested"
14889 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14890   # do not overwrite the value of need_locks provided by the user
14891   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14892 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14893   hard_links=yes
14894   $rm conftest*
14895   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14896   touch conftest.a
14897   ln conftest.a conftest.b 2>&5 || hard_links=no
14898   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14899   { echo "$as_me:$LINENO: result: $hard_links" >&5
14900 echo "${ECHO_T}$hard_links" >&6; }
14901   if test "$hard_links" = no; then
14902     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14903 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14904     need_locks=warn
14905   fi
14906 else
14907   need_locks=no
14908 fi
14909
14910 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14911 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14912
14913   runpath_var=
14914   allow_undefined_flag_F77=
14915   enable_shared_with_static_runtimes_F77=no
14916   archive_cmds_F77=
14917   archive_expsym_cmds_F77=
14918   old_archive_From_new_cmds_F77=
14919   old_archive_from_expsyms_cmds_F77=
14920   export_dynamic_flag_spec_F77=
14921   whole_archive_flag_spec_F77=
14922   thread_safe_flag_spec_F77=
14923   hardcode_libdir_flag_spec_F77=
14924   hardcode_libdir_flag_spec_ld_F77=
14925   hardcode_libdir_separator_F77=
14926   hardcode_direct_F77=no
14927   hardcode_minus_L_F77=no
14928   hardcode_shlibpath_var_F77=unsupported
14929   link_all_deplibs_F77=unknown
14930   hardcode_automatic_F77=no
14931   module_cmds_F77=
14932   module_expsym_cmds_F77=
14933   always_export_symbols_F77=no
14934   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14935   # include_expsyms should be a list of space-separated symbols to be *always*
14936   # included in the symbol list
14937   include_expsyms_F77=
14938   # exclude_expsyms can be an extended regexp of symbols to exclude
14939   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14940   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14941   # as well as any symbol that contains `d'.
14942   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14943   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14944   # platforms (ab)use it in PIC code, but their linkers get confused if
14945   # the symbol is explicitly referenced.  Since portable code cannot
14946   # rely on this symbol name, it's probably fine to never include it in
14947   # preloaded symbol tables.
14948   extract_expsyms_cmds=
14949   # Just being paranoid about ensuring that cc_basename is set.
14950   for cc_temp in $compiler""; do
14951   case $cc_temp in
14952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14954     \-*) ;;
14955     *) break;;
14956   esac
14957 done
14958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14959
14960   case $host_os in
14961   cygwin* | mingw* | pw32*)
14962     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14963     # When not using gcc, we currently assume that we are using
14964     # Microsoft Visual C++.
14965     if test "$GCC" != yes; then
14966       with_gnu_ld=no
14967     fi
14968     ;;
14969   interix*)
14970     # we just hope/assume this is gcc and not c89 (= MSVC++)
14971     with_gnu_ld=yes
14972     ;;
14973   openbsd*)
14974     with_gnu_ld=no
14975     ;;
14976   esac
14977
14978   ld_shlibs_F77=yes
14979   if test "$with_gnu_ld" = yes; then
14980     # If archive_cmds runs LD, not CC, wlarc should be empty
14981     wlarc='${wl}'
14982
14983     # Set some defaults for GNU ld with shared library support. These
14984     # are reset later if shared libraries are not supported. Putting them
14985     # here allows them to be overridden if necessary.
14986     runpath_var=LD_RUN_PATH
14987     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14988     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14989     # ancient GNU ld didn't support --whole-archive et. al.
14990     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14991         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14992       else
14993         whole_archive_flag_spec_F77=
14994     fi
14995     supports_anon_versioning=no
14996     case `$LD -v 2>/dev/null` in
14997       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14998       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14999       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15000       *\ 2.11.*) ;; # other 2.11 versions
15001       *) supports_anon_versioning=yes ;;
15002     esac
15003
15004     # See if GNU ld supports shared libraries.
15005     case $host_os in
15006     aix3* | aix4* | aix5*)
15007       # On AIX/PPC, the GNU linker is very broken
15008       if test "$host_cpu" != ia64; then
15009         ld_shlibs_F77=no
15010         cat <<EOF 1>&2
15011
15012 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15013 *** to be unable to reliably create shared libraries on AIX.
15014 *** Therefore, libtool is disabling shared libraries support.  If you
15015 *** really care for shared libraries, you may want to modify your PATH
15016 *** so that a non-GNU linker is found, and then restart.
15017
15018 EOF
15019       fi
15020       ;;
15021
15022     amigaos*)
15023       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)'
15024       hardcode_libdir_flag_spec_F77='-L$libdir'
15025       hardcode_minus_L_F77=yes
15026
15027       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15028       # that the semantics of dynamic libraries on AmigaOS, at least up
15029       # to version 4, is to share data among multiple programs linked
15030       # with the same dynamic library.  Since this doesn't match the
15031       # behavior of shared libraries on other platforms, we can't use
15032       # them.
15033       ld_shlibs_F77=no
15034       ;;
15035
15036     beos*)
15037       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15038         allow_undefined_flag_F77=unsupported
15039         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15040         # support --undefined.  This deserves some investigation.  FIXME
15041         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15042       else
15043         ld_shlibs_F77=no
15044       fi
15045       ;;
15046
15047     cygwin* | mingw* | pw32*)
15048       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15049       # as there is no search path for DLLs.
15050       hardcode_libdir_flag_spec_F77='-L$libdir'
15051       allow_undefined_flag_F77=unsupported
15052       always_export_symbols_F77=no
15053       enable_shared_with_static_runtimes_F77=yes
15054       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15055
15056       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15057         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15058         # If the export-symbols file already is a .def file (1st line
15059         # is EXPORTS), use it as is; otherwise, prepend...
15060         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15061           cp $export_symbols $output_objdir/$soname.def;
15062         else
15063           echo EXPORTS > $output_objdir/$soname.def;
15064           cat $export_symbols >> $output_objdir/$soname.def;
15065         fi~
15066         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15067       else
15068         ld_shlibs_F77=no
15069       fi
15070       ;;
15071
15072     interix3*)
15073       hardcode_direct_F77=no
15074       hardcode_shlibpath_var_F77=no
15075       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15076       export_dynamic_flag_spec_F77='${wl}-E'
15077       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15078       # Instead, shared libraries are loaded at an image base (0x10000000 by
15079       # default) and relocated if they conflict, which is a slow very memory
15080       # consuming and fragmenting process.  To avoid this, we pick a random,
15081       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15082       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15083       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'
15084       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'
15085       ;;
15086
15087     linux*)
15088       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15089         tmp_addflag=
15090         case $cc_basename,$host_cpu in
15091         pgcc*)                          # Portland Group C compiler
15092           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'
15093           tmp_addflag=' $pic_flag'
15094           ;;
15095         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15096           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'
15097           tmp_addflag=' $pic_flag -Mnomain' ;;
15098         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15099           tmp_addflag=' -i_dynamic' ;;
15100         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15101           tmp_addflag=' -i_dynamic -nofor_main' ;;
15102         ifc* | ifort*)                  # Intel Fortran compiler
15103           tmp_addflag=' -nofor_main' ;;
15104         esac
15105         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15106
15107         if test $supports_anon_versioning = yes; then
15108           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15109   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15110   $echo "local: *; };" >> $output_objdir/$libname.ver~
15111           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15112         fi
15113       else
15114         ld_shlibs_F77=no
15115       fi
15116       ;;
15117
15118     netbsd*)
15119       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15120         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15121         wlarc=
15122       else
15123         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15125       fi
15126       ;;
15127
15128     solaris*)
15129       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15130         ld_shlibs_F77=no
15131         cat <<EOF 1>&2
15132
15133 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15134 *** create shared libraries on Solaris systems.  Therefore, libtool
15135 *** is disabling shared libraries support.  We urge you to upgrade GNU
15136 *** binutils to release 2.9.1 or newer.  Another option is to modify
15137 *** your PATH or compiler configuration so that the native linker is
15138 *** used, and then restart.
15139
15140 EOF
15141       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15142         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15143         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15144       else
15145         ld_shlibs_F77=no
15146       fi
15147       ;;
15148
15149     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15150       case `$LD -v 2>&1` in
15151         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15152         ld_shlibs_F77=no
15153         cat <<_LT_EOF 1>&2
15154
15155 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15156 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15157 *** is disabling shared libraries support.  We urge you to upgrade GNU
15158 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15159 *** your PATH or compiler configuration so that the native linker is
15160 *** used, and then restart.
15161
15162 _LT_EOF
15163         ;;
15164         *)
15165           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15166             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15167             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15168             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15169           else
15170             ld_shlibs_F77=no
15171           fi
15172         ;;
15173       esac
15174       ;;
15175
15176     sunos4*)
15177       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15178       wlarc=
15179       hardcode_direct_F77=yes
15180       hardcode_shlibpath_var_F77=no
15181       ;;
15182
15183     *)
15184       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15185         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15186         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15187       else
15188         ld_shlibs_F77=no
15189       fi
15190       ;;
15191     esac
15192
15193     if test "$ld_shlibs_F77" = no; then
15194       runpath_var=
15195       hardcode_libdir_flag_spec_F77=
15196       export_dynamic_flag_spec_F77=
15197       whole_archive_flag_spec_F77=
15198     fi
15199   else
15200     # PORTME fill in a description of your system's linker (not GNU ld)
15201     case $host_os in
15202     aix3*)
15203       allow_undefined_flag_F77=unsupported
15204       always_export_symbols_F77=yes
15205       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'
15206       # Note: this linker hardcodes the directories in LIBPATH if there
15207       # are no directories specified by -L.
15208       hardcode_minus_L_F77=yes
15209       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15210         # Neither direct hardcoding nor static linking is supported with a
15211         # broken collect2.
15212         hardcode_direct_F77=unsupported
15213       fi
15214       ;;
15215
15216     aix4* | aix5*)
15217       if test "$host_cpu" = ia64; then
15218         # On IA64, the linker does run time linking by default, so we don't
15219         # have to do anything special.
15220         aix_use_runtimelinking=no
15221         exp_sym_flag='-Bexport'
15222         no_entry_flag=""
15223       else
15224         # If we're using GNU nm, then we don't want the "-C" option.
15225         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15226         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15227           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'
15228         else
15229           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'
15230         fi
15231         aix_use_runtimelinking=no
15232
15233         # Test if we are trying to use run time linking or normal
15234         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15235         # need to do runtime linking.
15236         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15237           for ld_flag in $LDFLAGS; do
15238           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15239             aix_use_runtimelinking=yes
15240             break
15241           fi
15242           done
15243           ;;
15244         esac
15245
15246         exp_sym_flag='-bexport'
15247         no_entry_flag='-bnoentry'
15248       fi
15249
15250       # When large executables or shared objects are built, AIX ld can
15251       # have problems creating the table of contents.  If linking a library
15252       # or program results in "error TOC overflow" add -mminimal-toc to
15253       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15254       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15255
15256       archive_cmds_F77=''
15257       hardcode_direct_F77=yes
15258       hardcode_libdir_separator_F77=':'
15259       link_all_deplibs_F77=yes
15260
15261       if test "$GCC" = yes; then
15262         case $host_os in aix4.[012]|aix4.[012].*)
15263         # We only want to do this on AIX 4.2 and lower, the check
15264         # below for broken collect2 doesn't work under 4.3+
15265           collect2name=`${CC} -print-prog-name=collect2`
15266           if test -f "$collect2name" && \
15267            strings "$collect2name" | grep resolve_lib_name >/dev/null
15268           then
15269           # We have reworked collect2
15270           hardcode_direct_F77=yes
15271           else
15272           # We have old collect2
15273           hardcode_direct_F77=unsupported
15274           # It fails to find uninstalled libraries when the uninstalled
15275           # path is not listed in the libpath.  Setting hardcode_minus_L
15276           # to unsupported forces relinking
15277           hardcode_minus_L_F77=yes
15278           hardcode_libdir_flag_spec_F77='-L$libdir'
15279           hardcode_libdir_separator_F77=
15280           fi
15281           ;;
15282         esac
15283         shared_flag='-shared'
15284         if test "$aix_use_runtimelinking" = yes; then
15285           shared_flag="$shared_flag "'${wl}-G'
15286         fi
15287       else
15288         # not using gcc
15289         if test "$host_cpu" = ia64; then
15290         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15291         # chokes on -Wl,-G. The following line is correct:
15292           shared_flag='-G'
15293         else
15294           if test "$aix_use_runtimelinking" = yes; then
15295             shared_flag='${wl}-G'
15296           else
15297             shared_flag='${wl}-bM:SRE'
15298           fi
15299         fi
15300       fi
15301
15302       # It seems that -bexpall does not export symbols beginning with
15303       # underscore (_), so it is better to generate a list of symbols to export.
15304       always_export_symbols_F77=yes
15305       if test "$aix_use_runtimelinking" = yes; then
15306         # Warning - without using the other runtime loading flags (-brtl),
15307         # -berok will link without error, but may produce a broken library.
15308         allow_undefined_flag_F77='-berok'
15309        # Determine the default libpath from the value encoded in an empty executable.
15310        cat >conftest.$ac_ext <<_ACEOF
15311       program main
15312
15313       end
15314 _ACEOF
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (ac_try="$ac_link"
15317 case "(($ac_try" in
15318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319   *) ac_try_echo=$ac_try;;
15320 esac
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322   (eval "$ac_link") 2>conftest.er1
15323   ac_status=$?
15324   grep -v '^ *+' conftest.er1 >conftest.err
15325   rm -f conftest.er1
15326   cat conftest.err >&5
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); } &&
15329          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15330   { (case "(($ac_try" in
15331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332   *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335   (eval "$ac_try") 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; } &&
15339          { ac_try='test -s conftest$ac_exeext'
15340   { (case "(($ac_try" in
15341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342   *) ac_try_echo=$ac_try;;
15343 esac
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345   (eval "$ac_try") 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); }; }; then
15349
15350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15351 }'`
15352 # Check for a 64-bit object if we didn't find anything.
15353 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; }
15354 }'`; fi
15355 else
15356   echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15358
15359
15360 fi
15361
15362 rm -f core conftest.err conftest.$ac_objext \
15363       conftest$ac_exeext conftest.$ac_ext
15364 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15365
15366        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15367         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"
15368        else
15369         if test "$host_cpu" = ia64; then
15370           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15371           allow_undefined_flag_F77="-z nodefs"
15372           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"
15373         else
15374          # Determine the default libpath from the value encoded in an empty executable.
15375          cat >conftest.$ac_ext <<_ACEOF
15376       program main
15377
15378       end
15379 _ACEOF
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (ac_try="$ac_link"
15382 case "(($ac_try" in
15383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384   *) ac_try_echo=$ac_try;;
15385 esac
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387   (eval "$ac_link") 2>conftest.er1
15388   ac_status=$?
15389   grep -v '^ *+' conftest.er1 >conftest.err
15390   rm -f conftest.er1
15391   cat conftest.err >&5
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } &&
15394          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15395   { (case "(($ac_try" in
15396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397   *) ac_try_echo=$ac_try;;
15398 esac
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400   (eval "$ac_try") 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; } &&
15404          { ac_try='test -s conftest$ac_exeext'
15405   { (case "(($ac_try" in
15406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407   *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410   (eval "$ac_try") 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; }; then
15414
15415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15416 }'`
15417 # Check for a 64-bit object if we didn't find anything.
15418 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; }
15419 }'`; fi
15420 else
15421   echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15423
15424
15425 fi
15426
15427 rm -f core conftest.err conftest.$ac_objext \
15428       conftest$ac_exeext conftest.$ac_ext
15429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15430
15431          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15432           # Warning - without using the other run time loading flags,
15433           # -berok will link without error, but may produce a broken library.
15434           no_undefined_flag_F77=' ${wl}-bernotok'
15435           allow_undefined_flag_F77=' ${wl}-berok'
15436           # Exported symbols can be pulled into shared objects from archives
15437           whole_archive_flag_spec_F77='$convenience'
15438           archive_cmds_need_lc_F77=yes
15439           # This is similar to how AIX traditionally builds its shared libraries.
15440           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'
15441         fi
15442       fi
15443       ;;
15444
15445     amigaos*)
15446       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)'
15447       hardcode_libdir_flag_spec_F77='-L$libdir'
15448       hardcode_minus_L_F77=yes
15449       # see comment about different semantics on the GNU ld section
15450       ld_shlibs_F77=no
15451       ;;
15452
15453     bsdi[45]*)
15454       export_dynamic_flag_spec_F77=-rdynamic
15455       ;;
15456
15457     cygwin* | mingw* | pw32*)
15458       # When not using gcc, we currently assume that we are using
15459       # Microsoft Visual C++.
15460       # hardcode_libdir_flag_spec is actually meaningless, as there is
15461       # no search path for DLLs.
15462       hardcode_libdir_flag_spec_F77=' '
15463       allow_undefined_flag_F77=unsupported
15464       # Tell ltmain to make .lib files, not .a files.
15465       libext=lib
15466       # Tell ltmain to make .dll files, not .so files.
15467       shrext_cmds=".dll"
15468       # FIXME: Setting linknames here is a bad hack.
15469       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15470       # The linker will automatically build a .lib file if we build a DLL.
15471       old_archive_From_new_cmds_F77='true'
15472       # FIXME: Should let the user specify the lib program.
15473       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15474       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15475       enable_shared_with_static_runtimes_F77=yes
15476       ;;
15477
15478     darwin* | rhapsody*)
15479       case $host_os in
15480         rhapsody* | darwin1.[012])
15481          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15482          ;;
15483        *) # Darwin 1.3 on
15484          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15485            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15486          else
15487            case ${MACOSX_DEPLOYMENT_TARGET} in
15488              10.[012])
15489                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15490                ;;
15491              10.*)
15492                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15493                ;;
15494            esac
15495          fi
15496          ;;
15497       esac
15498       archive_cmds_need_lc_F77=no
15499       hardcode_direct_F77=no
15500       hardcode_automatic_F77=yes
15501       hardcode_shlibpath_var_F77=unsupported
15502       whole_archive_flag_spec_F77=''
15503       link_all_deplibs_F77=yes
15504     if test "$GCC" = yes ; then
15505         output_verbose_link_cmd='echo'
15506         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15507       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15508       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15509       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}'
15510       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}'
15511     else
15512       case $cc_basename in
15513         xlc*)
15514          output_verbose_link_cmd='echo'
15515          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15516          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15517           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15518          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}'
15519           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}'
15520           ;;
15521        *)
15522          ld_shlibs_F77=no
15523           ;;
15524       esac
15525     fi
15526       ;;
15527
15528     dgux*)
15529       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530       hardcode_libdir_flag_spec_F77='-L$libdir'
15531       hardcode_shlibpath_var_F77=no
15532       ;;
15533
15534     freebsd1*)
15535       ld_shlibs_F77=no
15536       ;;
15537
15538     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15539     # support.  Future versions do this automatically, but an explicit c++rt0.o
15540     # does not break anything, and helps significantly (at the cost of a little
15541     # extra space).
15542     freebsd2.2*)
15543       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15544       hardcode_libdir_flag_spec_F77='-R$libdir'
15545       hardcode_direct_F77=yes
15546       hardcode_shlibpath_var_F77=no
15547       ;;
15548
15549     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15550     freebsd2*)
15551       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15552       hardcode_direct_F77=yes
15553       hardcode_minus_L_F77=yes
15554       hardcode_shlibpath_var_F77=no
15555       ;;
15556
15557     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15558     freebsd* | kfreebsd*-gnu | dragonfly*)
15559       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15560       hardcode_libdir_flag_spec_F77='-R$libdir'
15561       hardcode_direct_F77=yes
15562       hardcode_shlibpath_var_F77=no
15563       ;;
15564
15565     hpux9*)
15566       if test "$GCC" = yes; then
15567         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'
15568       else
15569         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'
15570       fi
15571       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15572       hardcode_libdir_separator_F77=:
15573       hardcode_direct_F77=yes
15574
15575       # hardcode_minus_L: Not really in the search PATH,
15576       # but as the default location of the library.
15577       hardcode_minus_L_F77=yes
15578       export_dynamic_flag_spec_F77='${wl}-E'
15579       ;;
15580
15581     hpux10*)
15582       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15583         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15584       else
15585         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15586       fi
15587       if test "$with_gnu_ld" = no; then
15588         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15589         hardcode_libdir_separator_F77=:
15590
15591         hardcode_direct_F77=yes
15592         export_dynamic_flag_spec_F77='${wl}-E'
15593
15594         # hardcode_minus_L: Not really in the search PATH,
15595         # but as the default location of the library.
15596         hardcode_minus_L_F77=yes
15597       fi
15598       ;;
15599
15600     hpux11*)
15601       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15602         case $host_cpu in
15603         hppa*64*)
15604           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605           ;;
15606         ia64*)
15607           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15608           ;;
15609         *)
15610           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15611           ;;
15612         esac
15613       else
15614         case $host_cpu in
15615         hppa*64*)
15616           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15617           ;;
15618         ia64*)
15619           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15620           ;;
15621         *)
15622           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15623           ;;
15624         esac
15625       fi
15626       if test "$with_gnu_ld" = no; then
15627         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15628         hardcode_libdir_separator_F77=:
15629
15630         case $host_cpu in
15631         hppa*64*|ia64*)
15632           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15633           hardcode_direct_F77=no
15634           hardcode_shlibpath_var_F77=no
15635           ;;
15636         *)
15637           hardcode_direct_F77=yes
15638           export_dynamic_flag_spec_F77='${wl}-E'
15639
15640           # hardcode_minus_L: Not really in the search PATH,
15641           # but as the default location of the library.
15642           hardcode_minus_L_F77=yes
15643           ;;
15644         esac
15645       fi
15646       ;;
15647
15648     irix5* | irix6* | nonstopux*)
15649       if test "$GCC" = yes; then
15650         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'
15651       else
15652         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'
15653         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15654       fi
15655       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15656       hardcode_libdir_separator_F77=:
15657       link_all_deplibs_F77=yes
15658       ;;
15659
15660     netbsd*)
15661       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15662         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15663       else
15664         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15665       fi
15666       hardcode_libdir_flag_spec_F77='-R$libdir'
15667       hardcode_direct_F77=yes
15668       hardcode_shlibpath_var_F77=no
15669       ;;
15670
15671     newsos6)
15672       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673       hardcode_direct_F77=yes
15674       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15675       hardcode_libdir_separator_F77=:
15676       hardcode_shlibpath_var_F77=no
15677       ;;
15678
15679     openbsd*)
15680       hardcode_direct_F77=yes
15681       hardcode_shlibpath_var_F77=no
15682       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15683         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15684         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15685         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15686         export_dynamic_flag_spec_F77='${wl}-E'
15687       else
15688        case $host_os in
15689          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15690            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15691            hardcode_libdir_flag_spec_F77='-R$libdir'
15692            ;;
15693          *)
15694            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15695            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15696            ;;
15697        esac
15698       fi
15699       ;;
15700
15701     os2*)
15702       hardcode_libdir_flag_spec_F77='-L$libdir'
15703       hardcode_minus_L_F77=yes
15704       allow_undefined_flag_F77=unsupported
15705       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'
15706       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15707       ;;
15708
15709     osf3*)
15710       if test "$GCC" = yes; then
15711         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15712         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'
15713       else
15714         allow_undefined_flag_F77=' -expect_unresolved \*'
15715         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'
15716       fi
15717       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15718       hardcode_libdir_separator_F77=:
15719       ;;
15720
15721     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15722       if test "$GCC" = yes; then
15723         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15724         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'
15725         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15726       else
15727         allow_undefined_flag_F77=' -expect_unresolved \*'
15728         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'
15729         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~
15730         $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'
15731
15732         # Both c and cxx compiler support -rpath directly
15733         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15734       fi
15735       hardcode_libdir_separator_F77=:
15736       ;;
15737
15738     solaris*)
15739       no_undefined_flag_F77=' -z text'
15740       if test "$GCC" = yes; then
15741         wlarc='${wl}'
15742         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15743         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15744           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15745       else
15746         wlarc=''
15747         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15749         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15750       fi
15751       hardcode_libdir_flag_spec_F77='-R$libdir'
15752       hardcode_shlibpath_var_F77=no
15753       case $host_os in
15754       solaris2.[0-5] | solaris2.[0-5].*) ;;
15755       *)
15756         # The compiler driver will combine linker options so we
15757         # cannot just pass the convience library names through
15758         # without $wl, iff we do not link with $LD.
15759         # Luckily, gcc supports the same syntax we need for Sun Studio.
15760         # Supported since Solaris 2.6 (maybe 2.5.1?)
15761         case $wlarc in
15762         '')
15763           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15764         *)
15765           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' ;;
15766         esac ;;
15767       esac
15768       link_all_deplibs_F77=yes
15769       ;;
15770
15771     sunos4*)
15772       if test "x$host_vendor" = xsequent; then
15773         # Use $CC to link under sequent, because it throws in some extra .o
15774         # files that make .init and .fini sections work.
15775         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15776       else
15777         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15778       fi
15779       hardcode_libdir_flag_spec_F77='-L$libdir'
15780       hardcode_direct_F77=yes
15781       hardcode_minus_L_F77=yes
15782       hardcode_shlibpath_var_F77=no
15783       ;;
15784
15785     sysv4)
15786       case $host_vendor in
15787         sni)
15788           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15789           hardcode_direct_F77=yes # is this really true???
15790         ;;
15791         siemens)
15792           ## LD is ld it makes a PLAMLIB
15793           ## CC just makes a GrossModule.
15794           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15795           reload_cmds_F77='$CC -r -o $output$reload_objs'
15796           hardcode_direct_F77=no
15797         ;;
15798         motorola)
15799           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15800           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15801         ;;
15802       esac
15803       runpath_var='LD_RUN_PATH'
15804       hardcode_shlibpath_var_F77=no
15805       ;;
15806
15807     sysv4.3*)
15808       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809       hardcode_shlibpath_var_F77=no
15810       export_dynamic_flag_spec_F77='-Bexport'
15811       ;;
15812
15813     sysv4*MP*)
15814       if test -d /usr/nec; then
15815         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816         hardcode_shlibpath_var_F77=no
15817         runpath_var=LD_RUN_PATH
15818         hardcode_runpath_var=yes
15819         ld_shlibs_F77=yes
15820       fi
15821       ;;
15822
15823     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15824       no_undefined_flag_F77='${wl}-z,text'
15825       archive_cmds_need_lc_F77=no
15826       hardcode_shlibpath_var_F77=no
15827       runpath_var='LD_RUN_PATH'
15828
15829       if test "$GCC" = yes; then
15830         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15831         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15832       else
15833         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15834         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15835       fi
15836       ;;
15837
15838     sysv5* | sco3.2v5* | sco5v6*)
15839       # Note: We can NOT use -z defs as we might desire, because we do not
15840       # link with -lc, and that would cause any symbols used from libc to
15841       # always be unresolved, which means just about no library would
15842       # ever link correctly.  If we're not using GNU ld we use -z text
15843       # though, which does catch some bad symbols but isn't as heavy-handed
15844       # as -z defs.
15845       no_undefined_flag_F77='${wl}-z,text'
15846       allow_undefined_flag_F77='${wl}-z,nodefs'
15847       archive_cmds_need_lc_F77=no
15848       hardcode_shlibpath_var_F77=no
15849       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15850       hardcode_libdir_separator_F77=':'
15851       link_all_deplibs_F77=yes
15852       export_dynamic_flag_spec_F77='${wl}-Bexport'
15853       runpath_var='LD_RUN_PATH'
15854
15855       if test "$GCC" = yes; then
15856         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15857         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15858       else
15859         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15860         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15861       fi
15862       ;;
15863
15864     uts4*)
15865       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15866       hardcode_libdir_flag_spec_F77='-L$libdir'
15867       hardcode_shlibpath_var_F77=no
15868       ;;
15869
15870     *)
15871       ld_shlibs_F77=no
15872       ;;
15873     esac
15874   fi
15875
15876 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15877 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15878 test "$ld_shlibs_F77" = no && can_build_shared=no
15879
15880 #
15881 # Do we need to explicitly link libc?
15882 #
15883 case "x$archive_cmds_need_lc_F77" in
15884 x|xyes)
15885   # Assume -lc should be added
15886   archive_cmds_need_lc_F77=yes
15887
15888   if test "$enable_shared" = yes && test "$GCC" = yes; then
15889     case $archive_cmds_F77 in
15890     *'~'*)
15891       # FIXME: we may have to deal with multi-command sequences.
15892       ;;
15893     '$CC '*)
15894       # Test whether the compiler implicitly links with -lc since on some
15895       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15896       # to ld, don't add -lc before -lgcc.
15897       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15898 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15899       $rm conftest*
15900       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15901
15902       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15903   (eval $ac_compile) 2>&5
15904   ac_status=$?
15905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906   (exit $ac_status); } 2>conftest.err; then
15907         soname=conftest
15908         lib=conftest
15909         libobjs=conftest.$ac_objext
15910         deplibs=
15911         wl=$lt_prog_compiler_wl_F77
15912         pic_flag=$lt_prog_compiler_pic_F77
15913         compiler_flags=-v
15914         linker_flags=-v
15915         verstring=
15916         output_objdir=.
15917         libname=conftest
15918         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15919         allow_undefined_flag_F77=
15920         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15921   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15922   ac_status=$?
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); }
15925         then
15926           archive_cmds_need_lc_F77=no
15927         else
15928           archive_cmds_need_lc_F77=yes
15929         fi
15930         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15931       else
15932         cat conftest.err 1>&5
15933       fi
15934       $rm conftest*
15935       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15936 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15937       ;;
15938     esac
15939   fi
15940   ;;
15941 esac
15942
15943 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15944 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15945 library_names_spec=
15946 libname_spec='lib$name'
15947 soname_spec=
15948 shrext_cmds=".so"
15949 postinstall_cmds=
15950 postuninstall_cmds=
15951 finish_cmds=
15952 finish_eval=
15953 shlibpath_var=
15954 shlibpath_overrides_runpath=unknown
15955 version_type=none
15956 dynamic_linker="$host_os ld.so"
15957 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15958 if test "$GCC" = yes; then
15959   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15960   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15961     # if the path contains ";" then we assume it to be the separator
15962     # otherwise default to the standard path separator (i.e. ":") - it is
15963     # assumed that no part of a normal pathname contains ";" but that should
15964     # okay in the real world where ";" in dirpaths is itself problematic.
15965     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15966   else
15967     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15968   fi
15969 else
15970   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15971 fi
15972 need_lib_prefix=unknown
15973 hardcode_into_libs=no
15974
15975 # when you set need_version to no, make sure it does not cause -set_version
15976 # flags to be left without arguments
15977 need_version=unknown
15978
15979 case $host_os in
15980 aix3*)
15981   version_type=linux
15982   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15983   shlibpath_var=LIBPATH
15984
15985   # AIX 3 has no versioning support, so we append a major version to the name.
15986   soname_spec='${libname}${release}${shared_ext}$major'
15987   ;;
15988
15989 aix4* | aix5*)
15990   version_type=linux
15991   need_lib_prefix=no
15992   need_version=no
15993   hardcode_into_libs=yes
15994   if test "$host_cpu" = ia64; then
15995     # AIX 5 supports IA64
15996     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15997     shlibpath_var=LD_LIBRARY_PATH
15998   else
15999     # With GCC up to 2.95.x, collect2 would create an import file
16000     # for dependence libraries.  The import file would start with
16001     # the line `#! .'.  This would cause the generated library to
16002     # depend on `.', always an invalid library.  This was fixed in
16003     # development snapshots of GCC prior to 3.0.
16004     case $host_os in
16005       aix4 | aix4.[01] | aix4.[01].*)
16006       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16007            echo ' yes '
16008            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16009         :
16010       else
16011         can_build_shared=no
16012       fi
16013       ;;
16014     esac
16015     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16016     # soname into executable. Probably we can add versioning support to
16017     # collect2, so additional links can be useful in future.
16018     if test "$aix_use_runtimelinking" = yes; then
16019       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16020       # instead of lib<name>.a to let people know that these are not
16021       # typical AIX shared libraries.
16022       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023     else
16024       # We preserve .a as extension for shared libraries through AIX4.2
16025       # and later when we are not doing run time linking.
16026       library_names_spec='${libname}${release}.a $libname.a'
16027       soname_spec='${libname}${release}${shared_ext}$major'
16028     fi
16029     shlibpath_var=LIBPATH
16030   fi
16031   ;;
16032
16033 amigaos*)
16034   library_names_spec='$libname.ixlibrary $libname.a'
16035   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16036   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'
16037   ;;
16038
16039 beos*)
16040   library_names_spec='${libname}${shared_ext}'
16041   dynamic_linker="$host_os ld.so"
16042   shlibpath_var=LIBRARY_PATH
16043   ;;
16044
16045 bsdi[45]*)
16046   version_type=linux
16047   need_version=no
16048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049   soname_spec='${libname}${release}${shared_ext}$major'
16050   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16051   shlibpath_var=LD_LIBRARY_PATH
16052   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16053   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16054   # the default ld.so.conf also contains /usr/contrib/lib and
16055   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16056   # libtool to hard-code these into programs
16057   ;;
16058
16059 cygwin* | mingw* | pw32*)
16060   version_type=windows
16061   shrext_cmds=".dll"
16062   need_version=no
16063   need_lib_prefix=no
16064
16065   case $GCC,$host_os in
16066   yes,cygwin* | yes,mingw* | yes,pw32*)
16067     library_names_spec='$libname.dll.a'
16068     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16069     postinstall_cmds='base_file=`basename \${file}`~
16070       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16071       dldir=$destdir/`dirname \$dlpath`~
16072       test -d \$dldir || mkdir -p \$dldir~
16073       $install_prog $dir/$dlname \$dldir/$dlname~
16074       chmod a+x \$dldir/$dlname'
16075     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16076       dlpath=$dir/\$dldll~
16077        $rm \$dlpath'
16078     shlibpath_overrides_runpath=yes
16079
16080     case $host_os in
16081     cygwin*)
16082       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16083       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16084       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16085       ;;
16086     mingw*)
16087       # MinGW DLLs use traditional 'lib' prefix
16088       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16089       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16090       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16091         # It is most probably a Windows format PATH printed by
16092         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16093         # path with ; separators, and with drive letters. We can handle the
16094         # drive letters (cygwin fileutils understands them), so leave them,
16095         # especially as we might pass files found there to a mingw objdump,
16096         # which wouldn't understand a cygwinified path. Ahh.
16097         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16098       else
16099         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16100       fi
16101       ;;
16102     pw32*)
16103       # pw32 DLLs use 'pw' prefix rather than 'lib'
16104       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16105       ;;
16106     esac
16107     ;;
16108
16109   *)
16110     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16111     ;;
16112   esac
16113   dynamic_linker='Win32 ld.exe'
16114   # FIXME: first we should search . and the directory the executable is in
16115   shlibpath_var=PATH
16116   ;;
16117
16118 darwin* | rhapsody*)
16119   dynamic_linker="$host_os dyld"
16120   version_type=darwin
16121   need_lib_prefix=no
16122   need_version=no
16123   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16124   soname_spec='${libname}${release}${major}$shared_ext'
16125   shlibpath_overrides_runpath=yes
16126   shlibpath_var=DYLD_LIBRARY_PATH
16127   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16128   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16129   if test "$GCC" = yes; then
16130     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"`
16131   else
16132     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16133   fi
16134   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16135   ;;
16136
16137 dgux*)
16138   version_type=linux
16139   need_lib_prefix=no
16140   need_version=no
16141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16142   soname_spec='${libname}${release}${shared_ext}$major'
16143   shlibpath_var=LD_LIBRARY_PATH
16144   ;;
16145
16146 freebsd1*)
16147   dynamic_linker=no
16148   ;;
16149
16150 kfreebsd*-gnu)
16151   version_type=linux
16152   need_lib_prefix=no
16153   need_version=no
16154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16155   soname_spec='${libname}${release}${shared_ext}$major'
16156   shlibpath_var=LD_LIBRARY_PATH
16157   shlibpath_overrides_runpath=no
16158   hardcode_into_libs=yes
16159   dynamic_linker='GNU ld.so'
16160   ;;
16161
16162 freebsd* | dragonfly*)
16163   # DragonFly does not have aout.  When/if they implement a new
16164   # versioning mechanism, adjust this.
16165   if test -x /usr/bin/objformat; then
16166     objformat=`/usr/bin/objformat`
16167   else
16168     case $host_os in
16169     freebsd[123]*) objformat=aout ;;
16170     *) objformat=elf ;;
16171     esac
16172   fi
16173   version_type=freebsd-$objformat
16174   case $version_type in
16175     freebsd-elf*)
16176       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16177       need_version=no
16178       need_lib_prefix=no
16179       ;;
16180     freebsd-*)
16181       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16182       need_version=yes
16183       ;;
16184   esac
16185   shlibpath_var=LD_LIBRARY_PATH
16186   case $host_os in
16187   freebsd2*)
16188     shlibpath_overrides_runpath=yes
16189     ;;
16190   freebsd3.[01]* | freebsdelf3.[01]*)
16191     shlibpath_overrides_runpath=yes
16192     hardcode_into_libs=yes
16193     ;;
16194   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16195   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16196     shlibpath_overrides_runpath=no
16197     hardcode_into_libs=yes
16198     ;;
16199   freebsd*) # from 4.6 on
16200     shlibpath_overrides_runpath=yes
16201     hardcode_into_libs=yes
16202     ;;
16203   esac
16204   ;;
16205
16206 gnu*)
16207   version_type=linux
16208   need_lib_prefix=no
16209   need_version=no
16210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16211   soname_spec='${libname}${release}${shared_ext}$major'
16212   shlibpath_var=LD_LIBRARY_PATH
16213   hardcode_into_libs=yes
16214   ;;
16215
16216 hpux9* | hpux10* | hpux11*)
16217   # Give a soname corresponding to the major version so that dld.sl refuses to
16218   # link against other versions.
16219   version_type=sunos
16220   need_lib_prefix=no
16221   need_version=no
16222   case $host_cpu in
16223   ia64*)
16224     shrext_cmds='.so'
16225     hardcode_into_libs=yes
16226     dynamic_linker="$host_os dld.so"
16227     shlibpath_var=LD_LIBRARY_PATH
16228     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16230     soname_spec='${libname}${release}${shared_ext}$major'
16231     if test "X$HPUX_IA64_MODE" = X32; then
16232       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16233     else
16234       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16235     fi
16236     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16237     ;;
16238    hppa*64*)
16239      shrext_cmds='.sl'
16240      hardcode_into_libs=yes
16241      dynamic_linker="$host_os dld.sl"
16242      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16243      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16244      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245      soname_spec='${libname}${release}${shared_ext}$major'
16246      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16247      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16248      ;;
16249    *)
16250     shrext_cmds='.sl'
16251     dynamic_linker="$host_os dld.sl"
16252     shlibpath_var=SHLIB_PATH
16253     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16255     soname_spec='${libname}${release}${shared_ext}$major'
16256     ;;
16257   esac
16258   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16259   postinstall_cmds='chmod 555 $lib'
16260   ;;
16261
16262 interix3*)
16263   version_type=linux
16264   need_lib_prefix=no
16265   need_version=no
16266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16267   soname_spec='${libname}${release}${shared_ext}$major'
16268   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16269   shlibpath_var=LD_LIBRARY_PATH
16270   shlibpath_overrides_runpath=no
16271   hardcode_into_libs=yes
16272   ;;
16273
16274 irix5* | irix6* | nonstopux*)
16275   case $host_os in
16276     nonstopux*) version_type=nonstopux ;;
16277     *)
16278         if test "$lt_cv_prog_gnu_ld" = yes; then
16279                 version_type=linux
16280         else
16281                 version_type=irix
16282         fi ;;
16283   esac
16284   need_lib_prefix=no
16285   need_version=no
16286   soname_spec='${libname}${release}${shared_ext}$major'
16287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16288   case $host_os in
16289   irix5* | nonstopux*)
16290     libsuff= shlibsuff=
16291     ;;
16292   *)
16293     case $LD in # libtool.m4 will add one of these switches to LD
16294     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16295       libsuff= shlibsuff= libmagic=32-bit;;
16296     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16297       libsuff=32 shlibsuff=N32 libmagic=N32;;
16298     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16299       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16300     *) libsuff= shlibsuff= libmagic=never-match;;
16301     esac
16302     ;;
16303   esac
16304   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16305   shlibpath_overrides_runpath=no
16306   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16307   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16308   hardcode_into_libs=yes
16309   ;;
16310
16311 # No shared lib support for Linux oldld, aout, or coff.
16312 linux*oldld* | linux*aout* | linux*coff*)
16313   dynamic_linker=no
16314   ;;
16315
16316 # This must be Linux ELF.
16317 linux*)
16318   version_type=linux
16319   need_lib_prefix=no
16320   need_version=no
16321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322   soname_spec='${libname}${release}${shared_ext}$major'
16323   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16324   shlibpath_var=LD_LIBRARY_PATH
16325   shlibpath_overrides_runpath=no
16326   # This implies no fast_install, which is unacceptable.
16327   # Some rework will be needed to allow for fast_install
16328   # before this can be enabled.
16329   hardcode_into_libs=yes
16330
16331   # Append ld.so.conf contents to the search path
16332   if test -f /etc/ld.so.conf; then
16333     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' ' '`
16334     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16335   fi
16336
16337   # We used to test for /lib/ld.so.1 and disable shared libraries on
16338   # powerpc, because MkLinux only supported shared libraries with the
16339   # GNU dynamic linker.  Since this was broken with cross compilers,
16340   # most powerpc-linux boxes support dynamic linking these days and
16341   # people can always --disable-shared, the test was removed, and we
16342   # assume the GNU/Linux dynamic linker is in use.
16343   dynamic_linker='GNU/Linux ld.so'
16344   ;;
16345
16346 knetbsd*-gnu)
16347   version_type=linux
16348   need_lib_prefix=no
16349   need_version=no
16350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16351   soname_spec='${libname}${release}${shared_ext}$major'
16352   shlibpath_var=LD_LIBRARY_PATH
16353   shlibpath_overrides_runpath=no
16354   hardcode_into_libs=yes
16355   dynamic_linker='GNU ld.so'
16356   ;;
16357
16358 netbsd*)
16359   version_type=sunos
16360   need_lib_prefix=no
16361   need_version=no
16362   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16364     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16365     dynamic_linker='NetBSD (a.out) ld.so'
16366   else
16367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16368     soname_spec='${libname}${release}${shared_ext}$major'
16369     dynamic_linker='NetBSD ld.elf_so'
16370   fi
16371   shlibpath_var=LD_LIBRARY_PATH
16372   shlibpath_overrides_runpath=yes
16373   hardcode_into_libs=yes
16374   ;;
16375
16376 newsos6)
16377   version_type=linux
16378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379   shlibpath_var=LD_LIBRARY_PATH
16380   shlibpath_overrides_runpath=yes
16381   ;;
16382
16383 nto-qnx*)
16384   version_type=linux
16385   need_lib_prefix=no
16386   need_version=no
16387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388   soname_spec='${libname}${release}${shared_ext}$major'
16389   shlibpath_var=LD_LIBRARY_PATH
16390   shlibpath_overrides_runpath=yes
16391   ;;
16392
16393 openbsd*)
16394   version_type=sunos
16395   sys_lib_dlsearch_path_spec="/usr/lib"
16396   need_lib_prefix=no
16397   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16398   case $host_os in
16399     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16400     *)                         need_version=no  ;;
16401   esac
16402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16403   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16404   shlibpath_var=LD_LIBRARY_PATH
16405   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16406     case $host_os in
16407       openbsd2.[89] | openbsd2.[89].*)
16408         shlibpath_overrides_runpath=no
16409         ;;
16410       *)
16411         shlibpath_overrides_runpath=yes
16412         ;;
16413       esac
16414   else
16415     shlibpath_overrides_runpath=yes
16416   fi
16417   ;;
16418
16419 os2*)
16420   libname_spec='$name'
16421   shrext_cmds=".dll"
16422   need_lib_prefix=no
16423   library_names_spec='$libname${shared_ext} $libname.a'
16424   dynamic_linker='OS/2 ld.exe'
16425   shlibpath_var=LIBPATH
16426   ;;
16427
16428 osf3* | osf4* | osf5*)
16429   version_type=osf
16430   need_lib_prefix=no
16431   need_version=no
16432   soname_spec='${libname}${release}${shared_ext}$major'
16433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16434   shlibpath_var=LD_LIBRARY_PATH
16435   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16436   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16437   ;;
16438
16439 solaris*)
16440   version_type=linux
16441   need_lib_prefix=no
16442   need_version=no
16443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16444   soname_spec='${libname}${release}${shared_ext}$major'
16445   shlibpath_var=LD_LIBRARY_PATH
16446   shlibpath_overrides_runpath=yes
16447   hardcode_into_libs=yes
16448   # ldd complains unless libraries are executable
16449   postinstall_cmds='chmod +x $lib'
16450   ;;
16451
16452 sunos4*)
16453   version_type=sunos
16454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16455   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16456   shlibpath_var=LD_LIBRARY_PATH
16457   shlibpath_overrides_runpath=yes
16458   if test "$with_gnu_ld" = yes; then
16459     need_lib_prefix=no
16460   fi
16461   need_version=yes
16462   ;;
16463
16464 sysv4 | sysv4.3*)
16465   version_type=linux
16466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16467   soname_spec='${libname}${release}${shared_ext}$major'
16468   shlibpath_var=LD_LIBRARY_PATH
16469   case $host_vendor in
16470     sni)
16471       shlibpath_overrides_runpath=no
16472       need_lib_prefix=no
16473       export_dynamic_flag_spec='${wl}-Blargedynsym'
16474       runpath_var=LD_RUN_PATH
16475       ;;
16476     siemens)
16477       need_lib_prefix=no
16478       ;;
16479     motorola)
16480       need_lib_prefix=no
16481       need_version=no
16482       shlibpath_overrides_runpath=no
16483       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16484       ;;
16485   esac
16486   ;;
16487
16488 sysv4*MP*)
16489   if test -d /usr/nec ;then
16490     version_type=linux
16491     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16492     soname_spec='$libname${shared_ext}.$major'
16493     shlibpath_var=LD_LIBRARY_PATH
16494   fi
16495   ;;
16496
16497 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16498   version_type=freebsd-elf
16499   need_lib_prefix=no
16500   need_version=no
16501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16502   soname_spec='${libname}${release}${shared_ext}$major'
16503   shlibpath_var=LD_LIBRARY_PATH
16504   hardcode_into_libs=yes
16505   if test "$with_gnu_ld" = yes; then
16506     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16507     shlibpath_overrides_runpath=no
16508   else
16509     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16510     shlibpath_overrides_runpath=yes
16511     case $host_os in
16512       sco3.2v5*)
16513         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16514         ;;
16515     esac
16516   fi
16517   sys_lib_dlsearch_path_spec='/usr/lib'
16518   ;;
16519
16520 uts4*)
16521   version_type=linux
16522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16523   soname_spec='${libname}${release}${shared_ext}$major'
16524   shlibpath_var=LD_LIBRARY_PATH
16525   ;;
16526
16527 *)
16528   dynamic_linker=no
16529   ;;
16530 esac
16531 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16532 echo "${ECHO_T}$dynamic_linker" >&6; }
16533 test "$dynamic_linker" = no && can_build_shared=no
16534
16535 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16536 if test "$GCC" = yes; then
16537   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16538 fi
16539
16540 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16541 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16542 hardcode_action_F77=
16543 if test -n "$hardcode_libdir_flag_spec_F77" || \
16544    test -n "$runpath_var_F77" || \
16545    test "X$hardcode_automatic_F77" = "Xyes" ; then
16546
16547   # We can hardcode non-existant directories.
16548   if test "$hardcode_direct_F77" != no &&
16549      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16550      # have to relink, otherwise we might link with an installed library
16551      # when we should be linking with a yet-to-be-installed one
16552      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16553      test "$hardcode_minus_L_F77" != no; then
16554     # Linking always hardcodes the temporary library directory.
16555     hardcode_action_F77=relink
16556   else
16557     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16558     hardcode_action_F77=immediate
16559   fi
16560 else
16561   # We cannot hardcode anything, or else we can only hardcode existing
16562   # directories.
16563   hardcode_action_F77=unsupported
16564 fi
16565 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16566 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16567
16568 if test "$hardcode_action_F77" = relink; then
16569   # Fast installation is not supported
16570   enable_fast_install=no
16571 elif test "$shlibpath_overrides_runpath" = yes ||
16572      test "$enable_shared" = no; then
16573   # Fast installation is not necessary
16574   enable_fast_install=needless
16575 fi
16576
16577
16578 # The else clause should only fire when bootstrapping the
16579 # libtool distribution, otherwise you forgot to ship ltmain.sh
16580 # with your package, and you will get complaints that there are
16581 # no rules to generate ltmain.sh.
16582 if test -f "$ltmain"; then
16583   # See if we are running on zsh, and set the options which allow our commands through
16584   # without removal of \ escapes.
16585   if test -n "${ZSH_VERSION+set}" ; then
16586     setopt NO_GLOB_SUBST
16587   fi
16588   # Now quote all the things that may contain metacharacters while being
16589   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16590   # variables and quote the copies for generation of the libtool script.
16591   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16592     SED SHELL STRIP \
16593     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16594     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16595     deplibs_check_method reload_flag reload_cmds need_locks \
16596     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16597     lt_cv_sys_global_symbol_to_c_name_address \
16598     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16599     old_postinstall_cmds old_postuninstall_cmds \
16600     compiler_F77 \
16601     CC_F77 \
16602     LD_F77 \
16603     lt_prog_compiler_wl_F77 \
16604     lt_prog_compiler_pic_F77 \
16605     lt_prog_compiler_static_F77 \
16606     lt_prog_compiler_no_builtin_flag_F77 \
16607     export_dynamic_flag_spec_F77 \
16608     thread_safe_flag_spec_F77 \
16609     whole_archive_flag_spec_F77 \
16610     enable_shared_with_static_runtimes_F77 \
16611     old_archive_cmds_F77 \
16612     old_archive_from_new_cmds_F77 \
16613     predep_objects_F77 \
16614     postdep_objects_F77 \
16615     predeps_F77 \
16616     postdeps_F77 \
16617     compiler_lib_search_path_F77 \
16618     archive_cmds_F77 \
16619     archive_expsym_cmds_F77 \
16620     postinstall_cmds_F77 \
16621     postuninstall_cmds_F77 \
16622     old_archive_from_expsyms_cmds_F77 \
16623     allow_undefined_flag_F77 \
16624     no_undefined_flag_F77 \
16625     export_symbols_cmds_F77 \
16626     hardcode_libdir_flag_spec_F77 \
16627     hardcode_libdir_flag_spec_ld_F77 \
16628     hardcode_libdir_separator_F77 \
16629     hardcode_automatic_F77 \
16630     module_cmds_F77 \
16631     module_expsym_cmds_F77 \
16632     lt_cv_prog_compiler_c_o_F77 \
16633     exclude_expsyms_F77 \
16634     include_expsyms_F77; do
16635
16636     case $var in
16637     old_archive_cmds_F77 | \
16638     old_archive_from_new_cmds_F77 | \
16639     archive_cmds_F77 | \
16640     archive_expsym_cmds_F77 | \
16641     module_cmds_F77 | \
16642     module_expsym_cmds_F77 | \
16643     old_archive_from_expsyms_cmds_F77 | \
16644     export_symbols_cmds_F77 | \
16645     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16646     postinstall_cmds | postuninstall_cmds | \
16647     old_postinstall_cmds | old_postuninstall_cmds | \
16648     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16649       # Double-quote double-evaled strings.
16650       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16651       ;;
16652     *)
16653       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16654       ;;
16655     esac
16656   done
16657
16658   case $lt_echo in
16659   *'\$0 --fallback-echo"')
16660     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16661     ;;
16662   esac
16663
16664 cfgfile="$ofile"
16665
16666   cat <<__EOF__ >> "$cfgfile"
16667 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16668
16669 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16670
16671 # Shell to use when invoking shell scripts.
16672 SHELL=$lt_SHELL
16673
16674 # Whether or not to build shared libraries.
16675 build_libtool_libs=$enable_shared
16676
16677 # Whether or not to build static libraries.
16678 build_old_libs=$enable_static
16679
16680 # Whether or not to add -lc for building shared libraries.
16681 build_libtool_need_lc=$archive_cmds_need_lc_F77
16682
16683 # Whether or not to disallow shared libs when runtime libs are static
16684 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16685
16686 # Whether or not to optimize for fast installation.
16687 fast_install=$enable_fast_install
16688
16689 # The host system.
16690 host_alias=$host_alias
16691 host=$host
16692 host_os=$host_os
16693
16694 # The build system.
16695 build_alias=$build_alias
16696 build=$build
16697 build_os=$build_os
16698
16699 # An echo program that does not interpret backslashes.
16700 echo=$lt_echo
16701
16702 # The archiver.
16703 AR=$lt_AR
16704 AR_FLAGS=$lt_AR_FLAGS
16705
16706 # A C compiler.
16707 LTCC=$lt_LTCC
16708
16709 # LTCC compiler flags.
16710 LTCFLAGS=$lt_LTCFLAGS
16711
16712 # A language-specific compiler.
16713 CC=$lt_compiler_F77
16714
16715 # Is the compiler the GNU C compiler?
16716 with_gcc=$GCC_F77
16717
16718 # An ERE matcher.
16719 EGREP=$lt_EGREP
16720
16721 # The linker used to build libraries.
16722 LD=$lt_LD_F77
16723
16724 # Whether we need hard or soft links.
16725 LN_S=$lt_LN_S
16726
16727 # A BSD-compatible nm program.
16728 NM=$lt_NM
16729
16730 # A symbol stripping program
16731 STRIP=$lt_STRIP
16732
16733 # Used to examine libraries when file_magic_cmd begins "file"
16734 MAGIC_CMD=$MAGIC_CMD
16735
16736 # Used on cygwin: DLL creation program.
16737 DLLTOOL="$DLLTOOL"
16738
16739 # Used on cygwin: object dumper.
16740 OBJDUMP="$OBJDUMP"
16741
16742 # Used on cygwin: assembler.
16743 AS="$AS"
16744
16745 # The name of the directory that contains temporary libtool files.
16746 objdir=$objdir
16747
16748 # How to create reloadable object files.
16749 reload_flag=$lt_reload_flag
16750 reload_cmds=$lt_reload_cmds
16751
16752 # How to pass a linker flag through the compiler.
16753 wl=$lt_lt_prog_compiler_wl_F77
16754
16755 # Object file suffix (normally "o").
16756 objext="$ac_objext"
16757
16758 # Old archive suffix (normally "a").
16759 libext="$libext"
16760
16761 # Shared library suffix (normally ".so").
16762 shrext_cmds='$shrext_cmds'
16763
16764 # Executable file suffix (normally "").
16765 exeext="$exeext"
16766
16767 # Additional compiler flags for building library objects.
16768 pic_flag=$lt_lt_prog_compiler_pic_F77
16769 pic_mode=$pic_mode
16770
16771 # What is the maximum length of a command?
16772 max_cmd_len=$lt_cv_sys_max_cmd_len
16773
16774 # Does compiler simultaneously support -c and -o options?
16775 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16776
16777 # Must we lock files when doing compilation?
16778 need_locks=$lt_need_locks
16779
16780 # Do we need the lib prefix for modules?
16781 need_lib_prefix=$need_lib_prefix
16782
16783 # Do we need a version for libraries?
16784 need_version=$need_version
16785
16786 # Whether dlopen is supported.
16787 dlopen_support=$enable_dlopen
16788
16789 # Whether dlopen of programs is supported.
16790 dlopen_self=$enable_dlopen_self
16791
16792 # Whether dlopen of statically linked programs is supported.
16793 dlopen_self_static=$enable_dlopen_self_static
16794
16795 # Compiler flag to prevent dynamic linking.
16796 link_static_flag=$lt_lt_prog_compiler_static_F77
16797
16798 # Compiler flag to turn off builtin functions.
16799 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16800
16801 # Compiler flag to allow reflexive dlopens.
16802 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16803
16804 # Compiler flag to generate shared objects directly from archives.
16805 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16806
16807 # Compiler flag to generate thread-safe objects.
16808 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16809
16810 # Library versioning type.
16811 version_type=$version_type
16812
16813 # Format of library name prefix.
16814 libname_spec=$lt_libname_spec
16815
16816 # List of archive names.  First name is the real one, the rest are links.
16817 # The last name is the one that the linker finds with -lNAME.
16818 library_names_spec=$lt_library_names_spec
16819
16820 # The coded name of the library, if different from the real name.
16821 soname_spec=$lt_soname_spec
16822
16823 # Commands used to build and install an old-style archive.
16824 RANLIB=$lt_RANLIB
16825 old_archive_cmds=$lt_old_archive_cmds_F77
16826 old_postinstall_cmds=$lt_old_postinstall_cmds
16827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16828
16829 # Create an old-style archive from a shared archive.
16830 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16831
16832 # Create a temporary old-style archive to link instead of a shared archive.
16833 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16834
16835 # Commands used to build and install a shared archive.
16836 archive_cmds=$lt_archive_cmds_F77
16837 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16838 postinstall_cmds=$lt_postinstall_cmds
16839 postuninstall_cmds=$lt_postuninstall_cmds
16840
16841 # Commands used to build a loadable module (assumed same as above if empty)
16842 module_cmds=$lt_module_cmds_F77
16843 module_expsym_cmds=$lt_module_expsym_cmds_F77
16844
16845 # Commands to strip libraries.
16846 old_striplib=$lt_old_striplib
16847 striplib=$lt_striplib
16848
16849 # Dependencies to place before the objects being linked to create a
16850 # shared library.
16851 predep_objects=$lt_predep_objects_F77
16852
16853 # Dependencies to place after the objects being linked to create a
16854 # shared library.
16855 postdep_objects=$lt_postdep_objects_F77
16856
16857 # Dependencies to place before the objects being linked to create a
16858 # shared library.
16859 predeps=$lt_predeps_F77
16860
16861 # Dependencies to place after the objects being linked to create a
16862 # shared library.
16863 postdeps=$lt_postdeps_F77
16864
16865 # The library search path used internally by the compiler when linking
16866 # a shared library.
16867 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16868
16869 # Method to check whether dependent libraries are shared objects.
16870 deplibs_check_method=$lt_deplibs_check_method
16871
16872 # Command to use when deplibs_check_method == file_magic.
16873 file_magic_cmd=$lt_file_magic_cmd
16874
16875 # Flag that allows shared libraries with undefined symbols to be built.
16876 allow_undefined_flag=$lt_allow_undefined_flag_F77
16877
16878 # Flag that forces no undefined symbols.
16879 no_undefined_flag=$lt_no_undefined_flag_F77
16880
16881 # Commands used to finish a libtool library installation in a directory.
16882 finish_cmds=$lt_finish_cmds
16883
16884 # Same as above, but a single script fragment to be evaled but not shown.
16885 finish_eval=$lt_finish_eval
16886
16887 # Take the output of nm and produce a listing of raw symbols and C names.
16888 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16889
16890 # Transform the output of nm in a proper C declaration
16891 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16892
16893 # Transform the output of nm in a C name address pair
16894 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16895
16896 # This is the shared library runtime path variable.
16897 runpath_var=$runpath_var
16898
16899 # This is the shared library path variable.
16900 shlibpath_var=$shlibpath_var
16901
16902 # Is shlibpath searched before the hard-coded library search path?
16903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16904
16905 # How to hardcode a shared library path into an executable.
16906 hardcode_action=$hardcode_action_F77
16907
16908 # Whether we should hardcode library paths into libraries.
16909 hardcode_into_libs=$hardcode_into_libs
16910
16911 # Flag to hardcode \$libdir into a binary during linking.
16912 # This must work even if \$libdir does not exist.
16913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16914
16915 # If ld is used when linking, flag to hardcode \$libdir into
16916 # a binary during linking. This must work even if \$libdir does
16917 # not exist.
16918 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16919
16920 # Whether we need a single -rpath flag with a separated argument.
16921 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16922
16923 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16924 # resulting binary.
16925 hardcode_direct=$hardcode_direct_F77
16926
16927 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16928 # resulting binary.
16929 hardcode_minus_L=$hardcode_minus_L_F77
16930
16931 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16932 # the resulting binary.
16933 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16934
16935 # Set to yes if building a shared library automatically hardcodes DIR into the library
16936 # and all subsequent libraries and executables linked against it.
16937 hardcode_automatic=$hardcode_automatic_F77
16938
16939 # Variables whose values should be saved in libtool wrapper scripts and
16940 # restored at relink time.
16941 variables_saved_for_relink="$variables_saved_for_relink"
16942
16943 # Whether libtool must link a program against all its dependency libraries.
16944 link_all_deplibs=$link_all_deplibs_F77
16945
16946 # Compile-time system search path for libraries
16947 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16948
16949 # Run-time system search path for libraries
16950 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16951
16952 # Fix the shell variable \$srcfile for the compiler.
16953 fix_srcfile_path="$fix_srcfile_path_F77"
16954
16955 # Set to yes if exported symbols are required.
16956 always_export_symbols=$always_export_symbols_F77
16957
16958 # The commands to list exported symbols.
16959 export_symbols_cmds=$lt_export_symbols_cmds_F77
16960
16961 # The commands to extract the exported symbol list from a shared archive.
16962 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16963
16964 # Symbols that should not be listed in the preloaded symbols.
16965 exclude_expsyms=$lt_exclude_expsyms_F77
16966
16967 # Symbols that must always be exported.
16968 include_expsyms=$lt_include_expsyms_F77
16969
16970 # ### END LIBTOOL TAG CONFIG: $tagname
16971
16972 __EOF__
16973
16974
16975 else
16976   # If there is no Makefile yet, we rely on a make rule to execute
16977   # `config.status --recheck' to rerun these tests and create the
16978   # libtool script then.
16979   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16980   if test -f "$ltmain_in"; then
16981     test -f Makefile && make "$ltmain"
16982   fi
16983 fi
16984
16985
16986 ac_ext=c
16987 ac_cpp='$CPP $CPPFLAGS'
16988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16991
16992 CC="$lt_save_CC"
16993
16994         else
16995           tagname=""
16996         fi
16997         ;;
16998
16999       GCJ)
17000         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17001
17002
17003 # Source file extension for Java test sources.
17004 ac_ext=java
17005
17006 # Object file extension for compiled Java test sources.
17007 objext=o
17008 objext_GCJ=$objext
17009
17010 # Code to be used in simple compile tests
17011 lt_simple_compile_test_code="class foo {}\n"
17012
17013 # Code to be used in simple link tests
17014 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17015
17016 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17017
17018 # If no C compiler was specified, use CC.
17019 LTCC=${LTCC-"$CC"}
17020
17021 # If no C compiler flags were specified, use CFLAGS.
17022 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17023
17024 # Allow CC to be a program name with arguments.
17025 compiler=$CC
17026
17027
17028 # save warnings/boilerplate of simple test code
17029 ac_outfile=conftest.$ac_objext
17030 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17031 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17032 _lt_compiler_boilerplate=`cat conftest.err`
17033 $rm conftest*
17034
17035 ac_outfile=conftest.$ac_objext
17036 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17037 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17038 _lt_linker_boilerplate=`cat conftest.err`
17039 $rm conftest*
17040
17041
17042 # Allow CC to be a program name with arguments.
17043 lt_save_CC="$CC"
17044 CC=${GCJ-"gcj"}
17045 compiler=$CC
17046 compiler_GCJ=$CC
17047 for cc_temp in $compiler""; do
17048   case $cc_temp in
17049     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17050     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17051     \-*) ;;
17052     *) break;;
17053   esac
17054 done
17055 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17056
17057
17058 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17059 archive_cmds_need_lc_GCJ=no
17060
17061 old_archive_cmds_GCJ=$old_archive_cmds
17062
17063 ## CAVEAT EMPTOR:
17064 ## There is no encapsulation within the following macros, do not change
17065 ## the running order or otherwise move them around unless you know exactly
17066 ## what you are doing...
17067
17068 lt_prog_compiler_no_builtin_flag_GCJ=
17069
17070 if test "$GCC" = yes; then
17071   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17072
17073
17074 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17075 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17076 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17077   echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079   lt_cv_prog_compiler_rtti_exceptions=no
17080   ac_outfile=conftest.$ac_objext
17081    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17082    lt_compiler_flag="-fno-rtti -fno-exceptions"
17083    # Insert the option either (1) after the last *FLAGS variable, or
17084    # (2) before a word containing "conftest.", or (3) at the end.
17085    # Note that $ac_compile itself does not contain backslashes and begins
17086    # with a dollar sign (not a hyphen), so the echo should work correctly.
17087    # The option is referenced via a variable to avoid confusing sed.
17088    lt_compile=`echo "$ac_compile" | $SED \
17089    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17090    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17091    -e 's:$: $lt_compiler_flag:'`
17092    (eval echo "\"\$as_me:17092: $lt_compile\"" >&5)
17093    (eval "$lt_compile" 2>conftest.err)
17094    ac_status=$?
17095    cat conftest.err >&5
17096    echo "$as_me:17096: \$? = $ac_status" >&5
17097    if (exit $ac_status) && test -s "$ac_outfile"; then
17098      # The compiler can only warn and ignore the option if not recognized
17099      # So say no if there are warnings other than the usual output.
17100      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17101      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17102      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17103        lt_cv_prog_compiler_rtti_exceptions=yes
17104      fi
17105    fi
17106    $rm conftest*
17107
17108 fi
17109 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17110 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17111
17112 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17113     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17114 else
17115     :
17116 fi
17117
17118 fi
17119
17120 lt_prog_compiler_wl_GCJ=
17121 lt_prog_compiler_pic_GCJ=
17122 lt_prog_compiler_static_GCJ=
17123
17124 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17125 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17126
17127   if test "$GCC" = yes; then
17128     lt_prog_compiler_wl_GCJ='-Wl,'
17129     lt_prog_compiler_static_GCJ='-static'
17130
17131     case $host_os in
17132       aix*)
17133       # All AIX code is PIC.
17134       if test "$host_cpu" = ia64; then
17135         # AIX 5 now supports IA64 processor
17136         lt_prog_compiler_static_GCJ='-Bstatic'
17137       fi
17138       ;;
17139
17140     amigaos*)
17141       # FIXME: we need at least 68020 code to build shared libraries, but
17142       # adding the `-m68020' flag to GCC prevents building anything better,
17143       # like `-m68040'.
17144       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17145       ;;
17146
17147     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17148       # PIC is the default for these OSes.
17149       ;;
17150
17151     mingw* | pw32* | os2*)
17152       # This hack is so that the source file can tell whether it is being
17153       # built for inclusion in a dll (and should export symbols for example).
17154       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17155       ;;
17156
17157     darwin* | rhapsody*)
17158       # PIC is the default on this platform
17159       # Common symbols not allowed in MH_DYLIB files
17160       lt_prog_compiler_pic_GCJ='-fno-common'
17161       ;;
17162
17163     interix3*)
17164       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17165       # Instead, we relocate shared libraries at runtime.
17166       ;;
17167
17168     msdosdjgpp*)
17169       # Just because we use GCC doesn't mean we suddenly get shared libraries
17170       # on systems that don't support them.
17171       lt_prog_compiler_can_build_shared_GCJ=no
17172       enable_shared=no
17173       ;;
17174
17175     sysv4*MP*)
17176       if test -d /usr/nec; then
17177         lt_prog_compiler_pic_GCJ=-Kconform_pic
17178       fi
17179       ;;
17180
17181     hpux*)
17182       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17183       # not for PA HP-UX.
17184       case $host_cpu in
17185       hppa*64*|ia64*)
17186         # +Z the default
17187         ;;
17188       *)
17189         lt_prog_compiler_pic_GCJ='-fPIC'
17190         ;;
17191       esac
17192       ;;
17193
17194     *)
17195       lt_prog_compiler_pic_GCJ='-fPIC'
17196       ;;
17197     esac
17198   else
17199     # PORTME Check for flag to pass linker flags through the system compiler.
17200     case $host_os in
17201     aix*)
17202       lt_prog_compiler_wl_GCJ='-Wl,'
17203       if test "$host_cpu" = ia64; then
17204         # AIX 5 now supports IA64 processor
17205         lt_prog_compiler_static_GCJ='-Bstatic'
17206       else
17207         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17208       fi
17209       ;;
17210       darwin*)
17211         # PIC is the default on this platform
17212         # Common symbols not allowed in MH_DYLIB files
17213        case $cc_basename in
17214          xlc*)
17215          lt_prog_compiler_pic_GCJ='-qnocommon'
17216          lt_prog_compiler_wl_GCJ='-Wl,'
17217          ;;
17218        esac
17219        ;;
17220
17221     mingw* | pw32* | os2*)
17222       # This hack is so that the source file can tell whether it is being
17223       # built for inclusion in a dll (and should export symbols for example).
17224       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17225       ;;
17226
17227     hpux9* | hpux10* | hpux11*)
17228       lt_prog_compiler_wl_GCJ='-Wl,'
17229       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17230       # not for PA HP-UX.
17231       case $host_cpu in
17232       hppa*64*|ia64*)
17233         # +Z the default
17234         ;;
17235       *)
17236         lt_prog_compiler_pic_GCJ='+Z'
17237         ;;
17238       esac
17239       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17240       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17241       ;;
17242
17243     irix5* | irix6* | nonstopux*)
17244       lt_prog_compiler_wl_GCJ='-Wl,'
17245       # PIC (with -KPIC) is the default.
17246       lt_prog_compiler_static_GCJ='-non_shared'
17247       ;;
17248
17249     newsos6)
17250       lt_prog_compiler_pic_GCJ='-KPIC'
17251       lt_prog_compiler_static_GCJ='-Bstatic'
17252       ;;
17253
17254     linux*)
17255       case $cc_basename in
17256       icc* | ecc*)
17257         lt_prog_compiler_wl_GCJ='-Wl,'
17258         lt_prog_compiler_pic_GCJ='-KPIC'
17259         lt_prog_compiler_static_GCJ='-static'
17260         ;;
17261       pgcc* | pgf77* | pgf90* | pgf95*)
17262         # Portland Group compilers (*not* the Pentium gcc compiler,
17263         # which looks to be a dead project)
17264         lt_prog_compiler_wl_GCJ='-Wl,'
17265         lt_prog_compiler_pic_GCJ='-fpic'
17266         lt_prog_compiler_static_GCJ='-Bstatic'
17267         ;;
17268       ccc*)
17269         lt_prog_compiler_wl_GCJ='-Wl,'
17270         # All Alpha code is PIC.
17271         lt_prog_compiler_static_GCJ='-non_shared'
17272         ;;
17273       esac
17274       ;;
17275
17276     osf3* | osf4* | osf5*)
17277       lt_prog_compiler_wl_GCJ='-Wl,'
17278       # All OSF/1 code is PIC.
17279       lt_prog_compiler_static_GCJ='-non_shared'
17280       ;;
17281
17282     solaris*)
17283       lt_prog_compiler_pic_GCJ='-KPIC'
17284       lt_prog_compiler_static_GCJ='-Bstatic'
17285       case $cc_basename in
17286       f77* | f90* | f95*)
17287         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17288       *)
17289         lt_prog_compiler_wl_GCJ='-Wl,';;
17290       esac
17291       ;;
17292
17293     sunos4*)
17294       lt_prog_compiler_wl_GCJ='-Qoption ld '
17295       lt_prog_compiler_pic_GCJ='-PIC'
17296       lt_prog_compiler_static_GCJ='-Bstatic'
17297       ;;
17298
17299     sysv4 | sysv4.2uw2* | sysv4.3*)
17300       lt_prog_compiler_wl_GCJ='-Wl,'
17301       lt_prog_compiler_pic_GCJ='-KPIC'
17302       lt_prog_compiler_static_GCJ='-Bstatic'
17303       ;;
17304
17305     sysv4*MP*)
17306       if test -d /usr/nec ;then
17307         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17308         lt_prog_compiler_static_GCJ='-Bstatic'
17309       fi
17310       ;;
17311
17312     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17313       lt_prog_compiler_wl_GCJ='-Wl,'
17314       lt_prog_compiler_pic_GCJ='-KPIC'
17315       lt_prog_compiler_static_GCJ='-Bstatic'
17316       ;;
17317
17318     unicos*)
17319       lt_prog_compiler_wl_GCJ='-Wl,'
17320       lt_prog_compiler_can_build_shared_GCJ=no
17321       ;;
17322
17323     uts4*)
17324       lt_prog_compiler_pic_GCJ='-pic'
17325       lt_prog_compiler_static_GCJ='-Bstatic'
17326       ;;
17327
17328     *)
17329       lt_prog_compiler_can_build_shared_GCJ=no
17330       ;;
17331     esac
17332   fi
17333
17334 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17335 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17336
17337 #
17338 # Check to make sure the PIC flag actually works.
17339 #
17340 if test -n "$lt_prog_compiler_pic_GCJ"; then
17341
17342 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17343 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17344 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17345   echo $ECHO_N "(cached) $ECHO_C" >&6
17346 else
17347   lt_prog_compiler_pic_works_GCJ=no
17348   ac_outfile=conftest.$ac_objext
17349    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17350    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17351    # Insert the option either (1) after the last *FLAGS variable, or
17352    # (2) before a word containing "conftest.", or (3) at the end.
17353    # Note that $ac_compile itself does not contain backslashes and begins
17354    # with a dollar sign (not a hyphen), so the echo should work correctly.
17355    # The option is referenced via a variable to avoid confusing sed.
17356    lt_compile=`echo "$ac_compile" | $SED \
17357    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17358    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17359    -e 's:$: $lt_compiler_flag:'`
17360    (eval echo "\"\$as_me:17360: $lt_compile\"" >&5)
17361    (eval "$lt_compile" 2>conftest.err)
17362    ac_status=$?
17363    cat conftest.err >&5
17364    echo "$as_me:17364: \$? = $ac_status" >&5
17365    if (exit $ac_status) && test -s "$ac_outfile"; then
17366      # The compiler can only warn and ignore the option if not recognized
17367      # So say no if there are warnings other than the usual output.
17368      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17369      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17370      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17371        lt_prog_compiler_pic_works_GCJ=yes
17372      fi
17373    fi
17374    $rm conftest*
17375
17376 fi
17377 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17378 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17379
17380 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17381     case $lt_prog_compiler_pic_GCJ in
17382      "" | " "*) ;;
17383      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17384      esac
17385 else
17386     lt_prog_compiler_pic_GCJ=
17387      lt_prog_compiler_can_build_shared_GCJ=no
17388 fi
17389
17390 fi
17391 case $host_os in
17392   # For platforms which do not support PIC, -DPIC is meaningless:
17393   *djgpp*)
17394     lt_prog_compiler_pic_GCJ=
17395     ;;
17396   *)
17397     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17398     ;;
17399 esac
17400
17401 #
17402 # Check to make sure the static flag actually works.
17403 #
17404 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17405 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17406 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17407 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17408   echo $ECHO_N "(cached) $ECHO_C" >&6
17409 else
17410   lt_prog_compiler_static_works_GCJ=no
17411    save_LDFLAGS="$LDFLAGS"
17412    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17413    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17414    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17415      # The linker can only warn and ignore the option if not recognized
17416      # So say no if there are warnings
17417      if test -s conftest.err; then
17418        # Append any errors to the config.log.
17419        cat conftest.err 1>&5
17420        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17421        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17422        if diff conftest.exp conftest.er2 >/dev/null; then
17423          lt_prog_compiler_static_works_GCJ=yes
17424        fi
17425      else
17426        lt_prog_compiler_static_works_GCJ=yes
17427      fi
17428    fi
17429    $rm conftest*
17430    LDFLAGS="$save_LDFLAGS"
17431
17432 fi
17433 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17434 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17435
17436 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17437     :
17438 else
17439     lt_prog_compiler_static_GCJ=
17440 fi
17441
17442
17443 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17444 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17445 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17446   echo $ECHO_N "(cached) $ECHO_C" >&6
17447 else
17448   lt_cv_prog_compiler_c_o_GCJ=no
17449    $rm -r conftest 2>/dev/null
17450    mkdir conftest
17451    cd conftest
17452    mkdir out
17453    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17454
17455    lt_compiler_flag="-o out/conftest2.$ac_objext"
17456    # Insert the option either (1) after the last *FLAGS variable, or
17457    # (2) before a word containing "conftest.", or (3) at the end.
17458    # Note that $ac_compile itself does not contain backslashes and begins
17459    # with a dollar sign (not a hyphen), so the echo should work correctly.
17460    lt_compile=`echo "$ac_compile" | $SED \
17461    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17462    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17463    -e 's:$: $lt_compiler_flag:'`
17464    (eval echo "\"\$as_me:17464: $lt_compile\"" >&5)
17465    (eval "$lt_compile" 2>out/conftest.err)
17466    ac_status=$?
17467    cat out/conftest.err >&5
17468    echo "$as_me:17468: \$? = $ac_status" >&5
17469    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17470    then
17471      # The compiler can only warn and ignore the option if not recognized
17472      # So say no if there are warnings
17473      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17474      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17475      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17476        lt_cv_prog_compiler_c_o_GCJ=yes
17477      fi
17478    fi
17479    chmod u+w . 2>&5
17480    $rm conftest*
17481    # SGI C++ compiler will create directory out/ii_files/ for
17482    # template instantiation
17483    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17484    $rm out/* && rmdir out
17485    cd ..
17486    rmdir conftest
17487    $rm conftest*
17488
17489 fi
17490 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17491 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17492
17493
17494 hard_links="nottested"
17495 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17496   # do not overwrite the value of need_locks provided by the user
17497   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17498 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17499   hard_links=yes
17500   $rm conftest*
17501   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17502   touch conftest.a
17503   ln conftest.a conftest.b 2>&5 || hard_links=no
17504   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17505   { echo "$as_me:$LINENO: result: $hard_links" >&5
17506 echo "${ECHO_T}$hard_links" >&6; }
17507   if test "$hard_links" = no; then
17508     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17509 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17510     need_locks=warn
17511   fi
17512 else
17513   need_locks=no
17514 fi
17515
17516 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17517 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17518
17519   runpath_var=
17520   allow_undefined_flag_GCJ=
17521   enable_shared_with_static_runtimes_GCJ=no
17522   archive_cmds_GCJ=
17523   archive_expsym_cmds_GCJ=
17524   old_archive_From_new_cmds_GCJ=
17525   old_archive_from_expsyms_cmds_GCJ=
17526   export_dynamic_flag_spec_GCJ=
17527   whole_archive_flag_spec_GCJ=
17528   thread_safe_flag_spec_GCJ=
17529   hardcode_libdir_flag_spec_GCJ=
17530   hardcode_libdir_flag_spec_ld_GCJ=
17531   hardcode_libdir_separator_GCJ=
17532   hardcode_direct_GCJ=no
17533   hardcode_minus_L_GCJ=no
17534   hardcode_shlibpath_var_GCJ=unsupported
17535   link_all_deplibs_GCJ=unknown
17536   hardcode_automatic_GCJ=no
17537   module_cmds_GCJ=
17538   module_expsym_cmds_GCJ=
17539   always_export_symbols_GCJ=no
17540   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17541   # include_expsyms should be a list of space-separated symbols to be *always*
17542   # included in the symbol list
17543   include_expsyms_GCJ=
17544   # exclude_expsyms can be an extended regexp of symbols to exclude
17545   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17546   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17547   # as well as any symbol that contains `d'.
17548   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17549   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17550   # platforms (ab)use it in PIC code, but their linkers get confused if
17551   # the symbol is explicitly referenced.  Since portable code cannot
17552   # rely on this symbol name, it's probably fine to never include it in
17553   # preloaded symbol tables.
17554   extract_expsyms_cmds=
17555   # Just being paranoid about ensuring that cc_basename is set.
17556   for cc_temp in $compiler""; do
17557   case $cc_temp in
17558     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17559     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17560     \-*) ;;
17561     *) break;;
17562   esac
17563 done
17564 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17565
17566   case $host_os in
17567   cygwin* | mingw* | pw32*)
17568     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17569     # When not using gcc, we currently assume that we are using
17570     # Microsoft Visual C++.
17571     if test "$GCC" != yes; then
17572       with_gnu_ld=no
17573     fi
17574     ;;
17575   interix*)
17576     # we just hope/assume this is gcc and not c89 (= MSVC++)
17577     with_gnu_ld=yes
17578     ;;
17579   openbsd*)
17580     with_gnu_ld=no
17581     ;;
17582   esac
17583
17584   ld_shlibs_GCJ=yes
17585   if test "$with_gnu_ld" = yes; then
17586     # If archive_cmds runs LD, not CC, wlarc should be empty
17587     wlarc='${wl}'
17588
17589     # Set some defaults for GNU ld with shared library support. These
17590     # are reset later if shared libraries are not supported. Putting them
17591     # here allows them to be overridden if necessary.
17592     runpath_var=LD_RUN_PATH
17593     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17594     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17595     # ancient GNU ld didn't support --whole-archive et. al.
17596     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17597         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17598       else
17599         whole_archive_flag_spec_GCJ=
17600     fi
17601     supports_anon_versioning=no
17602     case `$LD -v 2>/dev/null` in
17603       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17604       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17605       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17606       *\ 2.11.*) ;; # other 2.11 versions
17607       *) supports_anon_versioning=yes ;;
17608     esac
17609
17610     # See if GNU ld supports shared libraries.
17611     case $host_os in
17612     aix3* | aix4* | aix5*)
17613       # On AIX/PPC, the GNU linker is very broken
17614       if test "$host_cpu" != ia64; then
17615         ld_shlibs_GCJ=no
17616         cat <<EOF 1>&2
17617
17618 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17619 *** to be unable to reliably create shared libraries on AIX.
17620 *** Therefore, libtool is disabling shared libraries support.  If you
17621 *** really care for shared libraries, you may want to modify your PATH
17622 *** so that a non-GNU linker is found, and then restart.
17623
17624 EOF
17625       fi
17626       ;;
17627
17628     amigaos*)
17629       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)'
17630       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17631       hardcode_minus_L_GCJ=yes
17632
17633       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17634       # that the semantics of dynamic libraries on AmigaOS, at least up
17635       # to version 4, is to share data among multiple programs linked
17636       # with the same dynamic library.  Since this doesn't match the
17637       # behavior of shared libraries on other platforms, we can't use
17638       # them.
17639       ld_shlibs_GCJ=no
17640       ;;
17641
17642     beos*)
17643       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17644         allow_undefined_flag_GCJ=unsupported
17645         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17646         # support --undefined.  This deserves some investigation.  FIXME
17647         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17648       else
17649         ld_shlibs_GCJ=no
17650       fi
17651       ;;
17652
17653     cygwin* | mingw* | pw32*)
17654       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17655       # as there is no search path for DLLs.
17656       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17657       allow_undefined_flag_GCJ=unsupported
17658       always_export_symbols_GCJ=no
17659       enable_shared_with_static_runtimes_GCJ=yes
17660       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17661
17662       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17663         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17664         # If the export-symbols file already is a .def file (1st line
17665         # is EXPORTS), use it as is; otherwise, prepend...
17666         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17667           cp $export_symbols $output_objdir/$soname.def;
17668         else
17669           echo EXPORTS > $output_objdir/$soname.def;
17670           cat $export_symbols >> $output_objdir/$soname.def;
17671         fi~
17672         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17673       else
17674         ld_shlibs_GCJ=no
17675       fi
17676       ;;
17677
17678     interix3*)
17679       hardcode_direct_GCJ=no
17680       hardcode_shlibpath_var_GCJ=no
17681       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17682       export_dynamic_flag_spec_GCJ='${wl}-E'
17683       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17684       # Instead, shared libraries are loaded at an image base (0x10000000 by
17685       # default) and relocated if they conflict, which is a slow very memory
17686       # consuming and fragmenting process.  To avoid this, we pick a random,
17687       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17688       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17689       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'
17690       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'
17691       ;;
17692
17693     linux*)
17694       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17695         tmp_addflag=
17696         case $cc_basename,$host_cpu in
17697         pgcc*)                          # Portland Group C compiler
17698           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'
17699           tmp_addflag=' $pic_flag'
17700           ;;
17701         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17702           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'
17703           tmp_addflag=' $pic_flag -Mnomain' ;;
17704         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17705           tmp_addflag=' -i_dynamic' ;;
17706         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17707           tmp_addflag=' -i_dynamic -nofor_main' ;;
17708         ifc* | ifort*)                  # Intel Fortran compiler
17709           tmp_addflag=' -nofor_main' ;;
17710         esac
17711         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17712
17713         if test $supports_anon_versioning = yes; then
17714           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17715   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17716   $echo "local: *; };" >> $output_objdir/$libname.ver~
17717           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17718         fi
17719       else
17720         ld_shlibs_GCJ=no
17721       fi
17722       ;;
17723
17724     netbsd*)
17725       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17726         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17727         wlarc=
17728       else
17729         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17730         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17731       fi
17732       ;;
17733
17734     solaris*)
17735       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17736         ld_shlibs_GCJ=no
17737         cat <<EOF 1>&2
17738
17739 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17740 *** create shared libraries on Solaris systems.  Therefore, libtool
17741 *** is disabling shared libraries support.  We urge you to upgrade GNU
17742 *** binutils to release 2.9.1 or newer.  Another option is to modify
17743 *** your PATH or compiler configuration so that the native linker is
17744 *** used, and then restart.
17745
17746 EOF
17747       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17748         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17749         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17750       else
17751         ld_shlibs_GCJ=no
17752       fi
17753       ;;
17754
17755     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17756       case `$LD -v 2>&1` in
17757         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17758         ld_shlibs_GCJ=no
17759         cat <<_LT_EOF 1>&2
17760
17761 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17762 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17763 *** is disabling shared libraries support.  We urge you to upgrade GNU
17764 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17765 *** your PATH or compiler configuration so that the native linker is
17766 *** used, and then restart.
17767
17768 _LT_EOF
17769         ;;
17770         *)
17771           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17772             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17773             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17774             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17775           else
17776             ld_shlibs_GCJ=no
17777           fi
17778         ;;
17779       esac
17780       ;;
17781
17782     sunos4*)
17783       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17784       wlarc=
17785       hardcode_direct_GCJ=yes
17786       hardcode_shlibpath_var_GCJ=no
17787       ;;
17788
17789     *)
17790       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17791         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17792         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17793       else
17794         ld_shlibs_GCJ=no
17795       fi
17796       ;;
17797     esac
17798
17799     if test "$ld_shlibs_GCJ" = no; then
17800       runpath_var=
17801       hardcode_libdir_flag_spec_GCJ=
17802       export_dynamic_flag_spec_GCJ=
17803       whole_archive_flag_spec_GCJ=
17804     fi
17805   else
17806     # PORTME fill in a description of your system's linker (not GNU ld)
17807     case $host_os in
17808     aix3*)
17809       allow_undefined_flag_GCJ=unsupported
17810       always_export_symbols_GCJ=yes
17811       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'
17812       # Note: this linker hardcodes the directories in LIBPATH if there
17813       # are no directories specified by -L.
17814       hardcode_minus_L_GCJ=yes
17815       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17816         # Neither direct hardcoding nor static linking is supported with a
17817         # broken collect2.
17818         hardcode_direct_GCJ=unsupported
17819       fi
17820       ;;
17821
17822     aix4* | aix5*)
17823       if test "$host_cpu" = ia64; then
17824         # On IA64, the linker does run time linking by default, so we don't
17825         # have to do anything special.
17826         aix_use_runtimelinking=no
17827         exp_sym_flag='-Bexport'
17828         no_entry_flag=""
17829       else
17830         # If we're using GNU nm, then we don't want the "-C" option.
17831         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17832         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17833           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'
17834         else
17835           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'
17836         fi
17837         aix_use_runtimelinking=no
17838
17839         # Test if we are trying to use run time linking or normal
17840         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17841         # need to do runtime linking.
17842         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17843           for ld_flag in $LDFLAGS; do
17844           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17845             aix_use_runtimelinking=yes
17846             break
17847           fi
17848           done
17849           ;;
17850         esac
17851
17852         exp_sym_flag='-bexport'
17853         no_entry_flag='-bnoentry'
17854       fi
17855
17856       # When large executables or shared objects are built, AIX ld can
17857       # have problems creating the table of contents.  If linking a library
17858       # or program results in "error TOC overflow" add -mminimal-toc to
17859       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17860       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17861
17862       archive_cmds_GCJ=''
17863       hardcode_direct_GCJ=yes
17864       hardcode_libdir_separator_GCJ=':'
17865       link_all_deplibs_GCJ=yes
17866
17867       if test "$GCC" = yes; then
17868         case $host_os in aix4.[012]|aix4.[012].*)
17869         # We only want to do this on AIX 4.2 and lower, the check
17870         # below for broken collect2 doesn't work under 4.3+
17871           collect2name=`${CC} -print-prog-name=collect2`
17872           if test -f "$collect2name" && \
17873            strings "$collect2name" | grep resolve_lib_name >/dev/null
17874           then
17875           # We have reworked collect2
17876           hardcode_direct_GCJ=yes
17877           else
17878           # We have old collect2
17879           hardcode_direct_GCJ=unsupported
17880           # It fails to find uninstalled libraries when the uninstalled
17881           # path is not listed in the libpath.  Setting hardcode_minus_L
17882           # to unsupported forces relinking
17883           hardcode_minus_L_GCJ=yes
17884           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17885           hardcode_libdir_separator_GCJ=
17886           fi
17887           ;;
17888         esac
17889         shared_flag='-shared'
17890         if test "$aix_use_runtimelinking" = yes; then
17891           shared_flag="$shared_flag "'${wl}-G'
17892         fi
17893       else
17894         # not using gcc
17895         if test "$host_cpu" = ia64; then
17896         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17897         # chokes on -Wl,-G. The following line is correct:
17898           shared_flag='-G'
17899         else
17900           if test "$aix_use_runtimelinking" = yes; then
17901             shared_flag='${wl}-G'
17902           else
17903             shared_flag='${wl}-bM:SRE'
17904           fi
17905         fi
17906       fi
17907
17908       # It seems that -bexpall does not export symbols beginning with
17909       # underscore (_), so it is better to generate a list of symbols to export.
17910       always_export_symbols_GCJ=yes
17911       if test "$aix_use_runtimelinking" = yes; then
17912         # Warning - without using the other runtime loading flags (-brtl),
17913         # -berok will link without error, but may produce a broken library.
17914         allow_undefined_flag_GCJ='-berok'
17915        # Determine the default libpath from the value encoded in an empty executable.
17916        cat >conftest.$ac_ext <<_ACEOF
17917 /* confdefs.h.  */
17918 _ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h.  */
17922
17923 int
17924 main ()
17925 {
17926
17927   ;
17928   return 0;
17929 }
17930 _ACEOF
17931 rm -f conftest.$ac_objext conftest$ac_exeext
17932 if { (ac_try="$ac_link"
17933 case "(($ac_try" in
17934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935   *) ac_try_echo=$ac_try;;
17936 esac
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938   (eval "$ac_link") 2>conftest.er1
17939   ac_status=$?
17940   grep -v '^ *+' conftest.er1 >conftest.err
17941   rm -f conftest.er1
17942   cat conftest.err >&5
17943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944   (exit $ac_status); } &&
17945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17946   { (case "(($ac_try" in
17947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948   *) ac_try_echo=$ac_try;;
17949 esac
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951   (eval "$ac_try") 2>&5
17952   ac_status=$?
17953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954   (exit $ac_status); }; } &&
17955          { ac_try='test -s conftest$ac_exeext'
17956   { (case "(($ac_try" in
17957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958   *) ac_try_echo=$ac_try;;
17959 esac
17960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961   (eval "$ac_try") 2>&5
17962   ac_status=$?
17963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964   (exit $ac_status); }; }; then
17965
17966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17967 }'`
17968 # Check for a 64-bit object if we didn't find anything.
17969 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; }
17970 }'`; fi
17971 else
17972   echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17974
17975
17976 fi
17977
17978 rm -f core conftest.err conftest.$ac_objext \
17979       conftest$ac_exeext conftest.$ac_ext
17980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17981
17982        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17983         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"
17984        else
17985         if test "$host_cpu" = ia64; then
17986           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17987           allow_undefined_flag_GCJ="-z nodefs"
17988           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"
17989         else
17990          # Determine the default libpath from the value encoded in an empty executable.
17991          cat >conftest.$ac_ext <<_ACEOF
17992 /* confdefs.h.  */
17993 _ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h.  */
17997
17998 int
17999 main ()
18000 {
18001
18002   ;
18003   return 0;
18004 }
18005 _ACEOF
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (ac_try="$ac_link"
18008 case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_link") 2>conftest.er1
18014   ac_status=$?
18015   grep -v '^ *+' conftest.er1 >conftest.err
18016   rm -f conftest.er1
18017   cat conftest.err >&5
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); } &&
18020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021   { (case "(($ac_try" in
18022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023   *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026   (eval "$ac_try") 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; } &&
18030          { ac_try='test -s conftest$ac_exeext'
18031   { (case "(($ac_try" in
18032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033   *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036   (eval "$ac_try") 2>&5
18037   ac_status=$?
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); }; }; then
18040
18041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18042 }'`
18043 # Check for a 64-bit object if we didn't find anything.
18044 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; }
18045 }'`; fi
18046 else
18047   echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18049
18050
18051 fi
18052
18053 rm -f core conftest.err conftest.$ac_objext \
18054       conftest$ac_exeext conftest.$ac_ext
18055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18056
18057          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18058           # Warning - without using the other run time loading flags,
18059           # -berok will link without error, but may produce a broken library.
18060           no_undefined_flag_GCJ=' ${wl}-bernotok'
18061           allow_undefined_flag_GCJ=' ${wl}-berok'
18062           # Exported symbols can be pulled into shared objects from archives
18063           whole_archive_flag_spec_GCJ='$convenience'
18064           archive_cmds_need_lc_GCJ=yes
18065           # This is similar to how AIX traditionally builds its shared libraries.
18066           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'
18067         fi
18068       fi
18069       ;;
18070
18071     amigaos*)
18072       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)'
18073       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18074       hardcode_minus_L_GCJ=yes
18075       # see comment about different semantics on the GNU ld section
18076       ld_shlibs_GCJ=no
18077       ;;
18078
18079     bsdi[45]*)
18080       export_dynamic_flag_spec_GCJ=-rdynamic
18081       ;;
18082
18083     cygwin* | mingw* | pw32*)
18084       # When not using gcc, we currently assume that we are using
18085       # Microsoft Visual C++.
18086       # hardcode_libdir_flag_spec is actually meaningless, as there is
18087       # no search path for DLLs.
18088       hardcode_libdir_flag_spec_GCJ=' '
18089       allow_undefined_flag_GCJ=unsupported
18090       # Tell ltmain to make .lib files, not .a files.
18091       libext=lib
18092       # Tell ltmain to make .dll files, not .so files.
18093       shrext_cmds=".dll"
18094       # FIXME: Setting linknames here is a bad hack.
18095       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18096       # The linker will automatically build a .lib file if we build a DLL.
18097       old_archive_From_new_cmds_GCJ='true'
18098       # FIXME: Should let the user specify the lib program.
18099       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18100       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18101       enable_shared_with_static_runtimes_GCJ=yes
18102       ;;
18103
18104     darwin* | rhapsody*)
18105       case $host_os in
18106         rhapsody* | darwin1.[012])
18107          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18108          ;;
18109        *) # Darwin 1.3 on
18110          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18111            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18112          else
18113            case ${MACOSX_DEPLOYMENT_TARGET} in
18114              10.[012])
18115                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18116                ;;
18117              10.*)
18118                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18119                ;;
18120            esac
18121          fi
18122          ;;
18123       esac
18124       archive_cmds_need_lc_GCJ=no
18125       hardcode_direct_GCJ=no
18126       hardcode_automatic_GCJ=yes
18127       hardcode_shlibpath_var_GCJ=unsupported
18128       whole_archive_flag_spec_GCJ=''
18129       link_all_deplibs_GCJ=yes
18130     if test "$GCC" = yes ; then
18131         output_verbose_link_cmd='echo'
18132         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18133       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18134       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18135       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}'
18136       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}'
18137     else
18138       case $cc_basename in
18139         xlc*)
18140          output_verbose_link_cmd='echo'
18141          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18142          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18143           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18144          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}'
18145           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}'
18146           ;;
18147        *)
18148          ld_shlibs_GCJ=no
18149           ;;
18150       esac
18151     fi
18152       ;;
18153
18154     dgux*)
18155       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18156       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18157       hardcode_shlibpath_var_GCJ=no
18158       ;;
18159
18160     freebsd1*)
18161       ld_shlibs_GCJ=no
18162       ;;
18163
18164     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18165     # support.  Future versions do this automatically, but an explicit c++rt0.o
18166     # does not break anything, and helps significantly (at the cost of a little
18167     # extra space).
18168     freebsd2.2*)
18169       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18170       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18171       hardcode_direct_GCJ=yes
18172       hardcode_shlibpath_var_GCJ=no
18173       ;;
18174
18175     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18176     freebsd2*)
18177       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18178       hardcode_direct_GCJ=yes
18179       hardcode_minus_L_GCJ=yes
18180       hardcode_shlibpath_var_GCJ=no
18181       ;;
18182
18183     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18184     freebsd* | kfreebsd*-gnu | dragonfly*)
18185       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18186       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18187       hardcode_direct_GCJ=yes
18188       hardcode_shlibpath_var_GCJ=no
18189       ;;
18190
18191     hpux9*)
18192       if test "$GCC" = yes; then
18193         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'
18194       else
18195         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'
18196       fi
18197       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18198       hardcode_libdir_separator_GCJ=:
18199       hardcode_direct_GCJ=yes
18200
18201       # hardcode_minus_L: Not really in the search PATH,
18202       # but as the default location of the library.
18203       hardcode_minus_L_GCJ=yes
18204       export_dynamic_flag_spec_GCJ='${wl}-E'
18205       ;;
18206
18207     hpux10*)
18208       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18209         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18210       else
18211         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18212       fi
18213       if test "$with_gnu_ld" = no; then
18214         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18215         hardcode_libdir_separator_GCJ=:
18216
18217         hardcode_direct_GCJ=yes
18218         export_dynamic_flag_spec_GCJ='${wl}-E'
18219
18220         # hardcode_minus_L: Not really in the search PATH,
18221         # but as the default location of the library.
18222         hardcode_minus_L_GCJ=yes
18223       fi
18224       ;;
18225
18226     hpux11*)
18227       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18228         case $host_cpu in
18229         hppa*64*)
18230           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18231           ;;
18232         ia64*)
18233           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18234           ;;
18235         *)
18236           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18237           ;;
18238         esac
18239       else
18240         case $host_cpu in
18241         hppa*64*)
18242           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18243           ;;
18244         ia64*)
18245           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18246           ;;
18247         *)
18248           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18249           ;;
18250         esac
18251       fi
18252       if test "$with_gnu_ld" = no; then
18253         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18254         hardcode_libdir_separator_GCJ=:
18255
18256         case $host_cpu in
18257         hppa*64*|ia64*)
18258           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18259           hardcode_direct_GCJ=no
18260           hardcode_shlibpath_var_GCJ=no
18261           ;;
18262         *)
18263           hardcode_direct_GCJ=yes
18264           export_dynamic_flag_spec_GCJ='${wl}-E'
18265
18266           # hardcode_minus_L: Not really in the search PATH,
18267           # but as the default location of the library.
18268           hardcode_minus_L_GCJ=yes
18269           ;;
18270         esac
18271       fi
18272       ;;
18273
18274     irix5* | irix6* | nonstopux*)
18275       if test "$GCC" = yes; then
18276         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'
18277       else
18278         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'
18279         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18280       fi
18281       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18282       hardcode_libdir_separator_GCJ=:
18283       link_all_deplibs_GCJ=yes
18284       ;;
18285
18286     netbsd*)
18287       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18288         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18289       else
18290         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18291       fi
18292       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18293       hardcode_direct_GCJ=yes
18294       hardcode_shlibpath_var_GCJ=no
18295       ;;
18296
18297     newsos6)
18298       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18299       hardcode_direct_GCJ=yes
18300       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18301       hardcode_libdir_separator_GCJ=:
18302       hardcode_shlibpath_var_GCJ=no
18303       ;;
18304
18305     openbsd*)
18306       hardcode_direct_GCJ=yes
18307       hardcode_shlibpath_var_GCJ=no
18308       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18309         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18310         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18311         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18312         export_dynamic_flag_spec_GCJ='${wl}-E'
18313       else
18314        case $host_os in
18315          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18316            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18317            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18318            ;;
18319          *)
18320            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18321            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18322            ;;
18323        esac
18324       fi
18325       ;;
18326
18327     os2*)
18328       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18329       hardcode_minus_L_GCJ=yes
18330       allow_undefined_flag_GCJ=unsupported
18331       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'
18332       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18333       ;;
18334
18335     osf3*)
18336       if test "$GCC" = yes; then
18337         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18338         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'
18339       else
18340         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18341         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'
18342       fi
18343       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18344       hardcode_libdir_separator_GCJ=:
18345       ;;
18346
18347     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18348       if test "$GCC" = yes; then
18349         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18350         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'
18351         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18352       else
18353         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18354         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'
18355         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~
18356         $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'
18357
18358         # Both c and cxx compiler support -rpath directly
18359         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18360       fi
18361       hardcode_libdir_separator_GCJ=:
18362       ;;
18363
18364     solaris*)
18365       no_undefined_flag_GCJ=' -z text'
18366       if test "$GCC" = yes; then
18367         wlarc='${wl}'
18368         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18369         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18370           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18371       else
18372         wlarc=''
18373         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18374         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18375         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18376       fi
18377       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18378       hardcode_shlibpath_var_GCJ=no
18379       case $host_os in
18380       solaris2.[0-5] | solaris2.[0-5].*) ;;
18381       *)
18382         # The compiler driver will combine linker options so we
18383         # cannot just pass the convience library names through
18384         # without $wl, iff we do not link with $LD.
18385         # Luckily, gcc supports the same syntax we need for Sun Studio.
18386         # Supported since Solaris 2.6 (maybe 2.5.1?)
18387         case $wlarc in
18388         '')
18389           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18390         *)
18391           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' ;;
18392         esac ;;
18393       esac
18394       link_all_deplibs_GCJ=yes
18395       ;;
18396
18397     sunos4*)
18398       if test "x$host_vendor" = xsequent; then
18399         # Use $CC to link under sequent, because it throws in some extra .o
18400         # files that make .init and .fini sections work.
18401         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18402       else
18403         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18404       fi
18405       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18406       hardcode_direct_GCJ=yes
18407       hardcode_minus_L_GCJ=yes
18408       hardcode_shlibpath_var_GCJ=no
18409       ;;
18410
18411     sysv4)
18412       case $host_vendor in
18413         sni)
18414           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18415           hardcode_direct_GCJ=yes # is this really true???
18416         ;;
18417         siemens)
18418           ## LD is ld it makes a PLAMLIB
18419           ## CC just makes a GrossModule.
18420           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18421           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18422           hardcode_direct_GCJ=no
18423         ;;
18424         motorola)
18425           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18426           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18427         ;;
18428       esac
18429       runpath_var='LD_RUN_PATH'
18430       hardcode_shlibpath_var_GCJ=no
18431       ;;
18432
18433     sysv4.3*)
18434       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18435       hardcode_shlibpath_var_GCJ=no
18436       export_dynamic_flag_spec_GCJ='-Bexport'
18437       ;;
18438
18439     sysv4*MP*)
18440       if test -d /usr/nec; then
18441         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18442         hardcode_shlibpath_var_GCJ=no
18443         runpath_var=LD_RUN_PATH
18444         hardcode_runpath_var=yes
18445         ld_shlibs_GCJ=yes
18446       fi
18447       ;;
18448
18449     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18450       no_undefined_flag_GCJ='${wl}-z,text'
18451       archive_cmds_need_lc_GCJ=no
18452       hardcode_shlibpath_var_GCJ=no
18453       runpath_var='LD_RUN_PATH'
18454
18455       if test "$GCC" = yes; then
18456         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18457         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18458       else
18459         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18460         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18461       fi
18462       ;;
18463
18464     sysv5* | sco3.2v5* | sco5v6*)
18465       # Note: We can NOT use -z defs as we might desire, because we do not
18466       # link with -lc, and that would cause any symbols used from libc to
18467       # always be unresolved, which means just about no library would
18468       # ever link correctly.  If we're not using GNU ld we use -z text
18469       # though, which does catch some bad symbols but isn't as heavy-handed
18470       # as -z defs.
18471       no_undefined_flag_GCJ='${wl}-z,text'
18472       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18473       archive_cmds_need_lc_GCJ=no
18474       hardcode_shlibpath_var_GCJ=no
18475       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18476       hardcode_libdir_separator_GCJ=':'
18477       link_all_deplibs_GCJ=yes
18478       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18479       runpath_var='LD_RUN_PATH'
18480
18481       if test "$GCC" = yes; then
18482         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18483         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18484       else
18485         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18486         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18487       fi
18488       ;;
18489
18490     uts4*)
18491       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18492       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18493       hardcode_shlibpath_var_GCJ=no
18494       ;;
18495
18496     *)
18497       ld_shlibs_GCJ=no
18498       ;;
18499     esac
18500   fi
18501
18502 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18503 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18504 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18505
18506 #
18507 # Do we need to explicitly link libc?
18508 #
18509 case "x$archive_cmds_need_lc_GCJ" in
18510 x|xyes)
18511   # Assume -lc should be added
18512   archive_cmds_need_lc_GCJ=yes
18513
18514   if test "$enable_shared" = yes && test "$GCC" = yes; then
18515     case $archive_cmds_GCJ in
18516     *'~'*)
18517       # FIXME: we may have to deal with multi-command sequences.
18518       ;;
18519     '$CC '*)
18520       # Test whether the compiler implicitly links with -lc since on some
18521       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18522       # to ld, don't add -lc before -lgcc.
18523       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18524 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18525       $rm conftest*
18526       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18527
18528       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18529   (eval $ac_compile) 2>&5
18530   ac_status=$?
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); } 2>conftest.err; then
18533         soname=conftest
18534         lib=conftest
18535         libobjs=conftest.$ac_objext
18536         deplibs=
18537         wl=$lt_prog_compiler_wl_GCJ
18538         pic_flag=$lt_prog_compiler_pic_GCJ
18539         compiler_flags=-v
18540         linker_flags=-v
18541         verstring=
18542         output_objdir=.
18543         libname=conftest
18544         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18545         allow_undefined_flag_GCJ=
18546         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18547   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18548   ac_status=$?
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); }
18551         then
18552           archive_cmds_need_lc_GCJ=no
18553         else
18554           archive_cmds_need_lc_GCJ=yes
18555         fi
18556         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18557       else
18558         cat conftest.err 1>&5
18559       fi
18560       $rm conftest*
18561       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18562 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18563       ;;
18564     esac
18565   fi
18566   ;;
18567 esac
18568
18569 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18570 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18571 library_names_spec=
18572 libname_spec='lib$name'
18573 soname_spec=
18574 shrext_cmds=".so"
18575 postinstall_cmds=
18576 postuninstall_cmds=
18577 finish_cmds=
18578 finish_eval=
18579 shlibpath_var=
18580 shlibpath_overrides_runpath=unknown
18581 version_type=none
18582 dynamic_linker="$host_os ld.so"
18583 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18584 if test "$GCC" = yes; then
18585   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18586   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18587     # if the path contains ";" then we assume it to be the separator
18588     # otherwise default to the standard path separator (i.e. ":") - it is
18589     # assumed that no part of a normal pathname contains ";" but that should
18590     # okay in the real world where ";" in dirpaths is itself problematic.
18591     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18592   else
18593     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18594   fi
18595 else
18596   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18597 fi
18598 need_lib_prefix=unknown
18599 hardcode_into_libs=no
18600
18601 # when you set need_version to no, make sure it does not cause -set_version
18602 # flags to be left without arguments
18603 need_version=unknown
18604
18605 case $host_os in
18606 aix3*)
18607   version_type=linux
18608   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18609   shlibpath_var=LIBPATH
18610
18611   # AIX 3 has no versioning support, so we append a major version to the name.
18612   soname_spec='${libname}${release}${shared_ext}$major'
18613   ;;
18614
18615 aix4* | aix5*)
18616   version_type=linux
18617   need_lib_prefix=no
18618   need_version=no
18619   hardcode_into_libs=yes
18620   if test "$host_cpu" = ia64; then
18621     # AIX 5 supports IA64
18622     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18623     shlibpath_var=LD_LIBRARY_PATH
18624   else
18625     # With GCC up to 2.95.x, collect2 would create an import file
18626     # for dependence libraries.  The import file would start with
18627     # the line `#! .'.  This would cause the generated library to
18628     # depend on `.', always an invalid library.  This was fixed in
18629     # development snapshots of GCC prior to 3.0.
18630     case $host_os in
18631       aix4 | aix4.[01] | aix4.[01].*)
18632       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18633            echo ' yes '
18634            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18635         :
18636       else
18637         can_build_shared=no
18638       fi
18639       ;;
18640     esac
18641     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18642     # soname into executable. Probably we can add versioning support to
18643     # collect2, so additional links can be useful in future.
18644     if test "$aix_use_runtimelinking" = yes; then
18645       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18646       # instead of lib<name>.a to let people know that these are not
18647       # typical AIX shared libraries.
18648       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18649     else
18650       # We preserve .a as extension for shared libraries through AIX4.2
18651       # and later when we are not doing run time linking.
18652       library_names_spec='${libname}${release}.a $libname.a'
18653       soname_spec='${libname}${release}${shared_ext}$major'
18654     fi
18655     shlibpath_var=LIBPATH
18656   fi
18657   ;;
18658
18659 amigaos*)
18660   library_names_spec='$libname.ixlibrary $libname.a'
18661   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18662   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'
18663   ;;
18664
18665 beos*)
18666   library_names_spec='${libname}${shared_ext}'
18667   dynamic_linker="$host_os ld.so"
18668   shlibpath_var=LIBRARY_PATH
18669   ;;
18670
18671 bsdi[45]*)
18672   version_type=linux
18673   need_version=no
18674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18675   soname_spec='${libname}${release}${shared_ext}$major'
18676   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18677   shlibpath_var=LD_LIBRARY_PATH
18678   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18679   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18680   # the default ld.so.conf also contains /usr/contrib/lib and
18681   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18682   # libtool to hard-code these into programs
18683   ;;
18684
18685 cygwin* | mingw* | pw32*)
18686   version_type=windows
18687   shrext_cmds=".dll"
18688   need_version=no
18689   need_lib_prefix=no
18690
18691   case $GCC,$host_os in
18692   yes,cygwin* | yes,mingw* | yes,pw32*)
18693     library_names_spec='$libname.dll.a'
18694     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18695     postinstall_cmds='base_file=`basename \${file}`~
18696       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18697       dldir=$destdir/`dirname \$dlpath`~
18698       test -d \$dldir || mkdir -p \$dldir~
18699       $install_prog $dir/$dlname \$dldir/$dlname~
18700       chmod a+x \$dldir/$dlname'
18701     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18702       dlpath=$dir/\$dldll~
18703        $rm \$dlpath'
18704     shlibpath_overrides_runpath=yes
18705
18706     case $host_os in
18707     cygwin*)
18708       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18709       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18710       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18711       ;;
18712     mingw*)
18713       # MinGW DLLs use traditional 'lib' prefix
18714       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18715       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18716       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18717         # It is most probably a Windows format PATH printed by
18718         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18719         # path with ; separators, and with drive letters. We can handle the
18720         # drive letters (cygwin fileutils understands them), so leave them,
18721         # especially as we might pass files found there to a mingw objdump,
18722         # which wouldn't understand a cygwinified path. Ahh.
18723         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18724       else
18725         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18726       fi
18727       ;;
18728     pw32*)
18729       # pw32 DLLs use 'pw' prefix rather than 'lib'
18730       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18731       ;;
18732     esac
18733     ;;
18734
18735   *)
18736     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18737     ;;
18738   esac
18739   dynamic_linker='Win32 ld.exe'
18740   # FIXME: first we should search . and the directory the executable is in
18741   shlibpath_var=PATH
18742   ;;
18743
18744 darwin* | rhapsody*)
18745   dynamic_linker="$host_os dyld"
18746   version_type=darwin
18747   need_lib_prefix=no
18748   need_version=no
18749   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18750   soname_spec='${libname}${release}${major}$shared_ext'
18751   shlibpath_overrides_runpath=yes
18752   shlibpath_var=DYLD_LIBRARY_PATH
18753   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18754   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18755   if test "$GCC" = yes; then
18756     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"`
18757   else
18758     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18759   fi
18760   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18761   ;;
18762
18763 dgux*)
18764   version_type=linux
18765   need_lib_prefix=no
18766   need_version=no
18767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18768   soname_spec='${libname}${release}${shared_ext}$major'
18769   shlibpath_var=LD_LIBRARY_PATH
18770   ;;
18771
18772 freebsd1*)
18773   dynamic_linker=no
18774   ;;
18775
18776 kfreebsd*-gnu)
18777   version_type=linux
18778   need_lib_prefix=no
18779   need_version=no
18780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18781   soname_spec='${libname}${release}${shared_ext}$major'
18782   shlibpath_var=LD_LIBRARY_PATH
18783   shlibpath_overrides_runpath=no
18784   hardcode_into_libs=yes
18785   dynamic_linker='GNU ld.so'
18786   ;;
18787
18788 freebsd* | dragonfly*)
18789   # DragonFly does not have aout.  When/if they implement a new
18790   # versioning mechanism, adjust this.
18791   if test -x /usr/bin/objformat; then
18792     objformat=`/usr/bin/objformat`
18793   else
18794     case $host_os in
18795     freebsd[123]*) objformat=aout ;;
18796     *) objformat=elf ;;
18797     esac
18798   fi
18799   version_type=freebsd-$objformat
18800   case $version_type in
18801     freebsd-elf*)
18802       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18803       need_version=no
18804       need_lib_prefix=no
18805       ;;
18806     freebsd-*)
18807       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18808       need_version=yes
18809       ;;
18810   esac
18811   shlibpath_var=LD_LIBRARY_PATH
18812   case $host_os in
18813   freebsd2*)
18814     shlibpath_overrides_runpath=yes
18815     ;;
18816   freebsd3.[01]* | freebsdelf3.[01]*)
18817     shlibpath_overrides_runpath=yes
18818     hardcode_into_libs=yes
18819     ;;
18820   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18821   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18822     shlibpath_overrides_runpath=no
18823     hardcode_into_libs=yes
18824     ;;
18825   freebsd*) # from 4.6 on
18826     shlibpath_overrides_runpath=yes
18827     hardcode_into_libs=yes
18828     ;;
18829   esac
18830   ;;
18831
18832 gnu*)
18833   version_type=linux
18834   need_lib_prefix=no
18835   need_version=no
18836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18837   soname_spec='${libname}${release}${shared_ext}$major'
18838   shlibpath_var=LD_LIBRARY_PATH
18839   hardcode_into_libs=yes
18840   ;;
18841
18842 hpux9* | hpux10* | hpux11*)
18843   # Give a soname corresponding to the major version so that dld.sl refuses to
18844   # link against other versions.
18845   version_type=sunos
18846   need_lib_prefix=no
18847   need_version=no
18848   case $host_cpu in
18849   ia64*)
18850     shrext_cmds='.so'
18851     hardcode_into_libs=yes
18852     dynamic_linker="$host_os dld.so"
18853     shlibpath_var=LD_LIBRARY_PATH
18854     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18856     soname_spec='${libname}${release}${shared_ext}$major'
18857     if test "X$HPUX_IA64_MODE" = X32; then
18858       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18859     else
18860       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18861     fi
18862     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18863     ;;
18864    hppa*64*)
18865      shrext_cmds='.sl'
18866      hardcode_into_libs=yes
18867      dynamic_linker="$host_os dld.sl"
18868      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18869      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18870      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18871      soname_spec='${libname}${release}${shared_ext}$major'
18872      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18873      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18874      ;;
18875    *)
18876     shrext_cmds='.sl'
18877     dynamic_linker="$host_os dld.sl"
18878     shlibpath_var=SHLIB_PATH
18879     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18881     soname_spec='${libname}${release}${shared_ext}$major'
18882     ;;
18883   esac
18884   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18885   postinstall_cmds='chmod 555 $lib'
18886   ;;
18887
18888 interix3*)
18889   version_type=linux
18890   need_lib_prefix=no
18891   need_version=no
18892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18893   soname_spec='${libname}${release}${shared_ext}$major'
18894   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18895   shlibpath_var=LD_LIBRARY_PATH
18896   shlibpath_overrides_runpath=no
18897   hardcode_into_libs=yes
18898   ;;
18899
18900 irix5* | irix6* | nonstopux*)
18901   case $host_os in
18902     nonstopux*) version_type=nonstopux ;;
18903     *)
18904         if test "$lt_cv_prog_gnu_ld" = yes; then
18905                 version_type=linux
18906         else
18907                 version_type=irix
18908         fi ;;
18909   esac
18910   need_lib_prefix=no
18911   need_version=no
18912   soname_spec='${libname}${release}${shared_ext}$major'
18913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18914   case $host_os in
18915   irix5* | nonstopux*)
18916     libsuff= shlibsuff=
18917     ;;
18918   *)
18919     case $LD in # libtool.m4 will add one of these switches to LD
18920     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18921       libsuff= shlibsuff= libmagic=32-bit;;
18922     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18923       libsuff=32 shlibsuff=N32 libmagic=N32;;
18924     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18925       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18926     *) libsuff= shlibsuff= libmagic=never-match;;
18927     esac
18928     ;;
18929   esac
18930   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18931   shlibpath_overrides_runpath=no
18932   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18933   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18934   hardcode_into_libs=yes
18935   ;;
18936
18937 # No shared lib support for Linux oldld, aout, or coff.
18938 linux*oldld* | linux*aout* | linux*coff*)
18939   dynamic_linker=no
18940   ;;
18941
18942 # This must be Linux ELF.
18943 linux*)
18944   version_type=linux
18945   need_lib_prefix=no
18946   need_version=no
18947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18948   soname_spec='${libname}${release}${shared_ext}$major'
18949   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18950   shlibpath_var=LD_LIBRARY_PATH
18951   shlibpath_overrides_runpath=no
18952   # This implies no fast_install, which is unacceptable.
18953   # Some rework will be needed to allow for fast_install
18954   # before this can be enabled.
18955   hardcode_into_libs=yes
18956
18957   # Append ld.so.conf contents to the search path
18958   if test -f /etc/ld.so.conf; then
18959     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' ' '`
18960     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18961   fi
18962
18963   # We used to test for /lib/ld.so.1 and disable shared libraries on
18964   # powerpc, because MkLinux only supported shared libraries with the
18965   # GNU dynamic linker.  Since this was broken with cross compilers,
18966   # most powerpc-linux boxes support dynamic linking these days and
18967   # people can always --disable-shared, the test was removed, and we
18968   # assume the GNU/Linux dynamic linker is in use.
18969   dynamic_linker='GNU/Linux ld.so'
18970   ;;
18971
18972 knetbsd*-gnu)
18973   version_type=linux
18974   need_lib_prefix=no
18975   need_version=no
18976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18977   soname_spec='${libname}${release}${shared_ext}$major'
18978   shlibpath_var=LD_LIBRARY_PATH
18979   shlibpath_overrides_runpath=no
18980   hardcode_into_libs=yes
18981   dynamic_linker='GNU ld.so'
18982   ;;
18983
18984 netbsd*)
18985   version_type=sunos
18986   need_lib_prefix=no
18987   need_version=no
18988   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18989     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18990     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18991     dynamic_linker='NetBSD (a.out) ld.so'
18992   else
18993     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18994     soname_spec='${libname}${release}${shared_ext}$major'
18995     dynamic_linker='NetBSD ld.elf_so'
18996   fi
18997   shlibpath_var=LD_LIBRARY_PATH
18998   shlibpath_overrides_runpath=yes
18999   hardcode_into_libs=yes
19000   ;;
19001
19002 newsos6)
19003   version_type=linux
19004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19005   shlibpath_var=LD_LIBRARY_PATH
19006   shlibpath_overrides_runpath=yes
19007   ;;
19008
19009 nto-qnx*)
19010   version_type=linux
19011   need_lib_prefix=no
19012   need_version=no
19013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19014   soname_spec='${libname}${release}${shared_ext}$major'
19015   shlibpath_var=LD_LIBRARY_PATH
19016   shlibpath_overrides_runpath=yes
19017   ;;
19018
19019 openbsd*)
19020   version_type=sunos
19021   sys_lib_dlsearch_path_spec="/usr/lib"
19022   need_lib_prefix=no
19023   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19024   case $host_os in
19025     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19026     *)                         need_version=no  ;;
19027   esac
19028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19029   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19030   shlibpath_var=LD_LIBRARY_PATH
19031   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19032     case $host_os in
19033       openbsd2.[89] | openbsd2.[89].*)
19034         shlibpath_overrides_runpath=no
19035         ;;
19036       *)
19037         shlibpath_overrides_runpath=yes
19038         ;;
19039       esac
19040   else
19041     shlibpath_overrides_runpath=yes
19042   fi
19043   ;;
19044
19045 os2*)
19046   libname_spec='$name'
19047   shrext_cmds=".dll"
19048   need_lib_prefix=no
19049   library_names_spec='$libname${shared_ext} $libname.a'
19050   dynamic_linker='OS/2 ld.exe'
19051   shlibpath_var=LIBPATH
19052   ;;
19053
19054 osf3* | osf4* | osf5*)
19055   version_type=osf
19056   need_lib_prefix=no
19057   need_version=no
19058   soname_spec='${libname}${release}${shared_ext}$major'
19059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19060   shlibpath_var=LD_LIBRARY_PATH
19061   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19062   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19063   ;;
19064
19065 solaris*)
19066   version_type=linux
19067   need_lib_prefix=no
19068   need_version=no
19069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19070   soname_spec='${libname}${release}${shared_ext}$major'
19071   shlibpath_var=LD_LIBRARY_PATH
19072   shlibpath_overrides_runpath=yes
19073   hardcode_into_libs=yes
19074   # ldd complains unless libraries are executable
19075   postinstall_cmds='chmod +x $lib'
19076   ;;
19077
19078 sunos4*)
19079   version_type=sunos
19080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19081   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19082   shlibpath_var=LD_LIBRARY_PATH
19083   shlibpath_overrides_runpath=yes
19084   if test "$with_gnu_ld" = yes; then
19085     need_lib_prefix=no
19086   fi
19087   need_version=yes
19088   ;;
19089
19090 sysv4 | sysv4.3*)
19091   version_type=linux
19092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19093   soname_spec='${libname}${release}${shared_ext}$major'
19094   shlibpath_var=LD_LIBRARY_PATH
19095   case $host_vendor in
19096     sni)
19097       shlibpath_overrides_runpath=no
19098       need_lib_prefix=no
19099       export_dynamic_flag_spec='${wl}-Blargedynsym'
19100       runpath_var=LD_RUN_PATH
19101       ;;
19102     siemens)
19103       need_lib_prefix=no
19104       ;;
19105     motorola)
19106       need_lib_prefix=no
19107       need_version=no
19108       shlibpath_overrides_runpath=no
19109       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19110       ;;
19111   esac
19112   ;;
19113
19114 sysv4*MP*)
19115   if test -d /usr/nec ;then
19116     version_type=linux
19117     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19118     soname_spec='$libname${shared_ext}.$major'
19119     shlibpath_var=LD_LIBRARY_PATH
19120   fi
19121   ;;
19122
19123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19124   version_type=freebsd-elf
19125   need_lib_prefix=no
19126   need_version=no
19127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19128   soname_spec='${libname}${release}${shared_ext}$major'
19129   shlibpath_var=LD_LIBRARY_PATH
19130   hardcode_into_libs=yes
19131   if test "$with_gnu_ld" = yes; then
19132     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19133     shlibpath_overrides_runpath=no
19134   else
19135     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19136     shlibpath_overrides_runpath=yes
19137     case $host_os in
19138       sco3.2v5*)
19139         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19140         ;;
19141     esac
19142   fi
19143   sys_lib_dlsearch_path_spec='/usr/lib'
19144   ;;
19145
19146 uts4*)
19147   version_type=linux
19148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19149   soname_spec='${libname}${release}${shared_ext}$major'
19150   shlibpath_var=LD_LIBRARY_PATH
19151   ;;
19152
19153 *)
19154   dynamic_linker=no
19155   ;;
19156 esac
19157 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19158 echo "${ECHO_T}$dynamic_linker" >&6; }
19159 test "$dynamic_linker" = no && can_build_shared=no
19160
19161 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19162 if test "$GCC" = yes; then
19163   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19164 fi
19165
19166 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19167 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19168 hardcode_action_GCJ=
19169 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19170    test -n "$runpath_var_GCJ" || \
19171    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19172
19173   # We can hardcode non-existant directories.
19174   if test "$hardcode_direct_GCJ" != no &&
19175      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19176      # have to relink, otherwise we might link with an installed library
19177      # when we should be linking with a yet-to-be-installed one
19178      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19179      test "$hardcode_minus_L_GCJ" != no; then
19180     # Linking always hardcodes the temporary library directory.
19181     hardcode_action_GCJ=relink
19182   else
19183     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19184     hardcode_action_GCJ=immediate
19185   fi
19186 else
19187   # We cannot hardcode anything, or else we can only hardcode existing
19188   # directories.
19189   hardcode_action_GCJ=unsupported
19190 fi
19191 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19192 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19193
19194 if test "$hardcode_action_GCJ" = relink; then
19195   # Fast installation is not supported
19196   enable_fast_install=no
19197 elif test "$shlibpath_overrides_runpath" = yes ||
19198      test "$enable_shared" = no; then
19199   # Fast installation is not necessary
19200   enable_fast_install=needless
19201 fi
19202
19203
19204 # The else clause should only fire when bootstrapping the
19205 # libtool distribution, otherwise you forgot to ship ltmain.sh
19206 # with your package, and you will get complaints that there are
19207 # no rules to generate ltmain.sh.
19208 if test -f "$ltmain"; then
19209   # See if we are running on zsh, and set the options which allow our commands through
19210   # without removal of \ escapes.
19211   if test -n "${ZSH_VERSION+set}" ; then
19212     setopt NO_GLOB_SUBST
19213   fi
19214   # Now quote all the things that may contain metacharacters while being
19215   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19216   # variables and quote the copies for generation of the libtool script.
19217   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19218     SED SHELL STRIP \
19219     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19220     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19221     deplibs_check_method reload_flag reload_cmds need_locks \
19222     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19223     lt_cv_sys_global_symbol_to_c_name_address \
19224     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19225     old_postinstall_cmds old_postuninstall_cmds \
19226     compiler_GCJ \
19227     CC_GCJ \
19228     LD_GCJ \
19229     lt_prog_compiler_wl_GCJ \
19230     lt_prog_compiler_pic_GCJ \
19231     lt_prog_compiler_static_GCJ \
19232     lt_prog_compiler_no_builtin_flag_GCJ \
19233     export_dynamic_flag_spec_GCJ \
19234     thread_safe_flag_spec_GCJ \
19235     whole_archive_flag_spec_GCJ \
19236     enable_shared_with_static_runtimes_GCJ \
19237     old_archive_cmds_GCJ \
19238     old_archive_from_new_cmds_GCJ \
19239     predep_objects_GCJ \
19240     postdep_objects_GCJ \
19241     predeps_GCJ \
19242     postdeps_GCJ \
19243     compiler_lib_search_path_GCJ \
19244     archive_cmds_GCJ \
19245     archive_expsym_cmds_GCJ \
19246     postinstall_cmds_GCJ \
19247     postuninstall_cmds_GCJ \
19248     old_archive_from_expsyms_cmds_GCJ \
19249     allow_undefined_flag_GCJ \
19250     no_undefined_flag_GCJ \
19251     export_symbols_cmds_GCJ \
19252     hardcode_libdir_flag_spec_GCJ \
19253     hardcode_libdir_flag_spec_ld_GCJ \
19254     hardcode_libdir_separator_GCJ \
19255     hardcode_automatic_GCJ \
19256     module_cmds_GCJ \
19257     module_expsym_cmds_GCJ \
19258     lt_cv_prog_compiler_c_o_GCJ \
19259     exclude_expsyms_GCJ \
19260     include_expsyms_GCJ; do
19261
19262     case $var in
19263     old_archive_cmds_GCJ | \
19264     old_archive_from_new_cmds_GCJ | \
19265     archive_cmds_GCJ | \
19266     archive_expsym_cmds_GCJ | \
19267     module_cmds_GCJ | \
19268     module_expsym_cmds_GCJ | \
19269     old_archive_from_expsyms_cmds_GCJ | \
19270     export_symbols_cmds_GCJ | \
19271     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19272     postinstall_cmds | postuninstall_cmds | \
19273     old_postinstall_cmds | old_postuninstall_cmds | \
19274     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19275       # Double-quote double-evaled strings.
19276       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19277       ;;
19278     *)
19279       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19280       ;;
19281     esac
19282   done
19283
19284   case $lt_echo in
19285   *'\$0 --fallback-echo"')
19286     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19287     ;;
19288   esac
19289
19290 cfgfile="$ofile"
19291
19292   cat <<__EOF__ >> "$cfgfile"
19293 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19294
19295 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19296
19297 # Shell to use when invoking shell scripts.
19298 SHELL=$lt_SHELL
19299
19300 # Whether or not to build shared libraries.
19301 build_libtool_libs=$enable_shared
19302
19303 # Whether or not to build static libraries.
19304 build_old_libs=$enable_static
19305
19306 # Whether or not to add -lc for building shared libraries.
19307 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19308
19309 # Whether or not to disallow shared libs when runtime libs are static
19310 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19311
19312 # Whether or not to optimize for fast installation.
19313 fast_install=$enable_fast_install
19314
19315 # The host system.
19316 host_alias=$host_alias
19317 host=$host
19318 host_os=$host_os
19319
19320 # The build system.
19321 build_alias=$build_alias
19322 build=$build
19323 build_os=$build_os
19324
19325 # An echo program that does not interpret backslashes.
19326 echo=$lt_echo
19327
19328 # The archiver.
19329 AR=$lt_AR
19330 AR_FLAGS=$lt_AR_FLAGS
19331
19332 # A C compiler.
19333 LTCC=$lt_LTCC
19334
19335 # LTCC compiler flags.
19336 LTCFLAGS=$lt_LTCFLAGS
19337
19338 # A language-specific compiler.
19339 CC=$lt_compiler_GCJ
19340
19341 # Is the compiler the GNU C compiler?
19342 with_gcc=$GCC_GCJ
19343
19344 # An ERE matcher.
19345 EGREP=$lt_EGREP
19346
19347 # The linker used to build libraries.
19348 LD=$lt_LD_GCJ
19349
19350 # Whether we need hard or soft links.
19351 LN_S=$lt_LN_S
19352
19353 # A BSD-compatible nm program.
19354 NM=$lt_NM
19355
19356 # A symbol stripping program
19357 STRIP=$lt_STRIP
19358
19359 # Used to examine libraries when file_magic_cmd begins "file"
19360 MAGIC_CMD=$MAGIC_CMD
19361
19362 # Used on cygwin: DLL creation program.
19363 DLLTOOL="$DLLTOOL"
19364
19365 # Used on cygwin: object dumper.
19366 OBJDUMP="$OBJDUMP"
19367
19368 # Used on cygwin: assembler.
19369 AS="$AS"
19370
19371 # The name of the directory that contains temporary libtool files.
19372 objdir=$objdir
19373
19374 # How to create reloadable object files.
19375 reload_flag=$lt_reload_flag
19376 reload_cmds=$lt_reload_cmds
19377
19378 # How to pass a linker flag through the compiler.
19379 wl=$lt_lt_prog_compiler_wl_GCJ
19380
19381 # Object file suffix (normally "o").
19382 objext="$ac_objext"
19383
19384 # Old archive suffix (normally "a").
19385 libext="$libext"
19386
19387 # Shared library suffix (normally ".so").
19388 shrext_cmds='$shrext_cmds'
19389
19390 # Executable file suffix (normally "").
19391 exeext="$exeext"
19392
19393 # Additional compiler flags for building library objects.
19394 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19395 pic_mode=$pic_mode
19396
19397 # What is the maximum length of a command?
19398 max_cmd_len=$lt_cv_sys_max_cmd_len
19399
19400 # Does compiler simultaneously support -c and -o options?
19401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19402
19403 # Must we lock files when doing compilation?
19404 need_locks=$lt_need_locks
19405
19406 # Do we need the lib prefix for modules?
19407 need_lib_prefix=$need_lib_prefix
19408
19409 # Do we need a version for libraries?
19410 need_version=$need_version
19411
19412 # Whether dlopen is supported.
19413 dlopen_support=$enable_dlopen
19414
19415 # Whether dlopen of programs is supported.
19416 dlopen_self=$enable_dlopen_self
19417
19418 # Whether dlopen of statically linked programs is supported.
19419 dlopen_self_static=$enable_dlopen_self_static
19420
19421 # Compiler flag to prevent dynamic linking.
19422 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19423
19424 # Compiler flag to turn off builtin functions.
19425 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19426
19427 # Compiler flag to allow reflexive dlopens.
19428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19429
19430 # Compiler flag to generate shared objects directly from archives.
19431 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19432
19433 # Compiler flag to generate thread-safe objects.
19434 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19435
19436 # Library versioning type.
19437 version_type=$version_type
19438
19439 # Format of library name prefix.
19440 libname_spec=$lt_libname_spec
19441
19442 # List of archive names.  First name is the real one, the rest are links.
19443 # The last name is the one that the linker finds with -lNAME.
19444 library_names_spec=$lt_library_names_spec
19445
19446 # The coded name of the library, if different from the real name.
19447 soname_spec=$lt_soname_spec
19448
19449 # Commands used to build and install an old-style archive.
19450 RANLIB=$lt_RANLIB
19451 old_archive_cmds=$lt_old_archive_cmds_GCJ
19452 old_postinstall_cmds=$lt_old_postinstall_cmds
19453 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19454
19455 # Create an old-style archive from a shared archive.
19456 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19457
19458 # Create a temporary old-style archive to link instead of a shared archive.
19459 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19460
19461 # Commands used to build and install a shared archive.
19462 archive_cmds=$lt_archive_cmds_GCJ
19463 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19464 postinstall_cmds=$lt_postinstall_cmds
19465 postuninstall_cmds=$lt_postuninstall_cmds
19466
19467 # Commands used to build a loadable module (assumed same as above if empty)
19468 module_cmds=$lt_module_cmds_GCJ
19469 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19470
19471 # Commands to strip libraries.
19472 old_striplib=$lt_old_striplib
19473 striplib=$lt_striplib
19474
19475 # Dependencies to place before the objects being linked to create a
19476 # shared library.
19477 predep_objects=$lt_predep_objects_GCJ
19478
19479 # Dependencies to place after the objects being linked to create a
19480 # shared library.
19481 postdep_objects=$lt_postdep_objects_GCJ
19482
19483 # Dependencies to place before the objects being linked to create a
19484 # shared library.
19485 predeps=$lt_predeps_GCJ
19486
19487 # Dependencies to place after the objects being linked to create a
19488 # shared library.
19489 postdeps=$lt_postdeps_GCJ
19490
19491 # The library search path used internally by the compiler when linking
19492 # a shared library.
19493 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19494
19495 # Method to check whether dependent libraries are shared objects.
19496 deplibs_check_method=$lt_deplibs_check_method
19497
19498 # Command to use when deplibs_check_method == file_magic.
19499 file_magic_cmd=$lt_file_magic_cmd
19500
19501 # Flag that allows shared libraries with undefined symbols to be built.
19502 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19503
19504 # Flag that forces no undefined symbols.
19505 no_undefined_flag=$lt_no_undefined_flag_GCJ
19506
19507 # Commands used to finish a libtool library installation in a directory.
19508 finish_cmds=$lt_finish_cmds
19509
19510 # Same as above, but a single script fragment to be evaled but not shown.
19511 finish_eval=$lt_finish_eval
19512
19513 # Take the output of nm and produce a listing of raw symbols and C names.
19514 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19515
19516 # Transform the output of nm in a proper C declaration
19517 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19518
19519 # Transform the output of nm in a C name address pair
19520 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19521
19522 # This is the shared library runtime path variable.
19523 runpath_var=$runpath_var
19524
19525 # This is the shared library path variable.
19526 shlibpath_var=$shlibpath_var
19527
19528 # Is shlibpath searched before the hard-coded library search path?
19529 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19530
19531 # How to hardcode a shared library path into an executable.
19532 hardcode_action=$hardcode_action_GCJ
19533
19534 # Whether we should hardcode library paths into libraries.
19535 hardcode_into_libs=$hardcode_into_libs
19536
19537 # Flag to hardcode \$libdir into a binary during linking.
19538 # This must work even if \$libdir does not exist.
19539 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19540
19541 # If ld is used when linking, flag to hardcode \$libdir into
19542 # a binary during linking. This must work even if \$libdir does
19543 # not exist.
19544 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19545
19546 # Whether we need a single -rpath flag with a separated argument.
19547 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19548
19549 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19550 # resulting binary.
19551 hardcode_direct=$hardcode_direct_GCJ
19552
19553 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19554 # resulting binary.
19555 hardcode_minus_L=$hardcode_minus_L_GCJ
19556
19557 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19558 # the resulting binary.
19559 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19560
19561 # Set to yes if building a shared library automatically hardcodes DIR into the library
19562 # and all subsequent libraries and executables linked against it.
19563 hardcode_automatic=$hardcode_automatic_GCJ
19564
19565 # Variables whose values should be saved in libtool wrapper scripts and
19566 # restored at relink time.
19567 variables_saved_for_relink="$variables_saved_for_relink"
19568
19569 # Whether libtool must link a program against all its dependency libraries.
19570 link_all_deplibs=$link_all_deplibs_GCJ
19571
19572 # Compile-time system search path for libraries
19573 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19574
19575 # Run-time system search path for libraries
19576 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19577
19578 # Fix the shell variable \$srcfile for the compiler.
19579 fix_srcfile_path="$fix_srcfile_path_GCJ"
19580
19581 # Set to yes if exported symbols are required.
19582 always_export_symbols=$always_export_symbols_GCJ
19583
19584 # The commands to list exported symbols.
19585 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19586
19587 # The commands to extract the exported symbol list from a shared archive.
19588 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19589
19590 # Symbols that should not be listed in the preloaded symbols.
19591 exclude_expsyms=$lt_exclude_expsyms_GCJ
19592
19593 # Symbols that must always be exported.
19594 include_expsyms=$lt_include_expsyms_GCJ
19595
19596 # ### END LIBTOOL TAG CONFIG: $tagname
19597
19598 __EOF__
19599
19600
19601 else
19602   # If there is no Makefile yet, we rely on a make rule to execute
19603   # `config.status --recheck' to rerun these tests and create the
19604   # libtool script then.
19605   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19606   if test -f "$ltmain_in"; then
19607     test -f Makefile && make "$ltmain"
19608   fi
19609 fi
19610
19611
19612 ac_ext=c
19613 ac_cpp='$CPP $CPPFLAGS'
19614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19617
19618 CC="$lt_save_CC"
19619
19620         else
19621           tagname=""
19622         fi
19623         ;;
19624
19625       RC)
19626
19627
19628 # Source file extension for RC test sources.
19629 ac_ext=rc
19630
19631 # Object file extension for compiled RC test sources.
19632 objext=o
19633 objext_RC=$objext
19634
19635 # Code to be used in simple compile tests
19636 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19637
19638 # Code to be used in simple link tests
19639 lt_simple_link_test_code="$lt_simple_compile_test_code"
19640
19641 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19642
19643 # If no C compiler was specified, use CC.
19644 LTCC=${LTCC-"$CC"}
19645
19646 # If no C compiler flags were specified, use CFLAGS.
19647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19648
19649 # Allow CC to be a program name with arguments.
19650 compiler=$CC
19651
19652
19653 # save warnings/boilerplate of simple test code
19654 ac_outfile=conftest.$ac_objext
19655 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19657 _lt_compiler_boilerplate=`cat conftest.err`
19658 $rm conftest*
19659
19660 ac_outfile=conftest.$ac_objext
19661 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19663 _lt_linker_boilerplate=`cat conftest.err`
19664 $rm conftest*
19665
19666
19667 # Allow CC to be a program name with arguments.
19668 lt_save_CC="$CC"
19669 CC=${RC-"windres"}
19670 compiler=$CC
19671 compiler_RC=$CC
19672 for cc_temp in $compiler""; do
19673   case $cc_temp in
19674     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19675     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19676     \-*) ;;
19677     *) break;;
19678   esac
19679 done
19680 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19681
19682 lt_cv_prog_compiler_c_o_RC=yes
19683
19684 # The else clause should only fire when bootstrapping the
19685 # libtool distribution, otherwise you forgot to ship ltmain.sh
19686 # with your package, and you will get complaints that there are
19687 # no rules to generate ltmain.sh.
19688 if test -f "$ltmain"; then
19689   # See if we are running on zsh, and set the options which allow our commands through
19690   # without removal of \ escapes.
19691   if test -n "${ZSH_VERSION+set}" ; then
19692     setopt NO_GLOB_SUBST
19693   fi
19694   # Now quote all the things that may contain metacharacters while being
19695   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19696   # variables and quote the copies for generation of the libtool script.
19697   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19698     SED SHELL STRIP \
19699     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19700     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19701     deplibs_check_method reload_flag reload_cmds need_locks \
19702     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19703     lt_cv_sys_global_symbol_to_c_name_address \
19704     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19705     old_postinstall_cmds old_postuninstall_cmds \
19706     compiler_RC \
19707     CC_RC \
19708     LD_RC \
19709     lt_prog_compiler_wl_RC \
19710     lt_prog_compiler_pic_RC \
19711     lt_prog_compiler_static_RC \
19712     lt_prog_compiler_no_builtin_flag_RC \
19713     export_dynamic_flag_spec_RC \
19714     thread_safe_flag_spec_RC \
19715     whole_archive_flag_spec_RC \
19716     enable_shared_with_static_runtimes_RC \
19717     old_archive_cmds_RC \
19718     old_archive_from_new_cmds_RC \
19719     predep_objects_RC \
19720     postdep_objects_RC \
19721     predeps_RC \
19722     postdeps_RC \
19723     compiler_lib_search_path_RC \
19724     archive_cmds_RC \
19725     archive_expsym_cmds_RC \
19726     postinstall_cmds_RC \
19727     postuninstall_cmds_RC \
19728     old_archive_from_expsyms_cmds_RC \
19729     allow_undefined_flag_RC \
19730     no_undefined_flag_RC \
19731     export_symbols_cmds_RC \
19732     hardcode_libdir_flag_spec_RC \
19733     hardcode_libdir_flag_spec_ld_RC \
19734     hardcode_libdir_separator_RC \
19735     hardcode_automatic_RC \
19736     module_cmds_RC \
19737     module_expsym_cmds_RC \
19738     lt_cv_prog_compiler_c_o_RC \
19739     exclude_expsyms_RC \
19740     include_expsyms_RC; do
19741
19742     case $var in
19743     old_archive_cmds_RC | \
19744     old_archive_from_new_cmds_RC | \
19745     archive_cmds_RC | \
19746     archive_expsym_cmds_RC | \
19747     module_cmds_RC | \
19748     module_expsym_cmds_RC | \
19749     old_archive_from_expsyms_cmds_RC | \
19750     export_symbols_cmds_RC | \
19751     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19752     postinstall_cmds | postuninstall_cmds | \
19753     old_postinstall_cmds | old_postuninstall_cmds | \
19754     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19755       # Double-quote double-evaled strings.
19756       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19757       ;;
19758     *)
19759       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19760       ;;
19761     esac
19762   done
19763
19764   case $lt_echo in
19765   *'\$0 --fallback-echo"')
19766     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19767     ;;
19768   esac
19769
19770 cfgfile="$ofile"
19771
19772   cat <<__EOF__ >> "$cfgfile"
19773 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19774
19775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19776
19777 # Shell to use when invoking shell scripts.
19778 SHELL=$lt_SHELL
19779
19780 # Whether or not to build shared libraries.
19781 build_libtool_libs=$enable_shared
19782
19783 # Whether or not to build static libraries.
19784 build_old_libs=$enable_static
19785
19786 # Whether or not to add -lc for building shared libraries.
19787 build_libtool_need_lc=$archive_cmds_need_lc_RC
19788
19789 # Whether or not to disallow shared libs when runtime libs are static
19790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19791
19792 # Whether or not to optimize for fast installation.
19793 fast_install=$enable_fast_install
19794
19795 # The host system.
19796 host_alias=$host_alias
19797 host=$host
19798 host_os=$host_os
19799
19800 # The build system.
19801 build_alias=$build_alias
19802 build=$build
19803 build_os=$build_os
19804
19805 # An echo program that does not interpret backslashes.
19806 echo=$lt_echo
19807
19808 # The archiver.
19809 AR=$lt_AR
19810 AR_FLAGS=$lt_AR_FLAGS
19811
19812 # A C compiler.
19813 LTCC=$lt_LTCC
19814
19815 # LTCC compiler flags.
19816 LTCFLAGS=$lt_LTCFLAGS
19817
19818 # A language-specific compiler.
19819 CC=$lt_compiler_RC
19820
19821 # Is the compiler the GNU C compiler?
19822 with_gcc=$GCC_RC
19823
19824 # An ERE matcher.
19825 EGREP=$lt_EGREP
19826
19827 # The linker used to build libraries.
19828 LD=$lt_LD_RC
19829
19830 # Whether we need hard or soft links.
19831 LN_S=$lt_LN_S
19832
19833 # A BSD-compatible nm program.
19834 NM=$lt_NM
19835
19836 # A symbol stripping program
19837 STRIP=$lt_STRIP
19838
19839 # Used to examine libraries when file_magic_cmd begins "file"
19840 MAGIC_CMD=$MAGIC_CMD
19841
19842 # Used on cygwin: DLL creation program.
19843 DLLTOOL="$DLLTOOL"
19844
19845 # Used on cygwin: object dumper.
19846 OBJDUMP="$OBJDUMP"
19847
19848 # Used on cygwin: assembler.
19849 AS="$AS"
19850
19851 # The name of the directory that contains temporary libtool files.
19852 objdir=$objdir
19853
19854 # How to create reloadable object files.
19855 reload_flag=$lt_reload_flag
19856 reload_cmds=$lt_reload_cmds
19857
19858 # How to pass a linker flag through the compiler.
19859 wl=$lt_lt_prog_compiler_wl_RC
19860
19861 # Object file suffix (normally "o").
19862 objext="$ac_objext"
19863
19864 # Old archive suffix (normally "a").
19865 libext="$libext"
19866
19867 # Shared library suffix (normally ".so").
19868 shrext_cmds='$shrext_cmds'
19869
19870 # Executable file suffix (normally "").
19871 exeext="$exeext"
19872
19873 # Additional compiler flags for building library objects.
19874 pic_flag=$lt_lt_prog_compiler_pic_RC
19875 pic_mode=$pic_mode
19876
19877 # What is the maximum length of a command?
19878 max_cmd_len=$lt_cv_sys_max_cmd_len
19879
19880 # Does compiler simultaneously support -c and -o options?
19881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19882
19883 # Must we lock files when doing compilation?
19884 need_locks=$lt_need_locks
19885
19886 # Do we need the lib prefix for modules?
19887 need_lib_prefix=$need_lib_prefix
19888
19889 # Do we need a version for libraries?
19890 need_version=$need_version
19891
19892 # Whether dlopen is supported.
19893 dlopen_support=$enable_dlopen
19894
19895 # Whether dlopen of programs is supported.
19896 dlopen_self=$enable_dlopen_self
19897
19898 # Whether dlopen of statically linked programs is supported.
19899 dlopen_self_static=$enable_dlopen_self_static
19900
19901 # Compiler flag to prevent dynamic linking.
19902 link_static_flag=$lt_lt_prog_compiler_static_RC
19903
19904 # Compiler flag to turn off builtin functions.
19905 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19906
19907 # Compiler flag to allow reflexive dlopens.
19908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19909
19910 # Compiler flag to generate shared objects directly from archives.
19911 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19912
19913 # Compiler flag to generate thread-safe objects.
19914 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19915
19916 # Library versioning type.
19917 version_type=$version_type
19918
19919 # Format of library name prefix.
19920 libname_spec=$lt_libname_spec
19921
19922 # List of archive names.  First name is the real one, the rest are links.
19923 # The last name is the one that the linker finds with -lNAME.
19924 library_names_spec=$lt_library_names_spec
19925
19926 # The coded name of the library, if different from the real name.
19927 soname_spec=$lt_soname_spec
19928
19929 # Commands used to build and install an old-style archive.
19930 RANLIB=$lt_RANLIB
19931 old_archive_cmds=$lt_old_archive_cmds_RC
19932 old_postinstall_cmds=$lt_old_postinstall_cmds
19933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19934
19935 # Create an old-style archive from a shared archive.
19936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19937
19938 # Create a temporary old-style archive to link instead of a shared archive.
19939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19940
19941 # Commands used to build and install a shared archive.
19942 archive_cmds=$lt_archive_cmds_RC
19943 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19944 postinstall_cmds=$lt_postinstall_cmds
19945 postuninstall_cmds=$lt_postuninstall_cmds
19946
19947 # Commands used to build a loadable module (assumed same as above if empty)
19948 module_cmds=$lt_module_cmds_RC
19949 module_expsym_cmds=$lt_module_expsym_cmds_RC
19950
19951 # Commands to strip libraries.
19952 old_striplib=$lt_old_striplib
19953 striplib=$lt_striplib
19954
19955 # Dependencies to place before the objects being linked to create a
19956 # shared library.
19957 predep_objects=$lt_predep_objects_RC
19958
19959 # Dependencies to place after the objects being linked to create a
19960 # shared library.
19961 postdep_objects=$lt_postdep_objects_RC
19962
19963 # Dependencies to place before the objects being linked to create a
19964 # shared library.
19965 predeps=$lt_predeps_RC
19966
19967 # Dependencies to place after the objects being linked to create a
19968 # shared library.
19969 postdeps=$lt_postdeps_RC
19970
19971 # The library search path used internally by the compiler when linking
19972 # a shared library.
19973 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19974
19975 # Method to check whether dependent libraries are shared objects.
19976 deplibs_check_method=$lt_deplibs_check_method
19977
19978 # Command to use when deplibs_check_method == file_magic.
19979 file_magic_cmd=$lt_file_magic_cmd
19980
19981 # Flag that allows shared libraries with undefined symbols to be built.
19982 allow_undefined_flag=$lt_allow_undefined_flag_RC
19983
19984 # Flag that forces no undefined symbols.
19985 no_undefined_flag=$lt_no_undefined_flag_RC
19986
19987 # Commands used to finish a libtool library installation in a directory.
19988 finish_cmds=$lt_finish_cmds
19989
19990 # Same as above, but a single script fragment to be evaled but not shown.
19991 finish_eval=$lt_finish_eval
19992
19993 # Take the output of nm and produce a listing of raw symbols and C names.
19994 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19995
19996 # Transform the output of nm in a proper C declaration
19997 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19998
19999 # Transform the output of nm in a C name address pair
20000 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20001
20002 # This is the shared library runtime path variable.
20003 runpath_var=$runpath_var
20004
20005 # This is the shared library path variable.
20006 shlibpath_var=$shlibpath_var
20007
20008 # Is shlibpath searched before the hard-coded library search path?
20009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20010
20011 # How to hardcode a shared library path into an executable.
20012 hardcode_action=$hardcode_action_RC
20013
20014 # Whether we should hardcode library paths into libraries.
20015 hardcode_into_libs=$hardcode_into_libs
20016
20017 # Flag to hardcode \$libdir into a binary during linking.
20018 # This must work even if \$libdir does not exist.
20019 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20020
20021 # If ld is used when linking, flag to hardcode \$libdir into
20022 # a binary during linking. This must work even if \$libdir does
20023 # not exist.
20024 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20025
20026 # Whether we need a single -rpath flag with a separated argument.
20027 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20028
20029 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20030 # resulting binary.
20031 hardcode_direct=$hardcode_direct_RC
20032
20033 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20034 # resulting binary.
20035 hardcode_minus_L=$hardcode_minus_L_RC
20036
20037 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20038 # the resulting binary.
20039 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20040
20041 # Set to yes if building a shared library automatically hardcodes DIR into the library
20042 # and all subsequent libraries and executables linked against it.
20043 hardcode_automatic=$hardcode_automatic_RC
20044
20045 # Variables whose values should be saved in libtool wrapper scripts and
20046 # restored at relink time.
20047 variables_saved_for_relink="$variables_saved_for_relink"
20048
20049 # Whether libtool must link a program against all its dependency libraries.
20050 link_all_deplibs=$link_all_deplibs_RC
20051
20052 # Compile-time system search path for libraries
20053 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20054
20055 # Run-time system search path for libraries
20056 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20057
20058 # Fix the shell variable \$srcfile for the compiler.
20059 fix_srcfile_path="$fix_srcfile_path_RC"
20060
20061 # Set to yes if exported symbols are required.
20062 always_export_symbols=$always_export_symbols_RC
20063
20064 # The commands to list exported symbols.
20065 export_symbols_cmds=$lt_export_symbols_cmds_RC
20066
20067 # The commands to extract the exported symbol list from a shared archive.
20068 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20069
20070 # Symbols that should not be listed in the preloaded symbols.
20071 exclude_expsyms=$lt_exclude_expsyms_RC
20072
20073 # Symbols that must always be exported.
20074 include_expsyms=$lt_include_expsyms_RC
20075
20076 # ### END LIBTOOL TAG CONFIG: $tagname
20077
20078 __EOF__
20079
20080
20081 else
20082   # If there is no Makefile yet, we rely on a make rule to execute
20083   # `config.status --recheck' to rerun these tests and create the
20084   # libtool script then.
20085   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20086   if test -f "$ltmain_in"; then
20087     test -f Makefile && make "$ltmain"
20088   fi
20089 fi
20090
20091
20092 ac_ext=c
20093 ac_cpp='$CPP $CPPFLAGS'
20094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20097
20098 CC="$lt_save_CC"
20099
20100         ;;
20101
20102       *)
20103         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20104 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20105    { (exit 1); exit 1; }; }
20106         ;;
20107       esac
20108
20109       # Append the new tag name to the list of available tags.
20110       if test -n "$tagname" ; then
20111       available_tags="$available_tags $tagname"
20112     fi
20113     fi
20114   done
20115   IFS="$lt_save_ifs"
20116
20117   # Now substitute the updated list of available tags.
20118   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20119     mv "${ofile}T" "$ofile"
20120     chmod +x "$ofile"
20121   else
20122     rm -f "${ofile}T"
20123     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20124 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20125    { (exit 1); exit 1; }; }
20126   fi
20127 fi
20128
20129
20130
20131 # This can be used to rebuild libtool when needed
20132 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20133
20134 # Always use our own libtool.
20135 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20136
20137 # Prevent multiple expansion
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150 # Check whether --with-system-libtool was given.
20151 if test "${with_system_libtool+set}" = set; then
20152   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
20153 set dummy libtool; ac_word=$2
20154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20156 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20157   echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159   case $LIBTOOL in
20160   [\\/]* | ?:[\\/]*)
20161   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20162   ;;
20163   *)
20164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20165 as_dummy="$PATH:/usr/local/bin"
20166 for as_dir in $as_dummy
20167 do
20168   IFS=$as_save_IFS
20169   test -z "$as_dir" && as_dir=.
20170   for ac_exec_ext in '' $ac_executable_extensions; do
20171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20172     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20174     break 2
20175   fi
20176 done
20177 done
20178 IFS=$as_save_IFS
20179
20180   ;;
20181 esac
20182 fi
20183 LIBTOOL=$ac_cv_path_LIBTOOL
20184 if test -n "$LIBTOOL"; then
20185   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20186 echo "${ECHO_T}$LIBTOOL" >&6; }
20187 else
20188   { echo "$as_me:$LINENO: result: no" >&5
20189 echo "${ECHO_T}no" >&6; }
20190 fi
20191
20192
20193 else
20194
20195   LIBTOOL="`pwd`/libtool"
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210 fi
20211
20212
20213
20214
20215 # Check whether --enable-strict-dependencies was given.
20216 if test "${enable_strict_dependencies+set}" = set; then
20217   enableval=$enable_strict_dependencies;
20218 fi
20219
20220
20221 docdir='${datadir}/doc/freeradius'
20222 { echo "$as_me:$LINENO: checking docdir" >&5
20223 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
20224
20225 # Check whether --with-docdir was given.
20226 if test "${with_docdir+set}" = set; then
20227   withval=$with_docdir;  case "$withval" in
20228     no)
20229         docdir=no
20230         ;;
20231     yes)
20232         ;;
20233     [\\/$]* | ?:[\\/]* )
20234         docdir="$withval"
20235         ;;
20236     *)
20237         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
20238 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
20239    { (exit 1); exit 1; }; }
20240         ;;
20241   esac
20242
20243 fi
20244
20245
20246 { echo "$as_me:$LINENO: result: $docdir" >&5
20247 echo "${ECHO_T}$docdir" >&6; }
20248 if test "x$docdir" = xno; then
20249         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
20250 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
20251 fi
20252
20253 logdir='${localstatedir}/log/radius'
20254 { echo "$as_me:$LINENO: checking logdir" >&5
20255 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
20256
20257 # Check whether --with-logdir was given.
20258 if test "${with_logdir+set}" = set; then
20259   withval=$with_logdir;  case "$withval" in
20260     no)
20261         { { echo "$as_me:$LINENO: error: Need logdir" >&5
20262 echo "$as_me: error: Need logdir" >&2;}
20263    { (exit 1); exit 1; }; }
20264         ;;
20265     yes)
20266         ;;
20267     [\\/$]* | ?:[\\/]* )
20268         logdir="$withval"
20269         ;;
20270     *)
20271         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
20272 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
20273    { (exit 1); exit 1; }; }
20274         ;;
20275   esac
20276
20277 fi
20278
20279
20280 { echo "$as_me:$LINENO: result: $logdir" >&5
20281 echo "${ECHO_T}$logdir" >&6; }
20282
20283 radacctdir='${logdir}/radacct'
20284 { echo "$as_me:$LINENO: checking radacctdir" >&5
20285 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
20286
20287 # Check whether --with-radacctdir was given.
20288 if test "${with_radacctdir+set}" = set; then
20289   withval=$with_radacctdir;  case "$withval" in
20290     no)
20291         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
20292 echo "$as_me: error: Need radacctdir" >&2;}
20293    { (exit 1); exit 1; }; }
20294         ;;
20295     yes)
20296         ;;
20297     [\\/$]* | ?:[\\/]* )
20298         radacctdir="$withval"
20299         ;;
20300     *)
20301         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
20302 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
20303    { (exit 1); exit 1; }; }
20304         ;;
20305   esac
20306
20307 fi
20308
20309
20310 { echo "$as_me:$LINENO: result: $radacctdir" >&5
20311 echo "${ECHO_T}$radacctdir" >&6; }
20312
20313 raddbdir='${sysconfdir}/raddb'
20314 { echo "$as_me:$LINENO: checking raddbdir" >&5
20315 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
20316
20317 # Check whether --with-raddbdir was given.
20318 if test "${with_raddbdir+set}" = set; then
20319   withval=$with_raddbdir;  case "$withval" in
20320     no)
20321         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
20322 echo "$as_me: error: Need raddbdir" >&2;}
20323    { (exit 1); exit 1; }; }
20324         ;;
20325     yes)
20326         ;;
20327     [\\/$]* | ?:[\\/]* )
20328         raddbdir="$withval"
20329         ;;
20330     *)
20331         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
20332 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
20333    { (exit 1); exit 1; }; }
20334         ;;
20335   esac
20336
20337 fi
20338
20339
20340 { echo "$as_me:$LINENO: result: $raddbdir" >&5
20341 echo "${ECHO_T}$raddbdir" >&6; }
20342
20343 ASCEND_BINARY=yes
20344
20345 # Check whether --with-ascend-binary was given.
20346 if test "${with_ascend_binary+set}" = set; then
20347   withval=$with_ascend_binary;  case "$withval" in
20348     yes)
20349         ;;
20350     *)
20351         ASCEND_BINARY=""
20352   esac
20353
20354 fi
20355
20356 if test "X$ASCEND_BINARY" = "Xyes"; then
20357
20358 cat >>confdefs.h <<\_ACEOF
20359 #define ASCEND_BINARY
20360 _ACEOF
20361
20362 fi
20363
20364 WITH_THREADS=yes
20365
20366 # Check whether --with-threads was given.
20367 if test "${with_threads+set}" = set; then
20368   withval=$with_threads;  case "$withval" in
20369     yes)
20370         ;;
20371     *)
20372         WITH_THREADS=""
20373   esac
20374
20375 fi
20376
20377
20378 WITH_SNMP=yes
20379
20380 # Check whether --with-snmp was given.
20381 if test "${with_snmp+set}" = set; then
20382   withval=$with_snmp;  case "$withval" in
20383     yes)
20384         ;;
20385     *)
20386         WITH_SNMP=no
20387   esac
20388
20389 fi
20390
20391
20392 STATIC_MODULES=
20393
20394 # Check whether --with-static_modules was given.
20395 if test "${with_static_modules+set}" = set; then
20396   withval=$with_static_modules;
20397   for i in $withval; do
20398     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
20399   done
20400
20401 fi
20402
20403
20404 MODULES=
20405
20406 # Check whether --with-modules was given.
20407 if test "${with_modules+set}" = set; then
20408   withval=$with_modules;
20409  for i in $withval; do
20410    MODULES="$MODULES $i"
20411  done
20412
20413 fi
20414
20415
20416 # Check whether --enable-developer was given.
20417 if test "${enable_developer+set}" = set; then
20418   enableval=$enable_developer;  case "$enableval" in
20419     no)
20420         developer=no
20421         ;;
20422     *)
20423         developer=yes
20424   esac
20425
20426 fi
20427
20428
20429 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20430     developer="yes"
20431 fi
20432
20433 EXPERIMENTAL=
20434
20435 # Check whether --with-experimental-modules was given.
20436 if test "${with_experimental_modules+set}" = set; then
20437   withval=$with_experimental_modules;  case "$withval" in
20438     yes)
20439         EXPERIMENTAL=yes
20440         ;;
20441     *)
20442   esac
20443
20444 fi
20445
20446
20447 OPENSSL_INCLUDE_DIR=
20448
20449 # Check whether --with-openssl-includes was given.
20450 if test "${with_openssl_includes+set}" = set; then
20451   withval=$with_openssl_includes;  case "$withval" in
20452     *) OPENSSL_INCLUDE_DIR="$withval"
20453         ;;
20454   esac
20455
20456 fi
20457
20458
20459 OPENSSL_LIB_DIR=
20460
20461 # Check whether --with-openssl-libraries was given.
20462 if test "${with_openssl_libraries+set}" = set; then
20463   withval=$with_openssl_libraries;  case "$withval" in
20464     *) OPENSSL_LIB_DIR="$withval"
20465         ;;
20466   esac
20467
20468 fi
20469
20470
20471
20472
20473 # Check whether --with-rlm-FOO-lib-dir was given.
20474 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20475   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
20476     *)
20477         ;;
20478   esac
20479
20480 fi
20481
20482
20483
20484 # Check whether --with-rlm-FOO-include-dir was given.
20485 if test "${with_rlm_FOO_include_dir+set}" = set; then
20486   withval=$with_rlm_FOO_include_dir;  case "$withval" in
20487     *)
20488         ;;
20489   esac
20490
20491 fi
20492
20493
20494
20495 WITH_UDPFROMTO=no
20496
20497 # Check whether --with-udpfromto was given.
20498 if test "${with_udpfromto+set}" = set; then
20499   withval=$with_udpfromto;  case "$withval" in
20500     yes)
20501         WITH_UDPFROMTO=yes
20502         ;;
20503     *)
20504         WITH_UDPFROMTO=no
20505   esac
20506
20507 fi
20508
20509
20510 if test "x$WITH_UDPFROMTO" = "xyes"; then
20511
20512 cat >>confdefs.h <<\_ACEOF
20513 #define WITH_UDPFROMTO
20514 _ACEOF
20515
20516 fi
20517
20518
20519 CHECKRAD=checkrad.pl
20520 # Extract the first word of "perl", so it can be a program name with args.
20521 set dummy perl; ac_word=$2
20522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20524 if test "${ac_cv_path_PERL+set}" = set; then
20525   echo $ECHO_N "(cached) $ECHO_C" >&6
20526 else
20527   case $PERL in
20528   [\\/]* | ?:[\\/]*)
20529   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20530   ;;
20531   *)
20532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20533 for as_dir in $PATH
20534 do
20535   IFS=$as_save_IFS
20536   test -z "$as_dir" && as_dir=.
20537   for ac_exec_ext in '' $ac_executable_extensions; do
20538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20539     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20541     break 2
20542   fi
20543 done
20544 done
20545 IFS=$as_save_IFS
20546
20547   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20548   ;;
20549 esac
20550 fi
20551 PERL=$ac_cv_path_PERL
20552 if test -n "$PERL"; then
20553   { echo "$as_me:$LINENO: result: $PERL" >&5
20554 echo "${ECHO_T}$PERL" >&6; }
20555 else
20556   { echo "$as_me:$LINENO: result: no" >&5
20557 echo "${ECHO_T}no" >&6; }
20558 fi
20559
20560
20561 if test "x$ac_cv_path_PERL" = "x"; then
20562   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20563 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20564 fi
20565 # Extract the first word of "snmpget", so it can be a program name with args.
20566 set dummy snmpget; ac_word=$2
20567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20569 if test "${ac_cv_path_SNMPGET+set}" = set; then
20570   echo $ECHO_N "(cached) $ECHO_C" >&6
20571 else
20572   case $SNMPGET in
20573   [\\/]* | ?:[\\/]*)
20574   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20575   ;;
20576   *)
20577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20578 for as_dir in $PATH
20579 do
20580   IFS=$as_save_IFS
20581   test -z "$as_dir" && as_dir=.
20582   for ac_exec_ext in '' $ac_executable_extensions; do
20583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20584     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20586     break 2
20587   fi
20588 done
20589 done
20590 IFS=$as_save_IFS
20591
20592   ;;
20593 esac
20594 fi
20595 SNMPGET=$ac_cv_path_SNMPGET
20596 if test -n "$SNMPGET"; then
20597   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20598 echo "${ECHO_T}$SNMPGET" >&6; }
20599 else
20600   { echo "$as_me:$LINENO: result: no" >&5
20601 echo "${ECHO_T}no" >&6; }
20602 fi
20603
20604
20605 if test "x$ac_cv_path_SNMPGET" = "x"; then
20606   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20607 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20608 fi
20609
20610 # Extract the first word of "snmpwalk", so it can be a program name with args.
20611 set dummy snmpwalk; ac_word=$2
20612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20614 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20615   echo $ECHO_N "(cached) $ECHO_C" >&6
20616 else
20617   case $SNMPWALK in
20618   [\\/]* | ?:[\\/]*)
20619   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20620   ;;
20621   *)
20622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20623 for as_dir in $PATH
20624 do
20625   IFS=$as_save_IFS
20626   test -z "$as_dir" && as_dir=.
20627   for ac_exec_ext in '' $ac_executable_extensions; do
20628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20629     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20631     break 2
20632   fi
20633 done
20634 done
20635 IFS=$as_save_IFS
20636
20637   ;;
20638 esac
20639 fi
20640 SNMPWALK=$ac_cv_path_SNMPWALK
20641 if test -n "$SNMPWALK"; then
20642   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20643 echo "${ECHO_T}$SNMPWALK" >&6; }
20644 else
20645   { echo "$as_me:$LINENO: result: no" >&5
20646 echo "${ECHO_T}no" >&6; }
20647 fi
20648
20649
20650 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20651   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20652 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20653 fi
20654
20655 # Extract the first word of "rusers", so it can be a program name with args.
20656 set dummy rusers; ac_word=$2
20657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20659 if test "${ac_cv_path_RUSERS+set}" = set; then
20660   echo $ECHO_N "(cached) $ECHO_C" >&6
20661 else
20662   case $RUSERS in
20663   [\\/]* | ?:[\\/]*)
20664   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20665   ;;
20666   *)
20667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20668 for as_dir in $PATH
20669 do
20670   IFS=$as_save_IFS
20671   test -z "$as_dir" && as_dir=.
20672   for ac_exec_ext in '' $ac_executable_extensions; do
20673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20674     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20676     break 2
20677   fi
20678 done
20679 done
20680 IFS=$as_save_IFS
20681
20682   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20683   ;;
20684 esac
20685 fi
20686 RUSERS=$ac_cv_path_RUSERS
20687 if test -n "$RUSERS"; then
20688   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20689 echo "${ECHO_T}$RUSERS" >&6; }
20690 else
20691   { echo "$as_me:$LINENO: result: no" >&5
20692 echo "${ECHO_T}no" >&6; }
20693 fi
20694
20695
20696
20697 missing_dir=`cd $ac_aux_dir && pwd`
20698 # expand $ac_aux_dir to an absolute path
20699 am_aux_dir=`cd $ac_aux_dir && pwd`
20700
20701 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20702 # Use eval to expand $SHELL
20703 if eval "$MISSING --run true"; then
20704   am_missing_run="$MISSING --run "
20705 else
20706   am_missing_run=
20707   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20708 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20709 fi
20710
20711
20712 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20713
20714
20715 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20716
20717
20718 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20719
20720
20721 # Extract the first word of "locate", so it can be a program name with args.
20722 set dummy locate; ac_word=$2
20723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20725 if test "${ac_cv_path_LOCATE+set}" = set; then
20726   echo $ECHO_N "(cached) $ECHO_C" >&6
20727 else
20728   case $LOCATE in
20729   [\\/]* | ?:[\\/]*)
20730   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20731   ;;
20732   *)
20733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20734 for as_dir in $PATH
20735 do
20736   IFS=$as_save_IFS
20737   test -z "$as_dir" && as_dir=.
20738   for ac_exec_ext in '' $ac_executable_extensions; do
20739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20740     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20742     break 2
20743   fi
20744 done
20745 done
20746 IFS=$as_save_IFS
20747
20748   ;;
20749 esac
20750 fi
20751 LOCATE=$ac_cv_path_LOCATE
20752 if test -n "$LOCATE"; then
20753   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20754 echo "${ECHO_T}$LOCATE" >&6; }
20755 else
20756   { echo "$as_me:$LINENO: result: no" >&5
20757 echo "${ECHO_T}no" >&6; }
20758 fi
20759
20760
20761 # Extract the first word of "dirname", so it can be a program name with args.
20762 set dummy dirname; ac_word=$2
20763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20765 if test "${ac_cv_path_DIRNAME+set}" = set; then
20766   echo $ECHO_N "(cached) $ECHO_C" >&6
20767 else
20768   case $DIRNAME in
20769   [\\/]* | ?:[\\/]*)
20770   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20771   ;;
20772   *)
20773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20774 for as_dir in $PATH
20775 do
20776   IFS=$as_save_IFS
20777   test -z "$as_dir" && as_dir=.
20778   for ac_exec_ext in '' $ac_executable_extensions; do
20779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20780     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20782     break 2
20783   fi
20784 done
20785 done
20786 IFS=$as_save_IFS
20787
20788   ;;
20789 esac
20790 fi
20791 DIRNAME=$ac_cv_path_DIRNAME
20792 if test -n "$DIRNAME"; then
20793   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20794 echo "${ECHO_T}$DIRNAME" >&6; }
20795 else
20796   { echo "$as_me:$LINENO: result: no" >&5
20797 echo "${ECHO_T}no" >&6; }
20798 fi
20799
20800
20801 # Extract the first word of "grep", so it can be a program name with args.
20802 set dummy grep; ac_word=$2
20803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20805 if test "${ac_cv_path_GREP+set}" = set; then
20806   echo $ECHO_N "(cached) $ECHO_C" >&6
20807 else
20808   case $GREP in
20809   [\\/]* | ?:[\\/]*)
20810   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20811   ;;
20812   *)
20813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20814 for as_dir in $PATH
20815 do
20816   IFS=$as_save_IFS
20817   test -z "$as_dir" && as_dir=.
20818   for ac_exec_ext in '' $ac_executable_extensions; do
20819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20820     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20822     break 2
20823   fi
20824 done
20825 done
20826 IFS=$as_save_IFS
20827
20828   ;;
20829 esac
20830 fi
20831 GREP=$ac_cv_path_GREP
20832 if test -n "$GREP"; then
20833   { echo "$as_me:$LINENO: result: $GREP" >&5
20834 echo "${ECHO_T}$GREP" >&6; }
20835 else
20836   { echo "$as_me:$LINENO: result: no" >&5
20837 echo "${ECHO_T}no" >&6; }
20838 fi
20839
20840
20841
20842
20843 old_CFLAGS=$CFLAGS
20844 if test "x$WITH_THREADS" = "xyes"; then
20845   if test $ac_cv_prog_suncc = "yes"; then
20846     CFLAGS="$CFLAGS -mt"
20847   fi
20848
20849
20850 for ac_header in pthread.h
20851 do
20852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20854   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20857   echo $ECHO_N "(cached) $ECHO_C" >&6
20858 fi
20859 ac_res=`eval echo '${'$as_ac_Header'}'`
20860                { echo "$as_me:$LINENO: result: $ac_res" >&5
20861 echo "${ECHO_T}$ac_res" >&6; }
20862 else
20863   # Is the header compilable?
20864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20866 cat >conftest.$ac_ext <<_ACEOF
20867 /* confdefs.h.  */
20868 _ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h.  */
20872 $ac_includes_default
20873 #include <$ac_header>
20874 _ACEOF
20875 rm -f conftest.$ac_objext
20876 if { (ac_try="$ac_compile"
20877 case "(($ac_try" in
20878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879   *) ac_try_echo=$ac_try;;
20880 esac
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882   (eval "$ac_compile") 2>conftest.er1
20883   ac_status=$?
20884   grep -v '^ *+' conftest.er1 >conftest.err
20885   rm -f conftest.er1
20886   cat conftest.err >&5
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); } &&
20889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20890   { (case "(($ac_try" in
20891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892   *) ac_try_echo=$ac_try;;
20893 esac
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895   (eval "$ac_try") 2>&5
20896   ac_status=$?
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); }; } &&
20899          { ac_try='test -s conftest.$ac_objext'
20900   { (case "(($ac_try" in
20901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902   *) ac_try_echo=$ac_try;;
20903 esac
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905   (eval "$ac_try") 2>&5
20906   ac_status=$?
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); }; }; then
20909   ac_header_compiler=yes
20910 else
20911   echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914         ac_header_compiler=no
20915 fi
20916
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20919 echo "${ECHO_T}$ac_header_compiler" >&6; }
20920
20921 # Is the header present?
20922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20924 cat >conftest.$ac_ext <<_ACEOF
20925 /* confdefs.h.  */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h.  */
20930 #include <$ac_header>
20931 _ACEOF
20932 if { (ac_try="$ac_cpp conftest.$ac_ext"
20933 case "(($ac_try" in
20934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935   *) ac_try_echo=$ac_try;;
20936 esac
20937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20939   ac_status=$?
20940   grep -v '^ *+' conftest.er1 >conftest.err
20941   rm -f conftest.er1
20942   cat conftest.err >&5
20943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944   (exit $ac_status); } >/dev/null; then
20945   if test -s conftest.err; then
20946     ac_cpp_err=$ac_c_preproc_warn_flag
20947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20948   else
20949     ac_cpp_err=
20950   fi
20951 else
20952   ac_cpp_err=yes
20953 fi
20954 if test -z "$ac_cpp_err"; then
20955   ac_header_preproc=yes
20956 else
20957   echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20959
20960   ac_header_preproc=no
20961 fi
20962
20963 rm -f conftest.err conftest.$ac_ext
20964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20965 echo "${ECHO_T}$ac_header_preproc" >&6; }
20966
20967 # So?  What about this header?
20968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20969   yes:no: )
20970     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20974     ac_header_preproc=yes
20975     ;;
20976   no:yes:* )
20977     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20979     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20980 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20981     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20983     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20984 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20987     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20989
20990     ;;
20991 esac
20992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20995   echo $ECHO_N "(cached) $ECHO_C" >&6
20996 else
20997   eval "$as_ac_Header=\$ac_header_preproc"
20998 fi
20999 ac_res=`eval echo '${'$as_ac_Header'}'`
21000                { echo "$as_me:$LINENO: result: $ac_res" >&5
21001 echo "${ECHO_T}$ac_res" >&6; }
21002
21003 fi
21004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21005   cat >>confdefs.h <<_ACEOF
21006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21007 _ACEOF
21008
21009 else
21010    WITH_THREADS="no"
21011 fi
21012
21013 done
21014
21015
21016   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21017 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
21018 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21019   echo $ECHO_N "(cached) $ECHO_C" >&6
21020 else
21021   ac_check_lib_save_LIBS=$LIBS
21022 LIBS="-lpthread  $LIBS"
21023 cat >conftest.$ac_ext <<_ACEOF
21024 /* confdefs.h.  */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h.  */
21029
21030 /* Override any GCC internal prototype to avoid an error.
21031    Use char because int might match the return type of a GCC
21032    builtin and then its argument prototype would still apply.  */
21033 #ifdef __cplusplus
21034 extern "C"
21035 #endif
21036 char pthread_create ();
21037 int
21038 main ()
21039 {
21040 return pthread_create ();
21041   ;
21042   return 0;
21043 }
21044 _ACEOF
21045 rm -f conftest.$ac_objext conftest$ac_exeext
21046 if { (ac_try="$ac_link"
21047 case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_link") 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } &&
21059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21060   { (case "(($ac_try" in
21061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062   *) ac_try_echo=$ac_try;;
21063 esac
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065   (eval "$ac_try") 2>&5
21066   ac_status=$?
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); }; } &&
21069          { ac_try='test -s conftest$ac_exeext'
21070   { (case "(($ac_try" in
21071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072   *) ac_try_echo=$ac_try;;
21073 esac
21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075   (eval "$ac_try") 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); }; }; then
21079   ac_cv_lib_pthread_pthread_create=yes
21080 else
21081   echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21083
21084         ac_cv_lib_pthread_pthread_create=no
21085 fi
21086
21087 rm -f core conftest.err conftest.$ac_objext \
21088       conftest$ac_exeext conftest.$ac_ext
21089 LIBS=$ac_check_lib_save_LIBS
21090 fi
21091 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21092 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21093 if test $ac_cv_lib_pthread_pthread_create = yes; then
21094    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
21095                   LIBS="$LIBS -lpthread"
21096 else
21097   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21098 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
21099 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21100   echo $ECHO_N "(cached) $ECHO_C" >&6
21101 else
21102   ac_check_lib_save_LIBS=$LIBS
21103 LIBS="-lc_r  $LIBS"
21104 cat >conftest.$ac_ext <<_ACEOF
21105 /* confdefs.h.  */
21106 _ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h.  */
21110
21111 /* Override any GCC internal prototype to avoid an error.
21112    Use char because int might match the return type of a GCC
21113    builtin and then its argument prototype would still apply.  */
21114 #ifdef __cplusplus
21115 extern "C"
21116 #endif
21117 char pthread_create ();
21118 int
21119 main ()
21120 {
21121 return pthread_create ();
21122   ;
21123   return 0;
21124 }
21125 _ACEOF
21126 rm -f conftest.$ac_objext conftest$ac_exeext
21127 if { (ac_try="$ac_link"
21128 case "(($ac_try" in
21129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130   *) ac_try_echo=$ac_try;;
21131 esac
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133   (eval "$ac_link") 2>conftest.er1
21134   ac_status=$?
21135   grep -v '^ *+' conftest.er1 >conftest.err
21136   rm -f conftest.er1
21137   cat conftest.err >&5
21138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139   (exit $ac_status); } &&
21140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21141   { (case "(($ac_try" in
21142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143   *) ac_try_echo=$ac_try;;
21144 esac
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146   (eval "$ac_try") 2>&5
21147   ac_status=$?
21148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149   (exit $ac_status); }; } &&
21150          { ac_try='test -s conftest$ac_exeext'
21151   { (case "(($ac_try" in
21152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153   *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156   (eval "$ac_try") 2>&5
21157   ac_status=$?
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); }; }; then
21160   ac_cv_lib_c_r_pthread_create=yes
21161 else
21162   echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21164
21165         ac_cv_lib_c_r_pthread_create=no
21166 fi
21167
21168 rm -f core conftest.err conftest.$ac_objext \
21169       conftest$ac_exeext conftest.$ac_ext
21170 LIBS=$ac_check_lib_save_LIBS
21171 fi
21172 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21173 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21174 if test $ac_cv_lib_c_r_pthread_create = yes; then
21175    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
21176 else
21177    WITH_THREADS="no"
21178
21179 fi
21180
21181
21182 fi
21183
21184 fi
21185
21186 if test "x$WITH_THREADS" != "xyes"; then
21187   CFLAGS=$old_CFLAGS
21188   ac_cv_header_pthread_h="no"
21189   WITH_THREADS=no
21190 else
21191
21192   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
21193 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
21194 if test "${ac_cv_search_sem_init+set}" = set; then
21195   echo $ECHO_N "(cached) $ECHO_C" >&6
21196 else
21197   ac_func_search_save_LIBS=$LIBS
21198 cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h.  */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h.  */
21204
21205 /* Override any GCC internal prototype to avoid an error.
21206    Use char because int might match the return type of a GCC
21207    builtin and then its argument prototype would still apply.  */
21208 #ifdef __cplusplus
21209 extern "C"
21210 #endif
21211 char sem_init ();
21212 int
21213 main ()
21214 {
21215 return sem_init ();
21216   ;
21217   return 0;
21218 }
21219 _ACEOF
21220 for ac_lib in '' pthread sem posix4 rt semaphore; do
21221   if test -z "$ac_lib"; then
21222     ac_res="none required"
21223   else
21224     ac_res=-l$ac_lib
21225     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21226   fi
21227   rm -f conftest.$ac_objext conftest$ac_exeext
21228 if { (ac_try="$ac_link"
21229 case "(($ac_try" in
21230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231   *) ac_try_echo=$ac_try;;
21232 esac
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234   (eval "$ac_link") 2>conftest.er1
21235   ac_status=$?
21236   grep -v '^ *+' conftest.er1 >conftest.err
21237   rm -f conftest.er1
21238   cat conftest.err >&5
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); } &&
21241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21242   { (case "(($ac_try" in
21243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244   *) ac_try_echo=$ac_try;;
21245 esac
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247   (eval "$ac_try") 2>&5
21248   ac_status=$?
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); }; } &&
21251          { ac_try='test -s conftest$ac_exeext'
21252   { (case "(($ac_try" in
21253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254   *) ac_try_echo=$ac_try;;
21255 esac
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257   (eval "$ac_try") 2>&5
21258   ac_status=$?
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); }; }; then
21261   ac_cv_search_sem_init=$ac_res
21262 else
21263   echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21265
21266
21267 fi
21268
21269 rm -f core conftest.err conftest.$ac_objext \
21270       conftest$ac_exeext
21271   if test "${ac_cv_search_sem_init+set}" = set; then
21272   break
21273 fi
21274 done
21275 if test "${ac_cv_search_sem_init+set}" = set; then
21276   :
21277 else
21278   ac_cv_search_sem_init=no
21279 fi
21280 rm conftest.$ac_ext
21281 LIBS=$ac_func_search_save_LIBS
21282 fi
21283 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
21284 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
21285 ac_res=$ac_cv_search_sem_init
21286 if test "$ac_res" != no; then
21287   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21288
21289 else
21290   { { echo "$as_me:$LINENO: error: -lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&5
21291 echo "$as_me: error: -lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&2;}
21292    { (exit 1); exit 1; }; }
21293
21294 fi
21295
21296 fi
21297
21298
21299 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
21300 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
21301 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
21302   echo $ECHO_N "(cached) $ECHO_C" >&6
21303 else
21304   ac_check_lib_save_LIBS=$LIBS
21305 LIBS="-lsocket  $LIBS"
21306 cat >conftest.$ac_ext <<_ACEOF
21307 /* confdefs.h.  */
21308 _ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h.  */
21312
21313 /* Override any GCC internal prototype to avoid an error.
21314    Use char because int might match the return type of a GCC
21315    builtin and then its argument prototype would still apply.  */
21316 #ifdef __cplusplus
21317 extern "C"
21318 #endif
21319 char getsockname ();
21320 int
21321 main ()
21322 {
21323 return getsockname ();
21324   ;
21325   return 0;
21326 }
21327 _ACEOF
21328 rm -f conftest.$ac_objext conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332   *) ac_try_echo=$ac_try;;
21333 esac
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335   (eval "$ac_link") 2>conftest.er1
21336   ac_status=$?
21337   grep -v '^ *+' conftest.er1 >conftest.err
21338   rm -f conftest.er1
21339   cat conftest.err >&5
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); } &&
21342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21343   { (case "(($ac_try" in
21344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345   *) ac_try_echo=$ac_try;;
21346 esac
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348   (eval "$ac_try") 2>&5
21349   ac_status=$?
21350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351   (exit $ac_status); }; } &&
21352          { ac_try='test -s conftest$ac_exeext'
21353   { (case "(($ac_try" in
21354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355   *) ac_try_echo=$ac_try;;
21356 esac
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358   (eval "$ac_try") 2>&5
21359   ac_status=$?
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); }; }; then
21362   ac_cv_lib_socket_getsockname=yes
21363 else
21364   echo "$as_me: failed program was:" >&5
21365 sed 's/^/| /' conftest.$ac_ext >&5
21366
21367         ac_cv_lib_socket_getsockname=no
21368 fi
21369
21370 rm -f core conftest.err conftest.$ac_objext \
21371       conftest$ac_exeext conftest.$ac_ext
21372 LIBS=$ac_check_lib_save_LIBS
21373 fi
21374 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
21375 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
21376 if test $ac_cv_lib_socket_getsockname = yes; then
21377   cat >>confdefs.h <<_ACEOF
21378 #define HAVE_LIBSOCKET 1
21379 _ACEOF
21380
21381   LIBS="-lsocket $LIBS"
21382
21383 fi
21384
21385
21386
21387 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
21388 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21389 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21390   echo $ECHO_N "(cached) $ECHO_C" >&6
21391 else
21392   ac_check_lib_save_LIBS=$LIBS
21393 LIBS="-lresolv  $LIBS"
21394 cat >conftest.$ac_ext <<_ACEOF
21395 /* confdefs.h.  */
21396 _ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h.  */
21400
21401 /* Override any GCC internal prototype to avoid an error.
21402    Use char because int might match the return type of a GCC
21403    builtin and then its argument prototype would still apply.  */
21404 #ifdef __cplusplus
21405 extern "C"
21406 #endif
21407 char inet_aton ();
21408 int
21409 main ()
21410 {
21411 return inet_aton ();
21412   ;
21413   return 0;
21414 }
21415 _ACEOF
21416 rm -f conftest.$ac_objext conftest$ac_exeext
21417 if { (ac_try="$ac_link"
21418 case "(($ac_try" in
21419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420   *) ac_try_echo=$ac_try;;
21421 esac
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423   (eval "$ac_link") 2>conftest.er1
21424   ac_status=$?
21425   grep -v '^ *+' conftest.er1 >conftest.err
21426   rm -f conftest.er1
21427   cat conftest.err >&5
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); } &&
21430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21431   { (case "(($ac_try" in
21432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433   *) ac_try_echo=$ac_try;;
21434 esac
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436   (eval "$ac_try") 2>&5
21437   ac_status=$?
21438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439   (exit $ac_status); }; } &&
21440          { ac_try='test -s conftest$ac_exeext'
21441   { (case "(($ac_try" in
21442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443   *) ac_try_echo=$ac_try;;
21444 esac
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446   (eval "$ac_try") 2>&5
21447   ac_status=$?
21448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449   (exit $ac_status); }; }; then
21450   ac_cv_lib_resolv_inet_aton=yes
21451 else
21452   echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21454
21455         ac_cv_lib_resolv_inet_aton=no
21456 fi
21457
21458 rm -f core conftest.err conftest.$ac_objext \
21459       conftest$ac_exeext conftest.$ac_ext
21460 LIBS=$ac_check_lib_save_LIBS
21461 fi
21462 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21463 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21464 if test $ac_cv_lib_resolv_inet_aton = yes; then
21465   cat >>confdefs.h <<_ACEOF
21466 #define HAVE_LIBRESOLV 1
21467 _ACEOF
21468
21469   LIBS="-lresolv $LIBS"
21470
21471 fi
21472
21473
21474
21475 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21476 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21477 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21478   echo $ECHO_N "(cached) $ECHO_C" >&6
21479 else
21480   ac_check_lib_save_LIBS=$LIBS
21481 LIBS="-lnsl  $LIBS"
21482 cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h.  */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h.  */
21488
21489 /* Override any GCC internal prototype to avoid an error.
21490    Use char because int might match the return type of a GCC
21491    builtin and then its argument prototype would still apply.  */
21492 #ifdef __cplusplus
21493 extern "C"
21494 #endif
21495 char inet_ntoa ();
21496 int
21497 main ()
21498 {
21499 return inet_ntoa ();
21500   ;
21501   return 0;
21502 }
21503 _ACEOF
21504 rm -f conftest.$ac_objext conftest$ac_exeext
21505 if { (ac_try="$ac_link"
21506 case "(($ac_try" in
21507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508   *) ac_try_echo=$ac_try;;
21509 esac
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511   (eval "$ac_link") 2>conftest.er1
21512   ac_status=$?
21513   grep -v '^ *+' conftest.er1 >conftest.err
21514   rm -f conftest.er1
21515   cat conftest.err >&5
21516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517   (exit $ac_status); } &&
21518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21519   { (case "(($ac_try" in
21520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521   *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524   (eval "$ac_try") 2>&5
21525   ac_status=$?
21526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); }; } &&
21528          { ac_try='test -s conftest$ac_exeext'
21529   { (case "(($ac_try" in
21530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531   *) ac_try_echo=$ac_try;;
21532 esac
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534   (eval "$ac_try") 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; }; then
21538   ac_cv_lib_nsl_inet_ntoa=yes
21539 else
21540   echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21542
21543         ac_cv_lib_nsl_inet_ntoa=no
21544 fi
21545
21546 rm -f core conftest.err conftest.$ac_objext \
21547       conftest$ac_exeext conftest.$ac_ext
21548 LIBS=$ac_check_lib_save_LIBS
21549 fi
21550 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21551 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21552 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21553   cat >>confdefs.h <<_ACEOF
21554 #define HAVE_LIBNSL 1
21555 _ACEOF
21556
21557   LIBS="-lnsl $LIBS"
21558
21559 fi
21560
21561
21562 OPENSSL_LIBS=
21563 old_LIBS=$LIBS
21564 if test "x$OPENSSL_LIB_DIR" != "x"; then
21565     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
21566 fi
21567 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21568 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21569 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21570   echo $ECHO_N "(cached) $ECHO_C" >&6
21571 else
21572   ac_check_lib_save_LIBS=$LIBS
21573 LIBS="-lcrypto  $LIBS"
21574 cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h.  */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h.  */
21580
21581 /* Override any GCC internal prototype to avoid an error.
21582    Use char because int might match the return type of a GCC
21583    builtin and then its argument prototype would still apply.  */
21584 #ifdef __cplusplus
21585 extern "C"
21586 #endif
21587 char DH_new ();
21588 int
21589 main ()
21590 {
21591 return DH_new ();
21592   ;
21593   return 0;
21594 }
21595 _ACEOF
21596 rm -f conftest.$ac_objext conftest$ac_exeext
21597 if { (ac_try="$ac_link"
21598 case "(($ac_try" in
21599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600   *) ac_try_echo=$ac_try;;
21601 esac
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603   (eval "$ac_link") 2>conftest.er1
21604   ac_status=$?
21605   grep -v '^ *+' conftest.er1 >conftest.err
21606   rm -f conftest.er1
21607   cat conftest.err >&5
21608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609   (exit $ac_status); } &&
21610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21611   { (case "(($ac_try" in
21612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613   *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616   (eval "$ac_try") 2>&5
21617   ac_status=$?
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); }; } &&
21620          { ac_try='test -s conftest$ac_exeext'
21621   { (case "(($ac_try" in
21622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21623   *) ac_try_echo=$ac_try;;
21624 esac
21625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21626   (eval "$ac_try") 2>&5
21627   ac_status=$?
21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629   (exit $ac_status); }; }; then
21630   ac_cv_lib_crypto_DH_new=yes
21631 else
21632   echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21634
21635         ac_cv_lib_crypto_DH_new=no
21636 fi
21637
21638 rm -f core conftest.err conftest.$ac_objext \
21639       conftest$ac_exeext conftest.$ac_ext
21640 LIBS=$ac_check_lib_save_LIBS
21641 fi
21642 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21643 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21644 if test $ac_cv_lib_crypto_DH_new = yes; then
21645
21646
21647 cat >>confdefs.h <<\_ACEOF
21648 #define HAVE_LIBCRYPTO 1
21649 _ACEOF
21650
21651         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21652 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21653 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21654   echo $ECHO_N "(cached) $ECHO_C" >&6
21655 else
21656   ac_check_lib_save_LIBS=$LIBS
21657 LIBS="-lssl  $LIBS"
21658 cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h.  */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h.  */
21664
21665 /* Override any GCC internal prototype to avoid an error.
21666    Use char because int might match the return type of a GCC
21667    builtin and then its argument prototype would still apply.  */
21668 #ifdef __cplusplus
21669 extern "C"
21670 #endif
21671 char SSL_new ();
21672 int
21673 main ()
21674 {
21675 return SSL_new ();
21676   ;
21677   return 0;
21678 }
21679 _ACEOF
21680 rm -f conftest.$ac_objext conftest$ac_exeext
21681 if { (ac_try="$ac_link"
21682 case "(($ac_try" in
21683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684   *) ac_try_echo=$ac_try;;
21685 esac
21686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687   (eval "$ac_link") 2>conftest.er1
21688   ac_status=$?
21689   grep -v '^ *+' conftest.er1 >conftest.err
21690   rm -f conftest.er1
21691   cat conftest.err >&5
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); } &&
21694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21695   { (case "(($ac_try" in
21696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697   *) ac_try_echo=$ac_try;;
21698 esac
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700   (eval "$ac_try") 2>&5
21701   ac_status=$?
21702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703   (exit $ac_status); }; } &&
21704          { ac_try='test -s conftest$ac_exeext'
21705   { (case "(($ac_try" in
21706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707   *) ac_try_echo=$ac_try;;
21708 esac
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710   (eval "$ac_try") 2>&5
21711   ac_status=$?
21712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); }; }; then
21714   ac_cv_lib_ssl_SSL_new=yes
21715 else
21716   echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21718
21719         ac_cv_lib_ssl_SSL_new=no
21720 fi
21721
21722 rm -f core conftest.err conftest.$ac_objext \
21723       conftest$ac_exeext conftest.$ac_ext
21724 LIBS=$ac_check_lib_save_LIBS
21725 fi
21726 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21727 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21728 if test $ac_cv_lib_ssl_SSL_new = yes; then
21729
21730
21731 cat >>confdefs.h <<\_ACEOF
21732 #define HAVE_LIBSSL 1
21733 _ACEOF
21734
21735                 if test "x$OPENSSL_LIB_DIR" != "x"; then
21736                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21737                 fi
21738                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21739
21740 fi
21741
21742
21743 fi
21744
21745 LIBS=$old_LIBS
21746
21747
21748 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
21749 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
21750 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
21751   echo $ECHO_N "(cached) $ECHO_C" >&6
21752 else
21753   ac_check_lib_save_LIBS=$LIBS
21754 LIBS="-lws2_32  $LIBS"
21755 cat >conftest.$ac_ext <<_ACEOF
21756 /* confdefs.h.  */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h.  */
21761
21762 /* Override any GCC internal prototype to avoid an error.
21763    Use char because int might match the return type of a GCC
21764    builtin and then its argument prototype would still apply.  */
21765 #ifdef __cplusplus
21766 extern "C"
21767 #endif
21768 char htonl ();
21769 int
21770 main ()
21771 {
21772 return htonl ();
21773   ;
21774   return 0;
21775 }
21776 _ACEOF
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (ac_try="$ac_link"
21779 case "(($ac_try" in
21780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781   *) ac_try_echo=$ac_try;;
21782 esac
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784   (eval "$ac_link") 2>conftest.er1
21785   ac_status=$?
21786   grep -v '^ *+' conftest.er1 >conftest.err
21787   rm -f conftest.er1
21788   cat conftest.err >&5
21789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); } &&
21791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21792   { (case "(($ac_try" in
21793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794   *) ac_try_echo=$ac_try;;
21795 esac
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797   (eval "$ac_try") 2>&5
21798   ac_status=$?
21799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800   (exit $ac_status); }; } &&
21801          { ac_try='test -s conftest$ac_exeext'
21802   { (case "(($ac_try" in
21803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804   *) ac_try_echo=$ac_try;;
21805 esac
21806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807   (eval "$ac_try") 2>&5
21808   ac_status=$?
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); }; }; then
21811   ac_cv_lib_ws2_32_htonl=yes
21812 else
21813   echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21815
21816         ac_cv_lib_ws2_32_htonl=no
21817 fi
21818
21819 rm -f core conftest.err conftest.$ac_objext \
21820       conftest$ac_exeext conftest.$ac_ext
21821 LIBS=$ac_check_lib_save_LIBS
21822 fi
21823 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21824 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21825 if test $ac_cv_lib_ws2_32_htonl = yes; then
21826   cat >>confdefs.h <<_ACEOF
21827 #define HAVE_LIBWS2_32 1
21828 _ACEOF
21829
21830   LIBS="-lws2_32 $LIBS"
21831
21832 fi
21833
21834
21835 PCAP_LIBS=
21836 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21837 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21838 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21839   echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841   ac_check_lib_save_LIBS=$LIBS
21842 LIBS="-lpcap  $LIBS"
21843 cat >conftest.$ac_ext <<_ACEOF
21844 /* confdefs.h.  */
21845 _ACEOF
21846 cat confdefs.h >>conftest.$ac_ext
21847 cat >>conftest.$ac_ext <<_ACEOF
21848 /* end confdefs.h.  */
21849
21850 /* Override any GCC internal prototype to avoid an error.
21851    Use char because int might match the return type of a GCC
21852    builtin and then its argument prototype would still apply.  */
21853 #ifdef __cplusplus
21854 extern "C"
21855 #endif
21856 char pcap_open_live ();
21857 int
21858 main ()
21859 {
21860 return pcap_open_live ();
21861   ;
21862   return 0;
21863 }
21864 _ACEOF
21865 rm -f conftest.$ac_objext conftest$ac_exeext
21866 if { (ac_try="$ac_link"
21867 case "(($ac_try" in
21868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869   *) ac_try_echo=$ac_try;;
21870 esac
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872   (eval "$ac_link") 2>conftest.er1
21873   ac_status=$?
21874   grep -v '^ *+' conftest.er1 >conftest.err
21875   rm -f conftest.er1
21876   cat conftest.err >&5
21877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878   (exit $ac_status); } &&
21879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21880   { (case "(($ac_try" in
21881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882   *) ac_try_echo=$ac_try;;
21883 esac
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885   (eval "$ac_try") 2>&5
21886   ac_status=$?
21887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888   (exit $ac_status); }; } &&
21889          { ac_try='test -s conftest$ac_exeext'
21890   { (case "(($ac_try" in
21891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21892   *) ac_try_echo=$ac_try;;
21893 esac
21894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21895   (eval "$ac_try") 2>&5
21896   ac_status=$?
21897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898   (exit $ac_status); }; }; then
21899   ac_cv_lib_pcap_pcap_open_live=yes
21900 else
21901   echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21903
21904         ac_cv_lib_pcap_pcap_open_live=no
21905 fi
21906
21907 rm -f core conftest.err conftest.$ac_objext \
21908       conftest$ac_exeext conftest.$ac_ext
21909 LIBS=$ac_check_lib_save_LIBS
21910 fi
21911 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21912 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21913 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21914    PCAP_LIBS="-lpcap"
21915
21916 cat >>confdefs.h <<\_ACEOF
21917 #define HAVE_LIBPCAP 1
21918 _ACEOF
21919
21920
21921 else
21922    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21923 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21924 fi
21925
21926
21927
21928 case "$host" in
21929 *-interix*)
21930         CFLAGS="$CFLAGS -D_ALL_SOURCE"
21931         ;;
21932 *-darwin*)
21933         CFLAGS="$CFLAGS -DDARWIN"
21934         ;;
21935 esac
21936
21937
21938
21939
21940
21941
21942 ac_header_dirent=no
21943 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21944   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21945 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21946 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21948   echo $ECHO_N "(cached) $ECHO_C" >&6
21949 else
21950   cat >conftest.$ac_ext <<_ACEOF
21951 /* confdefs.h.  */
21952 _ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h.  */
21956 #include <sys/types.h>
21957 #include <$ac_hdr>
21958
21959 int
21960 main ()
21961 {
21962 if ((DIR *) 0)
21963 return 0;
21964   ;
21965   return 0;
21966 }
21967 _ACEOF
21968 rm -f conftest.$ac_objext
21969 if { (ac_try="$ac_compile"
21970 case "(($ac_try" in
21971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972   *) ac_try_echo=$ac_try;;
21973 esac
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975   (eval "$ac_compile") 2>conftest.er1
21976   ac_status=$?
21977   grep -v '^ *+' conftest.er1 >conftest.err
21978   rm -f conftest.er1
21979   cat conftest.err >&5
21980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981   (exit $ac_status); } &&
21982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21983   { (case "(($ac_try" in
21984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985   *) ac_try_echo=$ac_try;;
21986 esac
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988   (eval "$ac_try") 2>&5
21989   ac_status=$?
21990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991   (exit $ac_status); }; } &&
21992          { ac_try='test -s conftest.$ac_objext'
21993   { (case "(($ac_try" in
21994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995   *) ac_try_echo=$ac_try;;
21996 esac
21997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998   (eval "$ac_try") 2>&5
21999   ac_status=$?
22000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001   (exit $ac_status); }; }; then
22002   eval "$as_ac_Header=yes"
22003 else
22004   echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22006
22007         eval "$as_ac_Header=no"
22008 fi
22009
22010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22011 fi
22012 ac_res=`eval echo '${'$as_ac_Header'}'`
22013                { echo "$as_me:$LINENO: result: $ac_res" >&5
22014 echo "${ECHO_T}$ac_res" >&6; }
22015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22016   cat >>confdefs.h <<_ACEOF
22017 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22018 _ACEOF
22019
22020 ac_header_dirent=$ac_hdr; break
22021 fi
22022
22023 done
22024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22025 if test $ac_header_dirent = dirent.h; then
22026   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22027 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22028 if test "${ac_cv_search_opendir+set}" = set; then
22029   echo $ECHO_N "(cached) $ECHO_C" >&6
22030 else
22031   ac_func_search_save_LIBS=$LIBS
22032 cat >conftest.$ac_ext <<_ACEOF
22033 /* confdefs.h.  */
22034 _ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h.  */
22038
22039 /* Override any GCC internal prototype to avoid an error.
22040    Use char because int might match the return type of a GCC
22041    builtin and then its argument prototype would still apply.  */
22042 #ifdef __cplusplus
22043 extern "C"
22044 #endif
22045 char opendir ();
22046 int
22047 main ()
22048 {
22049 return opendir ();
22050   ;
22051   return 0;
22052 }
22053 _ACEOF
22054 for ac_lib in '' dir; do
22055   if test -z "$ac_lib"; then
22056     ac_res="none required"
22057   else
22058     ac_res=-l$ac_lib
22059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22060   fi
22061   rm -f conftest.$ac_objext conftest$ac_exeext
22062 if { (ac_try="$ac_link"
22063 case "(($ac_try" in
22064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065   *) ac_try_echo=$ac_try;;
22066 esac
22067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22068   (eval "$ac_link") 2>conftest.er1
22069   ac_status=$?
22070   grep -v '^ *+' conftest.er1 >conftest.err
22071   rm -f conftest.er1
22072   cat conftest.err >&5
22073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074   (exit $ac_status); } &&
22075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22076   { (case "(($ac_try" in
22077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078   *) ac_try_echo=$ac_try;;
22079 esac
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081   (eval "$ac_try") 2>&5
22082   ac_status=$?
22083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084   (exit $ac_status); }; } &&
22085          { ac_try='test -s conftest$ac_exeext'
22086   { (case "(($ac_try" in
22087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088   *) ac_try_echo=$ac_try;;
22089 esac
22090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091   (eval "$ac_try") 2>&5
22092   ac_status=$?
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); }; }; then
22095   ac_cv_search_opendir=$ac_res
22096 else
22097   echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22099
22100
22101 fi
22102
22103 rm -f core conftest.err conftest.$ac_objext \
22104       conftest$ac_exeext
22105   if test "${ac_cv_search_opendir+set}" = set; then
22106   break
22107 fi
22108 done
22109 if test "${ac_cv_search_opendir+set}" = set; then
22110   :
22111 else
22112   ac_cv_search_opendir=no
22113 fi
22114 rm conftest.$ac_ext
22115 LIBS=$ac_func_search_save_LIBS
22116 fi
22117 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22118 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22119 ac_res=$ac_cv_search_opendir
22120 if test "$ac_res" != no; then
22121   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22122
22123 fi
22124
22125 else
22126   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22127 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22128 if test "${ac_cv_search_opendir+set}" = set; then
22129   echo $ECHO_N "(cached) $ECHO_C" >&6
22130 else
22131   ac_func_search_save_LIBS=$LIBS
22132 cat >conftest.$ac_ext <<_ACEOF
22133 /* confdefs.h.  */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h.  */
22138
22139 /* Override any GCC internal prototype to avoid an error.
22140    Use char because int might match the return type of a GCC
22141    builtin and then its argument prototype would still apply.  */
22142 #ifdef __cplusplus
22143 extern "C"
22144 #endif
22145 char opendir ();
22146 int
22147 main ()
22148 {
22149 return opendir ();
22150   ;
22151   return 0;
22152 }
22153 _ACEOF
22154 for ac_lib in '' x; do
22155   if test -z "$ac_lib"; then
22156     ac_res="none required"
22157   else
22158     ac_res=-l$ac_lib
22159     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22160   fi
22161   rm -f conftest.$ac_objext conftest$ac_exeext
22162 if { (ac_try="$ac_link"
22163 case "(($ac_try" in
22164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165   *) ac_try_echo=$ac_try;;
22166 esac
22167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168   (eval "$ac_link") 2>conftest.er1
22169   ac_status=$?
22170   grep -v '^ *+' conftest.er1 >conftest.err
22171   rm -f conftest.er1
22172   cat conftest.err >&5
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); } &&
22175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22176   { (case "(($ac_try" in
22177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178   *) ac_try_echo=$ac_try;;
22179 esac
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181   (eval "$ac_try") 2>&5
22182   ac_status=$?
22183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); }; } &&
22185          { ac_try='test -s conftest$ac_exeext'
22186   { (case "(($ac_try" in
22187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188   *) ac_try_echo=$ac_try;;
22189 esac
22190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191   (eval "$ac_try") 2>&5
22192   ac_status=$?
22193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194   (exit $ac_status); }; }; then
22195   ac_cv_search_opendir=$ac_res
22196 else
22197   echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22199
22200
22201 fi
22202
22203 rm -f core conftest.err conftest.$ac_objext \
22204       conftest$ac_exeext
22205   if test "${ac_cv_search_opendir+set}" = set; then
22206   break
22207 fi
22208 done
22209 if test "${ac_cv_search_opendir+set}" = set; then
22210   :
22211 else
22212   ac_cv_search_opendir=no
22213 fi
22214 rm conftest.$ac_ext
22215 LIBS=$ac_func_search_save_LIBS
22216 fi
22217 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22218 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22219 ac_res=$ac_cv_search_opendir
22220 if test "$ac_res" != no; then
22221   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22222
22223 fi
22224
22225 fi
22226
22227 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22228 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22229 if test "${ac_cv_header_stdc+set}" = set; then
22230   echo $ECHO_N "(cached) $ECHO_C" >&6
22231 else
22232   cat >conftest.$ac_ext <<_ACEOF
22233 /* confdefs.h.  */
22234 _ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h.  */
22238 #include <stdlib.h>
22239 #include <stdarg.h>
22240 #include <string.h>
22241 #include <float.h>
22242
22243 int
22244 main ()
22245 {
22246
22247   ;
22248   return 0;
22249 }
22250 _ACEOF
22251 rm -f conftest.$ac_objext
22252 if { (ac_try="$ac_compile"
22253 case "(($ac_try" in
22254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255   *) ac_try_echo=$ac_try;;
22256 esac
22257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22258   (eval "$ac_compile") 2>conftest.er1
22259   ac_status=$?
22260   grep -v '^ *+' conftest.er1 >conftest.err
22261   rm -f conftest.er1
22262   cat conftest.err >&5
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); } &&
22265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22266   { (case "(($ac_try" in
22267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268   *) ac_try_echo=$ac_try;;
22269 esac
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271   (eval "$ac_try") 2>&5
22272   ac_status=$?
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); }; } &&
22275          { ac_try='test -s conftest.$ac_objext'
22276   { (case "(($ac_try" in
22277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278   *) ac_try_echo=$ac_try;;
22279 esac
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281   (eval "$ac_try") 2>&5
22282   ac_status=$?
22283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284   (exit $ac_status); }; }; then
22285   ac_cv_header_stdc=yes
22286 else
22287   echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22289
22290         ac_cv_header_stdc=no
22291 fi
22292
22293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22294
22295 if test $ac_cv_header_stdc = yes; then
22296   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22297   cat >conftest.$ac_ext <<_ACEOF
22298 /* confdefs.h.  */
22299 _ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h.  */
22303 #include <string.h>
22304
22305 _ACEOF
22306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22307   $EGREP "memchr" >/dev/null 2>&1; then
22308   :
22309 else
22310   ac_cv_header_stdc=no
22311 fi
22312 rm -f conftest*
22313
22314 fi
22315
22316 if test $ac_cv_header_stdc = yes; then
22317   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22318   cat >conftest.$ac_ext <<_ACEOF
22319 /* confdefs.h.  */
22320 _ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h.  */
22324 #include <stdlib.h>
22325
22326 _ACEOF
22327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22328   $EGREP "free" >/dev/null 2>&1; then
22329   :
22330 else
22331   ac_cv_header_stdc=no
22332 fi
22333 rm -f conftest*
22334
22335 fi
22336
22337 if test $ac_cv_header_stdc = yes; then
22338   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22339   if test "$cross_compiling" = yes; then
22340   :
22341 else
22342   cat >conftest.$ac_ext <<_ACEOF
22343 /* confdefs.h.  */
22344 _ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h.  */
22348 #include <ctype.h>
22349 #include <stdlib.h>
22350 #if ((' ' & 0x0FF) == 0x020)
22351 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22352 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22353 #else
22354 # define ISLOWER(c) \
22355                    (('a' <= (c) && (c) <= 'i') \
22356                      || ('j' <= (c) && (c) <= 'r') \
22357                      || ('s' <= (c) && (c) <= 'z'))
22358 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22359 #endif
22360
22361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22362 int
22363 main ()
22364 {
22365   int i;
22366   for (i = 0; i < 256; i++)
22367     if (XOR (islower (i), ISLOWER (i))
22368         || toupper (i) != TOUPPER (i))
22369       return 2;
22370   return 0;
22371 }
22372 _ACEOF
22373 rm -f conftest$ac_exeext
22374 if { (ac_try="$ac_link"
22375 case "(($ac_try" in
22376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22377   *) ac_try_echo=$ac_try;;
22378 esac
22379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22380   (eval "$ac_link") 2>&5
22381   ac_status=$?
22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22384   { (case "(($ac_try" in
22385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386   *) ac_try_echo=$ac_try;;
22387 esac
22388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389   (eval "$ac_try") 2>&5
22390   ac_status=$?
22391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392   (exit $ac_status); }; }; then
22393   :
22394 else
22395   echo "$as_me: program exited with status $ac_status" >&5
22396 echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22398
22399 ( exit $ac_status )
22400 ac_cv_header_stdc=no
22401 fi
22402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22403 fi
22404
22405
22406 fi
22407 fi
22408 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22409 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22410 if test $ac_cv_header_stdc = yes; then
22411
22412 cat >>confdefs.h <<\_ACEOF
22413 #define STDC_HEADERS 1
22414 _ACEOF
22415
22416 fi
22417
22418 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22419 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22420 if test "${ac_cv_header_time+set}" = set; then
22421   echo $ECHO_N "(cached) $ECHO_C" >&6
22422 else
22423   cat >conftest.$ac_ext <<_ACEOF
22424 /* confdefs.h.  */
22425 _ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h.  */
22429 #include <sys/types.h>
22430 #include <sys/time.h>
22431 #include <time.h>
22432
22433 int
22434 main ()
22435 {
22436 if ((struct tm *) 0)
22437 return 0;
22438   ;
22439   return 0;
22440 }
22441 _ACEOF
22442 rm -f conftest.$ac_objext
22443 if { (ac_try="$ac_compile"
22444 case "(($ac_try" in
22445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446   *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449   (eval "$ac_compile") 2>conftest.er1
22450   ac_status=$?
22451   grep -v '^ *+' conftest.er1 >conftest.err
22452   rm -f conftest.er1
22453   cat conftest.err >&5
22454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455   (exit $ac_status); } &&
22456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22457   { (case "(($ac_try" in
22458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459   *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462   (eval "$ac_try") 2>&5
22463   ac_status=$?
22464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465   (exit $ac_status); }; } &&
22466          { ac_try='test -s conftest.$ac_objext'
22467   { (case "(($ac_try" in
22468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469   *) ac_try_echo=$ac_try;;
22470 esac
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472   (eval "$ac_try") 2>&5
22473   ac_status=$?
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); }; }; then
22476   ac_cv_header_time=yes
22477 else
22478   echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22480
22481         ac_cv_header_time=no
22482 fi
22483
22484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22485 fi
22486 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22487 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22488 if test $ac_cv_header_time = yes; then
22489
22490 cat >>confdefs.h <<\_ACEOF
22491 #define TIME_WITH_SYS_TIME 1
22492 _ACEOF
22493
22494 fi
22495
22496 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22497 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22498 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22499   echo $ECHO_N "(cached) $ECHO_C" >&6
22500 else
22501   cat >conftest.$ac_ext <<_ACEOF
22502 /* confdefs.h.  */
22503 _ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h.  */
22507 #include <sys/types.h>
22508 #include <sys/wait.h>
22509 #ifndef WEXITSTATUS
22510 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22511 #endif
22512 #ifndef WIFEXITED
22513 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22514 #endif
22515
22516 int
22517 main ()
22518 {
22519   int s;
22520   wait (&s);
22521   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22522   ;
22523   return 0;
22524 }
22525 _ACEOF
22526 rm -f conftest.$ac_objext
22527 if { (ac_try="$ac_compile"
22528 case "(($ac_try" in
22529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530   *) ac_try_echo=$ac_try;;
22531 esac
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533   (eval "$ac_compile") 2>conftest.er1
22534   ac_status=$?
22535   grep -v '^ *+' conftest.er1 >conftest.err
22536   rm -f conftest.er1
22537   cat conftest.err >&5
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } &&
22540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22541   { (case "(($ac_try" in
22542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543   *) ac_try_echo=$ac_try;;
22544 esac
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546   (eval "$ac_try") 2>&5
22547   ac_status=$?
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); }; } &&
22550          { ac_try='test -s conftest.$ac_objext'
22551   { (case "(($ac_try" in
22552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553   *) ac_try_echo=$ac_try;;
22554 esac
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556   (eval "$ac_try") 2>&5
22557   ac_status=$?
22558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); }; }; then
22560   ac_cv_header_sys_wait_h=yes
22561 else
22562   echo "$as_me: failed program was:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22564
22565         ac_cv_header_sys_wait_h=no
22566 fi
22567
22568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22569 fi
22570 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22571 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22572 if test $ac_cv_header_sys_wait_h = yes; then
22573
22574 cat >>confdefs.h <<\_ACEOF
22575 #define HAVE_SYS_WAIT_H 1
22576 _ACEOF
22577
22578 fi
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613 for ac_header in \
22614         unistd.h \
22615         crypt.h \
22616         errno.h \
22617         resource.h \
22618         sys/resource.h \
22619         getopt.h \
22620         malloc.h \
22621         utmp.h \
22622         utmpx.h \
22623         signal.h \
22624         sys/select.h \
22625         syslog.h \
22626         inttypes.h \
22627         stdint.h \
22628         stdio.h \
22629         netdb.h \
22630         semaphore.h \
22631         arpa/inet.h \
22632         netinet/in.h \
22633         sys/types.h \
22634         sys/socket.h \
22635         winsock.h \
22636         sys/time.h \
22637         sys/wait.h \
22638         sys/security.h \
22639         fcntl.h \
22640         sys/fcntl.h \
22641         prot.h \
22642         pwd.h \
22643         grp.h \
22644         sia.h \
22645         siad.h
22646
22647 do
22648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22650   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22653   echo $ECHO_N "(cached) $ECHO_C" >&6
22654 fi
22655 ac_res=`eval echo '${'$as_ac_Header'}'`
22656                { echo "$as_me:$LINENO: result: $ac_res" >&5
22657 echo "${ECHO_T}$ac_res" >&6; }
22658 else
22659   # Is the header compilable?
22660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22662 cat >conftest.$ac_ext <<_ACEOF
22663 /* confdefs.h.  */
22664 _ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h.  */
22668 $ac_includes_default
22669 #include <$ac_header>
22670 _ACEOF
22671 rm -f conftest.$ac_objext
22672 if { (ac_try="$ac_compile"
22673 case "(($ac_try" in
22674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675   *) ac_try_echo=$ac_try;;
22676 esac
22677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22678   (eval "$ac_compile") 2>conftest.er1
22679   ac_status=$?
22680   grep -v '^ *+' conftest.er1 >conftest.err
22681   rm -f conftest.er1
22682   cat conftest.err >&5
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); } &&
22685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22686   { (case "(($ac_try" in
22687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688   *) ac_try_echo=$ac_try;;
22689 esac
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691   (eval "$ac_try") 2>&5
22692   ac_status=$?
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); }; } &&
22695          { ac_try='test -s conftest.$ac_objext'
22696   { (case "(($ac_try" in
22697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22698   *) ac_try_echo=$ac_try;;
22699 esac
22700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22701   (eval "$ac_try") 2>&5
22702   ac_status=$?
22703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704   (exit $ac_status); }; }; then
22705   ac_header_compiler=yes
22706 else
22707   echo "$as_me: failed program was:" >&5
22708 sed 's/^/| /' conftest.$ac_ext >&5
22709
22710         ac_header_compiler=no
22711 fi
22712
22713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22715 echo "${ECHO_T}$ac_header_compiler" >&6; }
22716
22717 # Is the header present?
22718 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22720 cat >conftest.$ac_ext <<_ACEOF
22721 /* confdefs.h.  */
22722 _ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h.  */
22726 #include <$ac_header>
22727 _ACEOF
22728 if { (ac_try="$ac_cpp conftest.$ac_ext"
22729 case "(($ac_try" in
22730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731   *) ac_try_echo=$ac_try;;
22732 esac
22733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22735   ac_status=$?
22736   grep -v '^ *+' conftest.er1 >conftest.err
22737   rm -f conftest.er1
22738   cat conftest.err >&5
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); } >/dev/null; then
22741   if test -s conftest.err; then
22742     ac_cpp_err=$ac_c_preproc_warn_flag
22743     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22744   else
22745     ac_cpp_err=
22746   fi
22747 else
22748   ac_cpp_err=yes
22749 fi
22750 if test -z "$ac_cpp_err"; then
22751   ac_header_preproc=yes
22752 else
22753   echo "$as_me: failed program was:" >&5
22754 sed 's/^/| /' conftest.$ac_ext >&5
22755
22756   ac_header_preproc=no
22757 fi
22758
22759 rm -f conftest.err conftest.$ac_ext
22760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22761 echo "${ECHO_T}$ac_header_preproc" >&6; }
22762
22763 # So?  What about this header?
22764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22765   yes:no: )
22766     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22770     ac_header_preproc=yes
22771     ;;
22772   no:yes:* )
22773     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22775     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22776 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22777     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22779     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22780 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22783     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22785
22786     ;;
22787 esac
22788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22791   echo $ECHO_N "(cached) $ECHO_C" >&6
22792 else
22793   eval "$as_ac_Header=\$ac_header_preproc"
22794 fi
22795 ac_res=`eval echo '${'$as_ac_Header'}'`
22796                { echo "$as_me:$LINENO: result: $ac_res" >&5
22797 echo "${ECHO_T}$ac_res" >&6; }
22798
22799 fi
22800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22801   cat >>confdefs.h <<_ACEOF
22802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22803 _ACEOF
22804
22805 fi
22806
22807 done
22808
22809
22810
22811 for ac_header in net/if.h
22812 do
22813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22817   echo $ECHO_N "(cached) $ECHO_C" >&6
22818 else
22819   cat >conftest.$ac_ext <<_ACEOF
22820 /* confdefs.h.  */
22821 _ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h.  */
22825 #if HAVE_SYS_SOCKET_H
22826 # include <sys/socket.h>
22827 # endif
22828
22829
22830 #include <$ac_header>
22831 _ACEOF
22832 rm -f conftest.$ac_objext
22833 if { (ac_try="$ac_compile"
22834 case "(($ac_try" in
22835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22836   *) ac_try_echo=$ac_try;;
22837 esac
22838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22839   (eval "$ac_compile") 2>conftest.er1
22840   ac_status=$?
22841   grep -v '^ *+' conftest.er1 >conftest.err
22842   rm -f conftest.er1
22843   cat conftest.err >&5
22844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845   (exit $ac_status); } &&
22846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22847   { (case "(($ac_try" in
22848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849   *) ac_try_echo=$ac_try;;
22850 esac
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852   (eval "$ac_try") 2>&5
22853   ac_status=$?
22854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855   (exit $ac_status); }; } &&
22856          { ac_try='test -s conftest.$ac_objext'
22857   { (case "(($ac_try" in
22858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859   *) ac_try_echo=$ac_try;;
22860 esac
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862   (eval "$ac_try") 2>&5
22863   ac_status=$?
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); }; }; then
22866   eval "$as_ac_Header=yes"
22867 else
22868   echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22870
22871         eval "$as_ac_Header=no"
22872 fi
22873
22874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22875 fi
22876 ac_res=`eval echo '${'$as_ac_Header'}'`
22877                { echo "$as_me:$LINENO: result: $ac_res" >&5
22878 echo "${ECHO_T}$ac_res" >&6; }
22879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22880   cat >>confdefs.h <<_ACEOF
22881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22882 _ACEOF
22883
22884 fi
22885
22886 done
22887
22888
22889 REGEX=no
22890 if test "${ac_cv_header_regex_h+set}" = set; then
22891   { echo "$as_me:$LINENO: checking for regex.h" >&5
22892 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22893 if test "${ac_cv_header_regex_h+set}" = set; then
22894   echo $ECHO_N "(cached) $ECHO_C" >&6
22895 fi
22896 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22897 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22898 else
22899   # Is the header compilable?
22900 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22901 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22902 cat >conftest.$ac_ext <<_ACEOF
22903 /* confdefs.h.  */
22904 _ACEOF
22905 cat confdefs.h >>conftest.$ac_ext
22906 cat >>conftest.$ac_ext <<_ACEOF
22907 /* end confdefs.h.  */
22908 $ac_includes_default
22909 #include <regex.h>
22910 _ACEOF
22911 rm -f conftest.$ac_objext
22912 if { (ac_try="$ac_compile"
22913 case "(($ac_try" in
22914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915   *) ac_try_echo=$ac_try;;
22916 esac
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918   (eval "$ac_compile") 2>conftest.er1
22919   ac_status=$?
22920   grep -v '^ *+' conftest.er1 >conftest.err
22921   rm -f conftest.er1
22922   cat conftest.err >&5
22923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924   (exit $ac_status); } &&
22925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22926   { (case "(($ac_try" in
22927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928   *) ac_try_echo=$ac_try;;
22929 esac
22930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22931   (eval "$ac_try") 2>&5
22932   ac_status=$?
22933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934   (exit $ac_status); }; } &&
22935          { ac_try='test -s conftest.$ac_objext'
22936   { (case "(($ac_try" in
22937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938   *) ac_try_echo=$ac_try;;
22939 esac
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941   (eval "$ac_try") 2>&5
22942   ac_status=$?
22943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944   (exit $ac_status); }; }; then
22945   ac_header_compiler=yes
22946 else
22947   echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22949
22950         ac_header_compiler=no
22951 fi
22952
22953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22955 echo "${ECHO_T}$ac_header_compiler" >&6; }
22956
22957 # Is the header present?
22958 { echo "$as_me:$LINENO: checking regex.h presence" >&5
22959 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
22960 cat >conftest.$ac_ext <<_ACEOF
22961 /* confdefs.h.  */
22962 _ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h.  */
22966 #include <regex.h>
22967 _ACEOF
22968 if { (ac_try="$ac_cpp conftest.$ac_ext"
22969 case "(($ac_try" in
22970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22971   *) ac_try_echo=$ac_try;;
22972 esac
22973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22974   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22975   ac_status=$?
22976   grep -v '^ *+' conftest.er1 >conftest.err
22977   rm -f conftest.er1
22978   cat conftest.err >&5
22979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980   (exit $ac_status); } >/dev/null; then
22981   if test -s conftest.err; then
22982     ac_cpp_err=$ac_c_preproc_warn_flag
22983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22984   else
22985     ac_cpp_err=
22986   fi
22987 else
22988   ac_cpp_err=yes
22989 fi
22990 if test -z "$ac_cpp_err"; then
22991   ac_header_preproc=yes
22992 else
22993   echo "$as_me: failed program was:" >&5
22994 sed 's/^/| /' conftest.$ac_ext >&5
22995
22996   ac_header_preproc=no
22997 fi
22998
22999 rm -f conftest.err conftest.$ac_ext
23000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23001 echo "${ECHO_T}$ac_header_preproc" >&6; }
23002
23003 # So?  What about this header?
23004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23005   yes:no: )
23006     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23007 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23008     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23009 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23010     ac_header_preproc=yes
23011     ;;
23012   no:yes:* )
23013     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23014 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
23015     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
23016 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
23017     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23018 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23019     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
23020 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23021     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23022 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
23023     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23024 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
23025
23026     ;;
23027 esac
23028 { echo "$as_me:$LINENO: checking for regex.h" >&5
23029 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
23030 if test "${ac_cv_header_regex_h+set}" = set; then
23031   echo $ECHO_N "(cached) $ECHO_C" >&6
23032 else
23033   ac_cv_header_regex_h=$ac_header_preproc
23034 fi
23035 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23036 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
23037
23038 fi
23039 if test $ac_cv_header_regex_h = yes; then
23040
23041 cat >>confdefs.h <<\_ACEOF
23042 #define HAVE_REGEX_H
23043 _ACEOF
23044
23045 fi
23046
23047
23048 if test "x$ac_cv_header_regex_h" = "xyes"; then
23049   REGEX_EXTENDED=no
23050   REGEX=yes
23051   cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h.  */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h.  */
23057 #include <regex.h>
23058      #ifdef REG_EXTENDED
23059        yes
23060      #endif
23061
23062 _ACEOF
23063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23064   $EGREP "yes" >/dev/null 2>&1; then
23065
23066 cat >>confdefs.h <<\_ACEOF
23067 #define HAVE_REG_EXTENDED
23068 _ACEOF
23069  REGEX_EXTENDED=yes
23070 fi
23071 rm -f conftest*
23072
23073 fi
23074
23075
23076
23077 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
23078 then
23079
23080 cat >>confdefs.h <<\_ACEOF
23081 #define OSFC2
23082 _ACEOF
23083
23084 fi
23085
23086 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
23087 then
23088
23089 cat >>confdefs.h <<\_ACEOF
23090 #define OSFSIA
23091 _ACEOF
23092
23093 fi
23094
23095 OPENSSL_INCLUDE="-DNO_OPENSSL"
23096 if test "x$OPENSSL_LIBS" = "x"; then
23097     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
23098 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
23099 else
23100     old_CPPFLAGS=$CPPFLAGS
23101     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23102         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
23103     fi
23104         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
23105
23106
23107
23108
23109 for ac_header in \
23110         openssl/ssl.h \
23111         openssl/crypto.h \
23112         openssl/err.h \
23113         openssl/engine.h
23114 do
23115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23117   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23120   echo $ECHO_N "(cached) $ECHO_C" >&6
23121 fi
23122 ac_res=`eval echo '${'$as_ac_Header'}'`
23123                { echo "$as_me:$LINENO: result: $ac_res" >&5
23124 echo "${ECHO_T}$ac_res" >&6; }
23125 else
23126   # Is the header compilable?
23127 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23129 cat >conftest.$ac_ext <<_ACEOF
23130 /* confdefs.h.  */
23131 _ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h.  */
23135 $ac_includes_default
23136 #include <$ac_header>
23137 _ACEOF
23138 rm -f conftest.$ac_objext
23139 if { (ac_try="$ac_compile"
23140 case "(($ac_try" in
23141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23142   *) ac_try_echo=$ac_try;;
23143 esac
23144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23145   (eval "$ac_compile") 2>conftest.er1
23146   ac_status=$?
23147   grep -v '^ *+' conftest.er1 >conftest.err
23148   rm -f conftest.er1
23149   cat conftest.err >&5
23150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); } &&
23152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23153   { (case "(($ac_try" in
23154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23155   *) ac_try_echo=$ac_try;;
23156 esac
23157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23158   (eval "$ac_try") 2>&5
23159   ac_status=$?
23160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161   (exit $ac_status); }; } &&
23162          { ac_try='test -s conftest.$ac_objext'
23163   { (case "(($ac_try" in
23164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165   *) ac_try_echo=$ac_try;;
23166 esac
23167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23168   (eval "$ac_try") 2>&5
23169   ac_status=$?
23170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171   (exit $ac_status); }; }; then
23172   ac_header_compiler=yes
23173 else
23174   echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23176
23177         ac_header_compiler=no
23178 fi
23179
23180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23182 echo "${ECHO_T}$ac_header_compiler" >&6; }
23183
23184 # Is the header present?
23185 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23187 cat >conftest.$ac_ext <<_ACEOF
23188 /* confdefs.h.  */
23189 _ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h.  */
23193 #include <$ac_header>
23194 _ACEOF
23195 if { (ac_try="$ac_cpp conftest.$ac_ext"
23196 case "(($ac_try" in
23197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198   *) ac_try_echo=$ac_try;;
23199 esac
23200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23201   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23202   ac_status=$?
23203   grep -v '^ *+' conftest.er1 >conftest.err
23204   rm -f conftest.er1
23205   cat conftest.err >&5
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); } >/dev/null; then
23208   if test -s conftest.err; then
23209     ac_cpp_err=$ac_c_preproc_warn_flag
23210     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23211   else
23212     ac_cpp_err=
23213   fi
23214 else
23215   ac_cpp_err=yes
23216 fi
23217 if test -z "$ac_cpp_err"; then
23218   ac_header_preproc=yes
23219 else
23220   echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23222
23223   ac_header_preproc=no
23224 fi
23225
23226 rm -f conftest.err conftest.$ac_ext
23227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23228 echo "${ECHO_T}$ac_header_preproc" >&6; }
23229
23230 # So?  What about this header?
23231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23232   yes:no: )
23233     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23235     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23237     ac_header_preproc=yes
23238     ;;
23239   no:yes:* )
23240     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23242     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23243 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23244     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23246     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23247 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23250     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23252
23253     ;;
23254 esac
23255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23258   echo $ECHO_N "(cached) $ECHO_C" >&6
23259 else
23260   eval "$as_ac_Header=\$ac_header_preproc"
23261 fi
23262 ac_res=`eval echo '${'$as_ac_Header'}'`
23263                { echo "$as_me:$LINENO: result: $ac_res" >&5
23264 echo "${ECHO_T}$ac_res" >&6; }
23265
23266 fi
23267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23268   cat >>confdefs.h <<_ACEOF
23269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23270 _ACEOF
23271
23272 else
23273   OPENSSL_LIBS=
23274
23275 fi
23276
23277 done
23278
23279     if test "x$OPENSSL_LIBS" != "x"; then
23280         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
23281 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
23282         cat >conftest.$ac_ext <<_ACEOF
23283 /* confdefs.h.  */
23284 _ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h.  */
23288 #include <openssl/crypto.h>
23289              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23290              yes
23291              #endif
23292
23293 _ACEOF
23294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23295   $EGREP "yes" >/dev/null 2>&1; then
23296   goodssl="yes"
23297 fi
23298 rm -f conftest*
23299
23300         if test "x$goodssl" != "xyes"; then
23301             { echo "$as_me:$LINENO: result: no" >&5
23302 echo "${ECHO_T}no" >&6; }
23303             OPENSSL_LIBS=
23304         else
23305             { echo "$as_me:$LINENO: result: yes" >&5
23306 echo "${ECHO_T}yes" >&6; }
23307             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23308                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
23309             else
23310                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
23311             fi
23312         fi
23313     fi
23314     CPPFLAGS=$old_CPPFLAGS
23315 fi
23316
23317
23318 export OPENSSL_LIBS
23319
23320 if test "x$PCAP_LIBS" = x; then
23321     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
23322 echo "$as_me: skipping test for pcap.h." >&6;}
23323 else
23324     if test "${ac_cv_header_pcap_h+set}" = set; then
23325   { echo "$as_me:$LINENO: checking for pcap.h" >&5
23326 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23327 if test "${ac_cv_header_pcap_h+set}" = set; then
23328   echo $ECHO_N "(cached) $ECHO_C" >&6
23329 fi
23330 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23331 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23332 else
23333   # Is the header compilable?
23334 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
23335 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
23336 cat >conftest.$ac_ext <<_ACEOF
23337 /* confdefs.h.  */
23338 _ACEOF
23339 cat confdefs.h >>conftest.$ac_ext
23340 cat >>conftest.$ac_ext <<_ACEOF
23341 /* end confdefs.h.  */
23342 $ac_includes_default
23343 #include <pcap.h>
23344 _ACEOF
23345 rm -f conftest.$ac_objext
23346 if { (ac_try="$ac_compile"
23347 case "(($ac_try" in
23348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349   *) ac_try_echo=$ac_try;;
23350 esac
23351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23352   (eval "$ac_compile") 2>conftest.er1
23353   ac_status=$?
23354   grep -v '^ *+' conftest.er1 >conftest.err
23355   rm -f conftest.er1
23356   cat conftest.err >&5
23357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358   (exit $ac_status); } &&
23359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23360   { (case "(($ac_try" in
23361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23362   *) ac_try_echo=$ac_try;;
23363 esac
23364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23365   (eval "$ac_try") 2>&5
23366   ac_status=$?
23367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368   (exit $ac_status); }; } &&
23369          { ac_try='test -s conftest.$ac_objext'
23370   { (case "(($ac_try" in
23371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372   *) ac_try_echo=$ac_try;;
23373 esac
23374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23375   (eval "$ac_try") 2>&5
23376   ac_status=$?
23377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378   (exit $ac_status); }; }; then
23379   ac_header_compiler=yes
23380 else
23381   echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23383
23384         ac_header_compiler=no
23385 fi
23386
23387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23389 echo "${ECHO_T}$ac_header_compiler" >&6; }
23390
23391 # Is the header present?
23392 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
23393 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
23394 cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h.  */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h.  */
23400 #include <pcap.h>
23401 _ACEOF
23402 if { (ac_try="$ac_cpp conftest.$ac_ext"
23403 case "(($ac_try" in
23404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405   *) ac_try_echo=$ac_try;;
23406 esac
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23409   ac_status=$?
23410   grep -v '^ *+' conftest.er1 >conftest.err
23411   rm -f conftest.er1
23412   cat conftest.err >&5
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); } >/dev/null; then
23415   if test -s conftest.err; then
23416     ac_cpp_err=$ac_c_preproc_warn_flag
23417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23418   else
23419     ac_cpp_err=
23420   fi
23421 else
23422   ac_cpp_err=yes
23423 fi
23424 if test -z "$ac_cpp_err"; then
23425   ac_header_preproc=yes
23426 else
23427   echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.$ac_ext >&5
23429
23430   ac_header_preproc=no
23431 fi
23432
23433 rm -f conftest.err conftest.$ac_ext
23434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23435 echo "${ECHO_T}$ac_header_preproc" >&6; }
23436
23437 # So?  What about this header?
23438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23439   yes:no: )
23440     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
23441 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23442     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
23443 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
23444     ac_header_preproc=yes
23445     ;;
23446   no:yes:* )
23447     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
23448 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
23449     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
23450 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
23451     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
23452 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
23453     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
23454 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23455     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
23456 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
23457     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
23458 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
23459
23460     ;;
23461 esac
23462 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23463 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23464 if test "${ac_cv_header_pcap_h+set}" = set; then
23465   echo $ECHO_N "(cached) $ECHO_C" >&6
23466 else
23467   ac_cv_header_pcap_h=$ac_header_preproc
23468 fi
23469 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23470 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23471
23472 fi
23473 if test $ac_cv_header_pcap_h = yes; then
23474
23475 cat >>confdefs.h <<\_ACEOF
23476 #define HAVE_PCAP_H 1
23477 _ACEOF
23478
23479 else
23480    PCAP_LIBS=
23481         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
23482 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
23483
23484 fi
23485
23486
23487 fi
23488
23489
23490
23491 { echo "$as_me:$LINENO: checking for off_t" >&5
23492 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23493 if test "${ac_cv_type_off_t+set}" = set; then
23494   echo $ECHO_N "(cached) $ECHO_C" >&6
23495 else
23496   cat >conftest.$ac_ext <<_ACEOF
23497 /* confdefs.h.  */
23498 _ACEOF
23499 cat confdefs.h >>conftest.$ac_ext
23500 cat >>conftest.$ac_ext <<_ACEOF
23501 /* end confdefs.h.  */
23502 $ac_includes_default
23503 typedef off_t ac__type_new_;
23504 int
23505 main ()
23506 {
23507 if ((ac__type_new_ *) 0)
23508   return 0;
23509 if (sizeof (ac__type_new_))
23510   return 0;
23511   ;
23512   return 0;
23513 }
23514 _ACEOF
23515 rm -f conftest.$ac_objext
23516 if { (ac_try="$ac_compile"
23517 case "(($ac_try" in
23518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23519   *) ac_try_echo=$ac_try;;
23520 esac
23521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23522   (eval "$ac_compile") 2>conftest.er1
23523   ac_status=$?
23524   grep -v '^ *+' conftest.er1 >conftest.err
23525   rm -f conftest.er1
23526   cat conftest.err >&5
23527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528   (exit $ac_status); } &&
23529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23530   { (case "(($ac_try" in
23531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532   *) ac_try_echo=$ac_try;;
23533 esac
23534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535   (eval "$ac_try") 2>&5
23536   ac_status=$?
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); }; } &&
23539          { ac_try='test -s conftest.$ac_objext'
23540   { (case "(($ac_try" in
23541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542   *) ac_try_echo=$ac_try;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545   (eval "$ac_try") 2>&5
23546   ac_status=$?
23547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548   (exit $ac_status); }; }; then
23549   ac_cv_type_off_t=yes
23550 else
23551   echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23553
23554         ac_cv_type_off_t=no
23555 fi
23556
23557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558 fi
23559 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23560 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23561 if test $ac_cv_type_off_t = yes; then
23562   :
23563 else
23564
23565 cat >>confdefs.h <<_ACEOF
23566 #define off_t long int
23567 _ACEOF
23568
23569 fi
23570
23571 { echo "$as_me:$LINENO: checking for pid_t" >&5
23572 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23573 if test "${ac_cv_type_pid_t+set}" = set; then
23574   echo $ECHO_N "(cached) $ECHO_C" >&6
23575 else
23576   cat >conftest.$ac_ext <<_ACEOF
23577 /* confdefs.h.  */
23578 _ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h.  */
23582 $ac_includes_default
23583 typedef pid_t ac__type_new_;
23584 int
23585 main ()
23586 {
23587 if ((ac__type_new_ *) 0)
23588   return 0;
23589 if (sizeof (ac__type_new_))
23590   return 0;
23591   ;
23592   return 0;
23593 }
23594 _ACEOF
23595 rm -f conftest.$ac_objext
23596 if { (ac_try="$ac_compile"
23597 case "(($ac_try" in
23598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23599   *) ac_try_echo=$ac_try;;
23600 esac
23601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23602   (eval "$ac_compile") 2>conftest.er1
23603   ac_status=$?
23604   grep -v '^ *+' conftest.er1 >conftest.err
23605   rm -f conftest.er1
23606   cat conftest.err >&5
23607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608   (exit $ac_status); } &&
23609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23610   { (case "(($ac_try" in
23611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23612   *) ac_try_echo=$ac_try;;
23613 esac
23614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23615   (eval "$ac_try") 2>&5
23616   ac_status=$?
23617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618   (exit $ac_status); }; } &&
23619          { ac_try='test -s conftest.$ac_objext'
23620   { (case "(($ac_try" in
23621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23622   *) ac_try_echo=$ac_try;;
23623 esac
23624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23625   (eval "$ac_try") 2>&5
23626   ac_status=$?
23627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628   (exit $ac_status); }; }; then
23629   ac_cv_type_pid_t=yes
23630 else
23631   echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23633
23634         ac_cv_type_pid_t=no
23635 fi
23636
23637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23638 fi
23639 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23640 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23641 if test $ac_cv_type_pid_t = yes; then
23642   :
23643 else
23644
23645 cat >>confdefs.h <<_ACEOF
23646 #define pid_t int
23647 _ACEOF
23648
23649 fi
23650
23651 { echo "$as_me:$LINENO: checking for size_t" >&5
23652 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23653 if test "${ac_cv_type_size_t+set}" = set; then
23654   echo $ECHO_N "(cached) $ECHO_C" >&6
23655 else
23656   cat >conftest.$ac_ext <<_ACEOF
23657 /* confdefs.h.  */
23658 _ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h.  */
23662 $ac_includes_default
23663 typedef size_t ac__type_new_;
23664 int
23665 main ()
23666 {
23667 if ((ac__type_new_ *) 0)
23668   return 0;
23669 if (sizeof (ac__type_new_))
23670   return 0;
23671   ;
23672   return 0;
23673 }
23674 _ACEOF
23675 rm -f conftest.$ac_objext
23676 if { (ac_try="$ac_compile"
23677 case "(($ac_try" in
23678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23679   *) ac_try_echo=$ac_try;;
23680 esac
23681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23682   (eval "$ac_compile") 2>conftest.er1
23683   ac_status=$?
23684   grep -v '^ *+' conftest.er1 >conftest.err
23685   rm -f conftest.er1
23686   cat conftest.err >&5
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); } &&
23689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23690   { (case "(($ac_try" in
23691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692   *) ac_try_echo=$ac_try;;
23693 esac
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695   (eval "$ac_try") 2>&5
23696   ac_status=$?
23697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698   (exit $ac_status); }; } &&
23699          { ac_try='test -s conftest.$ac_objext'
23700   { (case "(($ac_try" in
23701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702   *) ac_try_echo=$ac_try;;
23703 esac
23704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23705   (eval "$ac_try") 2>&5
23706   ac_status=$?
23707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708   (exit $ac_status); }; }; then
23709   ac_cv_type_size_t=yes
23710 else
23711   echo "$as_me: failed program was:" >&5
23712 sed 's/^/| /' conftest.$ac_ext >&5
23713
23714         ac_cv_type_size_t=no
23715 fi
23716
23717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23718 fi
23719 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23720 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23721 if test $ac_cv_type_size_t = yes; then
23722   :
23723 else
23724
23725 cat >>confdefs.h <<_ACEOF
23726 #define size_t unsigned int
23727 _ACEOF
23728
23729 fi
23730
23731 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23732 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23733 if test "${ac_cv_type_uid_t+set}" = set; then
23734   echo $ECHO_N "(cached) $ECHO_C" >&6
23735 else
23736   cat >conftest.$ac_ext <<_ACEOF
23737 /* confdefs.h.  */
23738 _ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h.  */
23742 #include <sys/types.h>
23743
23744 _ACEOF
23745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23746   $EGREP "uid_t" >/dev/null 2>&1; then
23747   ac_cv_type_uid_t=yes
23748 else
23749   ac_cv_type_uid_t=no
23750 fi
23751 rm -f conftest*
23752
23753 fi
23754 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23755 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23756 if test $ac_cv_type_uid_t = no; then
23757
23758 cat >>confdefs.h <<\_ACEOF
23759 #define uid_t int
23760 _ACEOF
23761
23762
23763 cat >>confdefs.h <<\_ACEOF
23764 #define gid_t int
23765 _ACEOF
23766
23767 fi
23768
23769
23770
23771   { echo "$as_me:$LINENO: checking for socklen_t" >&5
23772 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23773 if test "${ac_cv_type_socklen_t+set}" = set; then
23774   echo $ECHO_N "(cached) $ECHO_C" >&6
23775 else
23776    ac_cv_type_socklen_t=no
23777       cat >conftest.$ac_ext <<_ACEOF
23778 /* confdefs.h.  */
23779 _ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h.  */
23783 #ifdef HAVE_SYS_TYPES_H
23784 #include <sys/types.h>
23785 #endif
23786 #ifdef HAVE_SYS_SOCKET_H
23787 #include <sys/socket.h>
23788 #endif
23789
23790 int
23791 main ()
23792 {
23793 socklen_t foo
23794   ;
23795   return 0;
23796 }
23797 _ACEOF
23798 rm -f conftest.$ac_objext
23799 if { (ac_try="$ac_compile"
23800 case "(($ac_try" in
23801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802   *) ac_try_echo=$ac_try;;
23803 esac
23804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23805   (eval "$ac_compile") 2>conftest.er1
23806   ac_status=$?
23807   grep -v '^ *+' conftest.er1 >conftest.err
23808   rm -f conftest.er1
23809   cat conftest.err >&5
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); } &&
23812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23813   { (case "(($ac_try" in
23814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815   *) ac_try_echo=$ac_try;;
23816 esac
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818   (eval "$ac_try") 2>&5
23819   ac_status=$?
23820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821   (exit $ac_status); }; } &&
23822          { ac_try='test -s conftest.$ac_objext'
23823   { (case "(($ac_try" in
23824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825   *) ac_try_echo=$ac_try;;
23826 esac
23827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23828   (eval "$ac_try") 2>&5
23829   ac_status=$?
23830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831   (exit $ac_status); }; }; then
23832   ac_cv_type_socklen_t=yes
23833 else
23834   echo "$as_me: failed program was:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23836
23837
23838 fi
23839
23840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23841
23842
23843 fi
23844 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23845 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23846
23847   if test "$ac_cv_type_socklen_t" != "yes"; then
23848
23849 cat >>confdefs.h <<\_ACEOF
23850 #define socklen_t int
23851 _ACEOF
23852
23853   fi
23854
23855
23856
23857   { echo "$as_me:$LINENO: checking for uint8_t" >&5
23858 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23859 if test "${ac_cv_type_uint8_t+set}" = set; then
23860   echo $ECHO_N "(cached) $ECHO_C" >&6
23861 else
23862    ac_cv_type_uint8_t=no
23863       cat >conftest.$ac_ext <<_ACEOF
23864 /* confdefs.h.  */
23865 _ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h.  */
23869 #ifdef HAVE_INTTYPES_H
23870 #include <inttypes.h>
23871 #endif
23872 #ifdef HAVE_STDINT_H
23873 #include <stdint.h>
23874 #endif
23875
23876 int
23877 main ()
23878 {
23879 uint8_t foo
23880   ;
23881   return 0;
23882 }
23883 _ACEOF
23884 rm -f conftest.$ac_objext
23885 if { (ac_try="$ac_compile"
23886 case "(($ac_try" in
23887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23888   *) ac_try_echo=$ac_try;;
23889 esac
23890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23891   (eval "$ac_compile") 2>conftest.er1
23892   ac_status=$?
23893   grep -v '^ *+' conftest.er1 >conftest.err
23894   rm -f conftest.er1
23895   cat conftest.err >&5
23896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897   (exit $ac_status); } &&
23898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23899   { (case "(($ac_try" in
23900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901   *) ac_try_echo=$ac_try;;
23902 esac
23903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23904   (eval "$ac_try") 2>&5
23905   ac_status=$?
23906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907   (exit $ac_status); }; } &&
23908          { ac_try='test -s conftest.$ac_objext'
23909   { (case "(($ac_try" in
23910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911   *) ac_try_echo=$ac_try;;
23912 esac
23913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914   (eval "$ac_try") 2>&5
23915   ac_status=$?
23916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917   (exit $ac_status); }; }; then
23918   ac_cv_type_uint8_t=yes
23919 else
23920   echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23922
23923
23924 fi
23925
23926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23927
23928
23929 fi
23930 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23931 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23932
23933   if test "$ac_cv_type_uint8_t" != "yes"; then
23934
23935 cat >>confdefs.h <<\_ACEOF
23936 #define uint8_t unsigned char
23937 _ACEOF
23938
23939   fi
23940
23941
23942
23943   { echo "$as_me:$LINENO: checking for uint16_t" >&5
23944 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23945 if test "${ac_cv_type_uint16_t+set}" = set; then
23946   echo $ECHO_N "(cached) $ECHO_C" >&6
23947 else
23948    ac_cv_type_uint16_t=no
23949       cat >conftest.$ac_ext <<_ACEOF
23950 /* confdefs.h.  */
23951 _ACEOF
23952 cat confdefs.h >>conftest.$ac_ext
23953 cat >>conftest.$ac_ext <<_ACEOF
23954 /* end confdefs.h.  */
23955 #ifdef HAVE_INTTYPES_H
23956 #include <inttypes.h>
23957 #endif
23958 #ifdef HAVE_STDINT_H
23959 #include <stdint.h>
23960 #endif
23961
23962 int
23963 main ()
23964 {
23965 uint16_t foo
23966   ;
23967   return 0;
23968 }
23969 _ACEOF
23970 rm -f conftest.$ac_objext
23971 if { (ac_try="$ac_compile"
23972 case "(($ac_try" in
23973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23974   *) ac_try_echo=$ac_try;;
23975 esac
23976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23977   (eval "$ac_compile") 2>conftest.er1
23978   ac_status=$?
23979   grep -v '^ *+' conftest.er1 >conftest.err
23980   rm -f conftest.er1
23981   cat conftest.err >&5
23982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983   (exit $ac_status); } &&
23984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23985   { (case "(($ac_try" in
23986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23987   *) ac_try_echo=$ac_try;;
23988 esac
23989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23990   (eval "$ac_try") 2>&5
23991   ac_status=$?
23992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993   (exit $ac_status); }; } &&
23994          { ac_try='test -s conftest.$ac_objext'
23995   { (case "(($ac_try" in
23996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23997   *) ac_try_echo=$ac_try;;
23998 esac
23999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24000   (eval "$ac_try") 2>&5
24001   ac_status=$?
24002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003   (exit $ac_status); }; }; then
24004   ac_cv_type_uint16_t=yes
24005 else
24006   echo "$as_me: failed program was:" >&5
24007 sed 's/^/| /' conftest.$ac_ext >&5
24008
24009
24010 fi
24011
24012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24013
24014
24015 fi
24016 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
24017 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
24018
24019   if test "$ac_cv_type_uint16_t" != "yes"; then
24020
24021 cat >>confdefs.h <<\_ACEOF
24022 #define uint16_t unsigned short
24023 _ACEOF
24024
24025   fi
24026
24027
24028
24029   { echo "$as_me:$LINENO: checking for uint32_t" >&5
24030 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
24031 if test "${ac_cv_type_uint32_t+set}" = set; then
24032   echo $ECHO_N "(cached) $ECHO_C" >&6
24033 else
24034    ac_cv_type_uint32_t=no
24035       cat >conftest.$ac_ext <<_ACEOF
24036 /* confdefs.h.  */
24037 _ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h.  */
24041 #ifdef HAVE_INTTYPES_H
24042 #include <inttypes.h>
24043 #endif
24044 #ifdef HAVE_STDINT_H
24045 #include <stdint.h>
24046 #endif
24047
24048 int
24049 main ()
24050 {
24051 uint32_t foo
24052   ;
24053   return 0;
24054 }
24055 _ACEOF
24056 rm -f conftest.$ac_objext
24057 if { (ac_try="$ac_compile"
24058 case "(($ac_try" in
24059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24060   *) ac_try_echo=$ac_try;;
24061 esac
24062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24063   (eval "$ac_compile") 2>conftest.er1
24064   ac_status=$?
24065   grep -v '^ *+' conftest.er1 >conftest.err
24066   rm -f conftest.er1
24067   cat conftest.err >&5
24068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069   (exit $ac_status); } &&
24070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24071   { (case "(($ac_try" in
24072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073   *) ac_try_echo=$ac_try;;
24074 esac
24075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24076   (eval "$ac_try") 2>&5
24077   ac_status=$?
24078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079   (exit $ac_status); }; } &&
24080          { ac_try='test -s conftest.$ac_objext'
24081   { (case "(($ac_try" in
24082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24083   *) ac_try_echo=$ac_try;;
24084 esac
24085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24086   (eval "$ac_try") 2>&5
24087   ac_status=$?
24088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089   (exit $ac_status); }; }; then
24090   ac_cv_type_uint32_t=yes
24091 else
24092   echo "$as_me: failed program was:" >&5
24093 sed 's/^/| /' conftest.$ac_ext >&5
24094
24095
24096 fi
24097
24098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24099
24100
24101 fi
24102 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
24103 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
24104
24105   if test "$ac_cv_type_uint32_t" != "yes"; then
24106
24107 cat >>confdefs.h <<\_ACEOF
24108 #define uint32_t unsigned int
24109 _ACEOF
24110
24111   fi
24112
24113
24114 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24115 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24116 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
24117   echo $ECHO_N "(cached) $ECHO_C" >&6
24118 else
24119   cat >conftest.$ac_ext <<_ACEOF
24120 /* confdefs.h.  */
24121 _ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h.  */
24125
24126 #ifdef HAVE_NETINET_IN_H
24127 #include <netinet/in.h>
24128 #endif
24129
24130
24131 typedef struct in6_addr ac__type_new_;
24132 int
24133 main ()
24134 {
24135 if ((ac__type_new_ *) 0)
24136   return 0;
24137 if (sizeof (ac__type_new_))
24138   return 0;
24139   ;
24140   return 0;
24141 }
24142 _ACEOF
24143 rm -f conftest.$ac_objext
24144 if { (ac_try="$ac_compile"
24145 case "(($ac_try" in
24146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24147   *) ac_try_echo=$ac_try;;
24148 esac
24149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24150   (eval "$ac_compile") 2>conftest.er1
24151   ac_status=$?
24152   grep -v '^ *+' conftest.er1 >conftest.err
24153   rm -f conftest.er1
24154   cat conftest.err >&5
24155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); } &&
24157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24158   { (case "(($ac_try" in
24159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24160   *) ac_try_echo=$ac_try;;
24161 esac
24162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24163   (eval "$ac_try") 2>&5
24164   ac_status=$?
24165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166   (exit $ac_status); }; } &&
24167          { ac_try='test -s conftest.$ac_objext'
24168   { (case "(($ac_try" in
24169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24170   *) ac_try_echo=$ac_try;;
24171 esac
24172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24173   (eval "$ac_try") 2>&5
24174   ac_status=$?
24175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176   (exit $ac_status); }; }; then
24177   ac_cv_type_struct_in6_addr=yes
24178 else
24179   echo "$as_me: failed program was:" >&5
24180 sed 's/^/| /' conftest.$ac_ext >&5
24181
24182         ac_cv_type_struct_in6_addr=no
24183 fi
24184
24185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24186 fi
24187 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24188 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
24189 if test $ac_cv_type_struct_in6_addr = yes; then
24190
24191 cat >>confdefs.h <<\_ACEOF
24192 #define HAVE_STRUCT_IN6_ADDR 1
24193 _ACEOF
24194
24195 fi
24196
24197
24198 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24199 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24200 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
24201   echo $ECHO_N "(cached) $ECHO_C" >&6
24202 else
24203   cat >conftest.$ac_ext <<_ACEOF
24204 /* confdefs.h.  */
24205 _ACEOF
24206 cat confdefs.h >>conftest.$ac_ext
24207 cat >>conftest.$ac_ext <<_ACEOF
24208 /* end confdefs.h.  */
24209
24210 #ifdef HAVE_NETINET_IN_H
24211 #include <netinet/in.h>
24212 #endif
24213 #ifdef HAVE_SYS_SOCKET_H
24214 #include <sys/socket.h>
24215 #endif
24216
24217
24218 typedef struct sockaddr_storage ac__type_new_;
24219 int
24220 main ()
24221 {
24222 if ((ac__type_new_ *) 0)
24223   return 0;
24224 if (sizeof (ac__type_new_))
24225   return 0;
24226   ;
24227   return 0;
24228 }
24229 _ACEOF
24230 rm -f conftest.$ac_objext
24231 if { (ac_try="$ac_compile"
24232 case "(($ac_try" in
24233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24234   *) ac_try_echo=$ac_try;;
24235 esac
24236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24237   (eval "$ac_compile") 2>conftest.er1
24238   ac_status=$?
24239   grep -v '^ *+' conftest.er1 >conftest.err
24240   rm -f conftest.er1
24241   cat conftest.err >&5
24242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243   (exit $ac_status); } &&
24244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24245   { (case "(($ac_try" in
24246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24247   *) ac_try_echo=$ac_try;;
24248 esac
24249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24250   (eval "$ac_try") 2>&5
24251   ac_status=$?
24252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253   (exit $ac_status); }; } &&
24254          { ac_try='test -s conftest.$ac_objext'
24255   { (case "(($ac_try" in
24256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257   *) ac_try_echo=$ac_try;;
24258 esac
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260   (eval "$ac_try") 2>&5
24261   ac_status=$?
24262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263   (exit $ac_status); }; }; then
24264   ac_cv_type_struct_sockaddr_storage=yes
24265 else
24266   echo "$as_me: failed program was:" >&5
24267 sed 's/^/| /' conftest.$ac_ext >&5
24268
24269         ac_cv_type_struct_sockaddr_storage=no
24270 fi
24271
24272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24273 fi
24274 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
24275 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
24276 if test $ac_cv_type_struct_sockaddr_storage = yes; then
24277
24278 cat >>confdefs.h <<\_ACEOF
24279 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24280 _ACEOF
24281
24282 fi
24283
24284
24285 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24286 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24287 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
24288   echo $ECHO_N "(cached) $ECHO_C" >&6
24289 else
24290   cat >conftest.$ac_ext <<_ACEOF
24291 /* confdefs.h.  */
24292 _ACEOF
24293 cat confdefs.h >>conftest.$ac_ext
24294 cat >>conftest.$ac_ext <<_ACEOF
24295 /* end confdefs.h.  */
24296
24297 #ifdef HAVE_NETINET_IN_H
24298 #include <netinet/in.h>
24299 #endif
24300
24301
24302 typedef struct sockaddr_in6 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          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24329   { (case "(($ac_try" in
24330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331   *) ac_try_echo=$ac_try;;
24332 esac
24333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334   (eval "$ac_try") 2>&5
24335   ac_status=$?
24336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337   (exit $ac_status); }; } &&
24338          { ac_try='test -s conftest.$ac_objext'
24339   { (case "(($ac_try" in
24340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341   *) ac_try_echo=$ac_try;;
24342 esac
24343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24344   (eval "$ac_try") 2>&5
24345   ac_status=$?
24346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347   (exit $ac_status); }; }; then
24348   ac_cv_type_struct_sockaddr_in6=yes
24349 else
24350   echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24352
24353         ac_cv_type_struct_sockaddr_in6=no
24354 fi
24355
24356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24357 fi
24358 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
24359 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
24360 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
24361
24362 cat >>confdefs.h <<\_ACEOF
24363 #define HAVE_STRUCT_SOCKADDR_IN6 1
24364 _ACEOF
24365
24366 fi
24367
24368
24369 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24370 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24371 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
24372   echo $ECHO_N "(cached) $ECHO_C" >&6
24373 else
24374   cat >conftest.$ac_ext <<_ACEOF
24375 /* confdefs.h.  */
24376 _ACEOF
24377 cat confdefs.h >>conftest.$ac_ext
24378 cat >>conftest.$ac_ext <<_ACEOF
24379 /* end confdefs.h.  */
24380
24381 #ifdef HAVE_SYS_TYPES_H
24382 #include <sys/types.h>
24383 #endif
24384 #ifdef HAVE_SYS_SOCKET_H
24385 #include <sys/socket.h>
24386 #endif
24387 #ifdef HAVE_NETDB_H
24388 #include <netdb.h>
24389 #endif
24390
24391
24392 typedef struct addrinfo ac__type_new_;
24393 int
24394 main ()
24395 {
24396 if ((ac__type_new_ *) 0)
24397   return 0;
24398 if (sizeof (ac__type_new_))
24399   return 0;
24400   ;
24401   return 0;
24402 }
24403 _ACEOF
24404 rm -f conftest.$ac_objext
24405 if { (ac_try="$ac_compile"
24406 case "(($ac_try" in
24407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24408   *) ac_try_echo=$ac_try;;
24409 esac
24410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24411   (eval "$ac_compile") 2>conftest.er1
24412   ac_status=$?
24413   grep -v '^ *+' conftest.er1 >conftest.err
24414   rm -f conftest.er1
24415   cat conftest.err >&5
24416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417   (exit $ac_status); } &&
24418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24419   { (case "(($ac_try" in
24420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24421   *) ac_try_echo=$ac_try;;
24422 esac
24423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24424   (eval "$ac_try") 2>&5
24425   ac_status=$?
24426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427   (exit $ac_status); }; } &&
24428          { ac_try='test -s conftest.$ac_objext'
24429   { (case "(($ac_try" in
24430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431   *) ac_try_echo=$ac_try;;
24432 esac
24433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24434   (eval "$ac_try") 2>&5
24435   ac_status=$?
24436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437   (exit $ac_status); }; }; then
24438   ac_cv_type_struct_addrinfo=yes
24439 else
24440   echo "$as_me: failed program was:" >&5
24441 sed 's/^/| /' conftest.$ac_ext >&5
24442
24443         ac_cv_type_struct_addrinfo=no
24444 fi
24445
24446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24447 fi
24448 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
24449 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
24450 if test $ac_cv_type_struct_addrinfo = yes; then
24451
24452 cat >>confdefs.h <<\_ACEOF
24453 #define HAVE_STRUCT_ADDRINFO 1
24454 _ACEOF
24455
24456 fi
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487 for ac_func in \
24488         getopt_long \
24489         lockf \
24490         strsignal \
24491         sigaction \
24492         sigprocmask \
24493         pthread_sigmask \
24494         snprintf \
24495         vsnprintf \
24496         setsid \
24497         strncasecmp \
24498         strcasecmp \
24499         localtime_r \
24500         ctime_r \
24501         gmtime_r \
24502         strsep \
24503         inet_aton \
24504         inet_pton \
24505         inet_ntop \
24506         setlinebuf \
24507         setvbuf \
24508         getusershell \
24509         initgroups \
24510         getaddrinfo \
24511         getnameinfo \
24512         closefrom \
24513         gettimeofday \
24514         strlcat \
24515         strlcpy
24516
24517 do
24518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24522   echo $ECHO_N "(cached) $ECHO_C" >&6
24523 else
24524   cat >conftest.$ac_ext <<_ACEOF
24525 /* confdefs.h.  */
24526 _ACEOF
24527 cat confdefs.h >>conftest.$ac_ext
24528 cat >>conftest.$ac_ext <<_ACEOF
24529 /* end confdefs.h.  */
24530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24532 #define $ac_func innocuous_$ac_func
24533
24534 /* System header to define __stub macros and hopefully few prototypes,
24535     which can conflict with char $ac_func (); below.
24536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24537     <limits.h> exists even on freestanding compilers.  */
24538
24539 #ifdef __STDC__
24540 # include <limits.h>
24541 #else
24542 # include <assert.h>
24543 #endif
24544
24545 #undef $ac_func
24546
24547 /* Override any GCC internal prototype to avoid an error.
24548    Use char because int might match the return type of a GCC
24549    builtin and then its argument prototype would still apply.  */
24550 #ifdef __cplusplus
24551 extern "C"
24552 #endif
24553 char $ac_func ();
24554 /* The GNU C library defines this for functions which it implements
24555     to always fail with ENOSYS.  Some functions are actually named
24556     something starting with __ and the normal name is an alias.  */
24557 #if defined __stub_$ac_func || defined __stub___$ac_func
24558 choke me
24559 #endif
24560
24561 int
24562 main ()
24563 {
24564 return $ac_func ();
24565   ;
24566   return 0;
24567 }
24568 _ACEOF
24569 rm -f conftest.$ac_objext conftest$ac_exeext
24570 if { (ac_try="$ac_link"
24571 case "(($ac_try" in
24572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573   *) ac_try_echo=$ac_try;;
24574 esac
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576   (eval "$ac_link") 2>conftest.er1
24577   ac_status=$?
24578   grep -v '^ *+' conftest.er1 >conftest.err
24579   rm -f conftest.er1
24580   cat conftest.err >&5
24581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); } &&
24583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24584   { (case "(($ac_try" in
24585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586   *) ac_try_echo=$ac_try;;
24587 esac
24588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24589   (eval "$ac_try") 2>&5
24590   ac_status=$?
24591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592   (exit $ac_status); }; } &&
24593          { ac_try='test -s conftest$ac_exeext'
24594   { (case "(($ac_try" in
24595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596   *) ac_try_echo=$ac_try;;
24597 esac
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599   (eval "$ac_try") 2>&5
24600   ac_status=$?
24601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602   (exit $ac_status); }; }; then
24603   eval "$as_ac_var=yes"
24604 else
24605   echo "$as_me: failed program was:" >&5
24606 sed 's/^/| /' conftest.$ac_ext >&5
24607
24608         eval "$as_ac_var=no"
24609 fi
24610
24611 rm -f core conftest.err conftest.$ac_objext \
24612       conftest$ac_exeext conftest.$ac_ext
24613 fi
24614 ac_res=`eval echo '${'$as_ac_var'}'`
24615                { echo "$as_me:$LINENO: result: $ac_res" >&5
24616 echo "${ECHO_T}$ac_res" >&6; }
24617 if test `eval echo '${'$as_ac_var'}'` = yes; then
24618   cat >>confdefs.h <<_ACEOF
24619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24620 _ACEOF
24621
24622 fi
24623 done
24624
24625 for ac_func in \
24626         crypt \
24627         strncasecmp \
24628         strcasecmp \
24629         inet_aton \
24630         setlinebuf \
24631         getusershell \
24632         endusershell
24633
24634 do
24635 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
24636 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
24637 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
24638   echo $ECHO_N "(cached) $ECHO_C" >&6
24639 else
24640   cat >conftest.$ac_ext <<_ACEOF
24641 /* confdefs.h.  */
24642 _ACEOF
24643 cat confdefs.h >>conftest.$ac_ext
24644 cat >>conftest.$ac_ext <<_ACEOF
24645 /* end confdefs.h.  */
24646
24647 #include <stdio.h>
24648 #include <string.h>
24649 #ifdef HAVE_UNISTD_H
24650 #include <unistd.h>
24651 #endif
24652 #ifdef HAVE_CRYPT_H
24653 #include <crypt.h>
24654 #endif
24655 #ifdef HAVE_ERRNO_H
24656 #include <errno.h>
24657 #endif
24658 #ifdef HAVE_RESOURCE_H
24659 #include <resource.h>
24660 #endif
24661 #ifdef HAVE_GETOPT_H
24662 #include <getopt.h>
24663 #endif
24664 #ifdef HAVE_MALLOC_H
24665 #include <malloc.h>
24666 #endif
24667 #ifdef HAVE_UTMP_H
24668 #include <utmp.h>
24669 #endif
24670 #ifdef HAVE_UTMPX_H
24671 #include <utmpx.h>
24672 #endif
24673 #ifdef HAVE_SYS_SELECT_H
24674 #include <sys/select.h>
24675 #endif
24676 #ifdef HAVE_DLFCN_H
24677 #include <dlfcn.h>
24678 #endif
24679 #ifdef HAVE_REGEX_H
24680 #include <regex.h>
24681 #endif
24682 #ifdef HAVE_SYSLOG_H
24683 #include <syslog.h>
24684 #endif
24685 #ifdef HAVE_INTTYPES_H
24686 #include <inttypes.h>
24687 #endif
24688 #ifdef HAVE_STDINT_H
24689 #include <stdint.h>
24690 #endif
24691 #ifdef HAVE_ARPA_INET_H
24692 #include <arpa/inet.h>
24693 #endif
24694
24695 int
24696 main ()
24697 {
24698 char *(*pfn) = (char *(*)) $ac_func
24699   ;
24700   return 0;
24701 }
24702 _ACEOF
24703 rm -f conftest.$ac_objext
24704 if { (ac_try="$ac_compile"
24705 case "(($ac_try" in
24706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24707   *) ac_try_echo=$ac_try;;
24708 esac
24709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24710   (eval "$ac_compile") 2>conftest.er1
24711   ac_status=$?
24712   grep -v '^ *+' conftest.er1 >conftest.err
24713   rm -f conftest.er1
24714   cat conftest.err >&5
24715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716   (exit $ac_status); } &&
24717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24718   { (case "(($ac_try" in
24719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720   *) ac_try_echo=$ac_try;;
24721 esac
24722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723   (eval "$ac_try") 2>&5
24724   ac_status=$?
24725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726   (exit $ac_status); }; } &&
24727          { ac_try='test -s conftest.$ac_objext'
24728   { (case "(($ac_try" in
24729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24730   *) ac_try_echo=$ac_try;;
24731 esac
24732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24733   (eval "$ac_try") 2>&5
24734   ac_status=$?
24735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736   (exit $ac_status); }; }; then
24737   eval "radius_cv_decl_needed_$ac_func=no"
24738 else
24739   echo "$as_me: failed program was:" >&5
24740 sed 's/^/| /' conftest.$ac_ext >&5
24741
24742         eval "radius_cv_decl_needed_$ac_func=yes"
24743 fi
24744
24745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24746 fi
24747
24748 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
24749   { echo "$as_me:$LINENO: result: yes" >&5
24750 echo "${ECHO_T}yes" >&6; }
24751   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24752   cat >>confdefs.h <<_ACEOF
24753 #define $radius_tr_decl 1
24754 _ACEOF
24755
24756 else
24757   { echo "$as_me:$LINENO: result: no" >&5
24758 echo "${ECHO_T}no" >&6; }
24759 fi
24760
24761 done
24762
24763
24764 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24765 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24766 if test "${ac_cv_type_signal+set}" = set; then
24767   echo $ECHO_N "(cached) $ECHO_C" >&6
24768 else
24769   cat >conftest.$ac_ext <<_ACEOF
24770 /* confdefs.h.  */
24771 _ACEOF
24772 cat confdefs.h >>conftest.$ac_ext
24773 cat >>conftest.$ac_ext <<_ACEOF
24774 /* end confdefs.h.  */
24775 #include <sys/types.h>
24776 #include <signal.h>
24777
24778 int
24779 main ()
24780 {
24781 return *(signal (0, 0)) (0) == 1;
24782   ;
24783   return 0;
24784 }
24785 _ACEOF
24786 rm -f conftest.$ac_objext
24787 if { (ac_try="$ac_compile"
24788 case "(($ac_try" in
24789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24790   *) ac_try_echo=$ac_try;;
24791 esac
24792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24793   (eval "$ac_compile") 2>conftest.er1
24794   ac_status=$?
24795   grep -v '^ *+' conftest.er1 >conftest.err
24796   rm -f conftest.er1
24797   cat conftest.err >&5
24798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799   (exit $ac_status); } &&
24800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24801   { (case "(($ac_try" in
24802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803   *) ac_try_echo=$ac_try;;
24804 esac
24805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806   (eval "$ac_try") 2>&5
24807   ac_status=$?
24808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809   (exit $ac_status); }; } &&
24810          { ac_try='test -s conftest.$ac_objext'
24811   { (case "(($ac_try" in
24812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24813   *) ac_try_echo=$ac_try;;
24814 esac
24815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24816   (eval "$ac_try") 2>&5
24817   ac_status=$?
24818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819   (exit $ac_status); }; }; then
24820   ac_cv_type_signal=int
24821 else
24822   echo "$as_me: failed program was:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24824
24825         ac_cv_type_signal=void
24826 fi
24827
24828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24829 fi
24830 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24831 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24832
24833 cat >>confdefs.h <<_ACEOF
24834 #define RETSIGTYPE $ac_cv_type_signal
24835 _ACEOF
24836
24837
24838
24839 if test "x$ac_cv_header_utmpx_h" = "xyes"
24840 then
24841
24842   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24843 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24844
24845
24846   cat >conftest.$ac_ext <<_ACEOF
24847 /* confdefs.h.  */
24848 _ACEOF
24849 cat confdefs.h >>conftest.$ac_ext
24850 cat >>conftest.$ac_ext <<_ACEOF
24851 /* end confdefs.h.  */
24852
24853 #include <utmpx.h>
24854 #ifndef offsetof
24855 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24856 #endif
24857
24858 int
24859 main ()
24860 {
24861  int foo = offsetof(struct utmpx, ut_xtime)
24862   ;
24863   return 0;
24864 }
24865 _ACEOF
24866 rm -f conftest.$ac_objext
24867 if { (ac_try="$ac_compile"
24868 case "(($ac_try" in
24869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24870   *) ac_try_echo=$ac_try;;
24871 esac
24872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24873   (eval "$ac_compile") 2>conftest.er1
24874   ac_status=$?
24875   grep -v '^ *+' conftest.er1 >conftest.err
24876   rm -f conftest.er1
24877   cat conftest.err >&5
24878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879   (exit $ac_status); } &&
24880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24881   { (case "(($ac_try" in
24882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883   *) ac_try_echo=$ac_try;;
24884 esac
24885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24886   (eval "$ac_try") 2>&5
24887   ac_status=$?
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); }; } &&
24890          { ac_try='test -s conftest.$ac_objext'
24891   { (case "(($ac_try" in
24892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24893   *) ac_try_echo=$ac_try;;
24894 esac
24895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24896   (eval "$ac_try") 2>&5
24897   ac_status=$?
24898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899   (exit $ac_status); }; }; then
24900   has_element=" "
24901 else
24902   echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24904
24905         has_element=
24906 fi
24907
24908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24909
24910   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24911   if test "x$has_element" != "x"; then
24912     { echo "$as_me:$LINENO: result: yes" >&5
24913 echo "${ECHO_T}yes" >&6; }
24914     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24915   else
24916     { echo "$as_me:$LINENO: result: no" >&5
24917 echo "${ECHO_T}no" >&6; }
24918     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24919  fi
24920
24921  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24922  then
24923
24924 cat >>confdefs.h <<\_ACEOF
24925 #define ut_xtime ut_tv.tv_sec
24926 _ACEOF
24927
24928  fi
24929 fi
24930
24931
24932   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24933 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24934
24935
24936   cat >conftest.$ac_ext <<_ACEOF
24937 /* confdefs.h.  */
24938 _ACEOF
24939 cat confdefs.h >>conftest.$ac_ext
24940 cat >>conftest.$ac_ext <<_ACEOF
24941 /* end confdefs.h.  */
24942
24943 #include <netinet/in.h>
24944 #ifndef offsetof
24945 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24946 #endif
24947
24948 int
24949 main ()
24950 {
24951  int foo = offsetof(struct in_pktinfo, ipi_addr)
24952   ;
24953   return 0;
24954 }
24955 _ACEOF
24956 rm -f conftest.$ac_objext
24957 if { (ac_try="$ac_compile"
24958 case "(($ac_try" in
24959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960   *) ac_try_echo=$ac_try;;
24961 esac
24962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24963   (eval "$ac_compile") 2>conftest.er1
24964   ac_status=$?
24965   grep -v '^ *+' conftest.er1 >conftest.err
24966   rm -f conftest.er1
24967   cat conftest.err >&5
24968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969   (exit $ac_status); } &&
24970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24971   { (case "(($ac_try" in
24972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973   *) ac_try_echo=$ac_try;;
24974 esac
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976   (eval "$ac_try") 2>&5
24977   ac_status=$?
24978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979   (exit $ac_status); }; } &&
24980          { ac_try='test -s conftest.$ac_objext'
24981   { (case "(($ac_try" in
24982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24983   *) ac_try_echo=$ac_try;;
24984 esac
24985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24986   (eval "$ac_try") 2>&5
24987   ac_status=$?
24988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989   (exit $ac_status); }; }; then
24990   has_element=" "
24991 else
24992   echo "$as_me: failed program was:" >&5
24993 sed 's/^/| /' conftest.$ac_ext >&5
24994
24995         has_element=
24996 fi
24997
24998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24999
25000   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
25001   if test "x$has_element" != "x"; then
25002     { echo "$as_me:$LINENO: result: yes" >&5
25003 echo "${ECHO_T}yes" >&6; }
25004     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
25005   else
25006     { echo "$as_me:$LINENO: result: no" >&5
25007 echo "${ECHO_T}no" >&6; }
25008     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
25009  fi
25010
25011 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
25012 then
25013
25014 cat >>confdefs.h <<\_ACEOF
25015 #define HAVE_IP_PKTINFO
25016 _ACEOF
25017
25018 fi
25019
25020
25021   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
25022 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
25023
25024
25025   cat >conftest.$ac_ext <<_ACEOF
25026 /* confdefs.h.  */
25027 _ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h.  */
25031
25032 #include <netinet/in.h>
25033 #ifndef offsetof
25034 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
25035 #endif
25036
25037 int
25038 main ()
25039 {
25040  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
25041   ;
25042   return 0;
25043 }
25044 _ACEOF
25045 rm -f conftest.$ac_objext
25046 if { (ac_try="$ac_compile"
25047 case "(($ac_try" in
25048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049   *) ac_try_echo=$ac_try;;
25050 esac
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052   (eval "$ac_compile") 2>conftest.er1
25053   ac_status=$?
25054   grep -v '^ *+' conftest.er1 >conftest.err
25055   rm -f conftest.er1
25056   cat conftest.err >&5
25057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058   (exit $ac_status); } &&
25059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25060   { (case "(($ac_try" in
25061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25062   *) ac_try_echo=$ac_try;;
25063 esac
25064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25065   (eval "$ac_try") 2>&5
25066   ac_status=$?
25067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068   (exit $ac_status); }; } &&
25069          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
25076   ac_status=$?
25077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078   (exit $ac_status); }; }; then
25079   has_element=" "
25080 else
25081   echo "$as_me: failed program was:" >&5
25082 sed 's/^/| /' conftest.$ac_ext >&5
25083
25084         has_element=
25085 fi
25086
25087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25088
25089   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
25090   if test "x$has_element" != "x"; then
25091     { echo "$as_me:$LINENO: result: yes" >&5
25092 echo "${ECHO_T}yes" >&6; }
25093     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
25094   else
25095     { echo "$as_me:$LINENO: result: no" >&5
25096 echo "${ECHO_T}no" >&6; }
25097     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
25098  fi
25099
25100 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
25101 then
25102
25103 cat >>confdefs.h <<\_ACEOF
25104 #define HAVE_IN6_PKTINFO
25105 _ACEOF
25106
25107 fi
25108
25109
25110 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25111 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25112 if test "${ac_cv_c_const+set}" = set; then
25113   echo $ECHO_N "(cached) $ECHO_C" >&6
25114 else
25115   cat >conftest.$ac_ext <<_ACEOF
25116 /* confdefs.h.  */
25117 _ACEOF
25118 cat confdefs.h >>conftest.$ac_ext
25119 cat >>conftest.$ac_ext <<_ACEOF
25120 /* end confdefs.h.  */
25121
25122 int
25123 main ()
25124 {
25125 /* FIXME: Include the comments suggested by Paul. */
25126 #ifndef __cplusplus
25127   /* Ultrix mips cc rejects this.  */
25128   typedef int charset[2];
25129   const charset x;
25130   /* SunOS 4.1.1 cc rejects this.  */
25131   char const *const *ccp;
25132   char **p;
25133   /* NEC SVR4.0.2 mips cc rejects this.  */
25134   struct point {int x, y;};
25135   static struct point const zero = {0,0};
25136   /* AIX XL C 1.02.0.0 rejects this.
25137      It does not let you subtract one const X* pointer from another in
25138      an arm of an if-expression whose if-part is not a constant
25139      expression */
25140   const char *g = "string";
25141   ccp = &g + (g ? g-g : 0);
25142   /* HPUX 7.0 cc rejects these. */
25143   ++ccp;
25144   p = (char**) ccp;
25145   ccp = (char const *const *) p;
25146   { /* SCO 3.2v4 cc rejects this.  */
25147     char *t;
25148     char const *s = 0 ? (char *) 0 : (char const *) 0;
25149
25150     *t++ = 0;
25151     if (s) return 0;
25152   }
25153   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25154     int x[] = {25, 17};
25155     const int *foo = &x[0];
25156     ++foo;
25157   }
25158   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25159     typedef const int *iptr;
25160     iptr p = 0;
25161     ++p;
25162   }
25163   { /* AIX XL C 1.02.0.0 rejects this saying
25164        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25165     struct s { int j; const int *ap[3]; };
25166     struct s *b; b->j = 5;
25167   }
25168   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25169     const int foo = 10;
25170     if (!foo) return 0;
25171   }
25172   return !x[0] && !zero.x;
25173 #endif
25174
25175   ;
25176   return 0;
25177 }
25178 _ACEOF
25179 rm -f conftest.$ac_objext
25180 if { (ac_try="$ac_compile"
25181 case "(($ac_try" in
25182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25183   *) ac_try_echo=$ac_try;;
25184 esac
25185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25186   (eval "$ac_compile") 2>conftest.er1
25187   ac_status=$?
25188   grep -v '^ *+' conftest.er1 >conftest.err
25189   rm -f conftest.er1
25190   cat conftest.err >&5
25191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192   (exit $ac_status); } &&
25193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25194   { (case "(($ac_try" in
25195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25196   *) ac_try_echo=$ac_try;;
25197 esac
25198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25199   (eval "$ac_try") 2>&5
25200   ac_status=$?
25201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202   (exit $ac_status); }; } &&
25203          { ac_try='test -s conftest.$ac_objext'
25204   { (case "(($ac_try" in
25205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206   *) ac_try_echo=$ac_try;;
25207 esac
25208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25209   (eval "$ac_try") 2>&5
25210   ac_status=$?
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); }; }; then
25213   ac_cv_c_const=yes
25214 else
25215   echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25217
25218         ac_cv_c_const=no
25219 fi
25220
25221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25222 fi
25223 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25224 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25225 if test $ac_cv_c_const = no; then
25226
25227 cat >>confdefs.h <<\_ACEOF
25228 #define const
25229 _ACEOF
25230
25231 fi
25232
25233
25234 { echo "$as_me:$LINENO: checking type of OS" >&5
25235 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
25236 OS=`uname -s`
25237 { echo "$as_me:$LINENO: result: $OS" >&5
25238 echo "${ECHO_T}$OS" >&6; }
25239 if test "$OS" = "OS/2"; then
25240         LIBPREFIX=
25241 else
25242         LIBPREFIX=lib
25243 fi
25244
25245
25246 if test "x$GCC" = "xyes"; then
25247     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
25248 fi
25249
25250 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
25251 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
25252 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
25253   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
25254   CFLAGS="$CFLAGS $devflags"
25255   INSTALLSTRIP=""
25256   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
25257 echo "${ECHO_T}yes.  Using $devflags" >&6; }
25258 else
25259   devflags=""
25260   CFLAGS="$CFLAGS -DNDEBUG"
25261   INSTALLSTRIP="-s"
25262   { echo "$as_me:$LINENO: result: no." >&5
25263 echo "${ECHO_T}no." >&6; }
25264 fi
25265
25266
25267 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25268 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25269 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25270   echo $ECHO_N "(cached) $ECHO_C" >&6
25271 else
25272   ac_check_lib_save_LIBS=$LIBS
25273 LIBS="-lcrypt  $LIBS"
25274 cat >conftest.$ac_ext <<_ACEOF
25275 /* confdefs.h.  */
25276 _ACEOF
25277 cat confdefs.h >>conftest.$ac_ext
25278 cat >>conftest.$ac_ext <<_ACEOF
25279 /* end confdefs.h.  */
25280
25281 /* Override any GCC internal prototype to avoid an error.
25282    Use char because int might match the return type of a GCC
25283    builtin and then its argument prototype would still apply.  */
25284 #ifdef __cplusplus
25285 extern "C"
25286 #endif
25287 char crypt ();
25288 int
25289 main ()
25290 {
25291 return crypt ();
25292   ;
25293   return 0;
25294 }
25295 _ACEOF
25296 rm -f conftest.$ac_objext conftest$ac_exeext
25297 if { (ac_try="$ac_link"
25298 case "(($ac_try" in
25299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25300   *) ac_try_echo=$ac_try;;
25301 esac
25302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25303   (eval "$ac_link") 2>conftest.er1
25304   ac_status=$?
25305   grep -v '^ *+' conftest.er1 >conftest.err
25306   rm -f conftest.er1
25307   cat conftest.err >&5
25308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309   (exit $ac_status); } &&
25310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25311   { (case "(($ac_try" in
25312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25313   *) ac_try_echo=$ac_try;;
25314 esac
25315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25316   (eval "$ac_try") 2>&5
25317   ac_status=$?
25318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); }; } &&
25320          { ac_try='test -s conftest$ac_exeext'
25321   { (case "(($ac_try" in
25322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323   *) ac_try_echo=$ac_try;;
25324 esac
25325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25326   (eval "$ac_try") 2>&5
25327   ac_status=$?
25328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329   (exit $ac_status); }; }; then
25330   ac_cv_lib_crypt_crypt=yes
25331 else
25332   echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25334
25335         ac_cv_lib_crypt_crypt=no
25336 fi
25337
25338 rm -f core conftest.err conftest.$ac_objext \
25339       conftest$ac_exeext conftest.$ac_ext
25340 LIBS=$ac_check_lib_save_LIBS
25341 fi
25342 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25343 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25344 if test $ac_cv_lib_crypt_crypt = yes; then
25345   CRYPTLIB="-lcrypt"
25346
25347 fi
25348
25349 if test "$CRYPTLIB" != ""; then
25350
25351 cat >>confdefs.h <<\_ACEOF
25352 #define HAVE_CRYPT
25353 _ACEOF
25354
25355 else
25356   { echo "$as_me:$LINENO: checking for crypt" >&5
25357 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25358 if test "${ac_cv_func_crypt+set}" = set; then
25359   echo $ECHO_N "(cached) $ECHO_C" >&6
25360 else
25361   cat >conftest.$ac_ext <<_ACEOF
25362 /* confdefs.h.  */
25363 _ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h.  */
25367 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25369 #define crypt innocuous_crypt
25370
25371 /* System header to define __stub macros and hopefully few prototypes,
25372     which can conflict with char crypt (); below.
25373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25374     <limits.h> exists even on freestanding compilers.  */
25375
25376 #ifdef __STDC__
25377 # include <limits.h>
25378 #else
25379 # include <assert.h>
25380 #endif
25381
25382 #undef crypt
25383
25384 /* Override any GCC internal prototype to avoid an error.
25385    Use char because int might match the return type of a GCC
25386    builtin and then its argument prototype would still apply.  */
25387 #ifdef __cplusplus
25388 extern "C"
25389 #endif
25390 char crypt ();
25391 /* The GNU C library defines this for functions which it implements
25392     to always fail with ENOSYS.  Some functions are actually named
25393     something starting with __ and the normal name is an alias.  */
25394 #if defined __stub_crypt || defined __stub___crypt
25395 choke me
25396 #endif
25397
25398 int
25399 main ()
25400 {
25401 return crypt ();
25402   ;
25403   return 0;
25404 }
25405 _ACEOF
25406 rm -f conftest.$ac_objext conftest$ac_exeext
25407 if { (ac_try="$ac_link"
25408 case "(($ac_try" in
25409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25410   *) ac_try_echo=$ac_try;;
25411 esac
25412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25413   (eval "$ac_link") 2>conftest.er1
25414   ac_status=$?
25415   grep -v '^ *+' conftest.er1 >conftest.err
25416   rm -f conftest.er1
25417   cat conftest.err >&5
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); } &&
25420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25421   { (case "(($ac_try" in
25422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25423   *) ac_try_echo=$ac_try;;
25424 esac
25425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25426   (eval "$ac_try") 2>&5
25427   ac_status=$?
25428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429   (exit $ac_status); }; } &&
25430          { ac_try='test -s conftest$ac_exeext'
25431   { (case "(($ac_try" in
25432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433   *) ac_try_echo=$ac_try;;
25434 esac
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436   (eval "$ac_try") 2>&5
25437   ac_status=$?
25438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439   (exit $ac_status); }; }; then
25440   ac_cv_func_crypt=yes
25441 else
25442   echo "$as_me: failed program was:" >&5
25443 sed 's/^/| /' conftest.$ac_ext >&5
25444
25445         ac_cv_func_crypt=no
25446 fi
25447
25448 rm -f core conftest.err conftest.$ac_objext \
25449       conftest$ac_exeext conftest.$ac_ext
25450 fi
25451 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25452 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25453 if test $ac_cv_func_crypt = yes; then
25454
25455 cat >>confdefs.h <<\_ACEOF
25456 #define HAVE_CRYPT
25457 _ACEOF
25458
25459 fi
25460
25461 fi
25462
25463 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
25464 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
25465 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
25466   echo $ECHO_N "(cached) $ECHO_C" >&6
25467 else
25468   ac_check_lib_save_LIBS=$LIBS
25469 LIBS="-lcipher  $LIBS"
25470 cat >conftest.$ac_ext <<_ACEOF
25471 /* confdefs.h.  */
25472 _ACEOF
25473 cat confdefs.h >>conftest.$ac_ext
25474 cat >>conftest.$ac_ext <<_ACEOF
25475 /* end confdefs.h.  */
25476
25477 /* Override any GCC internal prototype to avoid an error.
25478    Use char because int might match the return type of a GCC
25479    builtin and then its argument prototype would still apply.  */
25480 #ifdef __cplusplus
25481 extern "C"
25482 #endif
25483 char setkey ();
25484 int
25485 main ()
25486 {
25487 return setkey ();
25488   ;
25489   return 0;
25490 }
25491 _ACEOF
25492 rm -f conftest.$ac_objext conftest$ac_exeext
25493 if { (ac_try="$ac_link"
25494 case "(($ac_try" in
25495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25496   *) ac_try_echo=$ac_try;;
25497 esac
25498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25499   (eval "$ac_link") 2>conftest.er1
25500   ac_status=$?
25501   grep -v '^ *+' conftest.er1 >conftest.err
25502   rm -f conftest.er1
25503   cat conftest.err >&5
25504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505   (exit $ac_status); } &&
25506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25507   { (case "(($ac_try" in
25508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25509   *) ac_try_echo=$ac_try;;
25510 esac
25511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25512   (eval "$ac_try") 2>&5
25513   ac_status=$?
25514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515   (exit $ac_status); }; } &&
25516          { ac_try='test -s conftest$ac_exeext'
25517   { (case "(($ac_try" in
25518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25519   *) ac_try_echo=$ac_try;;
25520 esac
25521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25522   (eval "$ac_try") 2>&5
25523   ac_status=$?
25524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525   (exit $ac_status); }; }; then
25526   ac_cv_lib_cipher_setkey=yes
25527 else
25528   echo "$as_me: failed program was:" >&5
25529 sed 's/^/| /' conftest.$ac_ext >&5
25530
25531         ac_cv_lib_cipher_setkey=no
25532 fi
25533
25534 rm -f core conftest.err conftest.$ac_objext \
25535       conftest$ac_exeext conftest.$ac_ext
25536 LIBS=$ac_check_lib_save_LIBS
25537 fi
25538 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
25539 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
25540 if test $ac_cv_lib_cipher_setkey = yes; then
25541   CRYPTLIB="${CRYPTLIB} -lcipher"
25542
25543 fi
25544
25545
25546
25547 if test "x$WITH_SNMP" = "xyes"; then
25548
25549
25550
25551
25552 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
25553 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
25554
25555 cat >conftest.$ac_ext <<_ACEOF
25556 /* confdefs.h.  */
25557 _ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h.  */
25561
25562 #ifdef HAVE_SYS_TYPES_H
25563 #include <sys/types.h>
25564 #endif
25565 #ifdef HAVE_STDINT_H
25566 #include <stdint.h>
25567 #endif
25568 #ifdef HAVE_STDIO_H
25569 #include <stdio.h>
25570 #endif
25571 #ifdef HAVE_NETDB_H
25572 #include <netdb.h>
25573 #endif
25574 #ifdef HAVE_UNISTD_H
25575 #include <unistd.h>
25576 #endif
25577 #include <ucd-snmp/ucd-snmp-config.h>
25578 #include <ucd-snmp/asn1.h>
25579 #include <ucd-snmp/snmp.h>
25580 #include <ucd-snmp/snmp_impl.h>
25581 int
25582 main ()
25583 {
25584  int a = 1;
25585   ;
25586   return 0;
25587 }
25588 _ACEOF
25589 rm -f conftest.$ac_objext
25590 if { (ac_try="$ac_compile"
25591 case "(($ac_try" in
25592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25593   *) ac_try_echo=$ac_try;;
25594 esac
25595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25596   (eval "$ac_compile") 2>conftest.er1
25597   ac_status=$?
25598   grep -v '^ *+' conftest.er1 >conftest.err
25599   rm -f conftest.er1
25600   cat conftest.err >&5
25601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602   (exit $ac_status); } &&
25603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25604   { (case "(($ac_try" in
25605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25606   *) ac_try_echo=$ac_try;;
25607 esac
25608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25609   (eval "$ac_try") 2>&5
25610   ac_status=$?
25611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612   (exit $ac_status); }; } &&
25613          { ac_try='test -s conftest.$ac_objext'
25614   { (case "(($ac_try" in
25615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616   *) ac_try_echo=$ac_try;;
25617 esac
25618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25619   (eval "$ac_try") 2>&5
25620   ac_status=$?
25621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622   (exit $ac_status); }; }; then
25623   SNMP_INCLUDE="";ucdsnmp=yes
25624 else
25625   echo "$as_me: failed program was:" >&5
25626 sed 's/^/| /' conftest.$ac_ext >&5
25627
25628         ucdsnmp=
25629 fi
25630
25631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25632
25633 if test "x$ucdsnmp" = "x"; then
25634   old_CFLAGS="$CFLAGS"
25635   for try in /usr/include /usr/local/include $snmp_include_dir; do
25636     CFLAGS="$old_CFLAGS -I$try"
25637     cat >conftest.$ac_ext <<_ACEOF
25638 /* confdefs.h.  */
25639 _ACEOF
25640 cat confdefs.h >>conftest.$ac_ext
25641 cat >>conftest.$ac_ext <<_ACEOF
25642 /* end confdefs.h.  */
25643
25644 #ifdef HAVE_SYS_TYPES_H
25645 #include <sys/types.h>
25646 #endif
25647 #ifdef HAVE_STDINT_H
25648 #include <stdint.h>
25649 #endif
25650 #ifdef HAVE_STDIO_H
25651 #include <stdio.h>
25652 #endif
25653 #ifdef HAVE_NETDB_H
25654 #include <netdb.h>
25655 #endif
25656 #ifdef HAVE_UNISTD_H
25657 #include <unistd.h>
25658 #endif
25659 #include <ucd-snmp/ucd-snmp-config.h>
25660 #include <ucd-snmp/asn1.h>
25661 #include <ucd-snmp/snmp.h>
25662 #include <ucd-snmp/snmp_impl.h>
25663 int
25664 main ()
25665 {
25666  int a = 1;
25667   ;
25668   return 0;
25669 }
25670 _ACEOF
25671 rm -f conftest.$ac_objext
25672 if { (ac_try="$ac_compile"
25673 case "(($ac_try" in
25674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675   *) ac_try_echo=$ac_try;;
25676 esac
25677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25678   (eval "$ac_compile") 2>conftest.er1
25679   ac_status=$?
25680   grep -v '^ *+' conftest.er1 >conftest.err
25681   rm -f conftest.er1
25682   cat conftest.err >&5
25683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684   (exit $ac_status); } &&
25685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25686   { (case "(($ac_try" in
25687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25688   *) ac_try_echo=$ac_try;;
25689 esac
25690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25691   (eval "$ac_try") 2>&5
25692   ac_status=$?
25693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694   (exit $ac_status); }; } &&
25695          { ac_try='test -s conftest.$ac_objext'
25696   { (case "(($ac_try" in
25697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698   *) ac_try_echo=$ac_try;;
25699 esac
25700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25701   (eval "$ac_try") 2>&5
25702   ac_status=$?
25703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704   (exit $ac_status); }; }; then
25705   SNMP_INCLUDE="-I$try";ucdsnmp=yes
25706 else
25707   echo "$as_me: failed program was:" >&5
25708 sed 's/^/| /' conftest.$ac_ext >&5
25709
25710         ucdsnmp=
25711 fi
25712
25713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25714     if test "x$ucdsnmp" != "x"; then
25715       break;
25716     fi
25717   done
25718   CFLAGS="$old_CFLAGS"
25719 fi
25720
25721 if test "x$ucdsnmp" = "x"; then
25722   old_CFLAGS="$CFLAGS"
25723   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
25724     CFLAGS="$old_CFLAGS -I$try"
25725 cat >conftest.$ac_ext <<_ACEOF
25726 /* confdefs.h.  */
25727 _ACEOF
25728 cat confdefs.h >>conftest.$ac_ext
25729 cat >>conftest.$ac_ext <<_ACEOF
25730 /* end confdefs.h.  */
25731
25732 #ifdef HAVE_SYS_TYPES_H
25733 #include <sys/types.h>
25734 #endif
25735 #ifdef HAVE_STDINT_H
25736 #include <stdint.h>
25737 #endif
25738 #ifdef HAVE_STDIO_H
25739 #include <stdio.h>
25740 #endif
25741 #ifdef HAVE_NETDB_H
25742 #include <netdb.h>
25743 #endif
25744 #ifdef HAVE_UNISTD_H
25745 #include <unistd.h>
25746 #endif
25747 #include <asn1.h>
25748 #include <snmp.h>
25749 #include <snmp_impl.h>
25750 int
25751 main ()
25752 {
25753  int a = 1;
25754   ;
25755   return 0;
25756 }
25757 _ACEOF
25758 rm -f conftest.$ac_objext
25759 if { (ac_try="$ac_compile"
25760 case "(($ac_try" in
25761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25762   *) ac_try_echo=$ac_try;;
25763 esac
25764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25765   (eval "$ac_compile") 2>conftest.er1
25766   ac_status=$?
25767   grep -v '^ *+' conftest.er1 >conftest.err
25768   rm -f conftest.er1
25769   cat conftest.err >&5
25770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771   (exit $ac_status); } &&
25772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25773   { (case "(($ac_try" in
25774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25775   *) ac_try_echo=$ac_try;;
25776 esac
25777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25778   (eval "$ac_try") 2>&5
25779   ac_status=$?
25780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781   (exit $ac_status); }; } &&
25782          { ac_try='test -s conftest.$ac_objext'
25783   { (case "(($ac_try" in
25784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25785   *) ac_try_echo=$ac_try;;
25786 esac
25787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25788   (eval "$ac_try") 2>&5
25789   ac_status=$?
25790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791   (exit $ac_status); }; }; then
25792   SNMP_INCLUDE="";ucdsnmp=no
25793 else
25794   echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25796
25797         ucdsnmp=
25798 fi
25799
25800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25801     if test "x$ucdsnmp" != "x"; then
25802       break;
25803     fi
25804   done
25805   CFLAGS="$old_CFLAGS"
25806 fi
25807
25808 if test "x$ucdsnmp" = "x"; then
25809   old_CFLAGS="$CFLAGS"
25810   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
25811     CFLAGS="$old_CFLAGS -I$try"
25812     cat >conftest.$ac_ext <<_ACEOF
25813 /* confdefs.h.  */
25814 _ACEOF
25815 cat confdefs.h >>conftest.$ac_ext
25816 cat >>conftest.$ac_ext <<_ACEOF
25817 /* end confdefs.h.  */
25818
25819 #ifdef HAVE_SYS_TYPES_H
25820 #include <sys/types.h>
25821 #endif
25822 #ifdef HAVE_STDINT_H
25823 #include <stdint.h>
25824 #endif
25825 #ifdef HAVE_STDIO_H
25826 #include <stdio.h>
25827 #endif
25828 #ifdef HAVE_NETDB_H
25829 #include <netdb.h>
25830 #endif
25831 #ifdef HAVE_UNISTD_H
25832 #include <unistd.h>
25833 #endif
25834 #include <asn1.h>
25835 #include <snmp.h>
25836 #include <snmp_impl.h>
25837 int
25838 main ()
25839 {
25840  int a = 1;
25841   ;
25842   return 0;
25843 }
25844 _ACEOF
25845 rm -f conftest.$ac_objext
25846 if { (ac_try="$ac_compile"
25847 case "(($ac_try" in
25848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25849   *) ac_try_echo=$ac_try;;
25850 esac
25851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25852   (eval "$ac_compile") 2>conftest.er1
25853   ac_status=$?
25854   grep -v '^ *+' conftest.er1 >conftest.err
25855   rm -f conftest.er1
25856   cat conftest.err >&5
25857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); } &&
25859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25860   { (case "(($ac_try" in
25861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25862   *) ac_try_echo=$ac_try;;
25863 esac
25864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25865   (eval "$ac_try") 2>&5
25866   ac_status=$?
25867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868   (exit $ac_status); }; } &&
25869          { ac_try='test -s conftest.$ac_objext'
25870   { (case "(($ac_try" in
25871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25872   *) ac_try_echo=$ac_try;;
25873 esac
25874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25875   (eval "$ac_try") 2>&5
25876   ac_status=$?
25877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878   (exit $ac_status); }; }; then
25879   SNMP_INCLUDE="-I$try";ucdsnmp=no
25880 else
25881   echo "$as_me: failed program was:" >&5
25882 sed 's/^/| /' conftest.$ac_ext >&5
25883
25884         ucdsnmp=
25885 fi
25886
25887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25888     if test "x$ucdsnmp" != "x"; then
25889       break;
25890     fi
25891   done
25892   CFLAGS="$old_CFLAGS"
25893 fi
25894
25895 if test "x$ucdsnmp" = "x"; then
25896   { echo "$as_me:$LINENO: result: no" >&5
25897 echo "${ECHO_T}no" >&6; }
25898 else
25899   if test "x$ucdsnmp" = "xyes"; then
25900     { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
25901 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
25902
25903 cat >>confdefs.h <<\_ACEOF
25904 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
25905 _ACEOF
25906
25907   else
25908     { echo "$as_me:$LINENO: result: yes" >&5
25909 echo "${ECHO_T}yes" >&6; }
25910
25911 cat >>confdefs.h <<\_ACEOF
25912 #define HAVE_ASN1_SNMP_SNMPIMPL_H
25913 _ACEOF
25914
25915   fi
25916   { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
25917 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
25918
25919   old_LIBS="$LIBS"
25920   LIBS="$old_LIBS -lsnmp"
25921   cat >conftest.$ac_ext <<_ACEOF
25922 /* confdefs.h.  */
25923 _ACEOF
25924 cat confdefs.h >>conftest.$ac_ext
25925 cat >>conftest.$ac_ext <<_ACEOF
25926 /* end confdefs.h.  */
25927 extern char snmp_build_var_op();
25928 int
25929 main ()
25930 {
25931  snmp_build_var_op()
25932   ;
25933   return 0;
25934 }
25935 _ACEOF
25936 rm -f conftest.$ac_objext conftest$ac_exeext
25937 if { (ac_try="$ac_link"
25938 case "(($ac_try" in
25939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25940   *) ac_try_echo=$ac_try;;
25941 esac
25942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25943   (eval "$ac_link") 2>conftest.er1
25944   ac_status=$?
25945   grep -v '^ *+' conftest.er1 >conftest.err
25946   rm -f conftest.er1
25947   cat conftest.err >&5
25948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949   (exit $ac_status); } &&
25950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25951   { (case "(($ac_try" in
25952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25953   *) ac_try_echo=$ac_try;;
25954 esac
25955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25956   (eval "$ac_try") 2>&5
25957   ac_status=$?
25958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959   (exit $ac_status); }; } &&
25960          { ac_try='test -s conftest$ac_exeext'
25961   { (case "(($ac_try" in
25962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25963   *) ac_try_echo=$ac_try;;
25964 esac
25965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25966   (eval "$ac_try") 2>&5
25967   ac_status=$?
25968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969   (exit $ac_status); }; }; then
25970   SNMP_LIBS="-lsnmp"
25971 else
25972   echo "$as_me: failed program was:" >&5
25973 sed 's/^/| /' conftest.$ac_ext >&5
25974
25975         SNMP_LIBS=
25976 fi
25977
25978 rm -f core conftest.err conftest.$ac_objext \
25979       conftest$ac_exeext conftest.$ac_ext
25980
25981   if test "x$SNMP_LIBS" = "x"; then
25982     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
25983       LIBS="$old_LIBS -L$try -lsnmp"
25984       cat >conftest.$ac_ext <<_ACEOF
25985 /* confdefs.h.  */
25986 _ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h.  */
25990 extern char snmp_build_var_op();
25991 int
25992 main ()
25993 {
25994  snmp_build_var_op()
25995   ;
25996   return 0;
25997 }
25998 _ACEOF
25999 rm -f conftest.$ac_objext conftest$ac_exeext
26000 if { (ac_try="$ac_link"
26001 case "(($ac_try" in
26002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003   *) ac_try_echo=$ac_try;;
26004 esac
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006   (eval "$ac_link") 2>conftest.er1
26007   ac_status=$?
26008   grep -v '^ *+' conftest.er1 >conftest.err
26009   rm -f conftest.er1
26010   cat conftest.err >&5
26011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012   (exit $ac_status); } &&
26013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26014   { (case "(($ac_try" in
26015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016   *) ac_try_echo=$ac_try;;
26017 esac
26018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019   (eval "$ac_try") 2>&5
26020   ac_status=$?
26021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022   (exit $ac_status); }; } &&
26023          { ac_try='test -s conftest$ac_exeext'
26024   { (case "(($ac_try" in
26025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26026   *) ac_try_echo=$ac_try;;
26027 esac
26028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26029   (eval "$ac_try") 2>&5
26030   ac_status=$?
26031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032   (exit $ac_status); }; }; then
26033   SNMP_LIBS="-L$try -lsnmp"
26034 else
26035   echo "$as_me: failed program was:" >&5
26036 sed 's/^/| /' conftest.$ac_ext >&5
26037
26038         SNMP_LIBS=
26039 fi
26040
26041 rm -f core conftest.err conftest.$ac_objext \
26042       conftest$ac_exeext conftest.$ac_ext
26043       if test "x$SNMP_LIBS" != "x"; then
26044         break;
26045       fi
26046       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
26047       cat >conftest.$ac_ext <<_ACEOF
26048 /* confdefs.h.  */
26049 _ACEOF
26050 cat confdefs.h >>conftest.$ac_ext
26051 cat >>conftest.$ac_ext <<_ACEOF
26052 /* end confdefs.h.  */
26053 extern char snmp_build_var_op();
26054 int
26055 main ()
26056 {
26057  snmp_build_var_op()
26058   ;
26059   return 0;
26060 }
26061 _ACEOF
26062 rm -f conftest.$ac_objext conftest$ac_exeext
26063 if { (ac_try="$ac_link"
26064 case "(($ac_try" in
26065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26066   *) ac_try_echo=$ac_try;;
26067 esac
26068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26069   (eval "$ac_link") 2>conftest.er1
26070   ac_status=$?
26071   grep -v '^ *+' conftest.er1 >conftest.err
26072   rm -f conftest.er1
26073   cat conftest.err >&5
26074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075   (exit $ac_status); } &&
26076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26077   { (case "(($ac_try" in
26078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26079   *) ac_try_echo=$ac_try;;
26080 esac
26081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26082   (eval "$ac_try") 2>&5
26083   ac_status=$?
26084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085   (exit $ac_status); }; } &&
26086          { ac_try='test -s conftest$ac_exeext'
26087   { (case "(($ac_try" in
26088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26089   *) ac_try_echo=$ac_try;;
26090 esac
26091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26092   (eval "$ac_try") 2>&5
26093   ac_status=$?
26094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095   (exit $ac_status); }; }; then
26096   SNMP_LIBS="-L$try -lsnmp -lcrypto"
26097 else
26098   echo "$as_me: failed program was:" >&5
26099 sed 's/^/| /' conftest.$ac_ext >&5
26100
26101         SNMP_LIBS=
26102 fi
26103
26104 rm -f core conftest.err conftest.$ac_objext \
26105       conftest$ac_exeext conftest.$ac_ext
26106       if test "x$SNMP_LIBS" != "x"; then
26107         break;
26108       fi
26109       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
26110       cat >conftest.$ac_ext <<_ACEOF
26111 /* confdefs.h.  */
26112 _ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h.  */
26116 extern char snmp_build_var_op();
26117 int
26118 main ()
26119 {
26120  snmp_build_var_op()
26121   ;
26122   return 0;
26123 }
26124 _ACEOF
26125 rm -f conftest.$ac_objext conftest$ac_exeext
26126 if { (ac_try="$ac_link"
26127 case "(($ac_try" in
26128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26129   *) ac_try_echo=$ac_try;;
26130 esac
26131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26132   (eval "$ac_link") 2>conftest.er1
26133   ac_status=$?
26134   grep -v '^ *+' conftest.er1 >conftest.err
26135   rm -f conftest.er1
26136   cat conftest.err >&5
26137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138   (exit $ac_status); } &&
26139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26140   { (case "(($ac_try" in
26141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26142   *) ac_try_echo=$ac_try;;
26143 esac
26144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26145   (eval "$ac_try") 2>&5
26146   ac_status=$?
26147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148   (exit $ac_status); }; } &&
26149          { ac_try='test -s conftest$ac_exeext'
26150   { (case "(($ac_try" in
26151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26152   *) ac_try_echo=$ac_try;;
26153 esac
26154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26155   (eval "$ac_try") 2>&5
26156   ac_status=$?
26157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158   (exit $ac_status); }; }; then
26159   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
26160 else
26161   echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26163
26164         SNMP_LIBS=
26165 fi
26166
26167 rm -f core conftest.err conftest.$ac_objext \
26168       conftest$ac_exeext conftest.$ac_ext
26169       if test "x$SNMP_LIBS" != "x"; then
26170         break;
26171       fi
26172     done
26173   fi
26174   LIBS="$old_LIBS"
26175
26176           CFLAGS="$old_CFLAGS"
26177   if test "x$SNMP_LIBS" = "x"; then
26178     { echo "$as_me:$LINENO: result: no" >&5
26179 echo "${ECHO_T}no" >&6; }
26180     SNMP_INCLUDE=
26181   else
26182     { echo "$as_me:$LINENO: result: yes" >&5
26183 echo "${ECHO_T}yes" >&6; }
26184
26185 cat >>confdefs.h <<\_ACEOF
26186 #define WITH_SNMP
26187 _ACEOF
26188
26189
26190 cat >>confdefs.h <<\_ACEOF
26191 #define HAVE_LIBSNMP
26192 _ACEOF
26193
26194   fi
26195 fi
26196
26197 fi
26198
26199
26200 cat >>confdefs.h <<\_ACEOF
26201 #define GNUSTYLE 1
26202 _ACEOF
26203
26204
26205 cat >>confdefs.h <<\_ACEOF
26206 #define SYSVSTYLE 2
26207 _ACEOF
26208
26209
26210 cat >>confdefs.h <<\_ACEOF
26211 #define BSDSTYLE 3
26212 _ACEOF
26213
26214 gethostbyaddrrstyle=""
26215 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
26216 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
26217 case "$host" in
26218 *-freebsd45.*|*-freebsd6.01)
26219
26220 cat >>confdefs.h <<\_ACEOF
26221 #define GETHOSTBYADDRRSTYLE BSDSTYLE
26222 _ACEOF
26223
26224         gethostbyaddrrstyle=BSD
26225         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
26226 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
26227         ;;
26228 esac
26229 if test "x$gethostbyaddrrstyle" = "x"; then
26230         cat >conftest.$ac_ext <<_ACEOF
26231 /* confdefs.h.  */
26232 _ACEOF
26233 cat confdefs.h >>conftest.$ac_ext
26234 cat >>conftest.$ac_ext <<_ACEOF
26235 /* end confdefs.h.  */
26236
26237 #include <stdio.h>
26238 #include <netdb.h>
26239
26240 int
26241 main ()
26242 {
26243  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
26244   ;
26245   return 0;
26246 }
26247 _ACEOF
26248 rm -f conftest.$ac_objext conftest$ac_exeext
26249 if { (ac_try="$ac_link"
26250 case "(($ac_try" in
26251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26252   *) ac_try_echo=$ac_try;;
26253 esac
26254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26255   (eval "$ac_link") 2>conftest.er1
26256   ac_status=$?
26257   grep -v '^ *+' conftest.er1 >conftest.err
26258   rm -f conftest.er1
26259   cat conftest.err >&5
26260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261   (exit $ac_status); } &&
26262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26263   { (case "(($ac_try" in
26264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26265   *) ac_try_echo=$ac_try;;
26266 esac
26267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26268   (eval "$ac_try") 2>&5
26269   ac_status=$?
26270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271   (exit $ac_status); }; } &&
26272          { ac_try='test -s conftest$ac_exeext'
26273   { (case "(($ac_try" in
26274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26275   *) ac_try_echo=$ac_try;;
26276 esac
26277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26278   (eval "$ac_try") 2>&5
26279   ac_status=$?
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); }; }; then
26282
26283
26284 cat >>confdefs.h <<\_ACEOF
26285 #define GETHOSTBYADDRRSTYLE GNUSTYLE
26286 _ACEOF
26287
26288         gethostbyaddrrstyle=GNU
26289
26290 else
26291   echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.$ac_ext >&5
26293
26294
26295 fi
26296
26297 rm -f core conftest.err conftest.$ac_objext \
26298       conftest$ac_exeext conftest.$ac_ext
26299 fi
26300 if test "x$gethostbyaddrrstyle" = "x"; then
26301         cat >conftest.$ac_ext <<_ACEOF
26302 /* confdefs.h.  */
26303 _ACEOF
26304 cat confdefs.h >>conftest.$ac_ext
26305 cat >>conftest.$ac_ext <<_ACEOF
26306 /* end confdefs.h.  */
26307
26308 #include <stdio.h>
26309 #include <netdb.h>
26310
26311 int
26312 main ()
26313 {
26314  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
26315   ;
26316   return 0;
26317 }
26318 _ACEOF
26319 rm -f conftest.$ac_objext conftest$ac_exeext
26320 if { (ac_try="$ac_link"
26321 case "(($ac_try" in
26322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26323   *) ac_try_echo=$ac_try;;
26324 esac
26325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26326   (eval "$ac_link") 2>conftest.er1
26327   ac_status=$?
26328   grep -v '^ *+' conftest.er1 >conftest.err
26329   rm -f conftest.er1
26330   cat conftest.err >&5
26331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332   (exit $ac_status); } &&
26333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26334   { (case "(($ac_try" in
26335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336   *) ac_try_echo=$ac_try;;
26337 esac
26338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26339   (eval "$ac_try") 2>&5
26340   ac_status=$?
26341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342   (exit $ac_status); }; } &&
26343          { ac_try='test -s conftest$ac_exeext'
26344   { (case "(($ac_try" in
26345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26346   *) ac_try_echo=$ac_try;;
26347 esac
26348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26349   (eval "$ac_try") 2>&5
26350   ac_status=$?
26351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352   (exit $ac_status); }; }; then
26353
26354
26355 cat >>confdefs.h <<\_ACEOF
26356 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
26357 _ACEOF
26358
26359                 gethostbyaddrrstyle=SYSV
26360
26361 else
26362   echo "$as_me: failed program was:" >&5
26363 sed 's/^/| /' conftest.$ac_ext >&5
26364
26365
26366 fi
26367
26368 rm -f core conftest.err conftest.$ac_objext \
26369       conftest$ac_exeext conftest.$ac_ext
26370 fi
26371 if test "x$gethostbyaddrrstyle" = "x"; then
26372         cat >conftest.$ac_ext <<_ACEOF
26373 /* confdefs.h.  */
26374 _ACEOF
26375 cat confdefs.h >>conftest.$ac_ext
26376 cat >>conftest.$ac_ext <<_ACEOF
26377 /* end confdefs.h.  */
26378
26379 #include <stdio.h>
26380 #include <netdb.h>
26381
26382 int
26383 main ()
26384 {
26385  gethostbyaddr(NULL, 0, 0)
26386   ;
26387   return 0;
26388 }
26389 _ACEOF
26390 rm -f conftest.$ac_objext conftest$ac_exeext
26391 if { (ac_try="$ac_link"
26392 case "(($ac_try" in
26393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26394   *) ac_try_echo=$ac_try;;
26395 esac
26396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26397   (eval "$ac_link") 2>conftest.er1
26398   ac_status=$?
26399   grep -v '^ *+' conftest.er1 >conftest.err
26400   rm -f conftest.er1
26401   cat conftest.err >&5
26402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403   (exit $ac_status); } &&
26404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26405   { (case "(($ac_try" in
26406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26407   *) ac_try_echo=$ac_try;;
26408 esac
26409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26410   (eval "$ac_try") 2>&5
26411   ac_status=$?
26412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413   (exit $ac_status); }; } &&
26414          { ac_try='test -s conftest$ac_exeext'
26415   { (case "(($ac_try" in
26416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26417   *) ac_try_echo=$ac_try;;
26418 esac
26419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26420   (eval "$ac_try") 2>&5
26421   ac_status=$?
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); }; }; then
26424
26425
26426 cat >>confdefs.h <<\_ACEOF
26427 #define GETHOSTBYADDRRSTYLE BSDSTYLE
26428 _ACEOF
26429
26430                 gethostbyaddrrstyle=BSD
26431
26432 else
26433   echo "$as_me: failed program was:" >&5
26434 sed 's/^/| /' conftest.$ac_ext >&5
26435
26436
26437 fi
26438
26439 rm -f core conftest.err conftest.$ac_objext \
26440       conftest$ac_exeext conftest.$ac_ext
26441 fi
26442
26443 if test "x$gethostbyaddrrstyle" = "x"; then
26444         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
26445 echo "${ECHO_T}none!  It must not exist, here." >&6; }
26446 else
26447         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
26448 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
26449 fi
26450
26451 if test "x$gethostbyaddrrstyle" = "xBSD"; then
26452         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
26453 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
26454 fi
26455
26456 gethostbynamerstyle=""
26457 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
26458 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
26459 cat >conftest.$ac_ext <<_ACEOF
26460 /* confdefs.h.  */
26461 _ACEOF
26462 cat confdefs.h >>conftest.$ac_ext
26463 cat >>conftest.$ac_ext <<_ACEOF
26464 /* end confdefs.h.  */
26465
26466 #include <stdio.h>
26467 #include <netdb.h>
26468
26469 int
26470 main ()
26471 {
26472  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
26473   ;
26474   return 0;
26475 }
26476 _ACEOF
26477 rm -f conftest.$ac_objext conftest$ac_exeext
26478 if { (ac_try="$ac_link"
26479 case "(($ac_try" in
26480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26481   *) ac_try_echo=$ac_try;;
26482 esac
26483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26484   (eval "$ac_link") 2>conftest.er1
26485   ac_status=$?
26486   grep -v '^ *+' conftest.er1 >conftest.err
26487   rm -f conftest.er1
26488   cat conftest.err >&5
26489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490   (exit $ac_status); } &&
26491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26492   { (case "(($ac_try" in
26493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26494   *) ac_try_echo=$ac_try;;
26495 esac
26496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26497   (eval "$ac_try") 2>&5
26498   ac_status=$?
26499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500   (exit $ac_status); }; } &&
26501          { ac_try='test -s conftest$ac_exeext'
26502   { (case "(($ac_try" in
26503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26504   *) ac_try_echo=$ac_try;;
26505 esac
26506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507   (eval "$ac_try") 2>&5
26508   ac_status=$?
26509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510   (exit $ac_status); }; }; then
26511
26512
26513 cat >>confdefs.h <<\_ACEOF
26514 #define GETHOSTBYNAMERSTYLE GNUSTYLE
26515 _ACEOF
26516
26517         gethostbynamerstyle=GNU
26518
26519 else
26520   echo "$as_me: failed program was:" >&5
26521 sed 's/^/| /' conftest.$ac_ext >&5
26522
26523
26524 fi
26525
26526 rm -f core conftest.err conftest.$ac_objext \
26527       conftest$ac_exeext conftest.$ac_ext
26528 if test "x$gethostbynamerstyle" = "x"; then
26529         cat >conftest.$ac_ext <<_ACEOF
26530 /* confdefs.h.  */
26531 _ACEOF
26532 cat confdefs.h >>conftest.$ac_ext
26533 cat >>conftest.$ac_ext <<_ACEOF
26534 /* end confdefs.h.  */
26535
26536 #include <stdio.h>
26537 #include <netdb.h>
26538
26539 int
26540 main ()
26541 {
26542  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
26543   ;
26544   return 0;
26545 }
26546 _ACEOF
26547 rm -f conftest.$ac_objext conftest$ac_exeext
26548 if { (ac_try="$ac_link"
26549 case "(($ac_try" in
26550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26551   *) ac_try_echo=$ac_try;;
26552 esac
26553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26554   (eval "$ac_link") 2>conftest.er1
26555   ac_status=$?
26556   grep -v '^ *+' conftest.er1 >conftest.err
26557   rm -f conftest.er1
26558   cat conftest.err >&5
26559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560   (exit $ac_status); } &&
26561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26562   { (case "(($ac_try" in
26563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26564   *) ac_try_echo=$ac_try;;
26565 esac
26566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26567   (eval "$ac_try") 2>&5
26568   ac_status=$?
26569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570   (exit $ac_status); }; } &&
26571          { ac_try='test -s conftest$ac_exeext'
26572   { (case "(($ac_try" in
26573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26574   *) ac_try_echo=$ac_try;;
26575 esac
26576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26577   (eval "$ac_try") 2>&5
26578   ac_status=$?
26579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580   (exit $ac_status); }; }; then
26581
26582
26583 cat >>confdefs.h <<\_ACEOF
26584 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
26585 _ACEOF
26586
26587                 gethostbynamerstyle=SYSV
26588
26589 else
26590   echo "$as_me: failed program was:" >&5
26591 sed 's/^/| /' conftest.$ac_ext >&5
26592
26593
26594 fi
26595
26596 rm -f core conftest.err conftest.$ac_objext \
26597       conftest$ac_exeext conftest.$ac_ext
26598 fi
26599 if test "x$gethostbynamerstyle" = "x"; then
26600         cat >conftest.$ac_ext <<_ACEOF
26601 /* confdefs.h.  */
26602 _ACEOF
26603 cat confdefs.h >>conftest.$ac_ext
26604 cat >>conftest.$ac_ext <<_ACEOF
26605 /* end confdefs.h.  */
26606
26607 #include <stdio.h>
26608 #include <netdb.h>
26609
26610 int
26611 main ()
26612 {
26613  gethostbyname(NULL)
26614   ;
26615   return 0;
26616 }
26617 _ACEOF
26618 rm -f conftest.$ac_objext conftest$ac_exeext
26619 if { (ac_try="$ac_link"
26620 case "(($ac_try" in
26621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26622   *) ac_try_echo=$ac_try;;
26623 esac
26624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26625   (eval "$ac_link") 2>conftest.er1
26626   ac_status=$?
26627   grep -v '^ *+' conftest.er1 >conftest.err
26628   rm -f conftest.er1
26629   cat conftest.err >&5
26630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631   (exit $ac_status); } &&
26632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26633   { (case "(($ac_try" in
26634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26635   *) ac_try_echo=$ac_try;;
26636 esac
26637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26638   (eval "$ac_try") 2>&5
26639   ac_status=$?
26640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641   (exit $ac_status); }; } &&
26642          { ac_try='test -s conftest$ac_exeext'
26643   { (case "(($ac_try" in
26644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645   *) ac_try_echo=$ac_try;;
26646 esac
26647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26648   (eval "$ac_try") 2>&5
26649   ac_status=$?
26650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651   (exit $ac_status); }; }; then
26652
26653
26654 cat >>confdefs.h <<\_ACEOF
26655 #define GETHOSTBYNAMERSTYLE BSDSTYLE
26656 _ACEOF
26657
26658                 gethostbynamerstyle=BSD
26659
26660 else
26661   echo "$as_me: failed program was:" >&5
26662 sed 's/^/| /' conftest.$ac_ext >&5
26663
26664
26665 fi
26666
26667 rm -f core conftest.err conftest.$ac_objext \
26668       conftest$ac_exeext conftest.$ac_ext
26669 fi
26670
26671 if test "x$gethostbynamerstyle" = "x"; then
26672         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
26673 echo "${ECHO_T}none!  It must not exist, here." >&6; }
26674 else
26675         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
26676 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
26677 fi
26678
26679 if test "x$gethostbynamerstyle" = "xBSD"; then
26680         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
26681 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
26682 fi
26683
26684
26685 cat >>confdefs.h <<\_ACEOF
26686 #define POSIXSTYLE 1
26687 _ACEOF
26688
26689
26690 cat >>confdefs.h <<\_ACEOF
26691 #define SOLARISSTYLE 2
26692 _ACEOF
26693
26694 ctimerstyle=""
26695 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
26696 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
26697 cat >conftest.$ac_ext <<_ACEOF
26698 /* confdefs.h.  */
26699 _ACEOF
26700 cat confdefs.h >>conftest.$ac_ext
26701 cat >>conftest.$ac_ext <<_ACEOF
26702 /* end confdefs.h.  */
26703
26704 #include <time.h>
26705
26706 int
26707 main ()
26708 {
26709  ctime_r(NULL, NULL, 0)
26710   ;
26711   return 0;
26712 }
26713 _ACEOF
26714 rm -f conftest.$ac_objext conftest$ac_exeext
26715 if { (ac_try="$ac_link"
26716 case "(($ac_try" in
26717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718   *) ac_try_echo=$ac_try;;
26719 esac
26720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26721   (eval "$ac_link") 2>conftest.er1
26722   ac_status=$?
26723   grep -v '^ *+' conftest.er1 >conftest.err
26724   rm -f conftest.er1
26725   cat conftest.err >&5
26726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727   (exit $ac_status); } &&
26728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26729   { (case "(($ac_try" in
26730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26731   *) ac_try_echo=$ac_try;;
26732 esac
26733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26734   (eval "$ac_try") 2>&5
26735   ac_status=$?
26736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737   (exit $ac_status); }; } &&
26738          { ac_try='test -s conftest$ac_exeext'
26739   { (case "(($ac_try" in
26740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26741   *) ac_try_echo=$ac_try;;
26742 esac
26743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26744   (eval "$ac_try") 2>&5
26745   ac_status=$?
26746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747   (exit $ac_status); }; }; then
26748
26749
26750 cat >>confdefs.h <<\_ACEOF
26751 #define CTIMERSTYLE SOLARISSTYLE
26752 _ACEOF
26753
26754         ctimerstyle="SOLARIS"
26755
26756 else
26757   echo "$as_me: failed program was:" >&5
26758 sed 's/^/| /' conftest.$ac_ext >&5
26759
26760
26761 fi
26762
26763 rm -f core conftest.err conftest.$ac_objext \
26764       conftest$ac_exeext conftest.$ac_ext
26765 if test "x$ctimerstyle" = "x"; then
26766         cat >conftest.$ac_ext <<_ACEOF
26767 /* confdefs.h.  */
26768 _ACEOF
26769 cat confdefs.h >>conftest.$ac_ext
26770 cat >>conftest.$ac_ext <<_ACEOF
26771 /* end confdefs.h.  */
26772
26773 #include <time.h>
26774
26775 int
26776 main ()
26777 {
26778  ctime_r(NULL, NULL)
26779   ;
26780   return 0;
26781 }
26782 _ACEOF
26783 rm -f conftest.$ac_objext conftest$ac_exeext
26784 if { (ac_try="$ac_link"
26785 case "(($ac_try" in
26786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787   *) ac_try_echo=$ac_try;;
26788 esac
26789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26790   (eval "$ac_link") 2>conftest.er1
26791   ac_status=$?
26792   grep -v '^ *+' conftest.er1 >conftest.err
26793   rm -f conftest.er1
26794   cat conftest.err >&5
26795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796   (exit $ac_status); } &&
26797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26798   { (case "(($ac_try" in
26799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26800   *) ac_try_echo=$ac_try;;
26801 esac
26802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26803   (eval "$ac_try") 2>&5
26804   ac_status=$?
26805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806   (exit $ac_status); }; } &&
26807          { ac_try='test -s conftest$ac_exeext'
26808   { (case "(($ac_try" in
26809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26810   *) ac_try_echo=$ac_try;;
26811 esac
26812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26813   (eval "$ac_try") 2>&5
26814   ac_status=$?
26815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816   (exit $ac_status); }; }; then
26817
26818
26819 cat >>confdefs.h <<\_ACEOF
26820 #define CTIMERSTYLE POSIXSTYLE
26821 _ACEOF
26822
26823                 ctimerstyle="POSIX"
26824
26825 else
26826   echo "$as_me: failed program was:" >&5
26827 sed 's/^/| /' conftest.$ac_ext >&5
26828
26829
26830 fi
26831
26832 rm -f core conftest.err conftest.$ac_objext \
26833       conftest$ac_exeext conftest.$ac_ext
26834 fi
26835
26836 if test "x$ctimerstyle" = "x"; then
26837         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
26838 echo "${ECHO_T}none!  It must not exist, here." >&6; }
26839 else
26840         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
26841 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
26842 fi
26843
26844 HOSTINFO=$host
26845
26846
26847
26848 top_builddir=`pwd`
26849 export top_builddir
26850 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
26851 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
26852
26853
26854
26855
26856
26857 mysubdirs="$LIBLTDLPATH"
26858 if test "x$EXPERIMENTAL" = "xyes"; then
26859   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
26860     mysubdirs=`echo $mysubdirs $bar`
26861 else
26862         for bar in `cat "${srcdir}"/src/modules/stable`; do
26863     if test -f "${srcdir}"/src/modules/$bar/configure; then
26864       mysubdirs="$mysubdirs src/modules/$bar"
26865     fi
26866   done
26867 fi
26868
26869 if test "x$EXPERIMENTAL" = "xyes"; then
26870   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
26871     MODULES="$MODULES $foo"
26872   done
26873 else
26874             for foo in `cat "${srcdir}"/src/modules/stable`; do
26875     MODULES="$MODULES $foo"
26876    done
26877 fi
26878
26879 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
26880
26881
26882
26883
26884 ac_config_commands="$ac_config_commands stamp-h"
26885
26886 ac_config_commands="$ac_config_commands build-radpaths-h"
26887
26888 ac_config_commands="$ac_config_commands main-chmod"
26889
26890 ac_config_commands="$ac_config_commands scripts-chmod"
26891
26892
26893
26894
26895
26896 USE_SHARED_LIBS=$enable_shared
26897
26898 USE_STATIC_LIBS=$enable_static
26899
26900
26901
26902
26903
26904
26905 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf ./raddb/vmpsd.conf ./raddb/radrelay.conf"
26906
26907 cat >confcache <<\_ACEOF
26908 # This file is a shell script that caches the results of configure
26909 # tests run on this system so they can be shared between configure
26910 # scripts and configure runs, see configure's option --config-cache.
26911 # It is not useful on other systems.  If it contains results you don't
26912 # want to keep, you may remove or edit it.
26913 #
26914 # config.status only pays attention to the cache file if you give it
26915 # the --recheck option to rerun configure.
26916 #
26917 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26918 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26919 # following values.
26920
26921 _ACEOF
26922
26923 # The following way of writing the cache mishandles newlines in values,
26924 # but we know of no workaround that is simple, portable, and efficient.
26925 # So, we kill variables containing newlines.
26926 # Ultrix sh set writes to stderr and can't be redirected directly,
26927 # and sets the high bit in the cache file unless we assign to the vars.
26928 (
26929   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26930     eval ac_val=\$$ac_var
26931     case $ac_val in #(
26932     *${as_nl}*)
26933       case $ac_var in #(
26934       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26935 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26936       esac
26937       case $ac_var in #(
26938       _ | IFS | as_nl) ;; #(
26939       *) $as_unset $ac_var ;;
26940       esac ;;
26941     esac
26942   done
26943
26944   (set) 2>&1 |
26945     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26946     *${as_nl}ac_space=\ *)
26947       # `set' does not quote correctly, so add quotes (double-quote
26948       # substitution turns \\\\ into \\, and sed turns \\ into \).
26949       sed -n \
26950         "s/'/'\\\\''/g;
26951           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26952       ;; #(
26953     *)
26954       # `set' quotes correctly as required by POSIX, so do not add quotes.
26955       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26956       ;;
26957     esac |
26958     sort
26959 ) |
26960   sed '
26961      /^ac_cv_env_/b end
26962      t clear
26963      :clear
26964      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26965      t end
26966      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26967      :end' >>confcache
26968 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26969   if test -w "$cache_file"; then
26970     test "x$cache_file" != "x/dev/null" &&
26971       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26972 echo "$as_me: updating cache $cache_file" >&6;}
26973     cat confcache >$cache_file
26974   else
26975     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26976 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26977   fi
26978 fi
26979 rm -f confcache
26980
26981 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26982 # Let make expand exec_prefix.
26983 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26984
26985 DEFS=-DHAVE_CONFIG_H
26986
26987 ac_libobjs=
26988 ac_ltlibobjs=
26989 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26990   # 1. Remove the extension, and $U if already installed.
26991   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26992   ac_i=`echo "$ac_i" | sed "$ac_script"`
26993   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26994   #    will be set to the directory where LIBOBJS objects are built.
26995   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26996   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26997 done
26998 LIBOBJS=$ac_libobjs
26999
27000 LTLIBOBJS=$ac_ltlibobjs
27001
27002
27003
27004 : ${CONFIG_STATUS=./config.status}
27005 ac_clean_files_save=$ac_clean_files
27006 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27007 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27008 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27009 cat >$CONFIG_STATUS <<_ACEOF
27010 #! $SHELL
27011 # Generated by $as_me.
27012 # Run this file to recreate the current configuration.
27013 # Compiler output produced by configure, useful for debugging
27014 # configure, is in config.log if it exists.
27015
27016 debug=false
27017 ac_cs_recheck=false
27018 ac_cs_silent=false
27019 SHELL=\${CONFIG_SHELL-$SHELL}
27020 _ACEOF
27021
27022 cat >>$CONFIG_STATUS <<\_ACEOF
27023 ## --------------------- ##
27024 ## M4sh Initialization.  ##
27025 ## --------------------- ##
27026
27027 # Be Bourne compatible
27028 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27029   emulate sh
27030   NULLCMD=:
27031   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27032   # is contrary to our usage.  Disable this feature.
27033   alias -g '${1+"$@"}'='"$@"'
27034   setopt NO_GLOB_SUBST
27035 else
27036   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27037 fi
27038 BIN_SH=xpg4; export BIN_SH # for Tru64
27039 DUALCASE=1; export DUALCASE # for MKS sh
27040
27041
27042 # PATH needs CR
27043 # Avoid depending upon Character Ranges.
27044 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27045 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27046 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27047 as_cr_digits='0123456789'
27048 as_cr_alnum=$as_cr_Letters$as_cr_digits
27049
27050 # The user is always right.
27051 if test "${PATH_SEPARATOR+set}" != set; then
27052   echo "#! /bin/sh" >conf$$.sh
27053   echo  "exit 0"   >>conf$$.sh
27054   chmod +x conf$$.sh
27055   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27056     PATH_SEPARATOR=';'
27057   else
27058     PATH_SEPARATOR=:
27059   fi
27060   rm -f conf$$.sh
27061 fi
27062
27063 # Support unset when possible.
27064 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27065   as_unset=unset
27066 else
27067   as_unset=false
27068 fi
27069
27070
27071 # IFS
27072 # We need space, tab and new line, in precisely that order.  Quoting is
27073 # there to prevent editors from complaining about space-tab.
27074 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27075 # splitting by setting IFS to empty value.)
27076 as_nl='
27077 '
27078 IFS=" ""        $as_nl"
27079
27080 # Find who we are.  Look in the path if we contain no directory separator.
27081 case $0 in
27082   *[\\/]* ) as_myself=$0 ;;
27083   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27084 for as_dir in $PATH
27085 do
27086   IFS=$as_save_IFS
27087   test -z "$as_dir" && as_dir=.
27088   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27089 done
27090 IFS=$as_save_IFS
27091
27092      ;;
27093 esac
27094 # We did not find ourselves, most probably we were run as `sh COMMAND'
27095 # in which case we are not to be found in the path.
27096 if test "x$as_myself" = x; then
27097   as_myself=$0
27098 fi
27099 if test ! -f "$as_myself"; then
27100   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27101   { (exit 1); exit 1; }
27102 fi
27103
27104 # Work around bugs in pre-3.0 UWIN ksh.
27105 for as_var in ENV MAIL MAILPATH
27106 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27107 done
27108 PS1='$ '
27109 PS2='> '
27110 PS4='+ '
27111
27112 # NLS nuisances.
27113 for as_var in \
27114   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27115   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27116   LC_TELEPHONE LC_TIME
27117 do
27118   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27119     eval $as_var=C; export $as_var
27120   else
27121     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27122   fi
27123 done
27124
27125 # Required to use basename.
27126 if expr a : '\(a\)' >/dev/null 2>&1 &&
27127    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27128   as_expr=expr
27129 else
27130   as_expr=false
27131 fi
27132
27133 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27134   as_basename=basename
27135 else
27136   as_basename=false
27137 fi
27138
27139
27140 # Name of the executable.
27141 as_me=`$as_basename -- "$0" ||
27142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27143          X"$0" : 'X\(//\)$' \| \
27144          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27145 echo X/"$0" |
27146     sed '/^.*\/\([^/][^/]*\)\/*$/{
27147             s//\1/
27148             q
27149           }
27150           /^X\/\(\/\/\)$/{
27151             s//\1/
27152             q
27153           }
27154           /^X\/\(\/\).*/{
27155             s//\1/
27156             q
27157           }
27158           s/.*/./; q'`
27159
27160 # CDPATH.
27161 $as_unset CDPATH
27162
27163
27164
27165   as_lineno_1=$LINENO
27166   as_lineno_2=$LINENO
27167   test "x$as_lineno_1" != "x$as_lineno_2" &&
27168   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27169
27170   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27171   # uniformly replaced by the line number.  The first 'sed' inserts a
27172   # line-number line after each line using $LINENO; the second 'sed'
27173   # does the real work.  The second script uses 'N' to pair each
27174   # line-number line with the line containing $LINENO, and appends
27175   # trailing '-' during substitution so that $LINENO is not a special
27176   # case at line end.
27177   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27178   # scripts with optimization help from Paolo Bonzini.  Blame Lee
27179   # E. McMahon (1931-1989) for sed's syntax.  :-)
27180   sed -n '
27181     p
27182     /[$]LINENO/=
27183   ' <$as_myself |
27184     sed '
27185       s/[$]LINENO.*/&-/
27186       t lineno
27187       b
27188       :lineno
27189       N
27190       :loop
27191       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27192       t loop
27193       s/-\n.*//
27194     ' >$as_me.lineno &&
27195   chmod +x "$as_me.lineno" ||
27196     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27197    { (exit 1); exit 1; }; }
27198
27199   # Don't try to exec as it changes $[0], causing all sort of problems
27200   # (the dirname of $[0] is not the place where we might find the
27201   # original and so on.  Autoconf is especially sensitive to this).
27202   . "./$as_me.lineno"
27203   # Exit status is that of the last command.
27204   exit
27205 }
27206
27207
27208 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27209   as_dirname=dirname
27210 else
27211   as_dirname=false
27212 fi
27213
27214 ECHO_C= ECHO_N= ECHO_T=
27215 case `echo -n x` in
27216 -n*)
27217   case `echo 'x\c'` in
27218   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27219   *)   ECHO_C='\c';;
27220   esac;;
27221 *)
27222   ECHO_N='-n';;
27223 esac
27224
27225 if expr a : '\(a\)' >/dev/null 2>&1 &&
27226    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27227   as_expr=expr
27228 else
27229   as_expr=false
27230 fi
27231
27232 rm -f conf$$ conf$$.exe conf$$.file
27233 if test -d conf$$.dir; then
27234   rm -f conf$$.dir/conf$$.file
27235 else
27236   rm -f conf$$.dir
27237   mkdir conf$$.dir
27238 fi
27239 echo >conf$$.file
27240 if ln -s conf$$.file conf$$ 2>/dev/null; then
27241   as_ln_s='ln -s'
27242   # ... but there are two gotchas:
27243   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27244   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27245   # In both cases, we have to default to `cp -p'.
27246   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27247     as_ln_s='cp -p'
27248 elif ln conf$$.file conf$$ 2>/dev/null; then
27249   as_ln_s=ln
27250 else
27251   as_ln_s='cp -p'
27252 fi
27253 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27254 rmdir conf$$.dir 2>/dev/null
27255
27256 if mkdir -p . 2>/dev/null; then
27257   as_mkdir_p=:
27258 else
27259   test -d ./-p && rmdir ./-p
27260   as_mkdir_p=false
27261 fi
27262
27263 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
27264 # systems may use methods other than mode bits to determine executability.
27265 cat >conf$$.file <<_ASEOF
27266 #! /bin/sh
27267 exit 0
27268 _ASEOF
27269 chmod +x conf$$.file
27270 if test -x conf$$.file >/dev/null 2>&1; then
27271   as_executable_p="test -x"
27272 else
27273   as_executable_p=:
27274 fi
27275 rm -f conf$$.file
27276
27277 # Sed expression to map a string onto a valid CPP name.
27278 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27279
27280 # Sed expression to map a string onto a valid variable name.
27281 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27282
27283
27284 exec 6>&1
27285
27286 # Save the log message, to keep $[0] and so on meaningful, and to
27287 # report actual input values of CONFIG_FILES etc. instead of their
27288 # values after options handling.
27289 ac_log="
27290 This file was extended by $as_me, which was
27291 generated by GNU Autoconf 2.60.  Invocation command line was
27292
27293   CONFIG_FILES    = $CONFIG_FILES
27294   CONFIG_HEADERS  = $CONFIG_HEADERS
27295   CONFIG_LINKS    = $CONFIG_LINKS
27296   CONFIG_COMMANDS = $CONFIG_COMMANDS
27297   $ $0 $@
27298
27299 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27300 "
27301
27302 _ACEOF
27303
27304 cat >>$CONFIG_STATUS <<_ACEOF
27305 # Files that config.status was made for.
27306 config_files="$ac_config_files"
27307 config_headers="$ac_config_headers"
27308 config_commands="$ac_config_commands"
27309
27310 _ACEOF
27311
27312 cat >>$CONFIG_STATUS <<\_ACEOF
27313 ac_cs_usage="\
27314 \`$as_me' instantiates files from templates according to the
27315 current configuration.
27316
27317 Usage: $0 [OPTIONS] [FILE]...
27318
27319   -h, --help       print this help, then exit
27320   -V, --version    print version number, then exit
27321   -q, --quiet      do not print progress messages
27322   -d, --debug      don't remove temporary files
27323       --recheck    update $as_me by reconfiguring in the same conditions
27324   --file=FILE[:TEMPLATE]
27325                    instantiate the configuration file FILE
27326   --header=FILE[:TEMPLATE]
27327                    instantiate the configuration header FILE
27328
27329 Configuration files:
27330 $config_files
27331
27332 Configuration headers:
27333 $config_headers
27334
27335 Configuration commands:
27336 $config_commands
27337
27338 Report bugs to <bug-autoconf@gnu.org>."
27339
27340 _ACEOF
27341 cat >>$CONFIG_STATUS <<_ACEOF
27342 ac_cs_version="\\
27343 config.status
27344 configured by $0, generated by GNU Autoconf 2.60,
27345   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27346
27347 Copyright (C) 2006 Free Software Foundation, Inc.
27348 This config.status script is free software; the Free Software Foundation
27349 gives unlimited permission to copy, distribute and modify it."
27350
27351 ac_pwd='$ac_pwd'
27352 srcdir='$srcdir'
27353 _ACEOF
27354
27355 cat >>$CONFIG_STATUS <<\_ACEOF
27356 # If no file are specified by the user, then we need to provide default
27357 # value.  By we need to know if files were specified by the user.
27358 ac_need_defaults=:
27359 while test $# != 0
27360 do
27361   case $1 in
27362   --*=*)
27363     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27364     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27365     ac_shift=:
27366     ;;
27367   *)
27368     ac_option=$1
27369     ac_optarg=$2
27370     ac_shift=shift
27371     ;;
27372   esac
27373
27374   case $ac_option in
27375   # Handling of the options.
27376   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27377     ac_cs_recheck=: ;;
27378   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27379     echo "$ac_cs_version"; exit ;;
27380   --debug | --debu | --deb | --de | --d | -d )
27381     debug=: ;;
27382   --file | --fil | --fi | --f )
27383     $ac_shift
27384     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27385     ac_need_defaults=false;;
27386   --header | --heade | --head | --hea )
27387     $ac_shift
27388     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27389     ac_need_defaults=false;;
27390   --he | --h)
27391     # Conflict between --help and --header
27392     { echo "$as_me: error: ambiguous option: $1
27393 Try \`$0 --help' for more information." >&2
27394    { (exit 1); exit 1; }; };;
27395   --help | --hel | -h )
27396     echo "$ac_cs_usage"; exit ;;
27397   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27398   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27399     ac_cs_silent=: ;;
27400
27401   # This is an error.
27402   -*) { echo "$as_me: error: unrecognized option: $1
27403 Try \`$0 --help' for more information." >&2
27404    { (exit 1); exit 1; }; } ;;
27405
27406   *) ac_config_targets="$ac_config_targets $1"
27407      ac_need_defaults=false ;;
27408
27409   esac
27410   shift
27411 done
27412
27413 ac_configure_extra_args=
27414
27415 if $ac_cs_silent; then
27416   exec 6>/dev/null
27417   ac_configure_extra_args="$ac_configure_extra_args --silent"
27418 fi
27419
27420 _ACEOF
27421 cat >>$CONFIG_STATUS <<_ACEOF
27422 if \$ac_cs_recheck; then
27423   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27424   CONFIG_SHELL=$SHELL
27425   export CONFIG_SHELL
27426   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27427 fi
27428
27429 _ACEOF
27430 cat >>$CONFIG_STATUS <<\_ACEOF
27431 exec 5>>config.log
27432 {
27433   echo
27434   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27435 ## Running $as_me. ##
27436 _ASBOX
27437   echo "$ac_log"
27438 } >&5
27439
27440 _ACEOF
27441 cat >>$CONFIG_STATUS <<_ACEOF
27442 _ACEOF
27443
27444 cat >>$CONFIG_STATUS <<\_ACEOF
27445
27446 # Handling of arguments.
27447 for ac_config_target in $ac_config_targets
27448 do
27449   case $ac_config_target in
27450     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
27451     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
27452     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
27453     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
27454     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
27455     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
27456     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
27457     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
27458     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
27459     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
27460     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
27461     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
27462     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
27463     "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
27464     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
27465     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
27466     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
27467     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
27468     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
27469     "./raddb/vmpsd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/vmpsd.conf" ;;
27470     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
27471
27472   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27473 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27474    { (exit 1); exit 1; }; };;
27475   esac
27476 done
27477
27478
27479 # If the user did not use the arguments to specify the items to instantiate,
27480 # then the envvar interface is used.  Set only those that are not.
27481 # We use the long form for the default assignment because of an extremely
27482 # bizarre bug on SunOS 4.1.3.
27483 if $ac_need_defaults; then
27484   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27485   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27486   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27487 fi
27488
27489 # Have a temporary directory for convenience.  Make it in the build tree
27490 # simply because there is no reason against having it here, and in addition,
27491 # creating and moving files from /tmp can sometimes cause problems.
27492 # Hook for its removal unless debugging.
27493 # Note that there is a small window in which the directory will not be cleaned:
27494 # after its creation but before its name has been assigned to `$tmp'.
27495 $debug ||
27496 {
27497   tmp=
27498   trap 'exit_status=$?
27499   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27500 ' 0
27501   trap '{ (exit 1); exit 1; }' 1 2 13 15
27502 }
27503 # Create a (secure) tmp directory for tmp files.
27504
27505 {
27506   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27507   test -n "$tmp" && test -d "$tmp"
27508 }  ||
27509 {
27510   tmp=./conf$$-$RANDOM
27511   (umask 077 && mkdir "$tmp")
27512 } ||
27513 {
27514    echo "$me: cannot create a temporary directory in ." >&2
27515    { (exit 1); exit 1; }
27516 }
27517
27518 #
27519 # Set up the sed scripts for CONFIG_FILES section.
27520 #
27521
27522 # No need to generate the scripts if there are no CONFIG_FILES.
27523 # This happens for instance when ./config.status config.h
27524 if test -n "$CONFIG_FILES"; then
27525
27526 _ACEOF
27527
27528
27529
27530 ac_delim='%!_!# '
27531 for ac_last_try in false false false false false :; do
27532   cat >conf$$subs.sed <<_ACEOF
27533 SHELL!$SHELL$ac_delim
27534 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27535 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27536 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27537 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27538 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27539 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27540 exec_prefix!$exec_prefix$ac_delim
27541 prefix!$prefix$ac_delim
27542 program_transform_name!$program_transform_name$ac_delim
27543 bindir!$bindir$ac_delim
27544 sbindir!$sbindir$ac_delim
27545 libexecdir!$libexecdir$ac_delim
27546 datarootdir!$datarootdir$ac_delim
27547 datadir!$datadir$ac_delim
27548 sysconfdir!$sysconfdir$ac_delim
27549 sharedstatedir!$sharedstatedir$ac_delim
27550 localstatedir!$localstatedir$ac_delim
27551 includedir!$includedir$ac_delim
27552 oldincludedir!$oldincludedir$ac_delim
27553 docdir!$docdir$ac_delim
27554 infodir!$infodir$ac_delim
27555 htmldir!$htmldir$ac_delim
27556 dvidir!$dvidir$ac_delim
27557 pdfdir!$pdfdir$ac_delim
27558 psdir!$psdir$ac_delim
27559 libdir!$libdir$ac_delim
27560 localedir!$localedir$ac_delim
27561 mandir!$mandir$ac_delim
27562 DEFS!$DEFS$ac_delim
27563 ECHO_C!$ECHO_C$ac_delim
27564 ECHO_N!$ECHO_N$ac_delim
27565 ECHO_T!$ECHO_T$ac_delim
27566 LIBS!$LIBS$ac_delim
27567 build_alias!$build_alias$ac_delim
27568 host_alias!$host_alias$ac_delim
27569 target_alias!$target_alias$ac_delim
27570 CC!$CC$ac_delim
27571 CFLAGS!$CFLAGS$ac_delim
27572 LDFLAGS!$LDFLAGS$ac_delim
27573 CPPFLAGS!$CPPFLAGS$ac_delim
27574 ac_ct_CC!$ac_ct_CC$ac_delim
27575 EXEEXT!$EXEEXT$ac_delim
27576 OBJEXT!$OBJEXT$ac_delim
27577 CXX!$CXX$ac_delim
27578 CXXFLAGS!$CXXFLAGS$ac_delim
27579 ac_ct_CXX!$ac_ct_CXX$ac_delim
27580 CPP!$CPP$ac_delim
27581 GREP!$GREP$ac_delim
27582 EGREP!$EGREP$ac_delim
27583 RANLIB!$RANLIB$ac_delim
27584 GMAKE!$GMAKE$ac_delim
27585 MAKE!$MAKE$ac_delim
27586 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
27587 LIBTOOL!$LIBTOOL$ac_delim
27588 build!$build$ac_delim
27589 build_cpu!$build_cpu$ac_delim
27590 build_vendor!$build_vendor$ac_delim
27591 build_os!$build_os$ac_delim
27592 host!$host$ac_delim
27593 host_cpu!$host_cpu$ac_delim
27594 host_vendor!$host_vendor$ac_delim
27595 host_os!$host_os$ac_delim
27596 LN_S!$LN_S$ac_delim
27597 ECHO!$ECHO$ac_delim
27598 AR!$AR$ac_delim
27599 STRIP!$STRIP$ac_delim
27600 CXXCPP!$CXXCPP$ac_delim
27601 F77!$F77$ac_delim
27602 FFLAGS!$FFLAGS$ac_delim
27603 ac_ct_F77!$ac_ct_F77$ac_delim
27604 logdir!$logdir$ac_delim
27605 radacctdir!$radacctdir$ac_delim
27606 raddbdir!$raddbdir$ac_delim
27607 PERL!$PERL$ac_delim
27608 SNMPGET!$SNMPGET$ac_delim
27609 SNMPWALK!$SNMPWALK$ac_delim
27610 RUSERS!$RUSERS$ac_delim
27611 ACLOCAL!$ACLOCAL$ac_delim
27612 AUTOCONF!$AUTOCONF$ac_delim
27613 AUTOHEADER!$AUTOHEADER$ac_delim
27614 LOCATE!$LOCATE$ac_delim
27615 DIRNAME!$DIRNAME$ac_delim
27616 REGEX!$REGEX$ac_delim
27617 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
27618 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
27619 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
27620 PCAP_LIBS!$PCAP_LIBS$ac_delim
27621 LIBPREFIX!$LIBPREFIX$ac_delim
27622 CRYPTLIB!$CRYPTLIB$ac_delim
27623 SNMP_LIBS!$SNMP_LIBS$ac_delim
27624 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
27625 HOSTINFO!$HOSTINFO$ac_delim
27626 LIBLTDL!$LIBLTDL$ac_delim
27627 INCLTDL!$INCLTDL$ac_delim
27628 subdirs!$subdirs$ac_delim
27629 MODULES!$MODULES$ac_delim
27630 _ACEOF
27631
27632   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27633     break
27634   elif $ac_last_try; then
27635     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27636 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27637    { (exit 1); exit 1; }; }
27638   else
27639     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27640   fi
27641 done
27642
27643 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27644 if test -n "$ac_eof"; then
27645   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27646   ac_eof=`expr $ac_eof + 1`
27647 fi
27648
27649 cat >>$CONFIG_STATUS <<_ACEOF
27650 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27651 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27652 _ACEOF
27653 sed '
27654 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27655 s/^/s,@/; s/!/@,|#_!!_#|/
27656 :n
27657 t n
27658 s/'"$ac_delim"'$/,g/; t
27659 s/$/\\/; p
27660 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27661 ' >>$CONFIG_STATUS <conf$$subs.sed
27662 rm -f conf$$subs.sed
27663 cat >>$CONFIG_STATUS <<_ACEOF
27664 CEOF$ac_eof
27665 _ACEOF
27666
27667
27668 ac_delim='%!_!# '
27669 for ac_last_try in false false false false false :; do
27670   cat >conf$$subs.sed <<_ACEOF
27671 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
27672 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
27673 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
27674 STATIC_MODULES!$STATIC_MODULES$ac_delim
27675 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
27676 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
27677 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
27678 LIBOBJS!$LIBOBJS$ac_delim
27679 LTLIBOBJS!$LTLIBOBJS$ac_delim
27680 _ACEOF
27681
27682   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
27683     break
27684   elif $ac_last_try; then
27685     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27686 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27687    { (exit 1); exit 1; }; }
27688   else
27689     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27690   fi
27691 done
27692
27693 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27694 if test -n "$ac_eof"; then
27695   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27696   ac_eof=`expr $ac_eof + 1`
27697 fi
27698
27699 cat >>$CONFIG_STATUS <<_ACEOF
27700 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27701 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27702 _ACEOF
27703 sed '
27704 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27705 s/^/s,@/; s/!/@,|#_!!_#|/
27706 :n
27707 t n
27708 s/'"$ac_delim"'$/,g/; t
27709 s/$/\\/; p
27710 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27711 ' >>$CONFIG_STATUS <conf$$subs.sed
27712 rm -f conf$$subs.sed
27713 cat >>$CONFIG_STATUS <<_ACEOF
27714 :end
27715 s/|#_!!_#|//g
27716 CEOF$ac_eof
27717 _ACEOF
27718
27719
27720 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27721 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27722 # trailing colons and then remove the whole line if VPATH becomes empty
27723 # (actually we leave an empty line to preserve line numbers).
27724 if test "x$srcdir" = x.; then
27725   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27726 s/:*\$(srcdir):*/:/
27727 s/:*\${srcdir}:*/:/
27728 s/:*@srcdir@:*/:/
27729 s/^\([^=]*=[     ]*\):*/\1/
27730 s/:*$//
27731 s/^[^=]*=[       ]*$//
27732 }'
27733 fi
27734
27735 cat >>$CONFIG_STATUS <<\_ACEOF
27736 fi # test -n "$CONFIG_FILES"
27737
27738
27739 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27740 do
27741   case $ac_tag in
27742   :[FHLC]) ac_mode=$ac_tag; continue;;
27743   esac
27744   case $ac_mode$ac_tag in
27745   :[FHL]*:*);;
27746   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27747 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27748    { (exit 1); exit 1; }; };;
27749   :[FH]-) ac_tag=-:-;;
27750   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27751   esac
27752   ac_save_IFS=$IFS
27753   IFS=:
27754   set x $ac_tag
27755   IFS=$ac_save_IFS
27756   shift
27757   ac_file=$1
27758   shift
27759
27760   case $ac_mode in
27761   :L) ac_source=$1;;
27762   :[FH])
27763     ac_file_inputs=
27764     for ac_f
27765     do
27766       case $ac_f in
27767       -) ac_f="$tmp/stdin";;
27768       *) # Look for the file first in the build tree, then in the source tree
27769          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27770          # because $ac_f cannot contain `:'.
27771          test -f "$ac_f" ||
27772            case $ac_f in
27773            [\\/$]*) false;;
27774            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27775            esac ||
27776            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27777 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27778    { (exit 1); exit 1; }; };;
27779       esac
27780       ac_file_inputs="$ac_file_inputs $ac_f"
27781     done
27782
27783     # Let's still pretend it is `configure' which instantiates (i.e., don't
27784     # use $as_me), people would be surprised to read:
27785     #    /* config.h.  Generated by config.status.  */
27786     configure_input="Generated from "`IFS=:
27787           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27788     if test x"$ac_file" != x-; then
27789       configure_input="$ac_file.  $configure_input"
27790       { echo "$as_me:$LINENO: creating $ac_file" >&5
27791 echo "$as_me: creating $ac_file" >&6;}
27792     fi
27793
27794     case $ac_tag in
27795     *:-:* | *:-) cat >"$tmp/stdin";;
27796     esac
27797     ;;
27798   esac
27799
27800   ac_dir=`$as_dirname -- "$ac_file" ||
27801 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27802          X"$ac_file" : 'X\(//\)[^/]' \| \
27803          X"$ac_file" : 'X\(//\)$' \| \
27804          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27805 echo X"$ac_file" |
27806     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27807             s//\1/
27808             q
27809           }
27810           /^X\(\/\/\)[^/].*/{
27811             s//\1/
27812             q
27813           }
27814           /^X\(\/\/\)$/{
27815             s//\1/
27816             q
27817           }
27818           /^X\(\/\).*/{
27819             s//\1/
27820             q
27821           }
27822           s/.*/./; q'`
27823   { as_dir="$ac_dir"
27824   case $as_dir in #(
27825   -*) as_dir=./$as_dir;;
27826   esac
27827   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27828     as_dirs=
27829     while :; do
27830       case $as_dir in #(
27831       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27832       *) as_qdir=$as_dir;;
27833       esac
27834       as_dirs="'$as_qdir' $as_dirs"
27835       as_dir=`$as_dirname -- "$as_dir" ||
27836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27837          X"$as_dir" : 'X\(//\)[^/]' \| \
27838          X"$as_dir" : 'X\(//\)$' \| \
27839          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27840 echo X"$as_dir" |
27841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27842             s//\1/
27843             q
27844           }
27845           /^X\(\/\/\)[^/].*/{
27846             s//\1/
27847             q
27848           }
27849           /^X\(\/\/\)$/{
27850             s//\1/
27851             q
27852           }
27853           /^X\(\/\).*/{
27854             s//\1/
27855             q
27856           }
27857           s/.*/./; q'`
27858       test -d "$as_dir" && break
27859     done
27860     test -z "$as_dirs" || eval "mkdir $as_dirs"
27861   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27862 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27863    { (exit 1); exit 1; }; }; }
27864   ac_builddir=.
27865
27866 case "$ac_dir" in
27867 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27868 *)
27869   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27870   # A ".." for each directory in $ac_dir_suffix.
27871   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27872   case $ac_top_builddir_sub in
27873   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27874   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27875   esac ;;
27876 esac
27877 ac_abs_top_builddir=$ac_pwd
27878 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27879 # for backward compatibility:
27880 ac_top_builddir=$ac_top_build_prefix
27881
27882 case $srcdir in
27883   .)  # We are building in place.
27884     ac_srcdir=.
27885     ac_top_srcdir=$ac_top_builddir_sub
27886     ac_abs_top_srcdir=$ac_pwd ;;
27887   [\\/]* | ?:[\\/]* )  # Absolute name.
27888     ac_srcdir=$srcdir$ac_dir_suffix;
27889     ac_top_srcdir=$srcdir
27890     ac_abs_top_srcdir=$srcdir ;;
27891   *) # Relative name.
27892     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27893     ac_top_srcdir=$ac_top_build_prefix$srcdir
27894     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27895 esac
27896 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27897
27898
27899   case $ac_mode in
27900   :F)
27901   #
27902   # CONFIG_FILE
27903   #
27904
27905 _ACEOF
27906
27907 cat >>$CONFIG_STATUS <<\_ACEOF
27908 # If the template does not know about datarootdir, expand it.
27909 # FIXME: This hack should be removed a few years after 2.60.
27910 ac_datarootdir_hack=; ac_datarootdir_seen=
27911
27912 case `sed -n '/datarootdir/ {
27913   p
27914   q
27915 }
27916 /@datadir@/p
27917 /@docdir@/p
27918 /@infodir@/p
27919 /@localedir@/p
27920 /@mandir@/p
27921 ' $ac_file_inputs` in
27922 *datarootdir*) ac_datarootdir_seen=yes;;
27923 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27924   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27925 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27926 _ACEOF
27927 cat >>$CONFIG_STATUS <<_ACEOF
27928   ac_datarootdir_hack='
27929   s&@datadir@&$datadir&g
27930   s&@docdir@&$docdir&g
27931   s&@infodir@&$infodir&g
27932   s&@localedir@&$localedir&g
27933   s&@mandir@&$mandir&g
27934     s&\\\${datarootdir}&$datarootdir&g' ;;
27935 esac
27936 _ACEOF
27937
27938 # Neutralize VPATH when `$srcdir' = `.'.
27939 # Shell code in configure.ac might set extrasub.
27940 # FIXME: do we really want to maintain this feature?
27941 cat >>$CONFIG_STATUS <<_ACEOF
27942   sed "$ac_vpsub
27943 $extrasub
27944 _ACEOF
27945 cat >>$CONFIG_STATUS <<\_ACEOF
27946 :t
27947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27948 s&@configure_input@&$configure_input&;t t
27949 s&@top_builddir@&$ac_top_builddir_sub&;t t
27950 s&@srcdir@&$ac_srcdir&;t t
27951 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27952 s&@top_srcdir@&$ac_top_srcdir&;t t
27953 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27954 s&@builddir@&$ac_builddir&;t t
27955 s&@abs_builddir@&$ac_abs_builddir&;t t
27956 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27957 $ac_datarootdir_hack
27958 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27959
27960 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27961   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27962   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27963   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27964 which seems to be undefined.  Please make sure it is defined." >&5
27965 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27966 which seems to be undefined.  Please make sure it is defined." >&2;}
27967
27968   rm -f "$tmp/stdin"
27969   case $ac_file in
27970   -) cat "$tmp/out"; rm -f "$tmp/out";;
27971   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27972   esac
27973  ;;
27974   :H)
27975   #
27976   # CONFIG_HEADER
27977   #
27978 _ACEOF
27979
27980 # Transform confdefs.h into a sed script `conftest.defines', that
27981 # substitutes the proper values into config.h.in to produce config.h.
27982 rm -f conftest.defines conftest.tail
27983 # First, append a space to every undef/define line, to ease matching.
27984 echo 's/$/ /' >conftest.defines
27985 # Then, protect against being on the right side of a sed subst, or in
27986 # an unquoted here document, in config.status.  If some macros were
27987 # called several times there might be several #defines for the same
27988 # symbol, which is useless.  But do not sort them, since the last
27989 # AC_DEFINE must be honored.
27990 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27991 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27992 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27993 # PARAMS is the parameter list in the macro definition--in most cases, it's
27994 # just an empty string.
27995 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27996 ac_dB='\\)[      (].*,\\1define\\2'
27997 ac_dC=' '
27998 ac_dD=' ,'
27999
28000 uniq confdefs.h |
28001   sed -n '
28002         t rset
28003         :rset
28004         s/^[     ]*#[    ]*define[       ][      ]*//
28005         t ok
28006         d
28007         :ok
28008         s/[\\&,]/\\&/g
28009         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28010         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28011   ' >>conftest.defines
28012
28013 # Remove the space that was appended to ease matching.
28014 # Then replace #undef with comments.  This is necessary, for
28015 # example, in the case of _POSIX_SOURCE, which is predefined and required
28016 # on some systems where configure will not decide to define it.
28017 # (The regexp can be short, since the line contains either #define or #undef.)
28018 echo 's/ $//
28019 s,^[     #]*u.*,/* & */,' >>conftest.defines
28020
28021 # Break up conftest.defines:
28022 ac_max_sed_lines=50
28023
28024 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28025 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28026 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28027 # et cetera.
28028 ac_in='$ac_file_inputs'
28029 ac_out='"$tmp/out1"'
28030 ac_nxt='"$tmp/out2"'
28031
28032 while :
28033 do
28034   # Write a here document:
28035     cat >>$CONFIG_STATUS <<_ACEOF
28036     # First, check the format of the line:
28037     cat >"\$tmp/defines.sed" <<\\CEOF
28038 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
28039 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
28040 b
28041 :def
28042 _ACEOF
28043   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28044   echo 'CEOF
28045     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28046   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28047   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28048   grep . conftest.tail >/dev/null || break
28049   rm -f conftest.defines
28050   mv conftest.tail conftest.defines
28051 done
28052 rm -f conftest.defines conftest.tail
28053
28054 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28055 cat >>$CONFIG_STATUS <<\_ACEOF
28056   if test x"$ac_file" != x-; then
28057     echo "/* $configure_input  */" >"$tmp/config.h"
28058     cat "$ac_result" >>"$tmp/config.h"
28059     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28060       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28061 echo "$as_me: $ac_file is unchanged" >&6;}
28062     else
28063       rm -f $ac_file
28064       mv "$tmp/config.h" $ac_file
28065     fi
28066   else
28067     echo "/* $configure_input  */"
28068     cat "$ac_result"
28069   fi
28070   rm -f "$tmp/out12"
28071  ;;
28072
28073   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28074 echo "$as_me: executing $ac_file commands" >&6;}
28075  ;;
28076   esac
28077
28078
28079   case $ac_file$ac_mode in
28080     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
28081     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
28082     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
28083     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
28084
28085   esac
28086 done # for ac_tag
28087
28088
28089 { (exit 0); exit 0; }
28090 _ACEOF
28091 chmod +x $CONFIG_STATUS
28092 ac_clean_files=$ac_clean_files_save
28093
28094
28095 # configure is writing to config.log, and then calls config.status.
28096 # config.status does its own redirection, appending to config.log.
28097 # Unfortunately, on DOS this fails, as config.log is still kept open
28098 # by configure, so config.status won't be able to write to it; its
28099 # output is simply discarded.  So we exec the FD to /dev/null,
28100 # effectively closing config.log, so it can be properly (re)opened and
28101 # appended to by config.status.  When coming back to configure, we
28102 # need to make the FD available again.
28103 if test "$no_create" != yes; then
28104   ac_cs_success=:
28105   ac_config_status_args=
28106   test "$silent" = yes &&
28107     ac_config_status_args="$ac_config_status_args --quiet"
28108   exec 5>/dev/null
28109   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28110   exec 5>>config.log
28111   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28112   # would make configure fail if this is the last instruction.
28113   $ac_cs_success || { (exit 1); exit 1; }
28114 fi
28115
28116 #
28117 # CONFIG_SUBDIRS section.
28118 #
28119 if test "$no_recursion" != yes; then
28120
28121   # Remove --cache-file and --srcdir arguments so they do not pile up.
28122   ac_sub_configure_args=
28123   ac_prev=
28124   eval "set x $ac_configure_args"
28125   shift
28126   for ac_arg
28127   do
28128     if test -n "$ac_prev"; then
28129       ac_prev=
28130       continue
28131     fi
28132     case $ac_arg in
28133     -cache-file | --cache-file | --cache-fil | --cache-fi \
28134     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28135       ac_prev=cache_file ;;
28136     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28137     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28138     | --c=*)
28139       ;;
28140     --config-cache | -C)
28141       ;;
28142     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28143       ac_prev=srcdir ;;
28144     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28145       ;;
28146     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28147       ac_prev=prefix ;;
28148     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28149       ;;
28150     *)
28151       case $ac_arg in
28152       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28153       esac
28154       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
28155     esac
28156   done
28157
28158   # Always prepend --prefix to ensure using the same prefix
28159   # in subdir configurations.
28160   ac_arg="--prefix=$prefix"
28161   case $ac_arg in
28162   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28163   esac
28164   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
28165
28166   ac_popdir=`pwd`
28167   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28168
28169     # Do not complain, so a configure script can configure whichever
28170     # parts of a large source tree are present.
28171     test -d "$srcdir/$ac_dir" || continue
28172
28173     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28174     echo "$as_me:$LINENO: $ac_msg" >&5
28175     echo "$ac_msg" >&6
28176     { as_dir="$ac_dir"
28177   case $as_dir in #(
28178   -*) as_dir=./$as_dir;;
28179   esac
28180   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28181     as_dirs=
28182     while :; do
28183       case $as_dir in #(
28184       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28185       *) as_qdir=$as_dir;;
28186       esac
28187       as_dirs="'$as_qdir' $as_dirs"
28188       as_dir=`$as_dirname -- "$as_dir" ||
28189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28190          X"$as_dir" : 'X\(//\)[^/]' \| \
28191          X"$as_dir" : 'X\(//\)$' \| \
28192          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28193 echo X"$as_dir" |
28194     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28195             s//\1/
28196             q
28197           }
28198           /^X\(\/\/\)[^/].*/{
28199             s//\1/
28200             q
28201           }
28202           /^X\(\/\/\)$/{
28203             s//\1/
28204             q
28205           }
28206           /^X\(\/\).*/{
28207             s//\1/
28208             q
28209           }
28210           s/.*/./; q'`
28211       test -d "$as_dir" && break
28212     done
28213     test -z "$as_dirs" || eval "mkdir $as_dirs"
28214   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28215 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28216    { (exit 1); exit 1; }; }; }
28217     ac_builddir=.
28218
28219 case "$ac_dir" in
28220 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28221 *)
28222   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28223   # A ".." for each directory in $ac_dir_suffix.
28224   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28225   case $ac_top_builddir_sub in
28226   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28227   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28228   esac ;;
28229 esac
28230 ac_abs_top_builddir=$ac_pwd
28231 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28232 # for backward compatibility:
28233 ac_top_builddir=$ac_top_build_prefix
28234
28235 case $srcdir in
28236   .)  # We are building in place.
28237     ac_srcdir=.
28238     ac_top_srcdir=$ac_top_builddir_sub
28239     ac_abs_top_srcdir=$ac_pwd ;;
28240   [\\/]* | ?:[\\/]* )  # Absolute name.
28241     ac_srcdir=$srcdir$ac_dir_suffix;
28242     ac_top_srcdir=$srcdir
28243     ac_abs_top_srcdir=$srcdir ;;
28244   *) # Relative name.
28245     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28246     ac_top_srcdir=$ac_top_build_prefix$srcdir
28247     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28248 esac
28249 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28250
28251
28252     cd "$ac_dir"
28253
28254     # Check for guested configure; otherwise get Cygnus style configure.
28255     if test -f "$ac_srcdir/configure.gnu"; then
28256       ac_sub_configure=$ac_srcdir/configure.gnu
28257     elif test -f "$ac_srcdir/configure"; then
28258       ac_sub_configure=$ac_srcdir/configure
28259     elif test -f "$ac_srcdir/configure.in"; then
28260       # This should be Cygnus configure.
28261       ac_sub_configure=$ac_aux_dir/configure
28262     else
28263       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28264 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28265       ac_sub_configure=
28266     fi
28267
28268     # The recursion is here.
28269     if test -n "$ac_sub_configure"; then
28270       # Make the cache file name correct relative to the subdirectory.
28271       case $cache_file in
28272       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28273       *) # Relative name.
28274         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28275       esac
28276
28277       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28278 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28279       # The eval makes quoting arguments work.
28280       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28281            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28282         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28283 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28284    { (exit 1); exit 1; }; }
28285     fi
28286
28287     cd "$ac_popdir"
28288   done
28289 fi
28290