import from HEAD:
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.198.2.15.2.14 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60a.
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 #ifdef HAVE_SYS_TYPES_H
724 # include <sys/types.h>
725 #endif
726 #ifdef HAVE_SYS_STAT_H
727 # include <sys/stat.h>
728 #endif
729 #ifdef STDC_HEADERS
730 # include <stdlib.h>
731 # include <stddef.h>
732 #else
733 # ifdef HAVE_STDLIB_H
734 #  include <stdlib.h>
735 # endif
736 #endif
737 #ifdef HAVE_STRING_H
738 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
739 #  include <memory.h>
740 # endif
741 # include <string.h>
742 #endif
743 #ifdef HAVE_STRINGS_H
744 # include <strings.h>
745 #endif
746 #ifdef HAVE_INTTYPES_H
747 # include <inttypes.h>
748 #endif
749 #ifdef HAVE_STDINT_H
750 # include <stdint.h>
751 #endif
752 #ifdef 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 CPP
801 GREP
802 EGREP
803 RANLIB
804 abs_top_builddir
805 GMAKE
806 MAKE
807 LTDL_SUBDIRS
808 LIBTOOL
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 LN_S
818 ECHO
819 AR
820 STRIP
821 CXX
822 CXXFLAGS
823 ac_ct_CXX
824 CXXCPP
825 F77
826 FFLAGS
827 ac_ct_F77
828 logdir
829 radacctdir
830 raddbdir
831 PERL
832 SNMPGET
833 SNMPWALK
834 RUSERS
835 ACLOCAL
836 AUTOCONF
837 AUTOHEADER
838 LOCATE
839 DIRNAME
840 REGEX
841 REGEX_EXTENDED
842 OPENSSL_INCLUDE
843 OPENSSL_LIBS
844 LIBPREFIX
845 CRYPTLIB
846 SNMP_LIBS
847 SNMP_INCLUDE
848 GETCONF
849 LFS_CFLAGS
850 LFS_LDFLAGS
851 LFS_LIBS
852 HOSTINFO
853 LIBLTDL
854 INCLTDL
855 subdirs
856 MODULES
857 INSTALLSTRIP
858 USE_SHARED_LIBS
859 USE_STATIC_LIBS
860 STATIC_MODULES
861 RADIUSD_MAJOR_VERSION
862 RADIUSD_MINOR_VERSION
863 RADIUSD_VERSION
864 LIBOBJS
865 LTLIBOBJS'
866 ac_subst_files=''
867       ac_precious_vars='build_alias
868 host_alias
869 target_alias
870 CC
871 CFLAGS
872 LDFLAGS
873 CPPFLAGS
874 CPP
875 CXX
876 CXXFLAGS
877 CCC
878 CXXCPP
879 F77
880 FFLAGS'
881 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
882
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
928
929 ac_prev=
930 ac_dashdash=
931 for ac_option
932 do
933   # If the previous option needs an argument, assign it.
934   if test -n "$ac_prev"; then
935     eval $ac_prev=\$ac_option
936     ac_prev=
937     continue
938   fi
939
940   case $ac_option in
941   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942   *)    ac_optarg=yes ;;
943   esac
944
945   # Accept the important Cygnus configure options, so we can diagnose typos.
946
947   case $ac_dashdash$ac_option in
948   --)
949     ac_dashdash=yes ;;
950
951   -bindir | --bindir | --bindi | --bind | --bin | --bi)
952     ac_prev=bindir ;;
953   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954     bindir=$ac_optarg ;;
955
956   -build | --build | --buil | --bui | --bu)
957     ac_prev=build_alias ;;
958   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959     build_alias=$ac_optarg ;;
960
961   -cache-file | --cache-file | --cache-fil | --cache-fi \
962   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963     ac_prev=cache_file ;;
964   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966     cache_file=$ac_optarg ;;
967
968   --config-cache | -C)
969     cache_file=config.cache ;;
970
971   -datadir | --datadir | --datadi | --datad)
972     ac_prev=datadir ;;
973   -datadir=* | --datadir=* | --datadi=* | --datad=*)
974     datadir=$ac_optarg ;;
975
976   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977   | --dataroo | --dataro | --datar)
978     ac_prev=datarootdir ;;
979   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981     datarootdir=$ac_optarg ;;
982
983   -disable-* | --disable-*)
984     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985     # Reject names that are not valid shell variable names.
986     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
987       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
988    { (exit 1); exit 1; }; }
989     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
990     eval enable_$ac_feature=no ;;
991
992   -docdir | --docdir | --docdi | --doc | --do)
993     ac_prev=docdir ;;
994   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995     docdir=$ac_optarg ;;
996
997   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998     ac_prev=dvidir ;;
999   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000     dvidir=$ac_optarg ;;
1001
1002   -enable-* | --enable-*)
1003     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004     # Reject names that are not valid shell variable names.
1005     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1006       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007    { (exit 1); exit 1; }; }
1008     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1009     eval enable_$ac_feature=\$ac_optarg ;;
1010
1011   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013   | --exec | --exe | --ex)
1014     ac_prev=exec_prefix ;;
1015   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017   | --exec=* | --exe=* | --ex=*)
1018     exec_prefix=$ac_optarg ;;
1019
1020   -gas | --gas | --ga | --g)
1021     # Obsolete; use --with-gas.
1022     with_gas=yes ;;
1023
1024   -help | --help | --hel | --he | -h)
1025     ac_init_help=long ;;
1026   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027     ac_init_help=recursive ;;
1028   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029     ac_init_help=short ;;
1030
1031   -host | --host | --hos | --ho)
1032     ac_prev=host_alias ;;
1033   -host=* | --host=* | --hos=* | --ho=*)
1034     host_alias=$ac_optarg ;;
1035
1036   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037     ac_prev=htmldir ;;
1038   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039   | --ht=*)
1040     htmldir=$ac_optarg ;;
1041
1042   -includedir | --includedir | --includedi | --included | --include \
1043   | --includ | --inclu | --incl | --inc)
1044     ac_prev=includedir ;;
1045   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046   | --includ=* | --inclu=* | --incl=* | --inc=*)
1047     includedir=$ac_optarg ;;
1048
1049   -infodir | --infodir | --infodi | --infod | --info | --inf)
1050     ac_prev=infodir ;;
1051   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052     infodir=$ac_optarg ;;
1053
1054   -libdir | --libdir | --libdi | --libd)
1055     ac_prev=libdir ;;
1056   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057     libdir=$ac_optarg ;;
1058
1059   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060   | --libexe | --libex | --libe)
1061     ac_prev=libexecdir ;;
1062   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063   | --libexe=* | --libex=* | --libe=*)
1064     libexecdir=$ac_optarg ;;
1065
1066   -localedir | --localedir | --localedi | --localed | --locale)
1067     ac_prev=localedir ;;
1068   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069     localedir=$ac_optarg ;;
1070
1071   -localstatedir | --localstatedir | --localstatedi | --localstated \
1072   | --localstate | --localstat | --localsta | --localst | --locals)
1073     ac_prev=localstatedir ;;
1074   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076     localstatedir=$ac_optarg ;;
1077
1078   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079     ac_prev=mandir ;;
1080   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081     mandir=$ac_optarg ;;
1082
1083   -nfp | --nfp | --nf)
1084     # Obsolete; use --without-fp.
1085     with_fp=no ;;
1086
1087   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088   | --no-cr | --no-c | -n)
1089     no_create=yes ;;
1090
1091   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093     no_recursion=yes ;;
1094
1095   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097   | --oldin | --oldi | --old | --ol | --o)
1098     ac_prev=oldincludedir ;;
1099   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102     oldincludedir=$ac_optarg ;;
1103
1104   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105     ac_prev=prefix ;;
1106   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107     prefix=$ac_optarg ;;
1108
1109   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110   | --program-pre | --program-pr | --program-p)
1111     ac_prev=program_prefix ;;
1112   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114     program_prefix=$ac_optarg ;;
1115
1116   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117   | --program-suf | --program-su | --program-s)
1118     ac_prev=program_suffix ;;
1119   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121     program_suffix=$ac_optarg ;;
1122
1123   -program-transform-name | --program-transform-name \
1124   | --program-transform-nam | --program-transform-na \
1125   | --program-transform-n | --program-transform- \
1126   | --program-transform | --program-transfor \
1127   | --program-transfo | --program-transf \
1128   | --program-trans | --program-tran \
1129   | --progr-tra | --program-tr | --program-t)
1130     ac_prev=program_transform_name ;;
1131   -program-transform-name=* | --program-transform-name=* \
1132   | --program-transform-nam=* | --program-transform-na=* \
1133   | --program-transform-n=* | --program-transform-=* \
1134   | --program-transform=* | --program-transfor=* \
1135   | --program-transfo=* | --program-transf=* \
1136   | --program-trans=* | --program-tran=* \
1137   | --progr-tra=* | --program-tr=* | --program-t=*)
1138     program_transform_name=$ac_optarg ;;
1139
1140   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141     ac_prev=pdfdir ;;
1142   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143     pdfdir=$ac_optarg ;;
1144
1145   -psdir | --psdir | --psdi | --psd | --ps)
1146     ac_prev=psdir ;;
1147   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148     psdir=$ac_optarg ;;
1149
1150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151   | -silent | --silent | --silen | --sile | --sil)
1152     silent=yes ;;
1153
1154   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155     ac_prev=sbindir ;;
1156   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157   | --sbi=* | --sb=*)
1158     sbindir=$ac_optarg ;;
1159
1160   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162   | --sharedst | --shareds | --shared | --share | --shar \
1163   | --sha | --sh)
1164     ac_prev=sharedstatedir ;;
1165   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168   | --sha=* | --sh=*)
1169     sharedstatedir=$ac_optarg ;;
1170
1171   -site | --site | --sit)
1172     ac_prev=site ;;
1173   -site=* | --site=* | --sit=*)
1174     site=$ac_optarg ;;
1175
1176   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177     ac_prev=srcdir ;;
1178   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179     srcdir=$ac_optarg ;;
1180
1181   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182   | --syscon | --sysco | --sysc | --sys | --sy)
1183     ac_prev=sysconfdir ;;
1184   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186     sysconfdir=$ac_optarg ;;
1187
1188   -target | --target | --targe | --targ | --tar | --ta | --t)
1189     ac_prev=target_alias ;;
1190   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191     target_alias=$ac_optarg ;;
1192
1193   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194     verbose=yes ;;
1195
1196   -version | --version | --versio | --versi | --vers | -V)
1197     ac_init_version=: ;;
1198
1199   -with-* | --with-*)
1200     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1203       { echo "$as_me: error: invalid package name: $ac_package" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_package=`echo $ac_package| sed 's/-/_/g'`
1206     eval with_$ac_package=\$ac_optarg ;;
1207
1208   -without-* | --without-*)
1209     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1212       { echo "$as_me: error: invalid package name: $ac_package" >&2
1213    { (exit 1); exit 1; }; }
1214     ac_package=`echo $ac_package | sed 's/-/_/g'`
1215     eval with_$ac_package=no ;;
1216
1217   --x)
1218     # Obsolete; use --with-x.
1219     with_x=yes ;;
1220
1221   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222   | --x-incl | --x-inc | --x-in | --x-i)
1223     ac_prev=x_includes ;;
1224   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226     x_includes=$ac_optarg ;;
1227
1228   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230     ac_prev=x_libraries ;;
1231   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233     x_libraries=$ac_optarg ;;
1234
1235   -*) { echo "$as_me: error: unrecognized option: $ac_option
1236 Try \`$0 --help' for more information." >&2
1237    { (exit 1); exit 1; }; }
1238     ;;
1239
1240   *=*)
1241     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242     # Reject names that are not valid shell variable names.
1243     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245    { (exit 1); exit 1; }; }
1246     eval $ac_envvar=\$ac_optarg
1247     export $ac_envvar ;;
1248
1249   *)
1250     # FIXME: should be removed in autoconf 3.0.
1251     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255     ;;
1256
1257   esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262   { echo "$as_me: error: missing argument to $ac_option" >&2
1263    { (exit 1); exit 1; }; }
1264 fi
1265
1266 # Be sure to have absolute directory names.
1267 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268                 datadir sysconfdir sharedstatedir localstatedir includedir \
1269                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270                 libdir localedir mandir
1271 do
1272   eval ac_val=\$$ac_var
1273   case $ac_val in
1274     [\\/$]* | ?:[\\/]* )  continue;;
1275     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276   esac
1277   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278    { (exit 1); exit 1; }; }
1279 done
1280
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290   if test "x$build_alias" = x; then
1291     cross_compiling=maybe
1292     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293     If a cross compiler is detected then cross compile mode will be used." >&2
1294   elif test "x$build_alias" != "x$host_alias"; then
1295     cross_compiling=yes
1296   fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308   { echo "$as_me: error: Working directory cannot be determined" >&2
1309    { (exit 1); exit 1; }; }
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311   { echo "$as_me: error: pwd does not report name of working directory" >&2
1312    { (exit 1); exit 1; }; }
1313
1314
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317   ac_srcdir_defaulted=yes
1318   # Try the directory containing this script, then the parent directory.
1319   ac_confdir=`$as_dirname -- "$0" ||
1320 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321          X"$0" : 'X\(//\)[^/]' \| \
1322          X"$0" : 'X\(//\)$' \| \
1323          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1324 echo X"$0" |
1325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\/\)[^/].*/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\/\)$/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\).*/{
1338             s//\1/
1339             q
1340           }
1341           s/.*/./; q'`
1342   srcdir=$ac_confdir
1343   if test ! -r "$srcdir/$ac_unique_file"; then
1344     srcdir=..
1345   fi
1346 else
1347   ac_srcdir_defaulted=no
1348 fi
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352    { (exit 1); exit 1; }; }
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1357    { (exit 1); exit 1; }; }
1358         pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361   srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_env_${ac_var}_value=\$${ac_var}
1372   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380   # Omit some internal or obsolete options to make the list less imposing.
1381   # This message is too long to be a string in the A/UX 3.1 sh.
1382   cat <<_ACEOF
1383 \`configure' configures this package to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE.  See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393   -h, --help              display this help and exit
1394       --help=short        display options specific to this package
1395       --help=recursive    display the short help of all the included packages
1396   -V, --version           display version information and exit
1397   -q, --quiet, --silent   do not print \`checking...' messages
1398       --cache-file=FILE   cache test results in FILE [disabled]
1399   -C, --config-cache      alias for \`--cache-file=config.cache'
1400   -n, --no-create         do not create output files
1401       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404   --prefix=PREFIX         install architecture-independent files in PREFIX
1405                           [$ac_default_prefix]
1406   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1407                           [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417   --bindir=DIR           user executables [EPREFIX/bin]
1418   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1419   --libexecdir=DIR       program executables [EPREFIX/libexec]
1420   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1421   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1422   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1423   --libdir=DIR           object code libraries [EPREFIX/lib]
1424   --includedir=DIR       C header files [PREFIX/include]
1425   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1426   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1427   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1428   --infodir=DIR          info documentation [DATAROOTDIR/info]
1429   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1430   --mandir=DIR           man documentation [DATAROOTDIR/man]
1431   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1432   --htmldir=DIR          html documentation [DOCDIR]
1433   --dvidir=DIR           dvi documentation [DOCDIR]
1434   --pdfdir=DIR           pdf documentation [DOCDIR]
1435   --psdir=DIR            ps documentation [DOCDIR]
1436 _ACEOF
1437
1438   cat <<\_ACEOF
1439
1440 System types:
1441   --build=BUILD     configure for building on BUILD [guessed]
1442   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447
1448   cat <<\_ACEOF
1449
1450 Optional Features:
1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453   --enable-shared[=PKGS]  build shared libraries [default=yes]
1454   --enable-static[=PKGS]  build static libraries [default=yes]
1455   --enable-fast-install[=PKGS]
1456                           optimize for fast installation [default=yes]
1457   --disable-libtool-lock  avoid locking (might break parallel builds)
1458   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1459   --enable-developer               Enables features of interest to developers.
1460
1461 Optional Packages:
1462   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464   --with-system-libtool              try to use libtool installed in your system default=use our own
1465   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1466   --with-pic              try to use only PIC/non-PIC objects [default=use
1467                           both]
1468   --with-tags[=TAGS]      include additional configurations [automatic]
1469   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1470   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1471   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1472   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1473   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1474   --with-threads          Use threads, if available.  (default=yes)
1475   --with-snmp             Compile in SNMP support. (default=yes)
1476   --with-large-files      Compile in large (2G+) file support. (default=no)
1477   --with-static-modules=QUOTED-MODULE-LIST
1478  --with-modules=QUOTED-MODULE-LIST
1479   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1480   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1481   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1482   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1483   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1484   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1485   --with-edir             Enable Novell eDirectory integration.  (default=no)
1486
1487 Some influential environment variables:
1488   CC          C compiler command
1489   CFLAGS      C compiler flags
1490   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1491               nonstandard directory <lib dir>
1492   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493               you have headers in a nonstandard directory <include dir>
1494   CPP         C preprocessor
1495   CXX         C++ compiler command
1496   CXXFLAGS    C++ compiler flags
1497   CXXCPP      C++ preprocessor
1498   F77         Fortran 77 compiler command
1499   FFLAGS      Fortran 77 compiler flags
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509   # If there are subdirs, report their specific --help.
1510   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511     test -d "$ac_dir" || continue
1512     ac_builddir=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518   # A ".." for each directory in $ac_dir_suffix.
1519   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520   case $ac_top_builddir_sub in
1521   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523   esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1529
1530 case $srcdir in
1531   .)  # We are building in place.
1532     ac_srcdir=.
1533     ac_top_srcdir=$ac_top_builddir_sub
1534     ac_abs_top_srcdir=$ac_pwd ;;
1535   [\\/]* | ?:[\\/]* )  # Absolute name.
1536     ac_srcdir=$srcdir$ac_dir_suffix;
1537     ac_top_srcdir=$srcdir
1538     ac_abs_top_srcdir=$srcdir ;;
1539   *) # Relative name.
1540     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541     ac_top_srcdir=$ac_top_build_prefix$srcdir
1542     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546     cd "$ac_dir" || { ac_status=$?; continue; }
1547     # Check for guested configure.
1548     if test -f "$ac_srcdir/configure.gnu"; then
1549       echo &&
1550       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551     elif test -f "$ac_srcdir/configure"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure" --help=recursive
1554     else
1555       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556     fi || ac_status=$?
1557     cd "$ac_pwd" || { ac_status=$?; break; }
1558   done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563   cat <<\_ACEOF
1564 configure
1565 generated by GNU Autoconf 2.60a
1566
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571 _ACEOF
1572   exit
1573 fi
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1577
1578 It was created by $as_me, which was
1579 generated by GNU Autoconf 2.60a.  Invocation command line was
1580
1581   $ $0 $@
1582
1583 _ACEOF
1584 exec 5>>config.log
1585 {
1586 cat <<_ASUNAME
1587 ## --------- ##
1588 ## Platform. ##
1589 ## --------- ##
1590
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1599
1600 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1601 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1604 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1605 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1606 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1607
1608 _ASUNAME
1609
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613   IFS=$as_save_IFS
1614   test -z "$as_dir" && as_dir=.
1615   echo "PATH: $as_dir"
1616 done
1617 IFS=$as_save_IFS
1618
1619 } >&5
1620
1621 cat >&5 <<_ACEOF
1622
1623
1624 ## ----------- ##
1625 ## Core tests. ##
1626 ## ----------- ##
1627
1628 _ACEOF
1629
1630
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_configure_args=
1637 ac_configure_args0=
1638 ac_configure_args1=
1639 ac_must_keep_next=false
1640 for ac_pass in 1 2
1641 do
1642   for ac_arg
1643   do
1644     case $ac_arg in
1645     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647     | -silent | --silent | --silen | --sile | --sil)
1648       continue ;;
1649     *\'*)
1650       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651     esac
1652     case $ac_pass in
1653     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654     2)
1655       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656       if test $ac_must_keep_next = true; then
1657         ac_must_keep_next=false # Got value, back to normal.
1658       else
1659         case $ac_arg in
1660           *=* | --config-cache | -C | -disable-* | --disable-* \
1661           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663           | -with-* | --with-* | -without-* | --without-* | --x)
1664             case "$ac_configure_args0 " in
1665               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666             esac
1667             ;;
1668           -* ) ac_must_keep_next=true ;;
1669         esac
1670       fi
1671       ac_configure_args="$ac_configure_args '$ac_arg'"
1672       ;;
1673     esac
1674   done
1675 done
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log.  We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685   # Save into config.log some information that might help in debugging.
1686   {
1687     echo
1688
1689     cat <<\_ASBOX
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1693 _ASBOX
1694     echo
1695     # The following way of writing the cache mishandles newlines in values,
1696 (
1697   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698     eval ac_val=\$$ac_var
1699     case $ac_val in #(
1700     *${as_nl}*)
1701       case $ac_var in #(
1702       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704       esac
1705       case $ac_var in #(
1706       _ | IFS | as_nl) ;; #(
1707       *) $as_unset $ac_var ;;
1708       esac ;;
1709     esac
1710   done
1711   (set) 2>&1 |
1712     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713     *${as_nl}ac_space=\ *)
1714       sed -n \
1715         "s/'\''/'\''\\\\'\'''\''/g;
1716           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717       ;; #(
1718     *)
1719       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720       ;;
1721     esac |
1722     sort
1723 )
1724     echo
1725
1726     cat <<\_ASBOX
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1730 _ASBOX
1731     echo
1732     for ac_var in $ac_subst_vars
1733     do
1734       eval ac_val=\$$ac_var
1735       case $ac_val in
1736       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737       esac
1738       echo "$ac_var='\''$ac_val'\''"
1739     done | sort
1740     echo
1741
1742     if test -n "$ac_subst_files"; then
1743       cat <<\_ASBOX
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1747 _ASBOX
1748       echo
1749       for ac_var in $ac_subst_files
1750       do
1751         eval ac_val=\$$ac_var
1752         case $ac_val in
1753         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754         esac
1755         echo "$ac_var='\''$ac_val'\''"
1756       done | sort
1757       echo
1758     fi
1759
1760     if test -s confdefs.h; then
1761       cat <<\_ASBOX
1762 ## ----------- ##
1763 ## confdefs.h. ##
1764 ## ----------- ##
1765 _ASBOX
1766       echo
1767       cat confdefs.h
1768       echo
1769     fi
1770     test "$ac_signal" != 0 &&
1771       echo "$as_me: caught signal $ac_signal"
1772     echo "$as_me: exit $exit_status"
1773   } >&5
1774   rm -f core *.core core.conftest.* &&
1775     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776     exit $exit_status
1777 ' 0
1778 for ac_signal in 1 2 13 15; do
1779   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 done
1781 ac_signal=0
1782
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1785
1786 # Predefined preprocessor variables.
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 _ACEOF
1811
1812
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816   set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819 else
1820   set x "$ac_default_prefix/share/config.site" \
1821         "$ac_default_prefix/etc/config.site"
1822 fi
1823 shift
1824 for ac_site_file
1825 do
1826   if test -r "$ac_site_file"; then
1827     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829     sed 's/^/| /' "$ac_site_file" >&5
1830     . "$ac_site_file"
1831   fi
1832 done
1833
1834 if test -r "$cache_file"; then
1835   # Some versions of bash will fail to source /dev/null (special
1836   # files actually), so we avoid doing that.
1837   if test -f "$cache_file"; then
1838     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1840     case $cache_file in
1841       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842       *)                      . "./$cache_file";;
1843     esac
1844   fi
1845 else
1846   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1848   >$cache_file
1849 fi
1850
1851 # Check that the precious variables saved in the cache have kept the same
1852 # value.
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856   eval ac_new_set=\$ac_env_${ac_var}_set
1857   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858   eval ac_new_val=\$ac_env_${ac_var}_value
1859   case $ac_old_set,$ac_new_set in
1860     set,)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,set)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,);;
1869     *)
1870       if test "x$ac_old_val" != "x$ac_new_val"; then
1871         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1874 echo "$as_me:   former value:  $ac_old_val" >&2;}
1875         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1876 echo "$as_me:   current value: $ac_new_val" >&2;}
1877         ac_cache_corrupted=:
1878       fi;;
1879   esac
1880   # Pass precious variables to config.status.
1881   if test "$ac_new_set" = set; then
1882     case $ac_new_val in
1883     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884     *) ac_arg=$ac_var=$ac_new_val ;;
1885     esac
1886     case " $ac_configure_args " in
1887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1888       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889     esac
1890   fi
1891 done
1892 if $ac_cache_corrupted; then
1893   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897    { (exit 1); exit 1; }; }
1898 fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916 ac_ext=c
1917 ac_cpp='$CPP $CPPFLAGS'
1918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921
1922
1923 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1924
1925
1926
1927 RADIUSD_MAJOR_VERSION=1
1928 RADIUSD_MINOR_VERSION=1.6
1929 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1930
1931
1932 ac_ext=c
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937 if test -n "$ac_tool_prefix"; then
1938   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1939 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1942 if test "${ac_cv_prog_CC+set}" = set; then
1943   echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945   if test -n "$CC"; then
1946   ac_cv_prog_CC="$CC" # Let the user override the test.
1947 else
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1950 do
1951   IFS=$as_save_IFS
1952   test -z "$as_dir" && as_dir=.
1953   for ac_exec_ext in '' $ac_executable_extensions; do
1954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1955     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957     break 2
1958   fi
1959 done
1960 done
1961 IFS=$as_save_IFS
1962
1963 fi
1964 fi
1965 CC=$ac_cv_prog_CC
1966 if test -n "$CC"; then
1967   { echo "$as_me:$LINENO: result: $CC" >&5
1968 echo "${ECHO_T}$CC" >&6; }
1969 else
1970   { echo "$as_me:$LINENO: result: no" >&5
1971 echo "${ECHO_T}no" >&6; }
1972 fi
1973
1974
1975 fi
1976 if test -z "$ac_cv_prog_CC"; then
1977   ac_ct_CC=$CC
1978   # Extract the first word of "gcc", so it can be a program name with args.
1979 set dummy gcc; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1983   echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985   if test -n "$ac_ct_CC"; then
1986   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1987 else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   for ac_exec_ext in '' $ac_executable_extensions; do
1994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995     ac_cv_prog_ac_ct_CC="gcc"
1996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997     break 2
1998   fi
1999 done
2000 done
2001 IFS=$as_save_IFS
2002
2003 fi
2004 fi
2005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2006 if test -n "$ac_ct_CC"; then
2007   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2008 echo "${ECHO_T}$ac_ct_CC" >&6; }
2009 else
2010   { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2012 fi
2013
2014   if test "x$ac_ct_CC" = x; then
2015     CC=""
2016   else
2017     case $cross_compiling:$ac_tool_warned in
2018 yes:)
2019 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2020 whose name does not start with the host triplet.  If you think this
2021 configuration is useful to you, please write to autoconf@gnu.org." >&5
2022 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2023 whose name does not start with the host triplet.  If you think this
2024 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2025 ac_tool_warned=yes ;;
2026 esac
2027     CC=$ac_ct_CC
2028   fi
2029 else
2030   CC="$ac_cv_prog_CC"
2031 fi
2032
2033 if test -z "$CC"; then
2034           if test -n "$ac_tool_prefix"; then
2035     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2036 set dummy ${ac_tool_prefix}cc; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   if test -n "$CC"; then
2043   ac_cv_prog_CC="$CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050   for ac_exec_ext in '' $ac_executable_extensions; do
2051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2052     ac_cv_prog_CC="${ac_tool_prefix}cc"
2053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054     break 2
2055   fi
2056 done
2057 done
2058 IFS=$as_save_IFS
2059
2060 fi
2061 fi
2062 CC=$ac_cv_prog_CC
2063 if test -n "$CC"; then
2064   { echo "$as_me:$LINENO: result: $CC" >&5
2065 echo "${ECHO_T}$CC" >&6; }
2066 else
2067   { echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6; }
2069 fi
2070
2071
2072   fi
2073 fi
2074 if test -z "$CC"; then
2075   # Extract the first word of "cc", so it can be a program name with args.
2076 set dummy cc; ac_word=$2
2077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2079 if test "${ac_cv_prog_CC+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   if test -n "$CC"; then
2083   ac_cv_prog_CC="$CC" # Let the user override the test.
2084 else
2085   ac_prog_rejected=no
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089   IFS=$as_save_IFS
2090   test -z "$as_dir" && as_dir=.
2091   for ac_exec_ext in '' $ac_executable_extensions; do
2092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2093     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2094        ac_prog_rejected=yes
2095        continue
2096      fi
2097     ac_cv_prog_CC="cc"
2098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099     break 2
2100   fi
2101 done
2102 done
2103 IFS=$as_save_IFS
2104
2105 if test $ac_prog_rejected = yes; then
2106   # We found a bogon in the path, so make sure we never use it.
2107   set dummy $ac_cv_prog_CC
2108   shift
2109   if test $# != 0; then
2110     # We chose a different compiler from the bogus one.
2111     # However, it has the same basename, so the bogon will be chosen
2112     # first if we set CC to just the basename; use the full file name.
2113     shift
2114     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2115   fi
2116 fi
2117 fi
2118 fi
2119 CC=$ac_cv_prog_CC
2120 if test -n "$CC"; then
2121   { echo "$as_me:$LINENO: result: $CC" >&5
2122 echo "${ECHO_T}$CC" >&6; }
2123 else
2124   { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2126 fi
2127
2128
2129 fi
2130 if test -z "$CC"; then
2131   if test -n "$ac_tool_prefix"; then
2132   for ac_prog in cl.exe
2133   do
2134     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2138 if test "${ac_cv_prog_CC+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   if test -n "$CC"; then
2142   ac_cv_prog_CC="$CC" # Let the user override the test.
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147   IFS=$as_save_IFS
2148   test -z "$as_dir" && as_dir=.
2149   for ac_exec_ext in '' $ac_executable_extensions; do
2150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2151     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153     break 2
2154   fi
2155 done
2156 done
2157 IFS=$as_save_IFS
2158
2159 fi
2160 fi
2161 CC=$ac_cv_prog_CC
2162 if test -n "$CC"; then
2163   { echo "$as_me:$LINENO: result: $CC" >&5
2164 echo "${ECHO_T}$CC" >&6; }
2165 else
2166   { echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6; }
2168 fi
2169
2170
2171     test -n "$CC" && break
2172   done
2173 fi
2174 if test -z "$CC"; then
2175   ac_ct_CC=$CC
2176   for ac_prog in cl.exe
2177 do
2178   # Extract the first word of "$ac_prog", so it can be a program name with args.
2179 set dummy $ac_prog; ac_word=$2
2180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2183   echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185   if test -n "$ac_ct_CC"; then
2186   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2187 else
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2190 do
2191   IFS=$as_save_IFS
2192   test -z "$as_dir" && as_dir=.
2193   for ac_exec_ext in '' $ac_executable_extensions; do
2194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2195     ac_cv_prog_ac_ct_CC="$ac_prog"
2196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197     break 2
2198   fi
2199 done
2200 done
2201 IFS=$as_save_IFS
2202
2203 fi
2204 fi
2205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206 if test -n "$ac_ct_CC"; then
2207   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208 echo "${ECHO_T}$ac_ct_CC" >&6; }
2209 else
2210   { echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6; }
2212 fi
2213
2214
2215   test -n "$ac_ct_CC" && break
2216 done
2217
2218   if test "x$ac_ct_CC" = x; then
2219     CC=""
2220   else
2221     case $cross_compiling:$ac_tool_warned in
2222 yes:)
2223 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2224 whose name does not start with the host triplet.  If you think this
2225 configuration is useful to you, please write to autoconf@gnu.org." >&5
2226 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2227 whose name does not start with the host triplet.  If you think this
2228 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2229 ac_tool_warned=yes ;;
2230 esac
2231     CC=$ac_ct_CC
2232   fi
2233 fi
2234
2235 fi
2236
2237
2238 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: no acceptable C compiler found in \$PATH
2241 See \`config.log' for more details." >&2;}
2242    { (exit 1); exit 1; }; }
2243
2244 # Provide some information about the compiler.
2245 echo "$as_me:$LINENO: checking for C compiler version" >&5
2246 ac_compiler=`set X $ac_compile; echo $2`
2247 { (ac_try="$ac_compiler --version >&5"
2248 case "(($ac_try" in
2249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250   *) ac_try_echo=$ac_try;;
2251 esac
2252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2253   (eval "$ac_compiler --version >&5") 2>&5
2254   ac_status=$?
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); }
2257 { (ac_try="$ac_compiler -v >&5"
2258 case "(($ac_try" in
2259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260   *) ac_try_echo=$ac_try;;
2261 esac
2262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263   (eval "$ac_compiler -v >&5") 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }
2267 { (ac_try="$ac_compiler -V >&5"
2268 case "(($ac_try" in
2269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270   *) ac_try_echo=$ac_try;;
2271 esac
2272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2273   (eval "$ac_compiler -V >&5") 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }
2277
2278 cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h.  */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h.  */
2284
2285 int
2286 main ()
2287 {
2288
2289   ;
2290   return 0;
2291 }
2292 _ACEOF
2293 ac_clean_files_save=$ac_clean_files
2294 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2295 # Try to create an executable without -o first, disregard a.out.
2296 # It will help us diagnose broken compilers, and finding out an intuition
2297 # of exeext.
2298 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2299 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2300 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2301 #
2302 # List of possible output files, starting from the most likely.
2303 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2304 # only as a last resort.  b.out is created by i960 compilers.
2305 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2306 #
2307 # The IRIX 6 linker writes into existing files which may not be
2308 # executable, retaining their permissions.  Remove them first so a
2309 # subsequent execution test works.
2310 ac_rmfiles=
2311 for ac_file in $ac_files
2312 do
2313   case $ac_file in
2314     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2315     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2316   esac
2317 done
2318 rm -f $ac_rmfiles
2319
2320 if { (ac_try="$ac_link_default"
2321 case "(($ac_try" in
2322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323   *) ac_try_echo=$ac_try;;
2324 esac
2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326   (eval "$ac_link_default") 2>&5
2327   ac_status=$?
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); }; then
2330   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2332 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2333 # so that the user can short-circuit this test for compilers unknown to
2334 # Autoconf.
2335 for ac_file in $ac_files ''
2336 do
2337   test -f "$ac_file" || continue
2338   case $ac_file in
2339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2340         ;;
2341     [ab].out )
2342         # We found the default executable, but exeext='' is most
2343         # certainly right.
2344         break;;
2345     *.* )
2346         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2347         then :; else
2348            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2349         fi
2350         # We set ac_cv_exeext here because the later test for it is not
2351         # safe: cross compilers may not add the suffix if given an `-o'
2352         # argument, so we may need to know it at that point already.
2353         # Even if this section looks crufty: it has the advantage of
2354         # actually working.
2355         break;;
2356     * )
2357         break;;
2358   esac
2359 done
2360 test "$ac_cv_exeext" = no && ac_cv_exeext=
2361
2362 else
2363   ac_file=''
2364 fi
2365
2366 { echo "$as_me:$LINENO: result: $ac_file" >&5
2367 echo "${ECHO_T}$ac_file" >&6; }
2368 if test -z "$ac_file"; then
2369   echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2373 See \`config.log' for more details." >&5
2374 echo "$as_me: error: C compiler cannot create executables
2375 See \`config.log' for more details." >&2;}
2376    { (exit 77); exit 77; }; }
2377 fi
2378
2379 ac_exeext=$ac_cv_exeext
2380
2381 # Check that the compiler produces executables we can run.  If not, either
2382 # the compiler is broken, or we cross compile.
2383 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2384 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2385 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2386 # If not cross compiling, check that we can run a simple program.
2387 if test "$cross_compiling" != yes; then
2388   if { ac_try='./$ac_file'
2389   { (case "(($ac_try" in
2390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391   *) ac_try_echo=$ac_try;;
2392 esac
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394   (eval "$ac_try") 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398     cross_compiling=no
2399   else
2400     if test "$cross_compiling" = maybe; then
2401         cross_compiling=yes
2402     else
2403         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2404 If you meant to cross compile, use \`--host'.
2405 See \`config.log' for more details." >&5
2406 echo "$as_me: error: cannot run C compiled programs.
2407 If you meant to cross compile, use \`--host'.
2408 See \`config.log' for more details." >&2;}
2409    { (exit 1); exit 1; }; }
2410     fi
2411   fi
2412 fi
2413 { echo "$as_me:$LINENO: result: yes" >&5
2414 echo "${ECHO_T}yes" >&6; }
2415
2416 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2417 ac_clean_files=$ac_clean_files_save
2418 # Check that the compiler produces executables we can run.  If not, either
2419 # the compiler is broken, or we cross compile.
2420 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2421 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2422 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2423 echo "${ECHO_T}$cross_compiling" >&6; }
2424
2425 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2426 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2427 if { (ac_try="$ac_link"
2428 case "(($ac_try" in
2429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430   *) ac_try_echo=$ac_try;;
2431 esac
2432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433   (eval "$ac_link") 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; then
2437   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2438 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2439 # work properly (i.e., refer to `conftest.exe'), while it won't with
2440 # `rm'.
2441 for ac_file in conftest.exe conftest conftest.*; do
2442   test -f "$ac_file" || continue
2443   case $ac_file in
2444     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2445     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2446           break;;
2447     * ) break;;
2448   esac
2449 done
2450 else
2451   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2454 See \`config.log' for more details." >&2;}
2455    { (exit 1); exit 1; }; }
2456 fi
2457
2458 rm -f conftest$ac_cv_exeext
2459 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2460 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2461
2462 rm -f conftest.$ac_ext
2463 EXEEXT=$ac_cv_exeext
2464 ac_exeext=$EXEEXT
2465 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2466 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2467 if test "${ac_cv_objext+set}" = set; then
2468   echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470   cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h.  */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h.  */
2476
2477 int
2478 main ()
2479 {
2480
2481   ;
2482   return 0;
2483 }
2484 _ACEOF
2485 rm -f conftest.o conftest.obj
2486 if { (ac_try="$ac_compile"
2487 case "(($ac_try" in
2488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489   *) ac_try_echo=$ac_try;;
2490 esac
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492   (eval "$ac_compile") 2>&5
2493   ac_status=$?
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); }; then
2496   for ac_file in conftest.o conftest.obj conftest.*; do
2497   test -f "$ac_file" || continue;
2498   case $ac_file in
2499     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2500     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2501        break;;
2502   esac
2503 done
2504 else
2505   echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2509 See \`config.log' for more details." >&5
2510 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2511 See \`config.log' for more details." >&2;}
2512    { (exit 1); exit 1; }; }
2513 fi
2514
2515 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2516 fi
2517 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2518 echo "${ECHO_T}$ac_cv_objext" >&6; }
2519 OBJEXT=$ac_cv_objext
2520 ac_objext=$OBJEXT
2521 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2522 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2523 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2524   echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526   cat >conftest.$ac_ext <<_ACEOF
2527 /* confdefs.h.  */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h.  */
2532
2533 int
2534 main ()
2535 {
2536 #ifndef __GNUC__
2537        choke me
2538 #endif
2539
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (ac_try="$ac_compile"
2546 case "(($ac_try" in
2547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548   *) ac_try_echo=$ac_try;;
2549 esac
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551   (eval "$ac_compile") 2>conftest.er1
2552   ac_status=$?
2553   grep -v '^ *+' conftest.er1 >conftest.err
2554   rm -f conftest.er1
2555   cat conftest.err >&5
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2559   { (case "(($ac_try" in
2560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561   *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564   (eval "$ac_try") 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; } &&
2568          { ac_try='test -s conftest.$ac_objext'
2569   { (case "(($ac_try" in
2570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571   *) ac_try_echo=$ac_try;;
2572 esac
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574   (eval "$ac_try") 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }; }; then
2578   ac_compiler_gnu=yes
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583         ac_compiler_gnu=no
2584 fi
2585
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2588
2589 fi
2590 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2591 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2592 GCC=`test $ac_compiler_gnu = yes && echo yes`
2593 ac_test_CFLAGS=${CFLAGS+set}
2594 ac_save_CFLAGS=$CFLAGS
2595 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_cc_g+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   ac_save_c_werror_flag=$ac_c_werror_flag
2601    ac_c_werror_flag=yes
2602    ac_cv_prog_cc_g=no
2603    CFLAGS="-g"
2604    cat >conftest.$ac_ext <<_ACEOF
2605 /* confdefs.h.  */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h.  */
2610
2611 int
2612 main ()
2613 {
2614
2615   ;
2616   return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (ac_try="$ac_compile"
2621 case "(($ac_try" in
2622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623   *) ac_try_echo=$ac_try;;
2624 esac
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626   (eval "$ac_compile") 2>conftest.er1
2627   ac_status=$?
2628   grep -v '^ *+' conftest.er1 >conftest.err
2629   rm -f conftest.er1
2630   cat conftest.err >&5
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2634   { (case "(($ac_try" in
2635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636   *) ac_try_echo=$ac_try;;
2637 esac
2638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2639   (eval "$ac_try") 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; } &&
2643          { ac_try='test -s conftest.$ac_objext'
2644   { (case "(($ac_try" in
2645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646   *) ac_try_echo=$ac_try;;
2647 esac
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649   (eval "$ac_try") 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); }; }; then
2653   ac_cv_prog_cc_g=yes
2654 else
2655   echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658         CFLAGS=""
2659       cat >conftest.$ac_ext <<_ACEOF
2660 /* confdefs.h.  */
2661 _ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h.  */
2665
2666 int
2667 main ()
2668 {
2669
2670   ;
2671   return 0;
2672 }
2673 _ACEOF
2674 rm -f conftest.$ac_objext
2675 if { (ac_try="$ac_compile"
2676 case "(($ac_try" in
2677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678   *) ac_try_echo=$ac_try;;
2679 esac
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681   (eval "$ac_compile") 2>conftest.er1
2682   ac_status=$?
2683   grep -v '^ *+' conftest.er1 >conftest.err
2684   rm -f conftest.er1
2685   cat conftest.err >&5
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); } &&
2688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2689   { (case "(($ac_try" in
2690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691   *) ac_try_echo=$ac_try;;
2692 esac
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694   (eval "$ac_try") 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }; } &&
2698          { ac_try='test -s conftest.$ac_objext'
2699   { (case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_try") 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; }; then
2708   :
2709 else
2710   echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713         ac_c_werror_flag=$ac_save_c_werror_flag
2714          CFLAGS="-g"
2715          cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h.  */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h.  */
2721
2722 int
2723 main ()
2724 {
2725
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (ac_try="$ac_compile"
2732 case "(($ac_try" in
2733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734   *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737   (eval "$ac_compile") 2>conftest.er1
2738   ac_status=$?
2739   grep -v '^ *+' conftest.er1 >conftest.err
2740   rm -f conftest.er1
2741   cat conftest.err >&5
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); } &&
2744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2745   { (case "(($ac_try" in
2746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747   *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750   (eval "$ac_try") 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; } &&
2754          { ac_try='test -s conftest.$ac_objext'
2755   { (case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760   (eval "$ac_try") 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }; }; then
2764   ac_cv_prog_cc_g=yes
2765 else
2766   echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2768
2769
2770 fi
2771
2772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773 fi
2774
2775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2776 fi
2777
2778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2779    ac_c_werror_flag=$ac_save_c_werror_flag
2780 fi
2781 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2782 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2783 if test "$ac_test_CFLAGS" = set; then
2784   CFLAGS=$ac_save_CFLAGS
2785 elif test $ac_cv_prog_cc_g = yes; then
2786   if test "$GCC" = yes; then
2787     CFLAGS="-g -O2"
2788   else
2789     CFLAGS="-g"
2790   fi
2791 else
2792   if test "$GCC" = yes; then
2793     CFLAGS="-O2"
2794   else
2795     CFLAGS=
2796   fi
2797 fi
2798 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2799 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2800 if test "${ac_cv_prog_cc_c89+set}" = set; then
2801   echo $ECHO_N "(cached) $ECHO_C" >&6
2802 else
2803   ac_cv_prog_cc_c89=no
2804 ac_save_CC=$CC
2805 cat >conftest.$ac_ext <<_ACEOF
2806 /* confdefs.h.  */
2807 _ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h.  */
2811 #include <stdarg.h>
2812 #include <stdio.h>
2813 #include <sys/types.h>
2814 #include <sys/stat.h>
2815 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2816 struct buf { int x; };
2817 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2818 static char *e (p, i)
2819      char **p;
2820      int i;
2821 {
2822   return p[i];
2823 }
2824 static char *f (char * (*g) (char **, int), char **p, ...)
2825 {
2826   char *s;
2827   va_list v;
2828   va_start (v,p);
2829   s = g (p, va_arg (v,int));
2830   va_end (v);
2831   return s;
2832 }
2833
2834 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2835    function prototypes and stuff, but not '\xHH' hex character constants.
2836    These don't provoke an error unfortunately, instead are silently treated
2837    as 'x'.  The following induces an error, until -std is added to get
2838    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2839    array size at least.  It's necessary to write '\x00'==0 to get something
2840    that's true only with -std.  */
2841 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2842
2843 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2844    inside strings and character constants.  */
2845 #define FOO(x) 'x'
2846 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2847
2848 int test (int i, double x);
2849 struct s1 {int (*f) (int a);};
2850 struct s2 {int (*f) (double a);};
2851 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2852 int argc;
2853 char **argv;
2854 int
2855 main ()
2856 {
2857 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2863         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2864 do
2865   CC="$ac_save_CC $ac_arg"
2866   rm -f conftest.$ac_objext
2867 if { (ac_try="$ac_compile"
2868 case "(($ac_try" in
2869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870   *) ac_try_echo=$ac_try;;
2871 esac
2872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873   (eval "$ac_compile") 2>conftest.er1
2874   ac_status=$?
2875   grep -v '^ *+' conftest.er1 >conftest.err
2876   rm -f conftest.er1
2877   cat conftest.err >&5
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); } &&
2880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2881   { (case "(($ac_try" in
2882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883   *) ac_try_echo=$ac_try;;
2884 esac
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886   (eval "$ac_try") 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }; } &&
2890          { ac_try='test -s conftest.$ac_objext'
2891   { (case "(($ac_try" in
2892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893   *) ac_try_echo=$ac_try;;
2894 esac
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896   (eval "$ac_try") 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; }; then
2900   ac_cv_prog_cc_c89=$ac_arg
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905
2906 fi
2907
2908 rm -f core conftest.err conftest.$ac_objext
2909   test "x$ac_cv_prog_cc_c89" != "xno" && break
2910 done
2911 rm -f conftest.$ac_ext
2912 CC=$ac_save_CC
2913
2914 fi
2915 # AC_CACHE_VAL
2916 case "x$ac_cv_prog_cc_c89" in
2917   x)
2918     { echo "$as_me:$LINENO: result: none needed" >&5
2919 echo "${ECHO_T}none needed" >&6; } ;;
2920   xno)
2921     { echo "$as_me:$LINENO: result: unsupported" >&5
2922 echo "${ECHO_T}unsupported" >&6; } ;;
2923   *)
2924     CC="$CC $ac_cv_prog_cc_c89"
2925     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2926 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2927 esac
2928
2929
2930 ac_ext=c
2931 ac_cpp='$CPP $CPPFLAGS'
2932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935
2936
2937
2938 ac_ext=c
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2944 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2945 # On Suns, sometimes $CPP names a directory.
2946 if test -n "$CPP" && test -d "$CPP"; then
2947   CPP=
2948 fi
2949 if test -z "$CPP"; then
2950   if test "${ac_cv_prog_CPP+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953       # Double quotes because CPP needs to be expanded
2954     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2955     do
2956       ac_preproc_ok=false
2957 for ac_c_preproc_warn_flag in '' yes
2958 do
2959   # Use a header file that comes with gcc, so configuring glibc
2960   # with a fresh cross-compiler works.
2961   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2962   # <limits.h> exists even on freestanding compilers.
2963   # On the NeXT, cc -E runs the code through the compiler's parser,
2964   # not just through cpp. "Syntax error" is here to catch this case.
2965   cat >conftest.$ac_ext <<_ACEOF
2966 /* confdefs.h.  */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h.  */
2971 #ifdef __STDC__
2972 # include <limits.h>
2973 #else
2974 # include <assert.h>
2975 #endif
2976                      Syntax error
2977 _ACEOF
2978 if { (ac_try="$ac_cpp conftest.$ac_ext"
2979 case "(($ac_try" in
2980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981   *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2985   ac_status=$?
2986   grep -v '^ *+' conftest.er1 >conftest.err
2987   rm -f conftest.er1
2988   cat conftest.err >&5
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); } >/dev/null; then
2991   if test -s conftest.err; then
2992     ac_cpp_err=$ac_c_preproc_warn_flag
2993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2994   else
2995     ac_cpp_err=
2996   fi
2997 else
2998   ac_cpp_err=yes
2999 fi
3000 if test -z "$ac_cpp_err"; then
3001   :
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006   # Broken: fails on valid input.
3007 continue
3008 fi
3009
3010 rm -f conftest.err conftest.$ac_ext
3011
3012   # OK, works on sane cases.  Now check whether nonexistent headers
3013   # can be detected and how.
3014   cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h.  */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h.  */
3020 #include <ac_nonexistent.h>
3021 _ACEOF
3022 if { (ac_try="$ac_cpp conftest.$ac_ext"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3029   ac_status=$?
3030   grep -v '^ *+' conftest.er1 >conftest.err
3031   rm -f conftest.er1
3032   cat conftest.err >&5
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); } >/dev/null; then
3035   if test -s conftest.err; then
3036     ac_cpp_err=$ac_c_preproc_warn_flag
3037     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3038   else
3039     ac_cpp_err=
3040   fi
3041 else
3042   ac_cpp_err=yes
3043 fi
3044 if test -z "$ac_cpp_err"; then
3045   # Broken: success on invalid input.
3046 continue
3047 else
3048   echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051   # Passes both tests.
3052 ac_preproc_ok=:
3053 break
3054 fi
3055
3056 rm -f conftest.err conftest.$ac_ext
3057
3058 done
3059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3060 rm -f conftest.err conftest.$ac_ext
3061 if $ac_preproc_ok; then
3062   break
3063 fi
3064
3065     done
3066     ac_cv_prog_CPP=$CPP
3067
3068 fi
3069   CPP=$ac_cv_prog_CPP
3070 else
3071   ac_cv_prog_CPP=$CPP
3072 fi
3073 { echo "$as_me:$LINENO: result: $CPP" >&5
3074 echo "${ECHO_T}$CPP" >&6; }
3075 ac_preproc_ok=false
3076 for ac_c_preproc_warn_flag in '' yes
3077 do
3078   # Use a header file that comes with gcc, so configuring glibc
3079   # with a fresh cross-compiler works.
3080   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3081   # <limits.h> exists even on freestanding compilers.
3082   # On the NeXT, cc -E runs the code through the compiler's parser,
3083   # not just through cpp. "Syntax error" is here to catch this case.
3084   cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090 #ifdef __STDC__
3091 # include <limits.h>
3092 #else
3093 # include <assert.h>
3094 #endif
3095                      Syntax error
3096 _ACEOF
3097 if { (ac_try="$ac_cpp conftest.$ac_ext"
3098 case "(($ac_try" in
3099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100   *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3104   ac_status=$?
3105   grep -v '^ *+' conftest.er1 >conftest.err
3106   rm -f conftest.er1
3107   cat conftest.err >&5
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); } >/dev/null; then
3110   if test -s conftest.err; then
3111     ac_cpp_err=$ac_c_preproc_warn_flag
3112     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3113   else
3114     ac_cpp_err=
3115   fi
3116 else
3117   ac_cpp_err=yes
3118 fi
3119 if test -z "$ac_cpp_err"; then
3120   :
3121 else
3122   echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125   # Broken: fails on valid input.
3126 continue
3127 fi
3128
3129 rm -f conftest.err conftest.$ac_ext
3130
3131   # OK, works on sane cases.  Now check whether nonexistent headers
3132   # can be detected and how.
3133   cat >conftest.$ac_ext <<_ACEOF
3134 /* confdefs.h.  */
3135 _ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h.  */
3139 #include <ac_nonexistent.h>
3140 _ACEOF
3141 if { (ac_try="$ac_cpp conftest.$ac_ext"
3142 case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3148   ac_status=$?
3149   grep -v '^ *+' conftest.er1 >conftest.err
3150   rm -f conftest.er1
3151   cat conftest.err >&5
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); } >/dev/null; then
3154   if test -s conftest.err; then
3155     ac_cpp_err=$ac_c_preproc_warn_flag
3156     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3157   else
3158     ac_cpp_err=
3159   fi
3160 else
3161   ac_cpp_err=yes
3162 fi
3163 if test -z "$ac_cpp_err"; then
3164   # Broken: success on invalid input.
3165 continue
3166 else
3167   echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170   # Passes both tests.
3171 ac_preproc_ok=:
3172 break
3173 fi
3174
3175 rm -f conftest.err conftest.$ac_ext
3176
3177 done
3178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3179 rm -f conftest.err conftest.$ac_ext
3180 if $ac_preproc_ok; then
3181   :
3182 else
3183   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3184 See \`config.log' for more details." >&5
3185 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3186 See \`config.log' for more details." >&2;}
3187    { (exit 1); exit 1; }; }
3188 fi
3189
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195
3196
3197 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3198 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3199 if test "${ac_cv_path_GREP+set}" = set; then
3200   echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202   # Extract the first word of "grep ggrep" to use in msg output
3203 if test -z "$GREP"; then
3204 set dummy grep ggrep; ac_prog_name=$2
3205 if test "${ac_cv_path_GREP+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   ac_path_GREP_found=false
3209 # Loop through the user's path and test for each of PROGNAME-LIST
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3212 do
3213   IFS=$as_save_IFS
3214   test -z "$as_dir" && as_dir=.
3215   for ac_prog in grep ggrep; do
3216   for ac_exec_ext in '' $ac_executable_extensions; do
3217     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3218     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3219     # Check for GNU ac_path_GREP and select it if it is found.
3220   # Check for GNU $ac_path_GREP
3221 case `"$ac_path_GREP" --version 2>&1` in
3222 *GNU*)
3223   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3224 *)
3225   ac_count=0
3226   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3227   while :
3228   do
3229     cat "conftest.in" "conftest.in" >"conftest.tmp"
3230     mv "conftest.tmp" "conftest.in"
3231     cp "conftest.in" "conftest.nl"
3232     echo 'GREP' >> "conftest.nl"
3233     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3234     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3235     ac_count=`expr $ac_count + 1`
3236     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3237       # Best one so far, save it but keep looking for a better one
3238       ac_cv_path_GREP="$ac_path_GREP"
3239       ac_path_GREP_max=$ac_count
3240     fi
3241     # 10*(2^10) chars as input seems more than enough
3242     test $ac_count -gt 10 && break
3243   done
3244   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3245 esac
3246
3247
3248     $ac_path_GREP_found && break 3
3249   done
3250 done
3251
3252 done
3253 IFS=$as_save_IFS
3254
3255
3256 fi
3257
3258 GREP="$ac_cv_path_GREP"
3259 if test -z "$GREP"; then
3260   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3261 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3262    { (exit 1); exit 1; }; }
3263 fi
3264
3265 else
3266   ac_cv_path_GREP=$GREP
3267 fi
3268
3269
3270 fi
3271 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3272 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3273  GREP="$ac_cv_path_GREP"
3274
3275
3276 { echo "$as_me:$LINENO: checking for egrep" >&5
3277 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3278 if test "${ac_cv_path_EGREP+set}" = set; then
3279   echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3282    then ac_cv_path_EGREP="$GREP -E"
3283    else
3284      # Extract the first word of "egrep" to use in msg output
3285 if test -z "$EGREP"; then
3286 set dummy egrep; ac_prog_name=$2
3287 if test "${ac_cv_path_EGREP+set}" = set; then
3288   echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290   ac_path_EGREP_found=false
3291 # Loop through the user's path and test for each of PROGNAME-LIST
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   for ac_prog in egrep; do
3298   for ac_exec_ext in '' $ac_executable_extensions; do
3299     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3300     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3301     # Check for GNU ac_path_EGREP and select it if it is found.
3302   # Check for GNU $ac_path_EGREP
3303 case `"$ac_path_EGREP" --version 2>&1` in
3304 *GNU*)
3305   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3306 *)
3307   ac_count=0
3308   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3309   while :
3310   do
3311     cat "conftest.in" "conftest.in" >"conftest.tmp"
3312     mv "conftest.tmp" "conftest.in"
3313     cp "conftest.in" "conftest.nl"
3314     echo 'EGREP' >> "conftest.nl"
3315     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3316     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3317     ac_count=`expr $ac_count + 1`
3318     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3319       # Best one so far, save it but keep looking for a better one
3320       ac_cv_path_EGREP="$ac_path_EGREP"
3321       ac_path_EGREP_max=$ac_count
3322     fi
3323     # 10*(2^10) chars as input seems more than enough
3324     test $ac_count -gt 10 && break
3325   done
3326   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3327 esac
3328
3329
3330     $ac_path_EGREP_found && break 3
3331   done
3332 done
3333
3334 done
3335 IFS=$as_save_IFS
3336
3337
3338 fi
3339
3340 EGREP="$ac_cv_path_EGREP"
3341 if test -z "$EGREP"; then
3342   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3343 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3344    { (exit 1); exit 1; }; }
3345 fi
3346
3347 else
3348   ac_cv_path_EGREP=$EGREP
3349 fi
3350
3351
3352    fi
3353 fi
3354 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3355 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3356  EGREP="$ac_cv_path_EGREP"
3357
3358
3359
3360 { echo "$as_me:$LINENO: checking for AIX" >&5
3361 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h.  */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h.  */
3368 #ifdef _AIX
3369   yes
3370 #endif
3371
3372 _ACEOF
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374   $EGREP "yes" >/dev/null 2>&1; then
3375   { echo "$as_me:$LINENO: result: yes" >&5
3376 echo "${ECHO_T}yes" >&6; }
3377 cat >>confdefs.h <<\_ACEOF
3378 #define _ALL_SOURCE 1
3379 _ACEOF
3380
3381 else
3382   { echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6; }
3384 fi
3385 rm -f conftest*
3386
3387
3388
3389 if test $ac_cv_c_compiler_gnu = yes; then
3390     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3391 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3392 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395     ac_pattern="Autoconf.*'x'"
3396   cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h.  */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h.  */
3402 #include <sgtty.h>
3403 Autoconf TIOCGETP
3404 _ACEOF
3405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3406   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3407   ac_cv_prog_gcc_traditional=yes
3408 else
3409   ac_cv_prog_gcc_traditional=no
3410 fi
3411 rm -f conftest*
3412
3413
3414   if test $ac_cv_prog_gcc_traditional = no; then
3415     cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h.  */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h.  */
3421 #include <termio.h>
3422 Autoconf TCGETA
3423 _ACEOF
3424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3426   ac_cv_prog_gcc_traditional=yes
3427 fi
3428 rm -f conftest*
3429
3430   fi
3431 fi
3432 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3433 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3434   if test $ac_cv_prog_gcc_traditional = yes; then
3435     CC="$CC -traditional"
3436   fi
3437 fi
3438
3439 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3440 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3441 if test "${ac_cv_prog_suncc+set}" = set; then
3442   echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444   cat > conftest.c <<EOF
3445 #ifdef __SUNPRO_C
3446   yes;
3447 #endif
3448 EOF
3449 if { ac_try='${CC-cc} -E conftest.c'
3450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451   (eval $ac_try) 2>&5
3452   ac_status=$?
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3455   ac_cv_prog_suncc=yes
3456 else
3457   ac_cv_prog_suncc=no
3458 fi
3459 fi
3460 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3461 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3462 if test -n "$ac_tool_prefix"; then
3463   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3464 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3467 if test "${ac_cv_prog_RANLIB+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   if test -n "$RANLIB"; then
3471   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476   IFS=$as_save_IFS
3477   test -z "$as_dir" && as_dir=.
3478   for ac_exec_ext in '' $ac_executable_extensions; do
3479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3480     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482     break 2
3483   fi
3484 done
3485 done
3486 IFS=$as_save_IFS
3487
3488 fi
3489 fi
3490 RANLIB=$ac_cv_prog_RANLIB
3491 if test -n "$RANLIB"; then
3492   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3493 echo "${ECHO_T}$RANLIB" >&6; }
3494 else
3495   { echo "$as_me:$LINENO: result: no" >&5
3496 echo "${ECHO_T}no" >&6; }
3497 fi
3498
3499
3500 fi
3501 if test -z "$ac_cv_prog_RANLIB"; then
3502   ac_ct_RANLIB=$RANLIB
3503   # Extract the first word of "ranlib", so it can be a program name with args.
3504 set dummy ranlib; ac_word=$2
3505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3507 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   if test -n "$ac_ct_RANLIB"; then
3511   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516   IFS=$as_save_IFS
3517   test -z "$as_dir" && as_dir=.
3518   for ac_exec_ext in '' $ac_executable_extensions; do
3519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3520     ac_cv_prog_ac_ct_RANLIB="ranlib"
3521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3522     break 2
3523   fi
3524 done
3525 done
3526 IFS=$as_save_IFS
3527
3528 fi
3529 fi
3530 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3531 if test -n "$ac_ct_RANLIB"; then
3532   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3533 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3534 else
3535   { echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6; }
3537 fi
3538
3539   if test "x$ac_ct_RANLIB" = x; then
3540     RANLIB=":"
3541   else
3542     case $cross_compiling:$ac_tool_warned in
3543 yes:)
3544 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3545 whose name does not start with the host triplet.  If you think this
3546 configuration is useful to you, please write to autoconf@gnu.org." >&5
3547 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3548 whose name does not start with the host triplet.  If you think this
3549 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3550 ac_tool_warned=yes ;;
3551 esac
3552     RANLIB=$ac_ct_RANLIB
3553   fi
3554 else
3555   RANLIB="$ac_cv_prog_RANLIB"
3556 fi
3557
3558
3559 abs_top_builddir=`pwd`
3560
3561
3562
3563 PACKAGE=freeradius
3564
3565 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3566 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3567 if test "${ac_cv_header_stdc+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h.  */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h.  */
3576 #include <stdlib.h>
3577 #include <stdarg.h>
3578 #include <string.h>
3579 #include <float.h>
3580
3581 int
3582 main ()
3583 {
3584
3585   ;
3586   return 0;
3587 }
3588 _ACEOF
3589 rm -f conftest.$ac_objext
3590 if { (ac_try="$ac_compile"
3591 case "(($ac_try" in
3592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593   *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596   (eval "$ac_compile") 2>conftest.er1
3597   ac_status=$?
3598   grep -v '^ *+' conftest.er1 >conftest.err
3599   rm -f conftest.er1
3600   cat conftest.err >&5
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } &&
3603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3604   { (case "(($ac_try" in
3605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606   *) ac_try_echo=$ac_try;;
3607 esac
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609   (eval "$ac_try") 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); }; } &&
3613          { ac_try='test -s conftest.$ac_objext'
3614   { (case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619   (eval "$ac_try") 2>&5
3620   ac_status=$?
3621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); }; }; then
3623   ac_cv_header_stdc=yes
3624 else
3625   echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628         ac_cv_header_stdc=no
3629 fi
3630
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632
3633 if test $ac_cv_header_stdc = yes; then
3634   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3635   cat >conftest.$ac_ext <<_ACEOF
3636 /* confdefs.h.  */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h.  */
3641 #include <string.h>
3642
3643 _ACEOF
3644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3645   $EGREP "memchr" >/dev/null 2>&1; then
3646   :
3647 else
3648   ac_cv_header_stdc=no
3649 fi
3650 rm -f conftest*
3651
3652 fi
3653
3654 if test $ac_cv_header_stdc = yes; then
3655   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3656   cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h.  */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h.  */
3662 #include <stdlib.h>
3663
3664 _ACEOF
3665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3666   $EGREP "free" >/dev/null 2>&1; then
3667   :
3668 else
3669   ac_cv_header_stdc=no
3670 fi
3671 rm -f conftest*
3672
3673 fi
3674
3675 if test $ac_cv_header_stdc = yes; then
3676   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3677   if test "$cross_compiling" = yes; then
3678   :
3679 else
3680   cat >conftest.$ac_ext <<_ACEOF
3681 /* confdefs.h.  */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h.  */
3686 #include <ctype.h>
3687 #include <stdlib.h>
3688 #if ((' ' & 0x0FF) == 0x020)
3689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3691 #else
3692 # define ISLOWER(c) \
3693                    (('a' <= (c) && (c) <= 'i') \
3694                      || ('j' <= (c) && (c) <= 'r') \
3695                      || ('s' <= (c) && (c) <= 'z'))
3696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3697 #endif
3698
3699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3700 int
3701 main ()
3702 {
3703   int i;
3704   for (i = 0; i < 256; i++)
3705     if (XOR (islower (i), ISLOWER (i))
3706         || toupper (i) != TOUPPER (i))
3707       return 2;
3708   return 0;
3709 }
3710 _ACEOF
3711 rm -f conftest$ac_exeext
3712 if { (ac_try="$ac_link"
3713 case "(($ac_try" in
3714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715   *) ac_try_echo=$ac_try;;
3716 esac
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718   (eval "$ac_link") 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3722   { (case "(($ac_try" in
3723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724   *) ac_try_echo=$ac_try;;
3725 esac
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727   (eval "$ac_try") 2>&5
3728   ac_status=$?
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); }; }; then
3731   :
3732 else
3733   echo "$as_me: program exited with status $ac_status" >&5
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 ( exit $ac_status )
3738 ac_cv_header_stdc=no
3739 fi
3740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3741 fi
3742
3743
3744 fi
3745 fi
3746 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3747 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3748 if test $ac_cv_header_stdc = yes; then
3749
3750 cat >>confdefs.h <<\_ACEOF
3751 #define STDC_HEADERS 1
3752 _ACEOF
3753
3754 fi
3755
3756 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3767                   inttypes.h stdint.h unistd.h
3768 do
3769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h.  */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h.  */
3781 $ac_includes_default
3782
3783 #include <$ac_header>
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (ac_try="$ac_compile"
3787 case "(($ac_try" in
3788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789   *) ac_try_echo=$ac_try;;
3790 esac
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792   (eval "$ac_compile") 2>conftest.er1
3793   ac_status=$?
3794   grep -v '^ *+' conftest.er1 >conftest.err
3795   rm -f conftest.er1
3796   cat conftest.err >&5
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); } &&
3799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3800   { (case "(($ac_try" in
3801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802   *) ac_try_echo=$ac_try;;
3803 esac
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805   (eval "$ac_try") 2>&5
3806   ac_status=$?
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); }; } &&
3809          { ac_try='test -s conftest.$ac_objext'
3810   { (case "(($ac_try" in
3811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812   *) ac_try_echo=$ac_try;;
3813 esac
3814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815   (eval "$ac_try") 2>&5
3816   ac_status=$?
3817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); }; }; then
3819   eval "$as_ac_Header=yes"
3820 else
3821   echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824         eval "$as_ac_Header=no"
3825 fi
3826
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 fi
3829 ac_res=`eval echo '${'$as_ac_Header'}'`
3830                { echo "$as_me:$LINENO: result: $ac_res" >&5
3831 echo "${ECHO_T}$ac_res" >&6; }
3832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3833   cat >>confdefs.h <<_ACEOF
3834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3835 _ACEOF
3836
3837 fi
3838
3839 done
3840
3841
3842 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3843 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3844 if test "${ac_cv_c_bigendian+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   # See if sys/param.h defines the BYTE_ORDER macro.
3848 cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h.  */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h.  */
3854 #include <sys/types.h>
3855 #include <sys/param.h>
3856
3857 int
3858 main ()
3859 {
3860 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3861         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3862  bogus endian macros
3863 #endif
3864
3865   ;
3866   return 0;
3867 }
3868 _ACEOF
3869 rm -f conftest.$ac_objext
3870 if { (ac_try="$ac_compile"
3871 case "(($ac_try" in
3872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873   *) ac_try_echo=$ac_try;;
3874 esac
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876   (eval "$ac_compile") 2>conftest.er1
3877   ac_status=$?
3878   grep -v '^ *+' conftest.er1 >conftest.err
3879   rm -f conftest.er1
3880   cat conftest.err >&5
3881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); } &&
3883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3884   { (case "(($ac_try" in
3885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886   *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889   (eval "$ac_try") 2>&5
3890   ac_status=$?
3891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892   (exit $ac_status); }; } &&
3893          { ac_try='test -s conftest.$ac_objext'
3894   { (case "(($ac_try" in
3895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896   *) ac_try_echo=$ac_try;;
3897 esac
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899   (eval "$ac_try") 2>&5
3900   ac_status=$?
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); }; }; then
3903   # It does; now see whether it defined to BIG_ENDIAN or not.
3904 cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910 #include <sys/types.h>
3911 #include <sys/param.h>
3912
3913 int
3914 main ()
3915 {
3916 #if BYTE_ORDER != BIG_ENDIAN
3917  not big endian
3918 #endif
3919
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3926 case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931   (eval "$ac_compile") 2>conftest.er1
3932   ac_status=$?
3933   grep -v '^ *+' conftest.er1 >conftest.err
3934   rm -f conftest.er1
3935   cat conftest.err >&5
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); } &&
3938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3939   { (case "(($ac_try" in
3940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941   *) ac_try_echo=$ac_try;;
3942 esac
3943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944   (eval "$ac_try") 2>&5
3945   ac_status=$?
3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947   (exit $ac_status); }; } &&
3948          { ac_try='test -s conftest.$ac_objext'
3949   { (case "(($ac_try" in
3950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951   *) ac_try_echo=$ac_try;;
3952 esac
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954   (eval "$ac_try") 2>&5
3955   ac_status=$?
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); }; }; then
3958   ac_cv_c_bigendian=yes
3959 else
3960   echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3962
3963         ac_cv_c_bigendian=no
3964 fi
3965
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 else
3968   echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3970
3971         # It does not; compile a test program.
3972 if test "$cross_compiling" = yes; then
3973   # try to guess the endianness by grepping values into an object file
3974   ac_cv_c_bigendian=unknown
3975   cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h.  */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h.  */
3981 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3982 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3983 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3984 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3985 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3986 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3987 int
3988 main ()
3989 {
3990  _ascii (); _ebcdic ();
3991   ;
3992   return 0;
3993 }
3994 _ACEOF
3995 rm -f conftest.$ac_objext
3996 if { (ac_try="$ac_compile"
3997 case "(($ac_try" in
3998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999   *) ac_try_echo=$ac_try;;
4000 esac
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002   (eval "$ac_compile") 2>conftest.er1
4003   ac_status=$?
4004   grep -v '^ *+' conftest.er1 >conftest.err
4005   rm -f conftest.er1
4006   cat conftest.err >&5
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); } &&
4009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4010   { (case "(($ac_try" in
4011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012   *) ac_try_echo=$ac_try;;
4013 esac
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015   (eval "$ac_try") 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }; } &&
4019          { ac_try='test -s conftest.$ac_objext'
4020   { (case "(($ac_try" in
4021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022   *) ac_try_echo=$ac_try;;
4023 esac
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025   (eval "$ac_try") 2>&5
4026   ac_status=$?
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); }; }; then
4029   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4030   ac_cv_c_bigendian=yes
4031 fi
4032 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4033   if test "$ac_cv_c_bigendian" = unknown; then
4034     ac_cv_c_bigendian=no
4035   else
4036     # finding both strings is unlikely to happen, but who knows?
4037     ac_cv_c_bigendian=unknown
4038   fi
4039 fi
4040 else
4041   echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044
4045 fi
4046
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 else
4049   cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h.  */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h.  */
4055 $ac_includes_default
4056 int
4057 main ()
4058 {
4059
4060   /* Are we little or big endian?  From Harbison&Steele.  */
4061   union
4062   {
4063     long int l;
4064     char c[sizeof (long int)];
4065   } u;
4066   u.l = 1;
4067   return u.c[sizeof (long int) - 1] == 1;
4068
4069   ;
4070   return 0;
4071 }
4072 _ACEOF
4073 rm -f conftest$ac_exeext
4074 if { (ac_try="$ac_link"
4075 case "(($ac_try" in
4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077   *) ac_try_echo=$ac_try;;
4078 esac
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080   (eval "$ac_link") 2>&5
4081   ac_status=$?
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4084   { (case "(($ac_try" in
4085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086   *) ac_try_echo=$ac_try;;
4087 esac
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089   (eval "$ac_try") 2>&5
4090   ac_status=$?
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); }; }; then
4093   ac_cv_c_bigendian=no
4094 else
4095   echo "$as_me: program exited with status $ac_status" >&5
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4098
4099 ( exit $ac_status )
4100 ac_cv_c_bigendian=yes
4101 fi
4102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4103 fi
4104
4105
4106 fi
4107
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 fi
4110 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4111 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4112 case $ac_cv_c_bigendian in
4113   yes)
4114
4115 cat >>confdefs.h <<\_ACEOF
4116 #define WORDS_BIGENDIAN 1
4117 _ACEOF
4118  ;;
4119   no)
4120      ;;
4121   *)
4122     { { echo "$as_me:$LINENO: error: unknown endianness
4123 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4124 echo "$as_me: error: unknown endianness
4125 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4126    { (exit 1); exit 1; }; } ;;
4127 esac
4128
4129
4130 # Extract the first word of "gmake", so it can be a program name with args.
4131 set dummy gmake; ac_word=$2
4132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4134 if test "${ac_cv_prog_GMAKE+set}" = set; then
4135   echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137   if test -n "$GMAKE"; then
4138   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143   IFS=$as_save_IFS
4144   test -z "$as_dir" && as_dir=.
4145   for ac_exec_ext in '' $ac_executable_extensions; do
4146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4147     ac_cv_prog_GMAKE="yes"
4148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149     break 2
4150   fi
4151 done
4152 done
4153 IFS=$as_save_IFS
4154
4155   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4156 fi
4157 fi
4158 GMAKE=$ac_cv_prog_GMAKE
4159 if test -n "$GMAKE"; then
4160   { echo "$as_me:$LINENO: result: $GMAKE" >&5
4161 echo "${ECHO_T}$GMAKE" >&6; }
4162 else
4163   { echo "$as_me:$LINENO: result: no" >&5
4164 echo "${ECHO_T}no" >&6; }
4165 fi
4166
4167
4168 if test $GMAKE = no; then
4169   # Extract the first word of "make", so it can be a program name with args.
4170 set dummy make; ac_word=$2
4171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4173 if test "${ac_cv_path_MAKE+set}" = set; then
4174   echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176   case $MAKE in
4177   [\\/]* | ?:[\\/]*)
4178   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4179   ;;
4180   *)
4181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186   for ac_exec_ext in '' $ac_executable_extensions; do
4187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4188     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190     break 2
4191   fi
4192 done
4193 done
4194 IFS=$as_save_IFS
4195
4196   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4197   ;;
4198 esac
4199 fi
4200 MAKE=$ac_cv_path_MAKE
4201 if test -n "$MAKE"; then
4202   { echo "$as_me:$LINENO: result: $MAKE" >&5
4203 echo "${ECHO_T}$MAKE" >&6; }
4204 else
4205   { echo "$as_me:$LINENO: result: no" >&5
4206 echo "${ECHO_T}no" >&6; }
4207 fi
4208
4209
4210 else
4211   # Extract the first word of "gmake", so it can be a program name with args.
4212 set dummy gmake; ac_word=$2
4213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4215 if test "${ac_cv_path_MAKE+set}" = set; then
4216   echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218   case $MAKE in
4219   [\\/]* | ?:[\\/]*)
4220   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4221   ;;
4222   *)
4223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226   IFS=$as_save_IFS
4227   test -z "$as_dir" && as_dir=.
4228   for ac_exec_ext in '' $ac_executable_extensions; do
4229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4230     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232     break 2
4233   fi
4234 done
4235 done
4236 IFS=$as_save_IFS
4237
4238   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4239   ;;
4240 esac
4241 fi
4242 MAKE=$ac_cv_path_MAKE
4243 if test -n "$MAKE"; then
4244   { echo "$as_me:$LINENO: result: $MAKE" >&5
4245 echo "${ECHO_T}$MAKE" >&6; }
4246 else
4247   { echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6; }
4249 fi
4250
4251
4252 fi
4253 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4254 if test -z "$makever"; then
4255   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4256                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4257 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4258                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4259    { (exit 1); exit 1; }; }
4260 fi
4261
4262   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4263 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4264 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   ac_check_lib_save_LIBS=$LIBS
4268 LIBS="-lltdl  $LIBS"
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h.  */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h.  */
4275
4276 /* Override any GCC internal prototype to avoid an error.
4277    Use char because int might match the return type of a GCC
4278    builtin and then its argument prototype would still apply.  */
4279 #ifdef __cplusplus
4280 extern "C"
4281 #endif
4282 char lt_dlinit ();
4283 int
4284 main ()
4285 {
4286 return lt_dlinit ();
4287   ;
4288   return 0;
4289 }
4290 _ACEOF
4291 rm -f conftest.$ac_objext conftest$ac_exeext
4292 if { (ac_try="$ac_link"
4293 case "(($ac_try" in
4294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295   *) ac_try_echo=$ac_try;;
4296 esac
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298   (eval "$ac_link") 2>conftest.er1
4299   ac_status=$?
4300   grep -v '^ *+' conftest.er1 >conftest.err
4301   rm -f conftest.er1
4302   cat conftest.err >&5
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); } &&
4305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4306   { (case "(($ac_try" in
4307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308   *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311   (eval "$ac_try") 2>&5
4312   ac_status=$?
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); }; } &&
4315          { ac_try='test -s conftest$ac_exeext'
4316   { (case "(($ac_try" in
4317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318   *) ac_try_echo=$ac_try;;
4319 esac
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321   (eval "$ac_try") 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); }; }; then
4325   ac_cv_lib_ltdl_lt_dlinit=yes
4326 else
4327   echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330         ac_cv_lib_ltdl_lt_dlinit=no
4331 fi
4332
4333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4334       conftest$ac_exeext conftest.$ac_ext
4335 LIBS=$ac_check_lib_save_LIBS
4336 fi
4337 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4338 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4339 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4340   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4341 else
4342   if test x"$enable_ltdl_install" = xno; then
4343      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4344 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4345    else
4346      enable_ltdl_install=yes
4347    fi
4348
4349 fi
4350
4351   if test x"$enable_ltdl_install" = x"yes"; then
4352     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4353     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4354     LTDLINCL='-I${top_srcdir}/''libltdl'
4355   else
4356     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4357     LIBLTDL="-lltdl"
4358     LTDLINCL=
4359   fi
4360   # For backwards non-gettext consistent compatibility...
4361   INCLTDL="$LTDLINCL"
4362
4363
4364 if test x"$enable_ltdl_install" = x"yes"; then
4365   LTDL_SUBDIRS=libltdl
4366 fi
4367
4368
4369 # Check whether --enable-shared was given.
4370 if test "${enable_shared+set}" = set; then
4371   enableval=$enable_shared; p=${PACKAGE-default}
4372     case $enableval in
4373     yes) enable_shared=yes ;;
4374     no) enable_shared=no ;;
4375     *)
4376       enable_shared=no
4377       # Look at the argument we got.  We use all the common list separators.
4378       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4379       for pkg in $enableval; do
4380         IFS="$lt_save_ifs"
4381         if test "X$pkg" = "X$p"; then
4382           enable_shared=yes
4383         fi
4384       done
4385       IFS="$lt_save_ifs"
4386       ;;
4387     esac
4388 else
4389   enable_shared=yes
4390 fi
4391
4392
4393 # Check whether --enable-static was given.
4394 if test "${enable_static+set}" = set; then
4395   enableval=$enable_static; p=${PACKAGE-default}
4396     case $enableval in
4397     yes) enable_static=yes ;;
4398     no) enable_static=no ;;
4399     *)
4400      enable_static=no
4401       # Look at the argument we got.  We use all the common list separators.
4402       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4403       for pkg in $enableval; do
4404         IFS="$lt_save_ifs"
4405         if test "X$pkg" = "X$p"; then
4406           enable_static=yes
4407         fi
4408       done
4409       IFS="$lt_save_ifs"
4410       ;;
4411     esac
4412 else
4413   enable_static=yes
4414 fi
4415
4416
4417 # Check whether --enable-fast-install was given.
4418 if test "${enable_fast_install+set}" = set; then
4419   enableval=$enable_fast_install; p=${PACKAGE-default}
4420     case $enableval in
4421     yes) enable_fast_install=yes ;;
4422     no) enable_fast_install=no ;;
4423     *)
4424       enable_fast_install=no
4425       # Look at the argument we got.  We use all the common list separators.
4426       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4427       for pkg in $enableval; do
4428         IFS="$lt_save_ifs"
4429         if test "X$pkg" = "X$p"; then
4430           enable_fast_install=yes
4431         fi
4432       done
4433       IFS="$lt_save_ifs"
4434       ;;
4435     esac
4436 else
4437   enable_fast_install=yes
4438 fi
4439
4440
4441 ac_aux_dir=
4442 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4443   if test -f "$ac_dir/install-sh"; then
4444     ac_aux_dir=$ac_dir
4445     ac_install_sh="$ac_aux_dir/install-sh -c"
4446     break
4447   elif test -f "$ac_dir/install.sh"; then
4448     ac_aux_dir=$ac_dir
4449     ac_install_sh="$ac_aux_dir/install.sh -c"
4450     break
4451   elif test -f "$ac_dir/shtool"; then
4452     ac_aux_dir=$ac_dir
4453     ac_install_sh="$ac_aux_dir/shtool install -c"
4454     break
4455   fi
4456 done
4457 if test -z "$ac_aux_dir"; then
4458   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4459 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4460    { (exit 1); exit 1; }; }
4461 fi
4462
4463 # These three variables are undocumented and unsupported,
4464 # and are intended to be withdrawn in a future Autoconf release.
4465 # They can cause serious problems if a builder's source tree is in a directory
4466 # whose full name contains unusual characters.
4467 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4468 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4469 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4470
4471
4472 # Make sure we can run config.sub.
4473 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4474   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4475 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4476    { (exit 1); exit 1; }; }
4477
4478 { echo "$as_me:$LINENO: checking build system type" >&5
4479 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4480 if test "${ac_cv_build+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   ac_build_alias=$build_alias
4484 test "x$ac_build_alias" = x &&
4485   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4486 test "x$ac_build_alias" = x &&
4487   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4488 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4489    { (exit 1); exit 1; }; }
4490 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4491   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4492 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4493    { (exit 1); exit 1; }; }
4494
4495 fi
4496 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4497 echo "${ECHO_T}$ac_cv_build" >&6; }
4498 case $ac_cv_build in
4499 *-*-*) ;;
4500 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4501 echo "$as_me: error: invalid value of canonical build" >&2;}
4502    { (exit 1); exit 1; }; };;
4503 esac
4504 build=$ac_cv_build
4505 ac_save_IFS=$IFS; IFS='-'
4506 set x $ac_cv_build
4507 shift
4508 build_cpu=$1
4509 build_vendor=$2
4510 shift; shift
4511 # Remember, the first character of IFS is used to create $*,
4512 # except with old shells:
4513 build_os=$*
4514 IFS=$ac_save_IFS
4515 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4516
4517
4518 { echo "$as_me:$LINENO: checking host system type" >&5
4519 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4520 if test "${ac_cv_host+set}" = set; then
4521   echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523   if test "x$host_alias" = x; then
4524   ac_cv_host=$ac_cv_build
4525 else
4526   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4527     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4528 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4529    { (exit 1); exit 1; }; }
4530 fi
4531
4532 fi
4533 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4534 echo "${ECHO_T}$ac_cv_host" >&6; }
4535 case $ac_cv_host in
4536 *-*-*) ;;
4537 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4538 echo "$as_me: error: invalid value of canonical host" >&2;}
4539    { (exit 1); exit 1; }; };;
4540 esac
4541 host=$ac_cv_host
4542 ac_save_IFS=$IFS; IFS='-'
4543 set x $ac_cv_host
4544 shift
4545 host_cpu=$1
4546 host_vendor=$2
4547 shift; shift
4548 # Remember, the first character of IFS is used to create $*,
4549 # except with old shells:
4550 host_os=$*
4551 IFS=$ac_save_IFS
4552 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4553
4554
4555 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4556 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4557 if test "${lt_cv_path_SED+set}" = set; then
4558   echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560   # Loop through the user's path and test for sed and gsed.
4561 # Then use that list of sed's as ones to test for truncation.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565   IFS=$as_save_IFS
4566   test -z "$as_dir" && as_dir=.
4567   for lt_ac_prog in sed gsed; do
4568     for ac_exec_ext in '' $ac_executable_extensions; do
4569       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4570         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4571       fi
4572     done
4573   done
4574 done
4575 lt_ac_max=0
4576 lt_ac_count=0
4577 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4578 # along with /bin/sed that truncates output.
4579 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4580   test ! -f $lt_ac_sed && continue
4581   cat /dev/null > conftest.in
4582   lt_ac_count=0
4583   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4584   # Check for GNU sed and select it if it is found.
4585   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4586     lt_cv_path_SED=$lt_ac_sed
4587     break
4588   fi
4589   while true; do
4590     cat conftest.in conftest.in >conftest.tmp
4591     mv conftest.tmp conftest.in
4592     cp conftest.in conftest.nl
4593     echo >>conftest.nl
4594     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4595     cmp -s conftest.out conftest.nl || break
4596     # 10000 chars as input seems more than enough
4597     test $lt_ac_count -gt 10 && break
4598     lt_ac_count=`expr $lt_ac_count + 1`
4599     if test $lt_ac_count -gt $lt_ac_max; then
4600       lt_ac_max=$lt_ac_count
4601       lt_cv_path_SED=$lt_ac_sed
4602     fi
4603   done
4604 done
4605
4606 fi
4607
4608 SED=$lt_cv_path_SED
4609 { echo "$as_me:$LINENO: result: $SED" >&5
4610 echo "${ECHO_T}$SED" >&6; }
4611
4612
4613 # Check whether --with-gnu-ld was given.
4614 if test "${with_gnu_ld+set}" = set; then
4615   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4616 else
4617   with_gnu_ld=no
4618 fi
4619
4620 ac_prog=ld
4621 if test "$GCC" = yes; then
4622   # Check if gcc -print-prog-name=ld gives a path.
4623   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4624 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4625   case $host in
4626   *-*-mingw*)
4627     # gcc leaves a trailing carriage return which upsets mingw
4628     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4629   *)
4630     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4631   esac
4632   case $ac_prog in
4633     # Accept absolute paths.
4634     [\\/]* | ?:[\\/]*)
4635       re_direlt='/[^/][^/]*/\.\./'
4636       # Canonicalize the pathname of ld
4637       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4638       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4639         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4640       done
4641       test -z "$LD" && LD="$ac_prog"
4642       ;;
4643   "")
4644     # If it fails, then pretend we aren't using GCC.
4645     ac_prog=ld
4646     ;;
4647   *)
4648     # If it is relative, then search for the first ld in PATH.
4649     with_gnu_ld=unknown
4650     ;;
4651   esac
4652 elif test "$with_gnu_ld" = yes; then
4653   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4654 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4655 else
4656   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4657 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4658 fi
4659 if test "${lt_cv_path_LD+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   if test -z "$LD"; then
4663   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4664   for ac_dir in $PATH; do
4665     IFS="$lt_save_ifs"
4666     test -z "$ac_dir" && ac_dir=.
4667     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4668       lt_cv_path_LD="$ac_dir/$ac_prog"
4669       # Check to see if the program is GNU ld.  I'd rather use --version,
4670       # but apparently some variants of GNU ld only accept -v.
4671       # Break only if it was the GNU/non-GNU ld that we prefer.
4672       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4673       *GNU* | *'with BFD'*)
4674         test "$with_gnu_ld" != no && break
4675         ;;
4676       *)
4677         test "$with_gnu_ld" != yes && break
4678         ;;
4679       esac
4680     fi
4681   done
4682   IFS="$lt_save_ifs"
4683 else
4684   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4685 fi
4686 fi
4687
4688 LD="$lt_cv_path_LD"
4689 if test -n "$LD"; then
4690   { echo "$as_me:$LINENO: result: $LD" >&5
4691 echo "${ECHO_T}$LD" >&6; }
4692 else
4693   { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4695 fi
4696 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4697 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4698    { (exit 1); exit 1; }; }
4699 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4700 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4701 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4705 case `$LD -v 2>&1 </dev/null` in
4706 *GNU* | *'with BFD'*)
4707   lt_cv_prog_gnu_ld=yes
4708   ;;
4709 *)
4710   lt_cv_prog_gnu_ld=no
4711   ;;
4712 esac
4713 fi
4714 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4715 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4716 with_gnu_ld=$lt_cv_prog_gnu_ld
4717
4718
4719 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4720 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4721 if test "${lt_cv_ld_reload_flag+set}" = set; then
4722   echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724   lt_cv_ld_reload_flag='-r'
4725 fi
4726 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4727 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4728 reload_flag=$lt_cv_ld_reload_flag
4729 case $reload_flag in
4730 "" | " "*) ;;
4731 *) reload_flag=" $reload_flag" ;;
4732 esac
4733 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4734 case $host_os in
4735   darwin*)
4736     if test "$GCC" = yes; then
4737       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4738     else
4739       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4740     fi
4741     ;;
4742 esac
4743
4744 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4745 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4746 if test "${lt_cv_path_NM+set}" = set; then
4747   echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749   if test -n "$NM"; then
4750   # Let the user override the test.
4751   lt_cv_path_NM="$NM"
4752 else
4753   lt_nm_to_check="${ac_tool_prefix}nm"
4754   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4755     lt_nm_to_check="$lt_nm_to_check nm"
4756   fi
4757   for lt_tmp_nm in $lt_nm_to_check; do
4758     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4759     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4760       IFS="$lt_save_ifs"
4761       test -z "$ac_dir" && ac_dir=.
4762       tmp_nm="$ac_dir/$lt_tmp_nm"
4763       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4764         # Check to see if the nm accepts a BSD-compat flag.
4765         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4766         #   nm: unknown option "B" ignored
4767         # Tru64's nm complains that /dev/null is an invalid object file
4768         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4769         */dev/null* | *'Invalid file or object type'*)
4770           lt_cv_path_NM="$tmp_nm -B"
4771           break
4772           ;;
4773         *)
4774           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4775           */dev/null*)
4776             lt_cv_path_NM="$tmp_nm -p"
4777             break
4778             ;;
4779           *)
4780             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4781             continue # so that we can try to find one that supports BSD flags
4782             ;;
4783           esac
4784           ;;
4785         esac
4786       fi
4787     done
4788     IFS="$lt_save_ifs"
4789   done
4790   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4791 fi
4792 fi
4793 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4794 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4795 NM="$lt_cv_path_NM"
4796
4797 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4798 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4799 LN_S=$as_ln_s
4800 if test "$LN_S" = "ln -s"; then
4801   { echo "$as_me:$LINENO: result: yes" >&5
4802 echo "${ECHO_T}yes" >&6; }
4803 else
4804   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4805 echo "${ECHO_T}no, using $LN_S" >&6; }
4806 fi
4807
4808 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4809 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4810 if test "${lt_cv_deplibs_check_method+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   lt_cv_file_magic_cmd='$MAGIC_CMD'
4814 lt_cv_file_magic_test_file=
4815 lt_cv_deplibs_check_method='unknown'
4816 # Need to set the preceding variable on all platforms that support
4817 # interlibrary dependencies.
4818 # 'none' -- dependencies not supported.
4819 # `unknown' -- same as none, but documents that we really don't know.
4820 # 'pass_all' -- all dependencies passed with no checks.
4821 # 'test_compile' -- check by making test program.
4822 # 'file_magic [[regex]]' -- check by looking for files in library path
4823 # which responds to the $file_magic_cmd with a given extended regex.
4824 # If you have `file' or equivalent on your system and you're not sure
4825 # whether `pass_all' will *always* work, you probably want this one.
4826
4827 case $host_os in
4828 aix4* | aix5*)
4829   lt_cv_deplibs_check_method=pass_all
4830   ;;
4831
4832 beos*)
4833   lt_cv_deplibs_check_method=pass_all
4834   ;;
4835
4836 bsdi[45]*)
4837   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4838   lt_cv_file_magic_cmd='/usr/bin/file -L'
4839   lt_cv_file_magic_test_file=/shlib/libc.so
4840   ;;
4841
4842 cygwin*)
4843   # func_win32_libid is a shell function defined in ltmain.sh
4844   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4845   lt_cv_file_magic_cmd='func_win32_libid'
4846   ;;
4847
4848 mingw* | pw32*)
4849   # Base MSYS/MinGW do not provide the 'file' command needed by
4850   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4851   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4852   lt_cv_file_magic_cmd='$OBJDUMP -f'
4853   ;;
4854
4855 darwin* | rhapsody*)
4856   lt_cv_deplibs_check_method=pass_all
4857   ;;
4858
4859 freebsd* | kfreebsd*-gnu | dragonfly*)
4860   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4861     case $host_cpu in
4862     i*86 )
4863       # Not sure whether the presence of OpenBSD here was a mistake.
4864       # Let's accept both of them until this is cleared up.
4865       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4866       lt_cv_file_magic_cmd=/usr/bin/file
4867       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4868       ;;
4869     esac
4870   else
4871     lt_cv_deplibs_check_method=pass_all
4872   fi
4873   ;;
4874
4875 gnu*)
4876   lt_cv_deplibs_check_method=pass_all
4877   ;;
4878
4879 hpux10.20* | hpux11*)
4880   lt_cv_file_magic_cmd=/usr/bin/file
4881   case $host_cpu in
4882   ia64*)
4883     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4884     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4885     ;;
4886   hppa*64*)
4887     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]'
4888     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4889     ;;
4890   *)
4891     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4892     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4893     ;;
4894   esac
4895   ;;
4896
4897 interix3*)
4898   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4899   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4900   ;;
4901
4902 irix5* | irix6* | nonstopux*)
4903   case $LD in
4904   *-32|*"-32 ") libmagic=32-bit;;
4905   *-n32|*"-n32 ") libmagic=N32;;
4906   *-64|*"-64 ") libmagic=64-bit;;
4907   *) libmagic=never-match;;
4908   esac
4909   lt_cv_deplibs_check_method=pass_all
4910   ;;
4911
4912 # This must be Linux ELF.
4913 linux*)
4914   lt_cv_deplibs_check_method=pass_all
4915   ;;
4916
4917 netbsd*)
4918   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4919     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4920   else
4921     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4922   fi
4923   ;;
4924
4925 newos6*)
4926   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4927   lt_cv_file_magic_cmd=/usr/bin/file
4928   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4929   ;;
4930
4931 nto-qnx*)
4932   lt_cv_deplibs_check_method=unknown
4933   ;;
4934
4935 openbsd*)
4936   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4937     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4938   else
4939     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4940   fi
4941   ;;
4942
4943 osf3* | osf4* | osf5*)
4944   lt_cv_deplibs_check_method=pass_all
4945   ;;
4946
4947 solaris*)
4948   lt_cv_deplibs_check_method=pass_all
4949   ;;
4950
4951 sysv4 | sysv4.3*)
4952   case $host_vendor in
4953   motorola)
4954     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]'
4955     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4956     ;;
4957   ncr)
4958     lt_cv_deplibs_check_method=pass_all
4959     ;;
4960   sequent)
4961     lt_cv_file_magic_cmd='/bin/file'
4962     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4963     ;;
4964   sni)
4965     lt_cv_file_magic_cmd='/bin/file'
4966     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4967     lt_cv_file_magic_test_file=/lib/libc.so
4968     ;;
4969   siemens)
4970     lt_cv_deplibs_check_method=pass_all
4971     ;;
4972   pc)
4973     lt_cv_deplibs_check_method=pass_all
4974     ;;
4975   esac
4976   ;;
4977
4978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4979   lt_cv_deplibs_check_method=pass_all
4980   ;;
4981 esac
4982
4983 fi
4984 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4985 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4986 file_magic_cmd=$lt_cv_file_magic_cmd
4987 deplibs_check_method=$lt_cv_deplibs_check_method
4988 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4989
4990
4991
4992
4993 # If no C compiler was specified, use CC.
4994 LTCC=${LTCC-"$CC"}
4995
4996 # If no C compiler flags were specified, use CFLAGS.
4997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4998
4999 # Allow CC to be a program name with arguments.
5000 compiler=$CC
5001
5002 # Check whether --enable-libtool-lock was given.
5003 if test "${enable_libtool_lock+set}" = set; then
5004   enableval=$enable_libtool_lock;
5005 fi
5006
5007 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5008
5009 # Some flags need to be propagated to the compiler or linker for good
5010 # libtool support.
5011 case $host in
5012 ia64-*-hpux*)
5013   # Find out which ABI we are using.
5014   echo 'int i;' > conftest.$ac_ext
5015   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016   (eval $ac_compile) 2>&5
5017   ac_status=$?
5018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019   (exit $ac_status); }; then
5020     case `/usr/bin/file conftest.$ac_objext` in
5021     *ELF-32*)
5022       HPUX_IA64_MODE="32"
5023       ;;
5024     *ELF-64*)
5025       HPUX_IA64_MODE="64"
5026       ;;
5027     esac
5028   fi
5029   rm -rf conftest*
5030   ;;
5031 *-*-irix6*)
5032   # Find out which ABI we are using.
5033   echo '#line 5033 "configure"' > conftest.$ac_ext
5034   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035   (eval $ac_compile) 2>&5
5036   ac_status=$?
5037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038   (exit $ac_status); }; then
5039    if test "$lt_cv_prog_gnu_ld" = yes; then
5040     case `/usr/bin/file conftest.$ac_objext` in
5041     *32-bit*)
5042       LD="${LD-ld} -melf32bsmip"
5043       ;;
5044     *N32*)
5045       LD="${LD-ld} -melf32bmipn32"
5046       ;;
5047     *64-bit*)
5048       LD="${LD-ld} -melf64bmip"
5049       ;;
5050     esac
5051    else
5052     case `/usr/bin/file conftest.$ac_objext` in
5053     *32-bit*)
5054       LD="${LD-ld} -32"
5055       ;;
5056     *N32*)
5057       LD="${LD-ld} -n32"
5058       ;;
5059     *64-bit*)
5060       LD="${LD-ld} -64"
5061       ;;
5062     esac
5063    fi
5064   fi
5065   rm -rf conftest*
5066   ;;
5067
5068 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5069   # Find out which ABI we are using.
5070   echo 'int i;' > conftest.$ac_ext
5071   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072   (eval $ac_compile) 2>&5
5073   ac_status=$?
5074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); }; then
5076     case `/usr/bin/file conftest.o` in
5077     *32-bit*)
5078       case $host in
5079         x86_64-*linux*)
5080           LD="${LD-ld} -m elf_i386"
5081           ;;
5082         ppc64-*linux*|powerpc64-*linux*)
5083           LD="${LD-ld} -m elf32ppclinux"
5084           ;;
5085         s390x-*linux*)
5086           LD="${LD-ld} -m elf_s390"
5087           ;;
5088         sparc64-*linux*)
5089           LD="${LD-ld} -m elf32_sparc"
5090           ;;
5091       esac
5092       ;;
5093     *64-bit*)
5094       case $host in
5095         x86_64-*linux*)
5096           LD="${LD-ld} -m elf_x86_64"
5097           ;;
5098         ppc*-*linux*|powerpc*-*linux*)
5099           LD="${LD-ld} -m elf64ppc"
5100           ;;
5101         s390*-*linux*)
5102           LD="${LD-ld} -m elf64_s390"
5103           ;;
5104         sparc*-*linux*)
5105           LD="${LD-ld} -m elf64_sparc"
5106           ;;
5107       esac
5108       ;;
5109     esac
5110   fi
5111   rm -rf conftest*
5112   ;;
5113
5114 *-*-sco3.2v5*)
5115   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5116   SAVE_CFLAGS="$CFLAGS"
5117   CFLAGS="$CFLAGS -belf"
5118   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5119 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5120 if test "${lt_cv_cc_needs_belf+set}" = set; then
5121   echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123   ac_ext=c
5124 ac_cpp='$CPP $CPPFLAGS'
5125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5128
5129      cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h.  */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h.  */
5135
5136 int
5137 main ()
5138 {
5139
5140   ;
5141   return 0;
5142 }
5143 _ACEOF
5144 rm -f conftest.$ac_objext conftest$ac_exeext
5145 if { (ac_try="$ac_link"
5146 case "(($ac_try" in
5147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148   *) ac_try_echo=$ac_try;;
5149 esac
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151   (eval "$ac_link") 2>conftest.er1
5152   ac_status=$?
5153   grep -v '^ *+' conftest.er1 >conftest.err
5154   rm -f conftest.er1
5155   cat conftest.err >&5
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); } &&
5158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5159   { (case "(($ac_try" in
5160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161   *) ac_try_echo=$ac_try;;
5162 esac
5163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164   (eval "$ac_try") 2>&5
5165   ac_status=$?
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); }; } &&
5168          { ac_try='test -s conftest$ac_exeext'
5169   { (case "(($ac_try" in
5170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171   *) ac_try_echo=$ac_try;;
5172 esac
5173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174   (eval "$ac_try") 2>&5
5175   ac_status=$?
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); }; }; then
5178   lt_cv_cc_needs_belf=yes
5179 else
5180   echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5182
5183         lt_cv_cc_needs_belf=no
5184 fi
5185
5186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5187       conftest$ac_exeext conftest.$ac_ext
5188      ac_ext=c
5189 ac_cpp='$CPP $CPPFLAGS'
5190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193
5194 fi
5195 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5196 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5197   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5198     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5199     CFLAGS="$SAVE_CFLAGS"
5200   fi
5201   ;;
5202 sparc*-*solaris*)
5203   # Find out which ABI we are using.
5204   echo 'int i;' > conftest.$ac_ext
5205   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206   (eval $ac_compile) 2>&5
5207   ac_status=$?
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); }; then
5210     case `/usr/bin/file conftest.o` in
5211     *64-bit*)
5212       case $lt_cv_prog_gnu_ld in
5213       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5214       *)    LD="${LD-ld} -64" ;;
5215       esac
5216       ;;
5217     esac
5218   fi
5219   rm -rf conftest*
5220   ;;
5221
5222
5223 esac
5224
5225 need_locks="$enable_libtool_lock"
5226
5227
5228
5229 for ac_header in dlfcn.h
5230 do
5231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5233   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5236   echo $ECHO_N "(cached) $ECHO_C" >&6
5237 fi
5238 ac_res=`eval echo '${'$as_ac_Header'}'`
5239                { echo "$as_me:$LINENO: result: $ac_res" >&5
5240 echo "${ECHO_T}$ac_res" >&6; }
5241 else
5242   # Is the header compilable?
5243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5245 cat >conftest.$ac_ext <<_ACEOF
5246 /* confdefs.h.  */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h.  */
5251 $ac_includes_default
5252 #include <$ac_header>
5253 _ACEOF
5254 rm -f conftest.$ac_objext
5255 if { (ac_try="$ac_compile"
5256 case "(($ac_try" in
5257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258   *) ac_try_echo=$ac_try;;
5259 esac
5260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261   (eval "$ac_compile") 2>conftest.er1
5262   ac_status=$?
5263   grep -v '^ *+' conftest.er1 >conftest.err
5264   rm -f conftest.er1
5265   cat conftest.err >&5
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); } &&
5268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5269   { (case "(($ac_try" in
5270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271   *) ac_try_echo=$ac_try;;
5272 esac
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274   (eval "$ac_try") 2>&5
5275   ac_status=$?
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); }; } &&
5278          { ac_try='test -s conftest.$ac_objext'
5279   { (case "(($ac_try" in
5280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281   *) ac_try_echo=$ac_try;;
5282 esac
5283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5284   (eval "$ac_try") 2>&5
5285   ac_status=$?
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); }; }; then
5288   ac_header_compiler=yes
5289 else
5290   echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5292
5293         ac_header_compiler=no
5294 fi
5295
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5298 echo "${ECHO_T}$ac_header_compiler" >&6; }
5299
5300 # Is the header present?
5301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5303 cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h.  */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h.  */
5309 #include <$ac_header>
5310 _ACEOF
5311 if { (ac_try="$ac_cpp conftest.$ac_ext"
5312 case "(($ac_try" in
5313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314   *) ac_try_echo=$ac_try;;
5315 esac
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5318   ac_status=$?
5319   grep -v '^ *+' conftest.er1 >conftest.err
5320   rm -f conftest.er1
5321   cat conftest.err >&5
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); } >/dev/null; then
5324   if test -s conftest.err; then
5325     ac_cpp_err=$ac_c_preproc_warn_flag
5326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5327   else
5328     ac_cpp_err=
5329   fi
5330 else
5331   ac_cpp_err=yes
5332 fi
5333 if test -z "$ac_cpp_err"; then
5334   ac_header_preproc=yes
5335 else
5336   echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339   ac_header_preproc=no
5340 fi
5341
5342 rm -f conftest.err conftest.$ac_ext
5343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5344 echo "${ECHO_T}$ac_header_preproc" >&6; }
5345
5346 # So?  What about this header?
5347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5348   yes:no: )
5349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5353     ac_header_preproc=yes
5354     ;;
5355   no:yes:* )
5356     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5358     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5359 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5360     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5362     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5363 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5366     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5368
5369     ;;
5370 esac
5371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5374   echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376   eval "$as_ac_Header=\$ac_header_preproc"
5377 fi
5378 ac_res=`eval echo '${'$as_ac_Header'}'`
5379                { echo "$as_me:$LINENO: result: $ac_res" >&5
5380 echo "${ECHO_T}$ac_res" >&6; }
5381
5382 fi
5383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5384   cat >>confdefs.h <<_ACEOF
5385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5386 _ACEOF
5387
5388 fi
5389
5390 done
5391
5392 ac_ext=cpp
5393 ac_cpp='$CXXCPP $CPPFLAGS'
5394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5397 if test -z "$CXX"; then
5398   if test -n "$CCC"; then
5399     CXX=$CCC
5400   else
5401     if test -n "$ac_tool_prefix"; then
5402   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5403   do
5404     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5408 if test "${ac_cv_prog_CXX+set}" = set; then
5409   echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411   if test -n "$CXX"; then
5412   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417   IFS=$as_save_IFS
5418   test -z "$as_dir" && as_dir=.
5419   for ac_exec_ext in '' $ac_executable_extensions; do
5420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5421     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423     break 2
5424   fi
5425 done
5426 done
5427 IFS=$as_save_IFS
5428
5429 fi
5430 fi
5431 CXX=$ac_cv_prog_CXX
5432 if test -n "$CXX"; then
5433   { echo "$as_me:$LINENO: result: $CXX" >&5
5434 echo "${ECHO_T}$CXX" >&6; }
5435 else
5436   { echo "$as_me:$LINENO: result: no" >&5
5437 echo "${ECHO_T}no" >&6; }
5438 fi
5439
5440
5441     test -n "$CXX" && break
5442   done
5443 fi
5444 if test -z "$CXX"; then
5445   ac_ct_CXX=$CXX
5446   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5447 do
5448   # Extract the first word of "$ac_prog", so it can be a program name with args.
5449 set dummy $ac_prog; ac_word=$2
5450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5452 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5453   echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455   if test -n "$ac_ct_CXX"; then
5456   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461   IFS=$as_save_IFS
5462   test -z "$as_dir" && as_dir=.
5463   for ac_exec_ext in '' $ac_executable_extensions; do
5464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5465     ac_cv_prog_ac_ct_CXX="$ac_prog"
5466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467     break 2
5468   fi
5469 done
5470 done
5471 IFS=$as_save_IFS
5472
5473 fi
5474 fi
5475 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5476 if test -n "$ac_ct_CXX"; then
5477   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5478 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5479 else
5480   { echo "$as_me:$LINENO: result: no" >&5
5481 echo "${ECHO_T}no" >&6; }
5482 fi
5483
5484
5485   test -n "$ac_ct_CXX" && break
5486 done
5487
5488   if test "x$ac_ct_CXX" = x; then
5489     CXX="g++"
5490   else
5491     case $cross_compiling:$ac_tool_warned in
5492 yes:)
5493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5494 whose name does not start with the host triplet.  If you think this
5495 configuration is useful to you, please write to autoconf@gnu.org." >&5
5496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5497 whose name does not start with the host triplet.  If you think this
5498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5499 ac_tool_warned=yes ;;
5500 esac
5501     CXX=$ac_ct_CXX
5502   fi
5503 fi
5504
5505   fi
5506 fi
5507 # Provide some information about the compiler.
5508 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5509 ac_compiler=`set X $ac_compile; echo $2`
5510 { (ac_try="$ac_compiler --version >&5"
5511 case "(($ac_try" in
5512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513   *) ac_try_echo=$ac_try;;
5514 esac
5515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516   (eval "$ac_compiler --version >&5") 2>&5
5517   ac_status=$?
5518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519   (exit $ac_status); }
5520 { (ac_try="$ac_compiler -v >&5"
5521 case "(($ac_try" in
5522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523   *) ac_try_echo=$ac_try;;
5524 esac
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526   (eval "$ac_compiler -v >&5") 2>&5
5527   ac_status=$?
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); }
5530 { (ac_try="$ac_compiler -V >&5"
5531 case "(($ac_try" in
5532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533   *) ac_try_echo=$ac_try;;
5534 esac
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536   (eval "$ac_compiler -V >&5") 2>&5
5537   ac_status=$?
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); }
5540
5541 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5542 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5543 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5544   echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546   cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h.  */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h.  */
5552
5553 int
5554 main ()
5555 {
5556 #ifndef __GNUC__
5557        choke me
5558 #endif
5559
5560   ;
5561   return 0;
5562 }
5563 _ACEOF
5564 rm -f conftest.$ac_objext
5565 if { (ac_try="$ac_compile"
5566 case "(($ac_try" in
5567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568   *) ac_try_echo=$ac_try;;
5569 esac
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571   (eval "$ac_compile") 2>conftest.er1
5572   ac_status=$?
5573   grep -v '^ *+' conftest.er1 >conftest.err
5574   rm -f conftest.er1
5575   cat conftest.err >&5
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); } &&
5578          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5579   { (case "(($ac_try" in
5580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581   *) ac_try_echo=$ac_try;;
5582 esac
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584   (eval "$ac_try") 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); }; } &&
5588          { ac_try='test -s conftest.$ac_objext'
5589   { (case "(($ac_try" in
5590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591   *) ac_try_echo=$ac_try;;
5592 esac
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594   (eval "$ac_try") 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); }; }; then
5598   ac_compiler_gnu=yes
5599 else
5600   echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5602
5603         ac_compiler_gnu=no
5604 fi
5605
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5608
5609 fi
5610 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5612 GXX=`test $ac_compiler_gnu = yes && echo yes`
5613 ac_test_CXXFLAGS=${CXXFLAGS+set}
5614 ac_save_CXXFLAGS=$CXXFLAGS
5615 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5616 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5617 if test "${ac_cv_prog_cxx_g+set}" = set; then
5618   echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5620   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5621    ac_cxx_werror_flag=yes
5622    ac_cv_prog_cxx_g=no
5623    CXXFLAGS="-g"
5624    cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h.  */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h.  */
5630
5631 int
5632 main ()
5633 {
5634
5635   ;
5636   return 0;
5637 }
5638 _ACEOF
5639 rm -f conftest.$ac_objext
5640 if { (ac_try="$ac_compile"
5641 case "(($ac_try" in
5642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643   *) ac_try_echo=$ac_try;;
5644 esac
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646   (eval "$ac_compile") 2>conftest.er1
5647   ac_status=$?
5648   grep -v '^ *+' conftest.er1 >conftest.err
5649   rm -f conftest.er1
5650   cat conftest.err >&5
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } &&
5653          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5654   { (case "(($ac_try" in
5655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656   *) ac_try_echo=$ac_try;;
5657 esac
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659   (eval "$ac_try") 2>&5
5660   ac_status=$?
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); }; } &&
5663          { ac_try='test -s conftest.$ac_objext'
5664   { (case "(($ac_try" in
5665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666   *) ac_try_echo=$ac_try;;
5667 esac
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669   (eval "$ac_try") 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }; }; then
5673   ac_cv_prog_cxx_g=yes
5674 else
5675   echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678         CXXFLAGS=""
5679       cat >conftest.$ac_ext <<_ACEOF
5680 /* confdefs.h.  */
5681 _ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h.  */
5685
5686 int
5687 main ()
5688 {
5689
5690   ;
5691   return 0;
5692 }
5693 _ACEOF
5694 rm -f conftest.$ac_objext
5695 if { (ac_try="$ac_compile"
5696 case "(($ac_try" in
5697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698   *) ac_try_echo=$ac_try;;
5699 esac
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701   (eval "$ac_compile") 2>conftest.er1
5702   ac_status=$?
5703   grep -v '^ *+' conftest.er1 >conftest.err
5704   rm -f conftest.er1
5705   cat conftest.err >&5
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); } &&
5708          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5709   { (case "(($ac_try" in
5710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711   *) ac_try_echo=$ac_try;;
5712 esac
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714   (eval "$ac_try") 2>&5
5715   ac_status=$?
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); }; } &&
5718          { ac_try='test -s conftest.$ac_objext'
5719   { (case "(($ac_try" in
5720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721   *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724   (eval "$ac_try") 2>&5
5725   ac_status=$?
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); }; }; then
5728   :
5729 else
5730   echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5732
5733         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5734          CXXFLAGS="-g"
5735          cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h.  */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h.  */
5741
5742 int
5743 main ()
5744 {
5745
5746   ;
5747   return 0;
5748 }
5749 _ACEOF
5750 rm -f conftest.$ac_objext
5751 if { (ac_try="$ac_compile"
5752 case "(($ac_try" in
5753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754   *) ac_try_echo=$ac_try;;
5755 esac
5756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757   (eval "$ac_compile") 2>conftest.er1
5758   ac_status=$?
5759   grep -v '^ *+' conftest.er1 >conftest.err
5760   rm -f conftest.er1
5761   cat conftest.err >&5
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); } &&
5764          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5765   { (case "(($ac_try" in
5766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767   *) ac_try_echo=$ac_try;;
5768 esac
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770   (eval "$ac_try") 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); }; } &&
5774          { ac_try='test -s conftest.$ac_objext'
5775   { (case "(($ac_try" in
5776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777   *) ac_try_echo=$ac_try;;
5778 esac
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780   (eval "$ac_try") 2>&5
5781   ac_status=$?
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); }; }; then
5784   ac_cv_prog_cxx_g=yes
5785 else
5786   echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789
5790 fi
5791
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 fi
5794
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 fi
5797
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5800 fi
5801 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5802 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5803 if test "$ac_test_CXXFLAGS" = set; then
5804   CXXFLAGS=$ac_save_CXXFLAGS
5805 elif test $ac_cv_prog_cxx_g = yes; then
5806   if test "$GXX" = yes; then
5807     CXXFLAGS="-g -O2"
5808   else
5809     CXXFLAGS="-g"
5810   fi
5811 else
5812   if test "$GXX" = yes; then
5813     CXXFLAGS="-O2"
5814   else
5815     CXXFLAGS=
5816   fi
5817 fi
5818 ac_ext=cpp
5819 ac_cpp='$CXXCPP $CPPFLAGS'
5820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5823
5824
5825
5826 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5827     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5828     (test "X$CXX" != "Xg++"))) ; then
5829   ac_ext=cpp
5830 ac_cpp='$CXXCPP $CPPFLAGS'
5831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5834 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5835 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5836 if test -z "$CXXCPP"; then
5837   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840       # Double quotes because CXXCPP needs to be expanded
5841     for CXXCPP in "$CXX -E" "/lib/cpp"
5842     do
5843       ac_preproc_ok=false
5844 for ac_cxx_preproc_warn_flag in '' yes
5845 do
5846   # Use a header file that comes with gcc, so configuring glibc
5847   # with a fresh cross-compiler works.
5848   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5849   # <limits.h> exists even on freestanding compilers.
5850   # On the NeXT, cc -E runs the code through the compiler's parser,
5851   # not just through cpp. "Syntax error" is here to catch this case.
5852   cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h.  */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h.  */
5858 #ifdef __STDC__
5859 # include <limits.h>
5860 #else
5861 # include <assert.h>
5862 #endif
5863                      Syntax error
5864 _ACEOF
5865 if { (ac_try="$ac_cpp conftest.$ac_ext"
5866 case "(($ac_try" in
5867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868   *) ac_try_echo=$ac_try;;
5869 esac
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5872   ac_status=$?
5873   grep -v '^ *+' conftest.er1 >conftest.err
5874   rm -f conftest.er1
5875   cat conftest.err >&5
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } >/dev/null; then
5878   if test -s conftest.err; then
5879     ac_cpp_err=$ac_cxx_preproc_warn_flag
5880     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5881   else
5882     ac_cpp_err=
5883   fi
5884 else
5885   ac_cpp_err=yes
5886 fi
5887 if test -z "$ac_cpp_err"; then
5888   :
5889 else
5890   echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5892
5893   # Broken: fails on valid input.
5894 continue
5895 fi
5896
5897 rm -f conftest.err conftest.$ac_ext
5898
5899   # OK, works on sane cases.  Now check whether nonexistent headers
5900   # can be detected and how.
5901   cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h.  */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h.  */
5907 #include <ac_nonexistent.h>
5908 _ACEOF
5909 if { (ac_try="$ac_cpp conftest.$ac_ext"
5910 case "(($ac_try" in
5911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912   *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5916   ac_status=$?
5917   grep -v '^ *+' conftest.er1 >conftest.err
5918   rm -f conftest.er1
5919   cat conftest.err >&5
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); } >/dev/null; then
5922   if test -s conftest.err; then
5923     ac_cpp_err=$ac_cxx_preproc_warn_flag
5924     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5925   else
5926     ac_cpp_err=
5927   fi
5928 else
5929   ac_cpp_err=yes
5930 fi
5931 if test -z "$ac_cpp_err"; then
5932   # Broken: success on invalid input.
5933 continue
5934 else
5935   echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938   # Passes both tests.
5939 ac_preproc_ok=:
5940 break
5941 fi
5942
5943 rm -f conftest.err conftest.$ac_ext
5944
5945 done
5946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5947 rm -f conftest.err conftest.$ac_ext
5948 if $ac_preproc_ok; then
5949   break
5950 fi
5951
5952     done
5953     ac_cv_prog_CXXCPP=$CXXCPP
5954
5955 fi
5956   CXXCPP=$ac_cv_prog_CXXCPP
5957 else
5958   ac_cv_prog_CXXCPP=$CXXCPP
5959 fi
5960 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5961 echo "${ECHO_T}$CXXCPP" >&6; }
5962 ac_preproc_ok=false
5963 for ac_cxx_preproc_warn_flag in '' yes
5964 do
5965   # Use a header file that comes with gcc, so configuring glibc
5966   # with a fresh cross-compiler works.
5967   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5968   # <limits.h> exists even on freestanding compilers.
5969   # On the NeXT, cc -E runs the code through the compiler's parser,
5970   # not just through cpp. "Syntax error" is here to catch this case.
5971   cat >conftest.$ac_ext <<_ACEOF
5972 /* confdefs.h.  */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h.  */
5977 #ifdef __STDC__
5978 # include <limits.h>
5979 #else
5980 # include <assert.h>
5981 #endif
5982                      Syntax error
5983 _ACEOF
5984 if { (ac_try="$ac_cpp conftest.$ac_ext"
5985 case "(($ac_try" in
5986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987   *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5991   ac_status=$?
5992   grep -v '^ *+' conftest.er1 >conftest.err
5993   rm -f conftest.er1
5994   cat conftest.err >&5
5995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996   (exit $ac_status); } >/dev/null; then
5997   if test -s conftest.err; then
5998     ac_cpp_err=$ac_cxx_preproc_warn_flag
5999     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6000   else
6001     ac_cpp_err=
6002   fi
6003 else
6004   ac_cpp_err=yes
6005 fi
6006 if test -z "$ac_cpp_err"; then
6007   :
6008 else
6009   echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012   # Broken: fails on valid input.
6013 continue
6014 fi
6015
6016 rm -f conftest.err conftest.$ac_ext
6017
6018   # OK, works on sane cases.  Now check whether nonexistent headers
6019   # can be detected and how.
6020   cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h.  */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h.  */
6026 #include <ac_nonexistent.h>
6027 _ACEOF
6028 if { (ac_try="$ac_cpp conftest.$ac_ext"
6029 case "(($ac_try" in
6030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031   *) ac_try_echo=$ac_try;;
6032 esac
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6035   ac_status=$?
6036   grep -v '^ *+' conftest.er1 >conftest.err
6037   rm -f conftest.er1
6038   cat conftest.err >&5
6039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040   (exit $ac_status); } >/dev/null; then
6041   if test -s conftest.err; then
6042     ac_cpp_err=$ac_cxx_preproc_warn_flag
6043     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6044   else
6045     ac_cpp_err=
6046   fi
6047 else
6048   ac_cpp_err=yes
6049 fi
6050 if test -z "$ac_cpp_err"; then
6051   # Broken: success on invalid input.
6052 continue
6053 else
6054   echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057   # Passes both tests.
6058 ac_preproc_ok=:
6059 break
6060 fi
6061
6062 rm -f conftest.err conftest.$ac_ext
6063
6064 done
6065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6066 rm -f conftest.err conftest.$ac_ext
6067 if $ac_preproc_ok; then
6068   :
6069 else
6070   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6071 See \`config.log' for more details." >&5
6072 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6073 See \`config.log' for more details." >&2;}
6074    { (exit 1); exit 1; }; }
6075 fi
6076
6077 ac_ext=cpp
6078 ac_cpp='$CXXCPP $CPPFLAGS'
6079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6082
6083 fi
6084
6085
6086 ac_ext=f
6087 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6088 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6089 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6090 if test -n "$ac_tool_prefix"; then
6091   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
6092   do
6093     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6097 if test "${ac_cv_prog_F77+set}" = set; then
6098   echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100   if test -n "$F77"; then
6101   ac_cv_prog_F77="$F77" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6105 do
6106   IFS=$as_save_IFS
6107   test -z "$as_dir" && as_dir=.
6108   for ac_exec_ext in '' $ac_executable_extensions; do
6109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6110     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112     break 2
6113   fi
6114 done
6115 done
6116 IFS=$as_save_IFS
6117
6118 fi
6119 fi
6120 F77=$ac_cv_prog_F77
6121 if test -n "$F77"; then
6122   { echo "$as_me:$LINENO: result: $F77" >&5
6123 echo "${ECHO_T}$F77" >&6; }
6124 else
6125   { echo "$as_me:$LINENO: result: no" >&5
6126 echo "${ECHO_T}no" >&6; }
6127 fi
6128
6129
6130     test -n "$F77" && break
6131   done
6132 fi
6133 if test -z "$F77"; then
6134   ac_ct_F77=$F77
6135   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
6136 do
6137   # Extract the first word of "$ac_prog", so it can be a program name with args.
6138 set dummy $ac_prog; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   if test -n "$ac_ct_F77"; then
6145   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150   IFS=$as_save_IFS
6151   test -z "$as_dir" && as_dir=.
6152   for ac_exec_ext in '' $ac_executable_extensions; do
6153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154     ac_cv_prog_ac_ct_F77="$ac_prog"
6155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156     break 2
6157   fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6161
6162 fi
6163 fi
6164 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6165 if test -n "$ac_ct_F77"; then
6166   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6167 echo "${ECHO_T}$ac_ct_F77" >&6; }
6168 else
6169   { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6171 fi
6172
6173
6174   test -n "$ac_ct_F77" && break
6175 done
6176
6177   if test "x$ac_ct_F77" = x; then
6178     F77=""
6179   else
6180     case $cross_compiling:$ac_tool_warned in
6181 yes:)
6182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6183 whose name does not start with the host triplet.  If you think this
6184 configuration is useful to you, please write to autoconf@gnu.org." >&5
6185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6186 whose name does not start with the host triplet.  If you think this
6187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6188 ac_tool_warned=yes ;;
6189 esac
6190     F77=$ac_ct_F77
6191   fi
6192 fi
6193
6194
6195 # Provide some information about the compiler.
6196 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6197 ac_compiler=`set X $ac_compile; echo $2`
6198 { (ac_try="$ac_compiler --version >&5"
6199 case "(($ac_try" in
6200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201   *) ac_try_echo=$ac_try;;
6202 esac
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204   (eval "$ac_compiler --version >&5") 2>&5
6205   ac_status=$?
6206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); }
6208 { (ac_try="$ac_compiler -v >&5"
6209 case "(($ac_try" in
6210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211   *) ac_try_echo=$ac_try;;
6212 esac
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214   (eval "$ac_compiler -v >&5") 2>&5
6215   ac_status=$?
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); }
6218 { (ac_try="$ac_compiler -V >&5"
6219 case "(($ac_try" in
6220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221   *) ac_try_echo=$ac_try;;
6222 esac
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224   (eval "$ac_compiler -V >&5") 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }
6228 rm -f a.out
6229
6230 # If we don't use `.F' as extension, the preprocessor is not run on the
6231 # input file.  (Note that this only needs to work for GNU compilers.)
6232 ac_save_ext=$ac_ext
6233 ac_ext=F
6234 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6235 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6236 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   cat >conftest.$ac_ext <<_ACEOF
6240       program main
6241 #ifndef __GNUC__
6242        choke me
6243 #endif
6244
6245       end
6246 _ACEOF
6247 rm -f conftest.$ac_objext
6248 if { (ac_try="$ac_compile"
6249 case "(($ac_try" in
6250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251   *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254   (eval "$ac_compile") 2>conftest.er1
6255   ac_status=$?
6256   grep -v '^ *+' conftest.er1 >conftest.err
6257   rm -f conftest.er1
6258   cat conftest.err >&5
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); } &&
6261          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6262   { (case "(($ac_try" in
6263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264   *) ac_try_echo=$ac_try;;
6265 esac
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267   (eval "$ac_try") 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); }; } &&
6271          { ac_try='test -s conftest.$ac_objext'
6272   { (case "(($ac_try" in
6273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274   *) ac_try_echo=$ac_try;;
6275 esac
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277   (eval "$ac_try") 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); }; }; then
6281   ac_compiler_gnu=yes
6282 else
6283   echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6285
6286         ac_compiler_gnu=no
6287 fi
6288
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6291
6292 fi
6293 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6294 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6295 ac_ext=$ac_save_ext
6296 ac_test_FFLAGS=${FFLAGS+set}
6297 ac_save_FFLAGS=$FFLAGS
6298 FFLAGS=
6299 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6300 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6301 if test "${ac_cv_prog_f77_g+set}" = set; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304   FFLAGS=-g
6305 cat >conftest.$ac_ext <<_ACEOF
6306       program main
6307
6308       end
6309 _ACEOF
6310 rm -f conftest.$ac_objext
6311 if { (ac_try="$ac_compile"
6312 case "(($ac_try" in
6313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314   *) ac_try_echo=$ac_try;;
6315 esac
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317   (eval "$ac_compile") 2>conftest.er1
6318   ac_status=$?
6319   grep -v '^ *+' conftest.er1 >conftest.err
6320   rm -f conftest.er1
6321   cat conftest.err >&5
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); } &&
6324          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6325   { (case "(($ac_try" in
6326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327   *) ac_try_echo=$ac_try;;
6328 esac
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330   (eval "$ac_try") 2>&5
6331   ac_status=$?
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); }; } &&
6334          { ac_try='test -s conftest.$ac_objext'
6335   { (case "(($ac_try" in
6336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337   *) ac_try_echo=$ac_try;;
6338 esac
6339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340   (eval "$ac_try") 2>&5
6341   ac_status=$?
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); }; }; then
6344   ac_cv_prog_f77_g=yes
6345 else
6346   echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349         ac_cv_prog_f77_g=no
6350 fi
6351
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353
6354 fi
6355 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6356 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6357 if test "$ac_test_FFLAGS" = set; then
6358   FFLAGS=$ac_save_FFLAGS
6359 elif test $ac_cv_prog_f77_g = yes; then
6360   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6361     FFLAGS="-g -O2"
6362   else
6363     FFLAGS="-g"
6364   fi
6365 else
6366   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6367     FFLAGS="-O2"
6368   else
6369     FFLAGS=
6370   fi
6371 fi
6372
6373 G77=`test $ac_compiler_gnu = yes && echo yes`
6374 ac_ext=c
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6379
6380
6381
6382 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6383
6384 # find the maximum length of command line arguments
6385 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6386 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6387 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390     i=0
6391   teststring="ABCD"
6392
6393   case $build_os in
6394   msdosdjgpp*)
6395     # On DJGPP, this test can blow up pretty badly due to problems in libc
6396     # (any single argument exceeding 2000 bytes causes a buffer overrun
6397     # during glob expansion).  Even if it were fixed, the result of this
6398     # check would be larger than it should be.
6399     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6400     ;;
6401
6402   gnu*)
6403     # Under GNU Hurd, this test is not required because there is
6404     # no limit to the length of command line arguments.
6405     # Libtool will interpret -1 as no limit whatsoever
6406     lt_cv_sys_max_cmd_len=-1;
6407     ;;
6408
6409   cygwin* | mingw*)
6410     # On Win9x/ME, this test blows up -- it succeeds, but takes
6411     # about 5 minutes as the teststring grows exponentially.
6412     # Worse, since 9x/ME are not pre-emptively multitasking,
6413     # you end up with a "frozen" computer, even though with patience
6414     # the test eventually succeeds (with a max line length of 256k).
6415     # Instead, let's just punt: use the minimum linelength reported by
6416     # all of the supported platforms: 8192 (on NT/2K/XP).
6417     lt_cv_sys_max_cmd_len=8192;
6418     ;;
6419
6420   amigaos*)
6421     # On AmigaOS with pdksh, this test takes hours, literally.
6422     # So we just punt and use a minimum line length of 8192.
6423     lt_cv_sys_max_cmd_len=8192;
6424     ;;
6425
6426   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6427     # This has been around since 386BSD, at least.  Likely further.
6428     if test -x /sbin/sysctl; then
6429       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6430     elif test -x /usr/sbin/sysctl; then
6431       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6432     else
6433       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6434     fi
6435     # And add a safety zone
6436     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6437     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6438     ;;
6439
6440   interix*)
6441     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6442     lt_cv_sys_max_cmd_len=196608
6443     ;;
6444
6445   osf*)
6446     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6447     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6448     # nice to cause kernel panics so lets avoid the loop below.
6449     # First set a reasonable default.
6450     lt_cv_sys_max_cmd_len=16384
6451     #
6452     if test -x /sbin/sysconfig; then
6453       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6454         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6455       esac
6456     fi
6457     ;;
6458   sco3.2v5*)
6459     lt_cv_sys_max_cmd_len=102400
6460     ;;
6461   sysv5* | sco5v6* | sysv4.2uw2*)
6462     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6463     if test -n "$kargmax"; then
6464       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6465     else
6466       lt_cv_sys_max_cmd_len=32768
6467     fi
6468     ;;
6469   *)
6470     # If test is not a shell built-in, we'll probably end up computing a
6471     # maximum length that is only half of the actual maximum length, but
6472     # we can't tell.
6473     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6474     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6475                = "XX$teststring") >/dev/null 2>&1 &&
6476             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6477             lt_cv_sys_max_cmd_len=$new_result &&
6478             test $i != 17 # 1/2 MB should be enough
6479     do
6480       i=`expr $i + 1`
6481       teststring=$teststring$teststring
6482     done
6483     teststring=
6484     # Add a significant safety factor because C++ compilers can tack on massive
6485     # amounts of additional arguments before passing them to the linker.
6486     # It appears as though 1/2 is a usable value.
6487     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6488     ;;
6489   esac
6490
6491 fi
6492
6493 if test -n $lt_cv_sys_max_cmd_len ; then
6494   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6495 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6496 else
6497   { echo "$as_me:$LINENO: result: none" >&5
6498 echo "${ECHO_T}none" >&6; }
6499 fi
6500
6501
6502
6503
6504 # Check for command to grab the raw symbol name followed by C symbol from nm.
6505 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6506 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6507 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6508   echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510
6511 # These are sane defaults that work on at least a few old systems.
6512 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6513
6514 # Character class describing NM global symbol codes.
6515 symcode='[BCDEGRST]'
6516
6517 # Regexp to match symbols that can be accessed directly from C.
6518 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6519
6520 # Transform an extracted symbol line into a proper C declaration
6521 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6522
6523 # Transform an extracted symbol line into symbol name and symbol address
6524 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'"
6525
6526 # Define system-specific variables.
6527 case $host_os in
6528 aix*)
6529   symcode='[BCDT]'
6530   ;;
6531 cygwin* | mingw* | pw32*)
6532   symcode='[ABCDGISTW]'
6533   ;;
6534 hpux*) # Its linker distinguishes data from code symbols
6535   if test "$host_cpu" = ia64; then
6536     symcode='[ABCDEGRST]'
6537   fi
6538   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6539   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'"
6540   ;;
6541 linux*)
6542   if test "$host_cpu" = ia64; then
6543     symcode='[ABCDGIRSTW]'
6544     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6545     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'"
6546   fi
6547   ;;
6548 irix* | nonstopux*)
6549   symcode='[BCDEGRST]'
6550   ;;
6551 osf*)
6552   symcode='[BCDEGQRST]'
6553   ;;
6554 solaris*)
6555   symcode='[BDRT]'
6556   ;;
6557 sco3.2v5*)
6558   symcode='[DT]'
6559   ;;
6560 sysv4.2uw2*)
6561   symcode='[DT]'
6562   ;;
6563 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6564   symcode='[ABDT]'
6565   ;;
6566 sysv4)
6567   symcode='[DFNSTU]'
6568   ;;
6569 esac
6570
6571 # Handle CRLF in mingw tool chain
6572 opt_cr=
6573 case $build_os in
6574 mingw*)
6575   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6576   ;;
6577 esac
6578
6579 # If we're using GNU nm, then use its standard symbol codes.
6580 case `$NM -V 2>&1` in
6581 *GNU* | *'with BFD'*)
6582   symcode='[ABCDGIRSTW]' ;;
6583 esac
6584
6585 # Try without a prefix undercore, then with it.
6586 for ac_symprfx in "" "_"; do
6587
6588   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6589   symxfrm="\\1 $ac_symprfx\\2 \\2"
6590
6591   # Write the raw and C identifiers.
6592   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6593
6594   # Check to see that the pipe works correctly.
6595   pipe_works=no
6596
6597   rm -f conftest*
6598   cat > conftest.$ac_ext <<EOF
6599 #ifdef __cplusplus
6600 extern "C" {
6601 #endif
6602 char nm_test_var;
6603 void nm_test_func(){}
6604 #ifdef __cplusplus
6605 }
6606 #endif
6607 int main(){nm_test_var='a';nm_test_func();return(0);}
6608 EOF
6609
6610   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611   (eval $ac_compile) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); }; then
6615     # Now try to grab the symbols.
6616     nlist=conftest.nm
6617     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6618   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); } && test -s "$nlist"; then
6622       # Try sorting and uniquifying the output.
6623       if sort "$nlist" | uniq > "$nlist"T; then
6624         mv -f "$nlist"T "$nlist"
6625       else
6626         rm -f "$nlist"T
6627       fi
6628
6629       # Make sure that we snagged all the symbols we need.
6630       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6631         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6632           cat <<EOF > conftest.$ac_ext
6633 #ifdef __cplusplus
6634 extern "C" {
6635 #endif
6636
6637 EOF
6638           # Now generate the symbol file.
6639           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6640
6641           cat <<EOF >> conftest.$ac_ext
6642 #if defined (__STDC__) && __STDC__
6643 # define lt_ptr_t void *
6644 #else
6645 # define lt_ptr_t char *
6646 # define const
6647 #endif
6648
6649 /* The mapping between symbol names and symbols. */
6650 const struct {
6651   const char *name;
6652   lt_ptr_t address;
6653 }
6654 lt_preloaded_symbols[] =
6655 {
6656 EOF
6657           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6658           cat <<\EOF >> conftest.$ac_ext
6659   {0, (lt_ptr_t) 0}
6660 };
6661
6662 #ifdef __cplusplus
6663 }
6664 #endif
6665 EOF
6666           # Now try linking the two files.
6667           mv conftest.$ac_objext conftstm.$ac_objext
6668           lt_save_LIBS="$LIBS"
6669           lt_save_CFLAGS="$CFLAGS"
6670           LIBS="conftstm.$ac_objext"
6671           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6672           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6673   (eval $ac_link) 2>&5
6674   ac_status=$?
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6677             pipe_works=yes
6678           fi
6679           LIBS="$lt_save_LIBS"
6680           CFLAGS="$lt_save_CFLAGS"
6681         else
6682           echo "cannot find nm_test_func in $nlist" >&5
6683         fi
6684       else
6685         echo "cannot find nm_test_var in $nlist" >&5
6686       fi
6687     else
6688       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6689     fi
6690   else
6691     echo "$progname: failed program was:" >&5
6692     cat conftest.$ac_ext >&5
6693   fi
6694   rm -f conftest* conftst*
6695
6696   # Do not use the global_symbol_pipe unless it works.
6697   if test "$pipe_works" = yes; then
6698     break
6699   else
6700     lt_cv_sys_global_symbol_pipe=
6701   fi
6702 done
6703
6704 fi
6705
6706 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6707   lt_cv_sys_global_symbol_to_cdecl=
6708 fi
6709 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6710   { echo "$as_me:$LINENO: result: failed" >&5
6711 echo "${ECHO_T}failed" >&6; }
6712 else
6713   { echo "$as_me:$LINENO: result: ok" >&5
6714 echo "${ECHO_T}ok" >&6; }
6715 fi
6716
6717 { echo "$as_me:$LINENO: checking for objdir" >&5
6718 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6719 if test "${lt_cv_objdir+set}" = set; then
6720   echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722   rm -f .libs 2>/dev/null
6723 mkdir .libs 2>/dev/null
6724 if test -d .libs; then
6725   lt_cv_objdir=.libs
6726 else
6727   # MS-DOS does not allow filenames that begin with a dot.
6728   lt_cv_objdir=_libs
6729 fi
6730 rmdir .libs 2>/dev/null
6731 fi
6732 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6733 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6734 objdir=$lt_cv_objdir
6735
6736
6737
6738
6739
6740 case $host_os in
6741 aix3*)
6742   # AIX sometimes has problems with the GCC collect2 program.  For some
6743   # reason, if we set the COLLECT_NAMES environment variable, the problems
6744   # vanish in a puff of smoke.
6745   if test "X${COLLECT_NAMES+set}" != Xset; then
6746     COLLECT_NAMES=
6747     export COLLECT_NAMES
6748   fi
6749   ;;
6750 esac
6751
6752 # Sed substitution that helps us do robust quoting.  It backslashifies
6753 # metacharacters that are still active within double-quoted strings.
6754 Xsed='sed -e 1s/^X//'
6755 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6756
6757 # Same as above, but do not quote variable references.
6758 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6759
6760 # Sed substitution to delay expansion of an escaped shell variable in a
6761 # double_quote_subst'ed string.
6762 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6763
6764 # Sed substitution to avoid accidental globbing in evaled expressions
6765 no_glob_subst='s/\*/\\\*/g'
6766
6767 # Constants:
6768 rm="rm -f"
6769
6770 # Global variables:
6771 default_ofile=libtool
6772 can_build_shared=yes
6773
6774 # All known linkers require a `.a' archive for static linking (except MSVC,
6775 # which needs '.lib').
6776 libext=a
6777 ltmain="$ac_aux_dir/ltmain.sh"
6778 ofile="$default_ofile"
6779 with_gnu_ld="$lt_cv_prog_gnu_ld"
6780
6781 if test -n "$ac_tool_prefix"; then
6782   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6783 set dummy ${ac_tool_prefix}ar; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_prog_AR+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   if test -n "$AR"; then
6790   ac_cv_prog_AR="$AR" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795   IFS=$as_save_IFS
6796   test -z "$as_dir" && as_dir=.
6797   for ac_exec_ext in '' $ac_executable_extensions; do
6798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6799     ac_cv_prog_AR="${ac_tool_prefix}ar"
6800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801     break 2
6802   fi
6803 done
6804 done
6805 IFS=$as_save_IFS
6806
6807 fi
6808 fi
6809 AR=$ac_cv_prog_AR
6810 if test -n "$AR"; then
6811   { echo "$as_me:$LINENO: result: $AR" >&5
6812 echo "${ECHO_T}$AR" >&6; }
6813 else
6814   { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6816 fi
6817
6818
6819 fi
6820 if test -z "$ac_cv_prog_AR"; then
6821   ac_ct_AR=$AR
6822   # Extract the first word of "ar", so it can be a program name with args.
6823 set dummy ar; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6827   echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829   if test -n "$ac_ct_AR"; then
6830   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835   IFS=$as_save_IFS
6836   test -z "$as_dir" && as_dir=.
6837   for ac_exec_ext in '' $ac_executable_extensions; do
6838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839     ac_cv_prog_ac_ct_AR="ar"
6840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6850 if test -n "$ac_ct_AR"; then
6851   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6852 echo "${ECHO_T}$ac_ct_AR" >&6; }
6853 else
6854   { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6856 fi
6857
6858   if test "x$ac_ct_AR" = x; then
6859     AR="false"
6860   else
6861     case $cross_compiling:$ac_tool_warned in
6862 yes:)
6863 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6864 whose name does not start with the host triplet.  If you think this
6865 configuration is useful to you, please write to autoconf@gnu.org." >&5
6866 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6867 whose name does not start with the host triplet.  If you think this
6868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6869 ac_tool_warned=yes ;;
6870 esac
6871     AR=$ac_ct_AR
6872   fi
6873 else
6874   AR="$ac_cv_prog_AR"
6875 fi
6876
6877 if test -n "$ac_tool_prefix"; then
6878   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6879 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6882 if test "${ac_cv_prog_RANLIB+set}" = set; then
6883   echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885   if test -n "$RANLIB"; then
6886   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891   IFS=$as_save_IFS
6892   test -z "$as_dir" && as_dir=.
6893   for ac_exec_ext in '' $ac_executable_extensions; do
6894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6895     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897     break 2
6898   fi
6899 done
6900 done
6901 IFS=$as_save_IFS
6902
6903 fi
6904 fi
6905 RANLIB=$ac_cv_prog_RANLIB
6906 if test -n "$RANLIB"; then
6907   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6908 echo "${ECHO_T}$RANLIB" >&6; }
6909 else
6910   { echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6; }
6912 fi
6913
6914
6915 fi
6916 if test -z "$ac_cv_prog_RANLIB"; then
6917   ac_ct_RANLIB=$RANLIB
6918   # Extract the first word of "ranlib", so it can be a program name with args.
6919 set dummy ranlib; ac_word=$2
6920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6922 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6923   echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925   if test -n "$ac_ct_RANLIB"; then
6926   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933   for ac_exec_ext in '' $ac_executable_extensions; do
6934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6935     ac_cv_prog_ac_ct_RANLIB="ranlib"
6936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937     break 2
6938   fi
6939 done
6940 done
6941 IFS=$as_save_IFS
6942
6943 fi
6944 fi
6945 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6946 if test -n "$ac_ct_RANLIB"; then
6947   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6948 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6949 else
6950   { echo "$as_me:$LINENO: result: no" >&5
6951 echo "${ECHO_T}no" >&6; }
6952 fi
6953
6954   if test "x$ac_ct_RANLIB" = x; then
6955     RANLIB=":"
6956   else
6957     case $cross_compiling:$ac_tool_warned in
6958 yes:)
6959 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6960 whose name does not start with the host triplet.  If you think this
6961 configuration is useful to you, please write to autoconf@gnu.org." >&5
6962 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6963 whose name does not start with the host triplet.  If you think this
6964 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6965 ac_tool_warned=yes ;;
6966 esac
6967     RANLIB=$ac_ct_RANLIB
6968   fi
6969 else
6970   RANLIB="$ac_cv_prog_RANLIB"
6971 fi
6972
6973 if test -n "$ac_tool_prefix"; then
6974   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6975 set dummy ${ac_tool_prefix}strip; ac_word=$2
6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978 if test "${ac_cv_prog_STRIP+set}" = set; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981   if test -n "$STRIP"; then
6982   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6986 do
6987   IFS=$as_save_IFS
6988   test -z "$as_dir" && as_dir=.
6989   for ac_exec_ext in '' $ac_executable_extensions; do
6990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6991     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6993     break 2
6994   fi
6995 done
6996 done
6997 IFS=$as_save_IFS
6998
6999 fi
7000 fi
7001 STRIP=$ac_cv_prog_STRIP
7002 if test -n "$STRIP"; then
7003   { echo "$as_me:$LINENO: result: $STRIP" >&5
7004 echo "${ECHO_T}$STRIP" >&6; }
7005 else
7006   { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7008 fi
7009
7010
7011 fi
7012 if test -z "$ac_cv_prog_STRIP"; then
7013   ac_ct_STRIP=$STRIP
7014   # Extract the first word of "strip", so it can be a program name with args.
7015 set dummy strip; ac_word=$2
7016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7018 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7019   echo $ECHO_N "(cached) $ECHO_C" >&6
7020 else
7021   if test -n "$ac_ct_STRIP"; then
7022   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027   IFS=$as_save_IFS
7028   test -z "$as_dir" && as_dir=.
7029   for ac_exec_ext in '' $ac_executable_extensions; do
7030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031     ac_cv_prog_ac_ct_STRIP="strip"
7032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033     break 2
7034   fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039 fi
7040 fi
7041 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7042 if test -n "$ac_ct_STRIP"; then
7043   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7044 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7045 else
7046   { echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6; }
7048 fi
7049
7050   if test "x$ac_ct_STRIP" = x; then
7051     STRIP=":"
7052   else
7053     case $cross_compiling:$ac_tool_warned in
7054 yes:)
7055 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7056 whose name does not start with the host triplet.  If you think this
7057 configuration is useful to you, please write to autoconf@gnu.org." >&5
7058 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7059 whose name does not start with the host triplet.  If you think this
7060 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7061 ac_tool_warned=yes ;;
7062 esac
7063     STRIP=$ac_ct_STRIP
7064   fi
7065 else
7066   STRIP="$ac_cv_prog_STRIP"
7067 fi
7068
7069
7070 old_CC="$CC"
7071 old_CFLAGS="$CFLAGS"
7072
7073 # Set sane defaults for various variables
7074 test -z "$AR" && AR=ar
7075 test -z "$AR_FLAGS" && AR_FLAGS=cru
7076 test -z "$AS" && AS=as
7077 test -z "$CC" && CC=cc
7078 test -z "$LTCC" && LTCC=$CC
7079 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7080 test -z "$DLLTOOL" && DLLTOOL=dlltool
7081 test -z "$LD" && LD=ld
7082 test -z "$LN_S" && LN_S="ln -s"
7083 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7084 test -z "$NM" && NM=nm
7085 test -z "$SED" && SED=sed
7086 test -z "$OBJDUMP" && OBJDUMP=objdump
7087 test -z "$RANLIB" && RANLIB=:
7088 test -z "$STRIP" && STRIP=:
7089 test -z "$ac_objext" && ac_objext=o
7090
7091 # Determine commands to create old-style static archives.
7092 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7093 old_postinstall_cmds='chmod 644 $oldlib'
7094 old_postuninstall_cmds=
7095
7096 if test -n "$RANLIB"; then
7097   case $host_os in
7098   openbsd*)
7099     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7100     ;;
7101   *)
7102     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7103     ;;
7104   esac
7105   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7106 fi
7107
7108 for cc_temp in $compiler""; do
7109   case $cc_temp in
7110     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7111     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7112     \-*) ;;
7113     *) break;;
7114   esac
7115 done
7116 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7117
7118
7119 # Only perform the check for file, if the check method requires it
7120 case $deplibs_check_method in
7121 file_magic*)
7122   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7123     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7124 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7125 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7126   echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128   case $MAGIC_CMD in
7129 [\\/*] |  ?:[\\/]*)
7130   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7131   ;;
7132 *)
7133   lt_save_MAGIC_CMD="$MAGIC_CMD"
7134   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7135   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7136   for ac_dir in $ac_dummy; do
7137     IFS="$lt_save_ifs"
7138     test -z "$ac_dir" && ac_dir=.
7139     if test -f $ac_dir/${ac_tool_prefix}file; then
7140       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7141       if test -n "$file_magic_test_file"; then
7142         case $deplibs_check_method in
7143         "file_magic "*)
7144           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7145           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7146           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7147             $EGREP "$file_magic_regex" > /dev/null; then
7148             :
7149           else
7150             cat <<EOF 1>&2
7151
7152 *** Warning: the command libtool uses to detect shared libraries,
7153 *** $file_magic_cmd, produces output that libtool cannot recognize.
7154 *** The result is that libtool may fail to recognize shared libraries
7155 *** as such.  This will affect the creation of libtool libraries that
7156 *** depend on shared libraries, but programs linked with such libtool
7157 *** libraries will work regardless of this problem.  Nevertheless, you
7158 *** may want to report the problem to your system manager and/or to
7159 *** bug-libtool@gnu.org
7160
7161 EOF
7162           fi ;;
7163         esac
7164       fi
7165       break
7166     fi
7167   done
7168   IFS="$lt_save_ifs"
7169   MAGIC_CMD="$lt_save_MAGIC_CMD"
7170   ;;
7171 esac
7172 fi
7173
7174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7175 if test -n "$MAGIC_CMD"; then
7176   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7177 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7178 else
7179   { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7181 fi
7182
7183 if test -z "$lt_cv_path_MAGIC_CMD"; then
7184   if test -n "$ac_tool_prefix"; then
7185     { echo "$as_me:$LINENO: checking for file" >&5
7186 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7187 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7188   echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190   case $MAGIC_CMD in
7191 [\\/*] |  ?:[\\/]*)
7192   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7193   ;;
7194 *)
7195   lt_save_MAGIC_CMD="$MAGIC_CMD"
7196   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7197   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7198   for ac_dir in $ac_dummy; do
7199     IFS="$lt_save_ifs"
7200     test -z "$ac_dir" && ac_dir=.
7201     if test -f $ac_dir/file; then
7202       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7203       if test -n "$file_magic_test_file"; then
7204         case $deplibs_check_method in
7205         "file_magic "*)
7206           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7207           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7208           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7209             $EGREP "$file_magic_regex" > /dev/null; then
7210             :
7211           else
7212             cat <<EOF 1>&2
7213
7214 *** Warning: the command libtool uses to detect shared libraries,
7215 *** $file_magic_cmd, produces output that libtool cannot recognize.
7216 *** The result is that libtool may fail to recognize shared libraries
7217 *** as such.  This will affect the creation of libtool libraries that
7218 *** depend on shared libraries, but programs linked with such libtool
7219 *** libraries will work regardless of this problem.  Nevertheless, you
7220 *** may want to report the problem to your system manager and/or to
7221 *** bug-libtool@gnu.org
7222
7223 EOF
7224           fi ;;
7225         esac
7226       fi
7227       break
7228     fi
7229   done
7230   IFS="$lt_save_ifs"
7231   MAGIC_CMD="$lt_save_MAGIC_CMD"
7232   ;;
7233 esac
7234 fi
7235
7236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7237 if test -n "$MAGIC_CMD"; then
7238   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7239 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7240 else
7241   { echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6; }
7243 fi
7244
7245   else
7246     MAGIC_CMD=:
7247   fi
7248 fi
7249
7250   fi
7251   ;;
7252 esac
7253
7254 enable_dlopen=yes
7255 enable_win32_dll=no
7256
7257 # Check whether --enable-libtool-lock was given.
7258 if test "${enable_libtool_lock+set}" = set; then
7259   enableval=$enable_libtool_lock;
7260 fi
7261
7262 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7263
7264
7265 # Check whether --with-pic was given.
7266 if test "${with_pic+set}" = set; then
7267   withval=$with_pic; pic_mode="$withval"
7268 else
7269   pic_mode=default
7270 fi
7271
7272 test -z "$pic_mode" && pic_mode=default
7273
7274 # Use C for the default configuration in the libtool script
7275 tagname=
7276 lt_save_CC="$CC"
7277 ac_ext=c
7278 ac_cpp='$CPP $CPPFLAGS'
7279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282
7283
7284 # Source file extension for C test sources.
7285 ac_ext=c
7286
7287 # Object file extension for compiled C test sources.
7288 objext=o
7289 objext=$objext
7290
7291 # Code to be used in simple compile tests
7292 lt_simple_compile_test_code="int some_variable = 0;\n"
7293
7294 # Code to be used in simple link tests
7295 lt_simple_link_test_code='int main(){return(0);}\n'
7296
7297
7298 # If no C compiler was specified, use CC.
7299 LTCC=${LTCC-"$CC"}
7300
7301 # If no C compiler flags were specified, use CFLAGS.
7302 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7303
7304 # Allow CC to be a program name with arguments.
7305 compiler=$CC
7306
7307
7308 # save warnings/boilerplate of simple test code
7309 ac_outfile=conftest.$ac_objext
7310 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7311 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7312 _lt_compiler_boilerplate=`cat conftest.err`
7313 $rm conftest*
7314
7315 ac_outfile=conftest.$ac_objext
7316 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7317 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7318 _lt_linker_boilerplate=`cat conftest.err`
7319 $rm conftest*
7320
7321
7322 ## CAVEAT EMPTOR:
7323 ## There is no encapsulation within the following macros, do not change
7324 ## the running order or otherwise move them around unless you know exactly
7325 ## what you are doing...
7326
7327 lt_prog_compiler_no_builtin_flag=
7328
7329 if test "$GCC" = yes; then
7330   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7331
7332
7333 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7334 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7335 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   lt_cv_prog_compiler_rtti_exceptions=no
7339   ac_outfile=conftest.$ac_objext
7340    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7341    lt_compiler_flag="-fno-rtti -fno-exceptions"
7342    # Insert the option either (1) after the last *FLAGS variable, or
7343    # (2) before a word containing "conftest.", or (3) at the end.
7344    # Note that $ac_compile itself does not contain backslashes and begins
7345    # with a dollar sign (not a hyphen), so the echo should work correctly.
7346    # The option is referenced via a variable to avoid confusing sed.
7347    lt_compile=`echo "$ac_compile" | $SED \
7348    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7349    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7350    -e 's:$: $lt_compiler_flag:'`
7351    (eval echo "\"\$as_me:7351: $lt_compile\"" >&5)
7352    (eval "$lt_compile" 2>conftest.err)
7353    ac_status=$?
7354    cat conftest.err >&5
7355    echo "$as_me:7355: \$? = $ac_status" >&5
7356    if (exit $ac_status) && test -s "$ac_outfile"; then
7357      # The compiler can only warn and ignore the option if not recognized
7358      # So say no if there are warnings other than the usual output.
7359      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7360      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7361      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7362        lt_cv_prog_compiler_rtti_exceptions=yes
7363      fi
7364    fi
7365    $rm conftest*
7366
7367 fi
7368 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7369 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7370
7371 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7372     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7373 else
7374     :
7375 fi
7376
7377 fi
7378
7379 lt_prog_compiler_wl=
7380 lt_prog_compiler_pic=
7381 lt_prog_compiler_static=
7382
7383 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7384 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7385
7386   if test "$GCC" = yes; then
7387     lt_prog_compiler_wl='-Wl,'
7388     lt_prog_compiler_static='-static'
7389
7390     case $host_os in
7391       aix*)
7392       # All AIX code is PIC.
7393       if test "$host_cpu" = ia64; then
7394         # AIX 5 now supports IA64 processor
7395         lt_prog_compiler_static='-Bstatic'
7396       fi
7397       ;;
7398
7399     amigaos*)
7400       # FIXME: we need at least 68020 code to build shared libraries, but
7401       # adding the `-m68020' flag to GCC prevents building anything better,
7402       # like `-m68040'.
7403       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7404       ;;
7405
7406     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7407       # PIC is the default for these OSes.
7408       ;;
7409
7410     mingw* | pw32* | os2*)
7411       # This hack is so that the source file can tell whether it is being
7412       # built for inclusion in a dll (and should export symbols for example).
7413       lt_prog_compiler_pic='-DDLL_EXPORT'
7414       ;;
7415
7416     darwin* | rhapsody*)
7417       # PIC is the default on this platform
7418       # Common symbols not allowed in MH_DYLIB files
7419       lt_prog_compiler_pic='-fno-common'
7420       ;;
7421
7422     interix3*)
7423       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7424       # Instead, we relocate shared libraries at runtime.
7425       ;;
7426
7427     msdosdjgpp*)
7428       # Just because we use GCC doesn't mean we suddenly get shared libraries
7429       # on systems that don't support them.
7430       lt_prog_compiler_can_build_shared=no
7431       enable_shared=no
7432       ;;
7433
7434     sysv4*MP*)
7435       if test -d /usr/nec; then
7436         lt_prog_compiler_pic=-Kconform_pic
7437       fi
7438       ;;
7439
7440     hpux*)
7441       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7442       # not for PA HP-UX.
7443       case $host_cpu in
7444       hppa*64*|ia64*)
7445         # +Z the default
7446         ;;
7447       *)
7448         lt_prog_compiler_pic='-fPIC'
7449         ;;
7450       esac
7451       ;;
7452
7453     *)
7454       lt_prog_compiler_pic='-fPIC'
7455       ;;
7456     esac
7457   else
7458     # PORTME Check for flag to pass linker flags through the system compiler.
7459     case $host_os in
7460     aix*)
7461       lt_prog_compiler_wl='-Wl,'
7462       if test "$host_cpu" = ia64; then
7463         # AIX 5 now supports IA64 processor
7464         lt_prog_compiler_static='-Bstatic'
7465       else
7466         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7467       fi
7468       ;;
7469       darwin*)
7470         # PIC is the default on this platform
7471         # Common symbols not allowed in MH_DYLIB files
7472        case $cc_basename in
7473          xlc*)
7474          lt_prog_compiler_pic='-qnocommon'
7475          lt_prog_compiler_wl='-Wl,'
7476          ;;
7477        esac
7478        ;;
7479
7480     mingw* | pw32* | os2*)
7481       # This hack is so that the source file can tell whether it is being
7482       # built for inclusion in a dll (and should export symbols for example).
7483       lt_prog_compiler_pic='-DDLL_EXPORT'
7484       ;;
7485
7486     hpux9* | hpux10* | hpux11*)
7487       lt_prog_compiler_wl='-Wl,'
7488       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7489       # not for PA HP-UX.
7490       case $host_cpu in
7491       hppa*64*|ia64*)
7492         # +Z the default
7493         ;;
7494       *)
7495         lt_prog_compiler_pic='+Z'
7496         ;;
7497       esac
7498       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7499       lt_prog_compiler_static='${wl}-a ${wl}archive'
7500       ;;
7501
7502     irix5* | irix6* | nonstopux*)
7503       lt_prog_compiler_wl='-Wl,'
7504       # PIC (with -KPIC) is the default.
7505       lt_prog_compiler_static='-non_shared'
7506       ;;
7507
7508     newsos6)
7509       lt_prog_compiler_pic='-KPIC'
7510       lt_prog_compiler_static='-Bstatic'
7511       ;;
7512
7513     linux*)
7514       case $cc_basename in
7515       icc* | ecc*)
7516         lt_prog_compiler_wl='-Wl,'
7517         lt_prog_compiler_pic='-KPIC'
7518         lt_prog_compiler_static='-static'
7519         ;;
7520       pgcc* | pgf77* | pgf90* | pgf95*)
7521         # Portland Group compilers (*not* the Pentium gcc compiler,
7522         # which looks to be a dead project)
7523         lt_prog_compiler_wl='-Wl,'
7524         lt_prog_compiler_pic='-fpic'
7525         lt_prog_compiler_static='-Bstatic'
7526         ;;
7527       ccc*)
7528         lt_prog_compiler_wl='-Wl,'
7529         # All Alpha code is PIC.
7530         lt_prog_compiler_static='-non_shared'
7531         ;;
7532       esac
7533       ;;
7534
7535     osf3* | osf4* | osf5*)
7536       lt_prog_compiler_wl='-Wl,'
7537       # All OSF/1 code is PIC.
7538       lt_prog_compiler_static='-non_shared'
7539       ;;
7540
7541     solaris*)
7542       lt_prog_compiler_pic='-KPIC'
7543       lt_prog_compiler_static='-Bstatic'
7544       case $cc_basename in
7545       f77* | f90* | f95*)
7546         lt_prog_compiler_wl='-Qoption ld ';;
7547       *)
7548         lt_prog_compiler_wl='-Wl,';;
7549       esac
7550       ;;
7551
7552     sunos4*)
7553       lt_prog_compiler_wl='-Qoption ld '
7554       lt_prog_compiler_pic='-PIC'
7555       lt_prog_compiler_static='-Bstatic'
7556       ;;
7557
7558     sysv4 | sysv4.2uw2* | sysv4.3*)
7559       lt_prog_compiler_wl='-Wl,'
7560       lt_prog_compiler_pic='-KPIC'
7561       lt_prog_compiler_static='-Bstatic'
7562       ;;
7563
7564     sysv4*MP*)
7565       if test -d /usr/nec ;then
7566         lt_prog_compiler_pic='-Kconform_pic'
7567         lt_prog_compiler_static='-Bstatic'
7568       fi
7569       ;;
7570
7571     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7572       lt_prog_compiler_wl='-Wl,'
7573       lt_prog_compiler_pic='-KPIC'
7574       lt_prog_compiler_static='-Bstatic'
7575       ;;
7576
7577     unicos*)
7578       lt_prog_compiler_wl='-Wl,'
7579       lt_prog_compiler_can_build_shared=no
7580       ;;
7581
7582     uts4*)
7583       lt_prog_compiler_pic='-pic'
7584       lt_prog_compiler_static='-Bstatic'
7585       ;;
7586
7587     *)
7588       lt_prog_compiler_can_build_shared=no
7589       ;;
7590     esac
7591   fi
7592
7593 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7594 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7595
7596 #
7597 # Check to make sure the PIC flag actually works.
7598 #
7599 if test -n "$lt_prog_compiler_pic"; then
7600
7601 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7602 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7603 if test "${lt_prog_compiler_pic_works+set}" = set; then
7604   echo $ECHO_N "(cached) $ECHO_C" >&6
7605 else
7606   lt_prog_compiler_pic_works=no
7607   ac_outfile=conftest.$ac_objext
7608    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7609    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7610    # Insert the option either (1) after the last *FLAGS variable, or
7611    # (2) before a word containing "conftest.", or (3) at the end.
7612    # Note that $ac_compile itself does not contain backslashes and begins
7613    # with a dollar sign (not a hyphen), so the echo should work correctly.
7614    # The option is referenced via a variable to avoid confusing sed.
7615    lt_compile=`echo "$ac_compile" | $SED \
7616    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7617    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7618    -e 's:$: $lt_compiler_flag:'`
7619    (eval echo "\"\$as_me:7619: $lt_compile\"" >&5)
7620    (eval "$lt_compile" 2>conftest.err)
7621    ac_status=$?
7622    cat conftest.err >&5
7623    echo "$as_me:7623: \$? = $ac_status" >&5
7624    if (exit $ac_status) && test -s "$ac_outfile"; then
7625      # The compiler can only warn and ignore the option if not recognized
7626      # So say no if there are warnings other than the usual output.
7627      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7628      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7629      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7630        lt_prog_compiler_pic_works=yes
7631      fi
7632    fi
7633    $rm conftest*
7634
7635 fi
7636 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7637 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7638
7639 if test x"$lt_prog_compiler_pic_works" = xyes; then
7640     case $lt_prog_compiler_pic in
7641      "" | " "*) ;;
7642      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7643      esac
7644 else
7645     lt_prog_compiler_pic=
7646      lt_prog_compiler_can_build_shared=no
7647 fi
7648
7649 fi
7650 case $host_os in
7651   # For platforms which do not support PIC, -DPIC is meaningless:
7652   *djgpp*)
7653     lt_prog_compiler_pic=
7654     ;;
7655   *)
7656     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7657     ;;
7658 esac
7659
7660 #
7661 # Check to make sure the static flag actually works.
7662 #
7663 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7664 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7665 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7666 if test "${lt_prog_compiler_static_works+set}" = set; then
7667   echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669   lt_prog_compiler_static_works=no
7670    save_LDFLAGS="$LDFLAGS"
7671    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7672    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7673    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7674      # The linker can only warn and ignore the option if not recognized
7675      # So say no if there are warnings
7676      if test -s conftest.err; then
7677        # Append any errors to the config.log.
7678        cat conftest.err 1>&5
7679        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7680        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7681        if diff conftest.exp conftest.er2 >/dev/null; then
7682          lt_prog_compiler_static_works=yes
7683        fi
7684      else
7685        lt_prog_compiler_static_works=yes
7686      fi
7687    fi
7688    $rm conftest*
7689    LDFLAGS="$save_LDFLAGS"
7690
7691 fi
7692 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7693 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7694
7695 if test x"$lt_prog_compiler_static_works" = xyes; then
7696     :
7697 else
7698     lt_prog_compiler_static=
7699 fi
7700
7701
7702 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7703 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7704 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707   lt_cv_prog_compiler_c_o=no
7708    $rm -r conftest 2>/dev/null
7709    mkdir conftest
7710    cd conftest
7711    mkdir out
7712    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7713
7714    lt_compiler_flag="-o out/conftest2.$ac_objext"
7715    # Insert the option either (1) after the last *FLAGS variable, or
7716    # (2) before a word containing "conftest.", or (3) at the end.
7717    # Note that $ac_compile itself does not contain backslashes and begins
7718    # with a dollar sign (not a hyphen), so the echo should work correctly.
7719    lt_compile=`echo "$ac_compile" | $SED \
7720    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7721    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7722    -e 's:$: $lt_compiler_flag:'`
7723    (eval echo "\"\$as_me:7723: $lt_compile\"" >&5)
7724    (eval "$lt_compile" 2>out/conftest.err)
7725    ac_status=$?
7726    cat out/conftest.err >&5
7727    echo "$as_me:7727: \$? = $ac_status" >&5
7728    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7729    then
7730      # The compiler can only warn and ignore the option if not recognized
7731      # So say no if there are warnings
7732      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7733      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7734      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7735        lt_cv_prog_compiler_c_o=yes
7736      fi
7737    fi
7738    chmod u+w . 2>&5
7739    $rm conftest*
7740    # SGI C++ compiler will create directory out/ii_files/ for
7741    # template instantiation
7742    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7743    $rm out/* && rmdir out
7744    cd ..
7745    rmdir conftest
7746    $rm conftest*
7747
7748 fi
7749 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7750 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7751
7752
7753 hard_links="nottested"
7754 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7755   # do not overwrite the value of need_locks provided by the user
7756   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7757 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7758   hard_links=yes
7759   $rm conftest*
7760   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7761   touch conftest.a
7762   ln conftest.a conftest.b 2>&5 || hard_links=no
7763   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7764   { echo "$as_me:$LINENO: result: $hard_links" >&5
7765 echo "${ECHO_T}$hard_links" >&6; }
7766   if test "$hard_links" = no; then
7767     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7768 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7769     need_locks=warn
7770   fi
7771 else
7772   need_locks=no
7773 fi
7774
7775 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7776 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7777
7778   runpath_var=
7779   allow_undefined_flag=
7780   enable_shared_with_static_runtimes=no
7781   archive_cmds=
7782   archive_expsym_cmds=
7783   old_archive_From_new_cmds=
7784   old_archive_from_expsyms_cmds=
7785   export_dynamic_flag_spec=
7786   whole_archive_flag_spec=
7787   thread_safe_flag_spec=
7788   hardcode_libdir_flag_spec=
7789   hardcode_libdir_flag_spec_ld=
7790   hardcode_libdir_separator=
7791   hardcode_direct=no
7792   hardcode_minus_L=no
7793   hardcode_shlibpath_var=unsupported
7794   link_all_deplibs=unknown
7795   hardcode_automatic=no
7796   module_cmds=
7797   module_expsym_cmds=
7798   always_export_symbols=no
7799   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7800   # include_expsyms should be a list of space-separated symbols to be *always*
7801   # included in the symbol list
7802   include_expsyms=
7803   # exclude_expsyms can be an extended regexp of symbols to exclude
7804   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7805   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7806   # as well as any symbol that contains `d'.
7807   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7808   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7809   # platforms (ab)use it in PIC code, but their linkers get confused if
7810   # the symbol is explicitly referenced.  Since portable code cannot
7811   # rely on this symbol name, it's probably fine to never include it in
7812   # preloaded symbol tables.
7813   extract_expsyms_cmds=
7814   # Just being paranoid about ensuring that cc_basename is set.
7815   for cc_temp in $compiler""; do
7816   case $cc_temp in
7817     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7818     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7819     \-*) ;;
7820     *) break;;
7821   esac
7822 done
7823 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7824
7825   case $host_os in
7826   cygwin* | mingw* | pw32*)
7827     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7828     # When not using gcc, we currently assume that we are using
7829     # Microsoft Visual C++.
7830     if test "$GCC" != yes; then
7831       with_gnu_ld=no
7832     fi
7833     ;;
7834   interix*)
7835     # we just hope/assume this is gcc and not c89 (= MSVC++)
7836     with_gnu_ld=yes
7837     ;;
7838   openbsd*)
7839     with_gnu_ld=no
7840     ;;
7841   esac
7842
7843   ld_shlibs=yes
7844   if test "$with_gnu_ld" = yes; then
7845     # If archive_cmds runs LD, not CC, wlarc should be empty
7846     wlarc='${wl}'
7847
7848     # Set some defaults for GNU ld with shared library support. These
7849     # are reset later if shared libraries are not supported. Putting them
7850     # here allows them to be overridden if necessary.
7851     runpath_var=LD_RUN_PATH
7852     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7853     export_dynamic_flag_spec='${wl}--export-dynamic'
7854     # ancient GNU ld didn't support --whole-archive et. al.
7855     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7856         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7857       else
7858         whole_archive_flag_spec=
7859     fi
7860     supports_anon_versioning=no
7861     case `$LD -v 2>/dev/null` in
7862       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7863       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7864       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7865       *\ 2.11.*) ;; # other 2.11 versions
7866       *) supports_anon_versioning=yes ;;
7867     esac
7868
7869     # See if GNU ld supports shared libraries.
7870     case $host_os in
7871     aix3* | aix4* | aix5*)
7872       # On AIX/PPC, the GNU linker is very broken
7873       if test "$host_cpu" != ia64; then
7874         ld_shlibs=no
7875         cat <<EOF 1>&2
7876
7877 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7878 *** to be unable to reliably create shared libraries on AIX.
7879 *** Therefore, libtool is disabling shared libraries support.  If you
7880 *** really care for shared libraries, you may want to modify your PATH
7881 *** so that a non-GNU linker is found, and then restart.
7882
7883 EOF
7884       fi
7885       ;;
7886
7887     amigaos*)
7888       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)'
7889       hardcode_libdir_flag_spec='-L$libdir'
7890       hardcode_minus_L=yes
7891
7892       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7893       # that the semantics of dynamic libraries on AmigaOS, at least up
7894       # to version 4, is to share data among multiple programs linked
7895       # with the same dynamic library.  Since this doesn't match the
7896       # behavior of shared libraries on other platforms, we can't use
7897       # them.
7898       ld_shlibs=no
7899       ;;
7900
7901     beos*)
7902       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7903         allow_undefined_flag=unsupported
7904         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7905         # support --undefined.  This deserves some investigation.  FIXME
7906         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7907       else
7908         ld_shlibs=no
7909       fi
7910       ;;
7911
7912     cygwin* | mingw* | pw32*)
7913       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7914       # as there is no search path for DLLs.
7915       hardcode_libdir_flag_spec='-L$libdir'
7916       allow_undefined_flag=unsupported
7917       always_export_symbols=no
7918       enable_shared_with_static_runtimes=yes
7919       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7920
7921       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7922         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7923         # If the export-symbols file already is a .def file (1st line
7924         # is EXPORTS), use it as is; otherwise, prepend...
7925         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7926           cp $export_symbols $output_objdir/$soname.def;
7927         else
7928           echo EXPORTS > $output_objdir/$soname.def;
7929           cat $export_symbols >> $output_objdir/$soname.def;
7930         fi~
7931         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7932       else
7933         ld_shlibs=no
7934       fi
7935       ;;
7936
7937     interix3*)
7938       hardcode_direct=no
7939       hardcode_shlibpath_var=no
7940       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7941       export_dynamic_flag_spec='${wl}-E'
7942       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7943       # Instead, shared libraries are loaded at an image base (0x10000000 by
7944       # default) and relocated if they conflict, which is a slow very memory
7945       # consuming and fragmenting process.  To avoid this, we pick a random,
7946       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7947       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7948       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7949       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'
7950       ;;
7951
7952     linux*)
7953       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7954         tmp_addflag=
7955         case $cc_basename,$host_cpu in
7956         pgcc*)                          # Portland Group C compiler
7957           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'
7958           tmp_addflag=' $pic_flag'
7959           ;;
7960         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7961           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'
7962           tmp_addflag=' $pic_flag -Mnomain' ;;
7963         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7964           tmp_addflag=' -i_dynamic' ;;
7965         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7966           tmp_addflag=' -i_dynamic -nofor_main' ;;
7967         ifc* | ifort*)                  # Intel Fortran compiler
7968           tmp_addflag=' -nofor_main' ;;
7969         esac
7970         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7971
7972         if test $supports_anon_versioning = yes; then
7973           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7974   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7975   $echo "local: *; };" >> $output_objdir/$libname.ver~
7976           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7977         fi
7978       else
7979         ld_shlibs=no
7980       fi
7981       ;;
7982
7983     netbsd*)
7984       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7985         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7986         wlarc=
7987       else
7988         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7989         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7990       fi
7991       ;;
7992
7993     solaris*)
7994       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7995         ld_shlibs=no
7996         cat <<EOF 1>&2
7997
7998 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7999 *** create shared libraries on Solaris systems.  Therefore, libtool
8000 *** is disabling shared libraries support.  We urge you to upgrade GNU
8001 *** binutils to release 2.9.1 or newer.  Another option is to modify
8002 *** your PATH or compiler configuration so that the native linker is
8003 *** used, and then restart.
8004
8005 EOF
8006       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8007         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8008         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8009       else
8010         ld_shlibs=no
8011       fi
8012       ;;
8013
8014     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8015       case `$LD -v 2>&1` in
8016         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8017         ld_shlibs=no
8018         cat <<_LT_EOF 1>&2
8019
8020 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8021 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8022 *** is disabling shared libraries support.  We urge you to upgrade GNU
8023 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8024 *** your PATH or compiler configuration so that the native linker is
8025 *** used, and then restart.
8026
8027 _LT_EOF
8028         ;;
8029         *)
8030           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8031             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8032             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8033             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8034           else
8035             ld_shlibs=no
8036           fi
8037         ;;
8038       esac
8039       ;;
8040
8041     sunos4*)
8042       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8043       wlarc=
8044       hardcode_direct=yes
8045       hardcode_shlibpath_var=no
8046       ;;
8047
8048     *)
8049       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8050         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8051         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8052       else
8053         ld_shlibs=no
8054       fi
8055       ;;
8056     esac
8057
8058     if test "$ld_shlibs" = no; then
8059       runpath_var=
8060       hardcode_libdir_flag_spec=
8061       export_dynamic_flag_spec=
8062       whole_archive_flag_spec=
8063     fi
8064   else
8065     # PORTME fill in a description of your system's linker (not GNU ld)
8066     case $host_os in
8067     aix3*)
8068       allow_undefined_flag=unsupported
8069       always_export_symbols=yes
8070       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'
8071       # Note: this linker hardcodes the directories in LIBPATH if there
8072       # are no directories specified by -L.
8073       hardcode_minus_L=yes
8074       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8075         # Neither direct hardcoding nor static linking is supported with a
8076         # broken collect2.
8077         hardcode_direct=unsupported
8078       fi
8079       ;;
8080
8081     aix4* | aix5*)
8082       if test "$host_cpu" = ia64; then
8083         # On IA64, the linker does run time linking by default, so we don't
8084         # have to do anything special.
8085         aix_use_runtimelinking=no
8086         exp_sym_flag='-Bexport'
8087         no_entry_flag=""
8088       else
8089         # If we're using GNU nm, then we don't want the "-C" option.
8090         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8091         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8092           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'
8093         else
8094           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'
8095         fi
8096         aix_use_runtimelinking=no
8097
8098         # Test if we are trying to use run time linking or normal
8099         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8100         # need to do runtime linking.
8101         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8102           for ld_flag in $LDFLAGS; do
8103           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8104             aix_use_runtimelinking=yes
8105             break
8106           fi
8107           done
8108           ;;
8109         esac
8110
8111         exp_sym_flag='-bexport'
8112         no_entry_flag='-bnoentry'
8113       fi
8114
8115       # When large executables or shared objects are built, AIX ld can
8116       # have problems creating the table of contents.  If linking a library
8117       # or program results in "error TOC overflow" add -mminimal-toc to
8118       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8119       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8120
8121       archive_cmds=''
8122       hardcode_direct=yes
8123       hardcode_libdir_separator=':'
8124       link_all_deplibs=yes
8125
8126       if test "$GCC" = yes; then
8127         case $host_os in aix4.[012]|aix4.[012].*)
8128         # We only want to do this on AIX 4.2 and lower, the check
8129         # below for broken collect2 doesn't work under 4.3+
8130           collect2name=`${CC} -print-prog-name=collect2`
8131           if test -f "$collect2name" && \
8132            strings "$collect2name" | grep resolve_lib_name >/dev/null
8133           then
8134           # We have reworked collect2
8135           hardcode_direct=yes
8136           else
8137           # We have old collect2
8138           hardcode_direct=unsupported
8139           # It fails to find uninstalled libraries when the uninstalled
8140           # path is not listed in the libpath.  Setting hardcode_minus_L
8141           # to unsupported forces relinking
8142           hardcode_minus_L=yes
8143           hardcode_libdir_flag_spec='-L$libdir'
8144           hardcode_libdir_separator=
8145           fi
8146           ;;
8147         esac
8148         shared_flag='-shared'
8149         if test "$aix_use_runtimelinking" = yes; then
8150           shared_flag="$shared_flag "'${wl}-G'
8151         fi
8152       else
8153         # not using gcc
8154         if test "$host_cpu" = ia64; then
8155         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8156         # chokes on -Wl,-G. The following line is correct:
8157           shared_flag='-G'
8158         else
8159           if test "$aix_use_runtimelinking" = yes; then
8160             shared_flag='${wl}-G'
8161           else
8162             shared_flag='${wl}-bM:SRE'
8163           fi
8164         fi
8165       fi
8166
8167       # It seems that -bexpall does not export symbols beginning with
8168       # underscore (_), so it is better to generate a list of symbols to export.
8169       always_export_symbols=yes
8170       if test "$aix_use_runtimelinking" = yes; then
8171         # Warning - without using the other runtime loading flags (-brtl),
8172         # -berok will link without error, but may produce a broken library.
8173         allow_undefined_flag='-berok'
8174        # Determine the default libpath from the value encoded in an empty executable.
8175        cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h.  */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h.  */
8181
8182 int
8183 main ()
8184 {
8185
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (ac_try="$ac_link"
8192 case "(($ac_try" in
8193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194   *) ac_try_echo=$ac_try;;
8195 esac
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197   (eval "$ac_link") 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } &&
8204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8205   { (case "(($ac_try" in
8206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207   *) ac_try_echo=$ac_try;;
8208 esac
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210   (eval "$ac_try") 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; } &&
8214          { ac_try='test -s conftest$ac_exeext'
8215   { (case "(($ac_try" in
8216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217   *) ac_try_echo=$ac_try;;
8218 esac
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220   (eval "$ac_try") 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); }; }; then
8224
8225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8226 }'`
8227 # Check for a 64-bit object if we didn't find anything.
8228 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; }
8229 }'`; fi
8230 else
8231   echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8233
8234
8235 fi
8236
8237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8238       conftest$ac_exeext conftest.$ac_ext
8239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8240
8241        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8242         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"
8243        else
8244         if test "$host_cpu" = ia64; then
8245           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8246           allow_undefined_flag="-z nodefs"
8247           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"
8248         else
8249          # Determine the default libpath from the value encoded in an empty executable.
8250          cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h.  */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h.  */
8256
8257 int
8258 main ()
8259 {
8260
8261   ;
8262   return 0;
8263 }
8264 _ACEOF
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (ac_try="$ac_link"
8267 case "(($ac_try" in
8268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269   *) ac_try_echo=$ac_try;;
8270 esac
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272   (eval "$ac_link") 2>conftest.er1
8273   ac_status=$?
8274   grep -v '^ *+' conftest.er1 >conftest.err
8275   rm -f conftest.er1
8276   cat conftest.err >&5
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); } &&
8279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8280   { (case "(($ac_try" in
8281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282   *) ac_try_echo=$ac_try;;
8283 esac
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285   (eval "$ac_try") 2>&5
8286   ac_status=$?
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); }; } &&
8289          { ac_try='test -s conftest$ac_exeext'
8290   { (case "(($ac_try" in
8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292   *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295   (eval "$ac_try") 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; }; then
8299
8300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8301 }'`
8302 # Check for a 64-bit object if we didn't find anything.
8303 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; }
8304 }'`; fi
8305 else
8306   echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309
8310 fi
8311
8312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8313       conftest$ac_exeext conftest.$ac_ext
8314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8315
8316          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8317           # Warning - without using the other run time loading flags,
8318           # -berok will link without error, but may produce a broken library.
8319           no_undefined_flag=' ${wl}-bernotok'
8320           allow_undefined_flag=' ${wl}-berok'
8321           # Exported symbols can be pulled into shared objects from archives
8322           whole_archive_flag_spec='$convenience'
8323           archive_cmds_need_lc=yes
8324           # This is similar to how AIX traditionally builds its shared libraries.
8325           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'
8326         fi
8327       fi
8328       ;;
8329
8330     amigaos*)
8331       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)'
8332       hardcode_libdir_flag_spec='-L$libdir'
8333       hardcode_minus_L=yes
8334       # see comment about different semantics on the GNU ld section
8335       ld_shlibs=no
8336       ;;
8337
8338     bsdi[45]*)
8339       export_dynamic_flag_spec=-rdynamic
8340       ;;
8341
8342     cygwin* | mingw* | pw32*)
8343       # When not using gcc, we currently assume that we are using
8344       # Microsoft Visual C++.
8345       # hardcode_libdir_flag_spec is actually meaningless, as there is
8346       # no search path for DLLs.
8347       hardcode_libdir_flag_spec=' '
8348       allow_undefined_flag=unsupported
8349       # Tell ltmain to make .lib files, not .a files.
8350       libext=lib
8351       # Tell ltmain to make .dll files, not .so files.
8352       shrext_cmds=".dll"
8353       # FIXME: Setting linknames here is a bad hack.
8354       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8355       # The linker will automatically build a .lib file if we build a DLL.
8356       old_archive_From_new_cmds='true'
8357       # FIXME: Should let the user specify the lib program.
8358       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8359       fix_srcfile_path='`cygpath -w "$srcfile"`'
8360       enable_shared_with_static_runtimes=yes
8361       ;;
8362
8363     darwin* | rhapsody*)
8364       case $host_os in
8365         rhapsody* | darwin1.[012])
8366          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8367          ;;
8368        *) # Darwin 1.3 on
8369          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8370            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8371          else
8372            case ${MACOSX_DEPLOYMENT_TARGET} in
8373              10.[012])
8374                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8375                ;;
8376              10.*)
8377                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8378                ;;
8379            esac
8380          fi
8381          ;;
8382       esac
8383       archive_cmds_need_lc=no
8384       hardcode_direct=no
8385       hardcode_automatic=yes
8386       hardcode_shlibpath_var=unsupported
8387       whole_archive_flag_spec=''
8388       link_all_deplibs=yes
8389     if test "$GCC" = yes ; then
8390         output_verbose_link_cmd='echo'
8391         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8392       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8393       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8394       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}'
8395       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}'
8396     else
8397       case $cc_basename in
8398         xlc*)
8399          output_verbose_link_cmd='echo'
8400          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8401          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8402           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8403          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}'
8404           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}'
8405           ;;
8406        *)
8407          ld_shlibs=no
8408           ;;
8409       esac
8410     fi
8411       ;;
8412
8413     dgux*)
8414       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8415       hardcode_libdir_flag_spec='-L$libdir'
8416       hardcode_shlibpath_var=no
8417       ;;
8418
8419     freebsd1*)
8420       ld_shlibs=no
8421       ;;
8422
8423     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8424     # support.  Future versions do this automatically, but an explicit c++rt0.o
8425     # does not break anything, and helps significantly (at the cost of a little
8426     # extra space).
8427     freebsd2.2*)
8428       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8429       hardcode_libdir_flag_spec='-R$libdir'
8430       hardcode_direct=yes
8431       hardcode_shlibpath_var=no
8432       ;;
8433
8434     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8435     freebsd2*)
8436       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8437       hardcode_direct=yes
8438       hardcode_minus_L=yes
8439       hardcode_shlibpath_var=no
8440       ;;
8441
8442     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8443     freebsd* | kfreebsd*-gnu | dragonfly*)
8444       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8445       hardcode_libdir_flag_spec='-R$libdir'
8446       hardcode_direct=yes
8447       hardcode_shlibpath_var=no
8448       ;;
8449
8450     hpux9*)
8451       if test "$GCC" = yes; then
8452         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'
8453       else
8454         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'
8455       fi
8456       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8457       hardcode_libdir_separator=:
8458       hardcode_direct=yes
8459
8460       # hardcode_minus_L: Not really in the search PATH,
8461       # but as the default location of the library.
8462       hardcode_minus_L=yes
8463       export_dynamic_flag_spec='${wl}-E'
8464       ;;
8465
8466     hpux10*)
8467       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8468         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8469       else
8470         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8471       fi
8472       if test "$with_gnu_ld" = no; then
8473         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8474         hardcode_libdir_separator=:
8475
8476         hardcode_direct=yes
8477         export_dynamic_flag_spec='${wl}-E'
8478
8479         # hardcode_minus_L: Not really in the search PATH,
8480         # but as the default location of the library.
8481         hardcode_minus_L=yes
8482       fi
8483       ;;
8484
8485     hpux11*)
8486       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8487         case $host_cpu in
8488         hppa*64*)
8489           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8490           ;;
8491         ia64*)
8492           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8493           ;;
8494         *)
8495           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8496           ;;
8497         esac
8498       else
8499         case $host_cpu in
8500         hppa*64*)
8501           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8502           ;;
8503         ia64*)
8504           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8505           ;;
8506         *)
8507           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8508           ;;
8509         esac
8510       fi
8511       if test "$with_gnu_ld" = no; then
8512         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8513         hardcode_libdir_separator=:
8514
8515         case $host_cpu in
8516         hppa*64*|ia64*)
8517           hardcode_libdir_flag_spec_ld='+b $libdir'
8518           hardcode_direct=no
8519           hardcode_shlibpath_var=no
8520           ;;
8521         *)
8522           hardcode_direct=yes
8523           export_dynamic_flag_spec='${wl}-E'
8524
8525           # hardcode_minus_L: Not really in the search PATH,
8526           # but as the default location of the library.
8527           hardcode_minus_L=yes
8528           ;;
8529         esac
8530       fi
8531       ;;
8532
8533     irix5* | irix6* | nonstopux*)
8534       if test "$GCC" = yes; then
8535         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'
8536       else
8537         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'
8538         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8539       fi
8540       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8541       hardcode_libdir_separator=:
8542       link_all_deplibs=yes
8543       ;;
8544
8545     netbsd*)
8546       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8547         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8548       else
8549         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8550       fi
8551       hardcode_libdir_flag_spec='-R$libdir'
8552       hardcode_direct=yes
8553       hardcode_shlibpath_var=no
8554       ;;
8555
8556     newsos6)
8557       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8558       hardcode_direct=yes
8559       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8560       hardcode_libdir_separator=:
8561       hardcode_shlibpath_var=no
8562       ;;
8563
8564     openbsd*)
8565       hardcode_direct=yes
8566       hardcode_shlibpath_var=no
8567       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8568         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8569         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8570         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8571         export_dynamic_flag_spec='${wl}-E'
8572       else
8573        case $host_os in
8574          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8575            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8576            hardcode_libdir_flag_spec='-R$libdir'
8577            ;;
8578          *)
8579            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8580            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8581            ;;
8582        esac
8583       fi
8584       ;;
8585
8586     os2*)
8587       hardcode_libdir_flag_spec='-L$libdir'
8588       hardcode_minus_L=yes
8589       allow_undefined_flag=unsupported
8590       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'
8591       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8592       ;;
8593
8594     osf3*)
8595       if test "$GCC" = yes; then
8596         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8597         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'
8598       else
8599         allow_undefined_flag=' -expect_unresolved \*'
8600         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'
8601       fi
8602       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8603       hardcode_libdir_separator=:
8604       ;;
8605
8606     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8607       if test "$GCC" = yes; then
8608         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8609         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'
8610         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8611       else
8612         allow_undefined_flag=' -expect_unresolved \*'
8613         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'
8614         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8615         $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'
8616
8617         # Both c and cxx compiler support -rpath directly
8618         hardcode_libdir_flag_spec='-rpath $libdir'
8619       fi
8620       hardcode_libdir_separator=:
8621       ;;
8622
8623     solaris*)
8624       no_undefined_flag=' -z text'
8625       if test "$GCC" = yes; then
8626         wlarc='${wl}'
8627         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8628         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8629           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8630       else
8631         wlarc=''
8632         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8633         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8634         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8635       fi
8636       hardcode_libdir_flag_spec='-R$libdir'
8637       hardcode_shlibpath_var=no
8638       case $host_os in
8639       solaris2.[0-5] | solaris2.[0-5].*) ;;
8640       *)
8641         # The compiler driver will combine linker options so we
8642         # cannot just pass the convience library names through
8643         # without $wl, iff we do not link with $LD.
8644         # Luckily, gcc supports the same syntax we need for Sun Studio.
8645         # Supported since Solaris 2.6 (maybe 2.5.1?)
8646         case $wlarc in
8647         '')
8648           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8649         *)
8650           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' ;;
8651         esac ;;
8652       esac
8653       link_all_deplibs=yes
8654       ;;
8655
8656     sunos4*)
8657       if test "x$host_vendor" = xsequent; then
8658         # Use $CC to link under sequent, because it throws in some extra .o
8659         # files that make .init and .fini sections work.
8660         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8661       else
8662         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8663       fi
8664       hardcode_libdir_flag_spec='-L$libdir'
8665       hardcode_direct=yes
8666       hardcode_minus_L=yes
8667       hardcode_shlibpath_var=no
8668       ;;
8669
8670     sysv4)
8671       case $host_vendor in
8672         sni)
8673           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8674           hardcode_direct=yes # is this really true???
8675         ;;
8676         siemens)
8677           ## LD is ld it makes a PLAMLIB
8678           ## CC just makes a GrossModule.
8679           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8680           reload_cmds='$CC -r -o $output$reload_objs'
8681           hardcode_direct=no
8682         ;;
8683         motorola)
8684           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8685           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8686         ;;
8687       esac
8688       runpath_var='LD_RUN_PATH'
8689       hardcode_shlibpath_var=no
8690       ;;
8691
8692     sysv4.3*)
8693       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8694       hardcode_shlibpath_var=no
8695       export_dynamic_flag_spec='-Bexport'
8696       ;;
8697
8698     sysv4*MP*)
8699       if test -d /usr/nec; then
8700         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8701         hardcode_shlibpath_var=no
8702         runpath_var=LD_RUN_PATH
8703         hardcode_runpath_var=yes
8704         ld_shlibs=yes
8705       fi
8706       ;;
8707
8708     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8709       no_undefined_flag='${wl}-z,text'
8710       archive_cmds_need_lc=no
8711       hardcode_shlibpath_var=no
8712       runpath_var='LD_RUN_PATH'
8713
8714       if test "$GCC" = yes; then
8715         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8716         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8717       else
8718         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8719         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8720       fi
8721       ;;
8722
8723     sysv5* | sco3.2v5* | sco5v6*)
8724       # Note: We can NOT use -z defs as we might desire, because we do not
8725       # link with -lc, and that would cause any symbols used from libc to
8726       # always be unresolved, which means just about no library would
8727       # ever link correctly.  If we're not using GNU ld we use -z text
8728       # though, which does catch some bad symbols but isn't as heavy-handed
8729       # as -z defs.
8730       no_undefined_flag='${wl}-z,text'
8731       allow_undefined_flag='${wl}-z,nodefs'
8732       archive_cmds_need_lc=no
8733       hardcode_shlibpath_var=no
8734       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8735       hardcode_libdir_separator=':'
8736       link_all_deplibs=yes
8737       export_dynamic_flag_spec='${wl}-Bexport'
8738       runpath_var='LD_RUN_PATH'
8739
8740       if test "$GCC" = yes; then
8741         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8742         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8743       else
8744         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8745         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8746       fi
8747       ;;
8748
8749     uts4*)
8750       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8751       hardcode_libdir_flag_spec='-L$libdir'
8752       hardcode_shlibpath_var=no
8753       ;;
8754
8755     *)
8756       ld_shlibs=no
8757       ;;
8758     esac
8759   fi
8760
8761 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8762 echo "${ECHO_T}$ld_shlibs" >&6; }
8763 test "$ld_shlibs" = no && can_build_shared=no
8764
8765 #
8766 # Do we need to explicitly link libc?
8767 #
8768 case "x$archive_cmds_need_lc" in
8769 x|xyes)
8770   # Assume -lc should be added
8771   archive_cmds_need_lc=yes
8772
8773   if test "$enable_shared" = yes && test "$GCC" = yes; then
8774     case $archive_cmds in
8775     *'~'*)
8776       # FIXME: we may have to deal with multi-command sequences.
8777       ;;
8778     '$CC '*)
8779       # Test whether the compiler implicitly links with -lc since on some
8780       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8781       # to ld, don't add -lc before -lgcc.
8782       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8783 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8784       $rm conftest*
8785       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8786
8787       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8788   (eval $ac_compile) 2>&5
8789   ac_status=$?
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); } 2>conftest.err; then
8792         soname=conftest
8793         lib=conftest
8794         libobjs=conftest.$ac_objext
8795         deplibs=
8796         wl=$lt_prog_compiler_wl
8797         pic_flag=$lt_prog_compiler_pic
8798         compiler_flags=-v
8799         linker_flags=-v
8800         verstring=
8801         output_objdir=.
8802         libname=conftest
8803         lt_save_allow_undefined_flag=$allow_undefined_flag
8804         allow_undefined_flag=
8805         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8806   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8807   ac_status=$?
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); }
8810         then
8811           archive_cmds_need_lc=no
8812         else
8813           archive_cmds_need_lc=yes
8814         fi
8815         allow_undefined_flag=$lt_save_allow_undefined_flag
8816       else
8817         cat conftest.err 1>&5
8818       fi
8819       $rm conftest*
8820       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8821 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8822       ;;
8823     esac
8824   fi
8825   ;;
8826 esac
8827
8828 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8829 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8830 library_names_spec=
8831 libname_spec='lib$name'
8832 soname_spec=
8833 shrext_cmds=".so"
8834 postinstall_cmds=
8835 postuninstall_cmds=
8836 finish_cmds=
8837 finish_eval=
8838 shlibpath_var=
8839 shlibpath_overrides_runpath=unknown
8840 version_type=none
8841 dynamic_linker="$host_os ld.so"
8842 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8843 if test "$GCC" = yes; then
8844   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8845   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8846     # if the path contains ";" then we assume it to be the separator
8847     # otherwise default to the standard path separator (i.e. ":") - it is
8848     # assumed that no part of a normal pathname contains ";" but that should
8849     # okay in the real world where ";" in dirpaths is itself problematic.
8850     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8851   else
8852     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8853   fi
8854 else
8855   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8856 fi
8857 need_lib_prefix=unknown
8858 hardcode_into_libs=no
8859
8860 # when you set need_version to no, make sure it does not cause -set_version
8861 # flags to be left without arguments
8862 need_version=unknown
8863
8864 case $host_os in
8865 aix3*)
8866   version_type=linux
8867   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8868   shlibpath_var=LIBPATH
8869
8870   # AIX 3 has no versioning support, so we append a major version to the name.
8871   soname_spec='${libname}${release}${shared_ext}$major'
8872   ;;
8873
8874 aix4* | aix5*)
8875   version_type=linux
8876   need_lib_prefix=no
8877   need_version=no
8878   hardcode_into_libs=yes
8879   if test "$host_cpu" = ia64; then
8880     # AIX 5 supports IA64
8881     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8882     shlibpath_var=LD_LIBRARY_PATH
8883   else
8884     # With GCC up to 2.95.x, collect2 would create an import file
8885     # for dependence libraries.  The import file would start with
8886     # the line `#! .'.  This would cause the generated library to
8887     # depend on `.', always an invalid library.  This was fixed in
8888     # development snapshots of GCC prior to 3.0.
8889     case $host_os in
8890       aix4 | aix4.[01] | aix4.[01].*)
8891       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8892            echo ' yes '
8893            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8894         :
8895       else
8896         can_build_shared=no
8897       fi
8898       ;;
8899     esac
8900     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8901     # soname into executable. Probably we can add versioning support to
8902     # collect2, so additional links can be useful in future.
8903     if test "$aix_use_runtimelinking" = yes; then
8904       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8905       # instead of lib<name>.a to let people know that these are not
8906       # typical AIX shared libraries.
8907       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908     else
8909       # We preserve .a as extension for shared libraries through AIX4.2
8910       # and later when we are not doing run time linking.
8911       library_names_spec='${libname}${release}.a $libname.a'
8912       soname_spec='${libname}${release}${shared_ext}$major'
8913     fi
8914     shlibpath_var=LIBPATH
8915   fi
8916   ;;
8917
8918 amigaos*)
8919   library_names_spec='$libname.ixlibrary $libname.a'
8920   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8921   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'
8922   ;;
8923
8924 beos*)
8925   library_names_spec='${libname}${shared_ext}'
8926   dynamic_linker="$host_os ld.so"
8927   shlibpath_var=LIBRARY_PATH
8928   ;;
8929
8930 bsdi[45]*)
8931   version_type=linux
8932   need_version=no
8933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934   soname_spec='${libname}${release}${shared_ext}$major'
8935   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8936   shlibpath_var=LD_LIBRARY_PATH
8937   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8938   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8939   # the default ld.so.conf also contains /usr/contrib/lib and
8940   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8941   # libtool to hard-code these into programs
8942   ;;
8943
8944 cygwin* | mingw* | pw32*)
8945   version_type=windows
8946   shrext_cmds=".dll"
8947   need_version=no
8948   need_lib_prefix=no
8949
8950   case $GCC,$host_os in
8951   yes,cygwin* | yes,mingw* | yes,pw32*)
8952     library_names_spec='$libname.dll.a'
8953     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8954     postinstall_cmds='base_file=`basename \${file}`~
8955       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8956       dldir=$destdir/`dirname \$dlpath`~
8957       test -d \$dldir || mkdir -p \$dldir~
8958       $install_prog $dir/$dlname \$dldir/$dlname~
8959       chmod a+x \$dldir/$dlname'
8960     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8961       dlpath=$dir/\$dldll~
8962        $rm \$dlpath'
8963     shlibpath_overrides_runpath=yes
8964
8965     case $host_os in
8966     cygwin*)
8967       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8968       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8969       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8970       ;;
8971     mingw*)
8972       # MinGW DLLs use traditional 'lib' prefix
8973       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8974       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8975       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8976         # It is most probably a Windows format PATH printed by
8977         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8978         # path with ; separators, and with drive letters. We can handle the
8979         # drive letters (cygwin fileutils understands them), so leave them,
8980         # especially as we might pass files found there to a mingw objdump,
8981         # which wouldn't understand a cygwinified path. Ahh.
8982         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8983       else
8984         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8985       fi
8986       ;;
8987     pw32*)
8988       # pw32 DLLs use 'pw' prefix rather than 'lib'
8989       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8990       ;;
8991     esac
8992     ;;
8993
8994   *)
8995     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8996     ;;
8997   esac
8998   dynamic_linker='Win32 ld.exe'
8999   # FIXME: first we should search . and the directory the executable is in
9000   shlibpath_var=PATH
9001   ;;
9002
9003 darwin* | rhapsody*)
9004   dynamic_linker="$host_os dyld"
9005   version_type=darwin
9006   need_lib_prefix=no
9007   need_version=no
9008   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9009   soname_spec='${libname}${release}${major}$shared_ext'
9010   shlibpath_overrides_runpath=yes
9011   shlibpath_var=DYLD_LIBRARY_PATH
9012   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9013   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9014   if test "$GCC" = yes; then
9015     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"`
9016   else
9017     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9018   fi
9019   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9020   ;;
9021
9022 dgux*)
9023   version_type=linux
9024   need_lib_prefix=no
9025   need_version=no
9026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9027   soname_spec='${libname}${release}${shared_ext}$major'
9028   shlibpath_var=LD_LIBRARY_PATH
9029   ;;
9030
9031 freebsd1*)
9032   dynamic_linker=no
9033   ;;
9034
9035 kfreebsd*-gnu)
9036   version_type=linux
9037   need_lib_prefix=no
9038   need_version=no
9039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9040   soname_spec='${libname}${release}${shared_ext}$major'
9041   shlibpath_var=LD_LIBRARY_PATH
9042   shlibpath_overrides_runpath=no
9043   hardcode_into_libs=yes
9044   dynamic_linker='GNU ld.so'
9045   ;;
9046
9047 freebsd* | dragonfly*)
9048   # DragonFly does not have aout.  When/if they implement a new
9049   # versioning mechanism, adjust this.
9050   if test -x /usr/bin/objformat; then
9051     objformat=`/usr/bin/objformat`
9052   else
9053     case $host_os in
9054     freebsd[123]*) objformat=aout ;;
9055     *) objformat=elf ;;
9056     esac
9057   fi
9058   version_type=freebsd-$objformat
9059   case $version_type in
9060     freebsd-elf*)
9061       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9062       need_version=no
9063       need_lib_prefix=no
9064       ;;
9065     freebsd-*)
9066       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9067       need_version=yes
9068       ;;
9069   esac
9070   shlibpath_var=LD_LIBRARY_PATH
9071   case $host_os in
9072   freebsd2*)
9073     shlibpath_overrides_runpath=yes
9074     ;;
9075   freebsd3.[01]* | freebsdelf3.[01]*)
9076     shlibpath_overrides_runpath=yes
9077     hardcode_into_libs=yes
9078     ;;
9079   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9080   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9081     shlibpath_overrides_runpath=no
9082     hardcode_into_libs=yes
9083     ;;
9084   freebsd*) # from 4.6 on
9085     shlibpath_overrides_runpath=yes
9086     hardcode_into_libs=yes
9087     ;;
9088   esac
9089   ;;
9090
9091 gnu*)
9092   version_type=linux
9093   need_lib_prefix=no
9094   need_version=no
9095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9096   soname_spec='${libname}${release}${shared_ext}$major'
9097   shlibpath_var=LD_LIBRARY_PATH
9098   hardcode_into_libs=yes
9099   ;;
9100
9101 hpux9* | hpux10* | hpux11*)
9102   # Give a soname corresponding to the major version so that dld.sl refuses to
9103   # link against other versions.
9104   version_type=sunos
9105   need_lib_prefix=no
9106   need_version=no
9107   case $host_cpu in
9108   ia64*)
9109     shrext_cmds='.so'
9110     hardcode_into_libs=yes
9111     dynamic_linker="$host_os dld.so"
9112     shlibpath_var=LD_LIBRARY_PATH
9113     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115     soname_spec='${libname}${release}${shared_ext}$major'
9116     if test "X$HPUX_IA64_MODE" = X32; then
9117       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9118     else
9119       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9120     fi
9121     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9122     ;;
9123    hppa*64*)
9124      shrext_cmds='.sl'
9125      hardcode_into_libs=yes
9126      dynamic_linker="$host_os dld.sl"
9127      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9128      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9129      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130      soname_spec='${libname}${release}${shared_ext}$major'
9131      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9132      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9133      ;;
9134    *)
9135     shrext_cmds='.sl'
9136     dynamic_linker="$host_os dld.sl"
9137     shlibpath_var=SHLIB_PATH
9138     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140     soname_spec='${libname}${release}${shared_ext}$major'
9141     ;;
9142   esac
9143   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9144   postinstall_cmds='chmod 555 $lib'
9145   ;;
9146
9147 interix3*)
9148   version_type=linux
9149   need_lib_prefix=no
9150   need_version=no
9151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9152   soname_spec='${libname}${release}${shared_ext}$major'
9153   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9154   shlibpath_var=LD_LIBRARY_PATH
9155   shlibpath_overrides_runpath=no
9156   hardcode_into_libs=yes
9157   ;;
9158
9159 irix5* | irix6* | nonstopux*)
9160   case $host_os in
9161     nonstopux*) version_type=nonstopux ;;
9162     *)
9163         if test "$lt_cv_prog_gnu_ld" = yes; then
9164                 version_type=linux
9165         else
9166                 version_type=irix
9167         fi ;;
9168   esac
9169   need_lib_prefix=no
9170   need_version=no
9171   soname_spec='${libname}${release}${shared_ext}$major'
9172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9173   case $host_os in
9174   irix5* | nonstopux*)
9175     libsuff= shlibsuff=
9176     ;;
9177   *)
9178     case $LD in # libtool.m4 will add one of these switches to LD
9179     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9180       libsuff= shlibsuff= libmagic=32-bit;;
9181     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9182       libsuff=32 shlibsuff=N32 libmagic=N32;;
9183     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9184       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9185     *) libsuff= shlibsuff= libmagic=never-match;;
9186     esac
9187     ;;
9188   esac
9189   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9190   shlibpath_overrides_runpath=no
9191   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9192   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9193   hardcode_into_libs=yes
9194   ;;
9195
9196 # No shared lib support for Linux oldld, aout, or coff.
9197 linux*oldld* | linux*aout* | linux*coff*)
9198   dynamic_linker=no
9199   ;;
9200
9201 # This must be Linux ELF.
9202 linux*)
9203   version_type=linux
9204   need_lib_prefix=no
9205   need_version=no
9206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207   soname_spec='${libname}${release}${shared_ext}$major'
9208   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9209   shlibpath_var=LD_LIBRARY_PATH
9210   shlibpath_overrides_runpath=no
9211   # This implies no fast_install, which is unacceptable.
9212   # Some rework will be needed to allow for fast_install
9213   # before this can be enabled.
9214   hardcode_into_libs=yes
9215
9216   # Append ld.so.conf contents to the search path
9217   if test -f /etc/ld.so.conf; then
9218     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' ' '`
9219     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9220   fi
9221
9222   # We used to test for /lib/ld.so.1 and disable shared libraries on
9223   # powerpc, because MkLinux only supported shared libraries with the
9224   # GNU dynamic linker.  Since this was broken with cross compilers,
9225   # most powerpc-linux boxes support dynamic linking these days and
9226   # people can always --disable-shared, the test was removed, and we
9227   # assume the GNU/Linux dynamic linker is in use.
9228   dynamic_linker='GNU/Linux ld.so'
9229   ;;
9230
9231 knetbsd*-gnu)
9232   version_type=linux
9233   need_lib_prefix=no
9234   need_version=no
9235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9236   soname_spec='${libname}${release}${shared_ext}$major'
9237   shlibpath_var=LD_LIBRARY_PATH
9238   shlibpath_overrides_runpath=no
9239   hardcode_into_libs=yes
9240   dynamic_linker='GNU ld.so'
9241   ;;
9242
9243 netbsd*)
9244   version_type=sunos
9245   need_lib_prefix=no
9246   need_version=no
9247   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9249     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9250     dynamic_linker='NetBSD (a.out) ld.so'
9251   else
9252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9253     soname_spec='${libname}${release}${shared_ext}$major'
9254     dynamic_linker='NetBSD ld.elf_so'
9255   fi
9256   shlibpath_var=LD_LIBRARY_PATH
9257   shlibpath_overrides_runpath=yes
9258   hardcode_into_libs=yes
9259   ;;
9260
9261 newsos6)
9262   version_type=linux
9263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264   shlibpath_var=LD_LIBRARY_PATH
9265   shlibpath_overrides_runpath=yes
9266   ;;
9267
9268 nto-qnx*)
9269   version_type=linux
9270   need_lib_prefix=no
9271   need_version=no
9272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273   soname_spec='${libname}${release}${shared_ext}$major'
9274   shlibpath_var=LD_LIBRARY_PATH
9275   shlibpath_overrides_runpath=yes
9276   ;;
9277
9278 openbsd*)
9279   version_type=sunos
9280   sys_lib_dlsearch_path_spec="/usr/lib"
9281   need_lib_prefix=no
9282   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9283   case $host_os in
9284     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9285     *)                         need_version=no  ;;
9286   esac
9287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9288   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9289   shlibpath_var=LD_LIBRARY_PATH
9290   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9291     case $host_os in
9292       openbsd2.[89] | openbsd2.[89].*)
9293         shlibpath_overrides_runpath=no
9294         ;;
9295       *)
9296         shlibpath_overrides_runpath=yes
9297         ;;
9298       esac
9299   else
9300     shlibpath_overrides_runpath=yes
9301   fi
9302   ;;
9303
9304 os2*)
9305   libname_spec='$name'
9306   shrext_cmds=".dll"
9307   need_lib_prefix=no
9308   library_names_spec='$libname${shared_ext} $libname.a'
9309   dynamic_linker='OS/2 ld.exe'
9310   shlibpath_var=LIBPATH
9311   ;;
9312
9313 osf3* | osf4* | osf5*)
9314   version_type=osf
9315   need_lib_prefix=no
9316   need_version=no
9317   soname_spec='${libname}${release}${shared_ext}$major'
9318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319   shlibpath_var=LD_LIBRARY_PATH
9320   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9321   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9322   ;;
9323
9324 solaris*)
9325   version_type=linux
9326   need_lib_prefix=no
9327   need_version=no
9328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329   soname_spec='${libname}${release}${shared_ext}$major'
9330   shlibpath_var=LD_LIBRARY_PATH
9331   shlibpath_overrides_runpath=yes
9332   hardcode_into_libs=yes
9333   # ldd complains unless libraries are executable
9334   postinstall_cmds='chmod +x $lib'
9335   ;;
9336
9337 sunos4*)
9338   version_type=sunos
9339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9340   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9341   shlibpath_var=LD_LIBRARY_PATH
9342   shlibpath_overrides_runpath=yes
9343   if test "$with_gnu_ld" = yes; then
9344     need_lib_prefix=no
9345   fi
9346   need_version=yes
9347   ;;
9348
9349 sysv4 | sysv4.3*)
9350   version_type=linux
9351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352   soname_spec='${libname}${release}${shared_ext}$major'
9353   shlibpath_var=LD_LIBRARY_PATH
9354   case $host_vendor in
9355     sni)
9356       shlibpath_overrides_runpath=no
9357       need_lib_prefix=no
9358       export_dynamic_flag_spec='${wl}-Blargedynsym'
9359       runpath_var=LD_RUN_PATH
9360       ;;
9361     siemens)
9362       need_lib_prefix=no
9363       ;;
9364     motorola)
9365       need_lib_prefix=no
9366       need_version=no
9367       shlibpath_overrides_runpath=no
9368       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9369       ;;
9370   esac
9371   ;;
9372
9373 sysv4*MP*)
9374   if test -d /usr/nec ;then
9375     version_type=linux
9376     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9377     soname_spec='$libname${shared_ext}.$major'
9378     shlibpath_var=LD_LIBRARY_PATH
9379   fi
9380   ;;
9381
9382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9383   version_type=freebsd-elf
9384   need_lib_prefix=no
9385   need_version=no
9386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9387   soname_spec='${libname}${release}${shared_ext}$major'
9388   shlibpath_var=LD_LIBRARY_PATH
9389   hardcode_into_libs=yes
9390   if test "$with_gnu_ld" = yes; then
9391     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9392     shlibpath_overrides_runpath=no
9393   else
9394     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9395     shlibpath_overrides_runpath=yes
9396     case $host_os in
9397       sco3.2v5*)
9398         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9399         ;;
9400     esac
9401   fi
9402   sys_lib_dlsearch_path_spec='/usr/lib'
9403   ;;
9404
9405 uts4*)
9406   version_type=linux
9407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408   soname_spec='${libname}${release}${shared_ext}$major'
9409   shlibpath_var=LD_LIBRARY_PATH
9410   ;;
9411
9412 *)
9413   dynamic_linker=no
9414   ;;
9415 esac
9416 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9417 echo "${ECHO_T}$dynamic_linker" >&6; }
9418 test "$dynamic_linker" = no && can_build_shared=no
9419
9420 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9421 if test "$GCC" = yes; then
9422   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9423 fi
9424
9425 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9426 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9427 hardcode_action=
9428 if test -n "$hardcode_libdir_flag_spec" || \
9429    test -n "$runpath_var" || \
9430    test "X$hardcode_automatic" = "Xyes" ; then
9431
9432   # We can hardcode non-existant directories.
9433   if test "$hardcode_direct" != no &&
9434      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9435      # have to relink, otherwise we might link with an installed library
9436      # when we should be linking with a yet-to-be-installed one
9437      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9438      test "$hardcode_minus_L" != no; then
9439     # Linking always hardcodes the temporary library directory.
9440     hardcode_action=relink
9441   else
9442     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9443     hardcode_action=immediate
9444   fi
9445 else
9446   # We cannot hardcode anything, or else we can only hardcode existing
9447   # directories.
9448   hardcode_action=unsupported
9449 fi
9450 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9451 echo "${ECHO_T}$hardcode_action" >&6; }
9452
9453 if test "$hardcode_action" = relink; then
9454   # Fast installation is not supported
9455   enable_fast_install=no
9456 elif test "$shlibpath_overrides_runpath" = yes ||
9457      test "$enable_shared" = no; then
9458   # Fast installation is not necessary
9459   enable_fast_install=needless
9460 fi
9461
9462 striplib=
9463 old_striplib=
9464 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9465 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9466 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9467   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9468   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9469   { echo "$as_me:$LINENO: result: yes" >&5
9470 echo "${ECHO_T}yes" >&6; }
9471 else
9472 # FIXME - insert some real tests, host_os isn't really good enough
9473   case $host_os in
9474    darwin*)
9475        if test -n "$STRIP" ; then
9476          striplib="$STRIP -x"
9477          { echo "$as_me:$LINENO: result: yes" >&5
9478 echo "${ECHO_T}yes" >&6; }
9479        else
9480   { echo "$as_me:$LINENO: result: no" >&5
9481 echo "${ECHO_T}no" >&6; }
9482 fi
9483        ;;
9484    *)
9485   { echo "$as_me:$LINENO: result: no" >&5
9486 echo "${ECHO_T}no" >&6; }
9487     ;;
9488   esac
9489 fi
9490
9491 if test "x$enable_dlopen" != xyes; then
9492   enable_dlopen=unknown
9493   enable_dlopen_self=unknown
9494   enable_dlopen_self_static=unknown
9495 else
9496   lt_cv_dlopen=no
9497   lt_cv_dlopen_libs=
9498
9499   case $host_os in
9500   beos*)
9501     lt_cv_dlopen="load_add_on"
9502     lt_cv_dlopen_libs=
9503     lt_cv_dlopen_self=yes
9504     ;;
9505
9506   mingw* | pw32*)
9507     lt_cv_dlopen="LoadLibrary"
9508     lt_cv_dlopen_libs=
9509    ;;
9510
9511   cygwin*)
9512     lt_cv_dlopen="dlopen"
9513     lt_cv_dlopen_libs=
9514    ;;
9515
9516   darwin*)
9517   # if libdl is installed we need to link against it
9518     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9519 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9520 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9521   echo $ECHO_N "(cached) $ECHO_C" >&6
9522 else
9523   ac_check_lib_save_LIBS=$LIBS
9524 LIBS="-ldl  $LIBS"
9525 cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h.  */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h.  */
9531
9532 /* Override any GCC internal prototype to avoid an error.
9533    Use char because int might match the return type of a GCC
9534    builtin and then its argument prototype would still apply.  */
9535 #ifdef __cplusplus
9536 extern "C"
9537 #endif
9538 char dlopen ();
9539 int
9540 main ()
9541 {
9542 return dlopen ();
9543   ;
9544   return 0;
9545 }
9546 _ACEOF
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (ac_try="$ac_link"
9549 case "(($ac_try" in
9550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551   *) ac_try_echo=$ac_try;;
9552 esac
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554   (eval "$ac_link") 2>conftest.er1
9555   ac_status=$?
9556   grep -v '^ *+' conftest.er1 >conftest.err
9557   rm -f conftest.er1
9558   cat conftest.err >&5
9559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560   (exit $ac_status); } &&
9561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9562   { (case "(($ac_try" in
9563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564   *) ac_try_echo=$ac_try;;
9565 esac
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567   (eval "$ac_try") 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; } &&
9571          { ac_try='test -s conftest$ac_exeext'
9572   { (case "(($ac_try" in
9573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574   *) ac_try_echo=$ac_try;;
9575 esac
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577   (eval "$ac_try") 2>&5
9578   ac_status=$?
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); }; }; then
9581   ac_cv_lib_dl_dlopen=yes
9582 else
9583   echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9585
9586         ac_cv_lib_dl_dlopen=no
9587 fi
9588
9589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9590       conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9592 fi
9593 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9594 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9595 if test $ac_cv_lib_dl_dlopen = yes; then
9596   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9597 else
9598
9599     lt_cv_dlopen="dyld"
9600     lt_cv_dlopen_libs=
9601     lt_cv_dlopen_self=yes
9602
9603 fi
9604
9605    ;;
9606
9607   *)
9608     { echo "$as_me:$LINENO: checking for shl_load" >&5
9609 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9610 if test "${ac_cv_func_shl_load+set}" = set; then
9611   echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613   cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h.  */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h.  */
9619 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9621 #define shl_load innocuous_shl_load
9622
9623 /* System header to define __stub macros and hopefully few prototypes,
9624     which can conflict with char shl_load (); below.
9625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9626     <limits.h> exists even on freestanding compilers.  */
9627
9628 #ifdef __STDC__
9629 # include <limits.h>
9630 #else
9631 # include <assert.h>
9632 #endif
9633
9634 #undef shl_load
9635
9636 /* Override any GCC internal prototype to avoid an error.
9637    Use char because int might match the return type of a GCC
9638    builtin and then its argument prototype would still apply.  */
9639 #ifdef __cplusplus
9640 extern "C"
9641 #endif
9642 char shl_load ();
9643 /* The GNU C library defines this for functions which it implements
9644     to always fail with ENOSYS.  Some functions are actually named
9645     something starting with __ and the normal name is an alias.  */
9646 #if defined __stub_shl_load || defined __stub___shl_load
9647 choke me
9648 #endif
9649
9650 int
9651 main ()
9652 {
9653 return shl_load ();
9654   ;
9655   return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9660 case "(($ac_try" in
9661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662   *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665   (eval "$ac_link") 2>conftest.er1
9666   ac_status=$?
9667   grep -v '^ *+' conftest.er1 >conftest.err
9668   rm -f conftest.er1
9669   cat conftest.err >&5
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); } &&
9672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9673   { (case "(($ac_try" in
9674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675   *) ac_try_echo=$ac_try;;
9676 esac
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678   (eval "$ac_try") 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); }; } &&
9682          { ac_try='test -s conftest$ac_exeext'
9683   { (case "(($ac_try" in
9684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685   *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688   (eval "$ac_try") 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); }; }; then
9692   ac_cv_func_shl_load=yes
9693 else
9694   echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9696
9697         ac_cv_func_shl_load=no
9698 fi
9699
9700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9701       conftest$ac_exeext conftest.$ac_ext
9702 fi
9703 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9704 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9705 if test $ac_cv_func_shl_load = yes; then
9706   lt_cv_dlopen="shl_load"
9707 else
9708   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9709 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9710 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9711   echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713   ac_check_lib_save_LIBS=$LIBS
9714 LIBS="-ldld  $LIBS"
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h.  */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h.  */
9721
9722 /* Override any GCC internal prototype to avoid an error.
9723    Use char because int might match the return type of a GCC
9724    builtin and then its argument prototype would still apply.  */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 char shl_load ();
9729 int
9730 main ()
9731 {
9732 return shl_load ();
9733   ;
9734   return 0;
9735 }
9736 _ACEOF
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (ac_try="$ac_link"
9739 case "(($ac_try" in
9740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741   *) ac_try_echo=$ac_try;;
9742 esac
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744   (eval "$ac_link") 2>conftest.er1
9745   ac_status=$?
9746   grep -v '^ *+' conftest.er1 >conftest.err
9747   rm -f conftest.er1
9748   cat conftest.err >&5
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); } &&
9751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9752   { (case "(($ac_try" in
9753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754   *) ac_try_echo=$ac_try;;
9755 esac
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757   (eval "$ac_try") 2>&5
9758   ac_status=$?
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); }; } &&
9761          { ac_try='test -s conftest$ac_exeext'
9762   { (case "(($ac_try" in
9763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764   *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767   (eval "$ac_try") 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); }; }; then
9771   ac_cv_lib_dld_shl_load=yes
9772 else
9773   echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9775
9776         ac_cv_lib_dld_shl_load=no
9777 fi
9778
9779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9780       conftest$ac_exeext conftest.$ac_ext
9781 LIBS=$ac_check_lib_save_LIBS
9782 fi
9783 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9784 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9785 if test $ac_cv_lib_dld_shl_load = yes; then
9786   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9787 else
9788   { echo "$as_me:$LINENO: checking for dlopen" >&5
9789 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9790 if test "${ac_cv_func_dlopen+set}" = set; then
9791   echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793   cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h.  */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h.  */
9799 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9801 #define dlopen innocuous_dlopen
9802
9803 /* System header to define __stub macros and hopefully few prototypes,
9804     which can conflict with char dlopen (); below.
9805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9806     <limits.h> exists even on freestanding compilers.  */
9807
9808 #ifdef __STDC__
9809 # include <limits.h>
9810 #else
9811 # include <assert.h>
9812 #endif
9813
9814 #undef dlopen
9815
9816 /* Override any GCC internal prototype to avoid an error.
9817    Use char because int might match the return type of a GCC
9818    builtin and then its argument prototype would still apply.  */
9819 #ifdef __cplusplus
9820 extern "C"
9821 #endif
9822 char dlopen ();
9823 /* The GNU C library defines this for functions which it implements
9824     to always fail with ENOSYS.  Some functions are actually named
9825     something starting with __ and the normal name is an alias.  */
9826 #if defined __stub_dlopen || defined __stub___dlopen
9827 choke me
9828 #endif
9829
9830 int
9831 main ()
9832 {
9833 return dlopen ();
9834   ;
9835   return 0;
9836 }
9837 _ACEOF
9838 rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (ac_try="$ac_link"
9840 case "(($ac_try" in
9841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842   *) ac_try_echo=$ac_try;;
9843 esac
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845   (eval "$ac_link") 2>conftest.er1
9846   ac_status=$?
9847   grep -v '^ *+' conftest.er1 >conftest.err
9848   rm -f conftest.er1
9849   cat conftest.err >&5
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); } &&
9852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9853   { (case "(($ac_try" in
9854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855   *) ac_try_echo=$ac_try;;
9856 esac
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858   (eval "$ac_try") 2>&5
9859   ac_status=$?
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); }; } &&
9862          { ac_try='test -s conftest$ac_exeext'
9863   { (case "(($ac_try" in
9864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865   *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868   (eval "$ac_try") 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); }; }; then
9872   ac_cv_func_dlopen=yes
9873 else
9874   echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9876
9877         ac_cv_func_dlopen=no
9878 fi
9879
9880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9881       conftest$ac_exeext conftest.$ac_ext
9882 fi
9883 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9884 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9885 if test $ac_cv_func_dlopen = yes; then
9886   lt_cv_dlopen="dlopen"
9887 else
9888   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9889 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9890 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9891   echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893   ac_check_lib_save_LIBS=$LIBS
9894 LIBS="-ldl  $LIBS"
9895 cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h.  */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h.  */
9901
9902 /* Override any GCC internal prototype to avoid an error.
9903    Use char because int might match the return type of a GCC
9904    builtin and then its argument prototype would still apply.  */
9905 #ifdef __cplusplus
9906 extern "C"
9907 #endif
9908 char dlopen ();
9909 int
9910 main ()
9911 {
9912 return dlopen ();
9913   ;
9914   return 0;
9915 }
9916 _ACEOF
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (ac_try="$ac_link"
9919 case "(($ac_try" in
9920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921   *) ac_try_echo=$ac_try;;
9922 esac
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924   (eval "$ac_link") 2>conftest.er1
9925   ac_status=$?
9926   grep -v '^ *+' conftest.er1 >conftest.err
9927   rm -f conftest.er1
9928   cat conftest.err >&5
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); } &&
9931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9932   { (case "(($ac_try" in
9933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934   *) ac_try_echo=$ac_try;;
9935 esac
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937   (eval "$ac_try") 2>&5
9938   ac_status=$?
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); }; } &&
9941          { ac_try='test -s conftest$ac_exeext'
9942   { (case "(($ac_try" in
9943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944   *) ac_try_echo=$ac_try;;
9945 esac
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947   (eval "$ac_try") 2>&5
9948   ac_status=$?
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); }; }; then
9951   ac_cv_lib_dl_dlopen=yes
9952 else
9953   echo "$as_me: failed program was:" >&5
9954 sed 's/^/| /' conftest.$ac_ext >&5
9955
9956         ac_cv_lib_dl_dlopen=no
9957 fi
9958
9959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9960       conftest$ac_exeext conftest.$ac_ext
9961 LIBS=$ac_check_lib_save_LIBS
9962 fi
9963 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9964 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9965 if test $ac_cv_lib_dl_dlopen = yes; then
9966   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9967 else
9968   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9969 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9970 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9971   echo $ECHO_N "(cached) $ECHO_C" >&6
9972 else
9973   ac_check_lib_save_LIBS=$LIBS
9974 LIBS="-lsvld  $LIBS"
9975 cat >conftest.$ac_ext <<_ACEOF
9976 /* confdefs.h.  */
9977 _ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h.  */
9981
9982 /* Override any GCC internal prototype to avoid an error.
9983    Use char because int might match the return type of a GCC
9984    builtin and then its argument prototype would still apply.  */
9985 #ifdef __cplusplus
9986 extern "C"
9987 #endif
9988 char dlopen ();
9989 int
9990 main ()
9991 {
9992 return dlopen ();
9993   ;
9994   return 0;
9995 }
9996 _ACEOF
9997 rm -f conftest.$ac_objext conftest$ac_exeext
9998 if { (ac_try="$ac_link"
9999 case "(($ac_try" in
10000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001   *) ac_try_echo=$ac_try;;
10002 esac
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004   (eval "$ac_link") 2>conftest.er1
10005   ac_status=$?
10006   grep -v '^ *+' conftest.er1 >conftest.err
10007   rm -f conftest.er1
10008   cat conftest.err >&5
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); } &&
10011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10012   { (case "(($ac_try" in
10013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014   *) ac_try_echo=$ac_try;;
10015 esac
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017   (eval "$ac_try") 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; } &&
10021          { ac_try='test -s conftest$ac_exeext'
10022   { (case "(($ac_try" in
10023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024   *) ac_try_echo=$ac_try;;
10025 esac
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027   (eval "$ac_try") 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); }; }; then
10031   ac_cv_lib_svld_dlopen=yes
10032 else
10033   echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036         ac_cv_lib_svld_dlopen=no
10037 fi
10038
10039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10040       conftest$ac_exeext conftest.$ac_ext
10041 LIBS=$ac_check_lib_save_LIBS
10042 fi
10043 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10044 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10045 if test $ac_cv_lib_svld_dlopen = yes; then
10046   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10047 else
10048   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10049 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10050 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10051   echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053   ac_check_lib_save_LIBS=$LIBS
10054 LIBS="-ldld  $LIBS"
10055 cat >conftest.$ac_ext <<_ACEOF
10056 /* confdefs.h.  */
10057 _ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h.  */
10061
10062 /* Override any GCC internal prototype to avoid an error.
10063    Use char because int might match the return type of a GCC
10064    builtin and then its argument prototype would still apply.  */
10065 #ifdef __cplusplus
10066 extern "C"
10067 #endif
10068 char dld_link ();
10069 int
10070 main ()
10071 {
10072 return dld_link ();
10073   ;
10074   return 0;
10075 }
10076 _ACEOF
10077 rm -f conftest.$ac_objext conftest$ac_exeext
10078 if { (ac_try="$ac_link"
10079 case "(($ac_try" in
10080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081   *) ac_try_echo=$ac_try;;
10082 esac
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084   (eval "$ac_link") 2>conftest.er1
10085   ac_status=$?
10086   grep -v '^ *+' conftest.er1 >conftest.err
10087   rm -f conftest.er1
10088   cat conftest.err >&5
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); } &&
10091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10092   { (case "(($ac_try" in
10093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094   *) ac_try_echo=$ac_try;;
10095 esac
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097   (eval "$ac_try") 2>&5
10098   ac_status=$?
10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100   (exit $ac_status); }; } &&
10101          { ac_try='test -s conftest$ac_exeext'
10102   { (case "(($ac_try" in
10103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104   *) ac_try_echo=$ac_try;;
10105 esac
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107   (eval "$ac_try") 2>&5
10108   ac_status=$?
10109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110   (exit $ac_status); }; }; then
10111   ac_cv_lib_dld_dld_link=yes
10112 else
10113   echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10115
10116         ac_cv_lib_dld_dld_link=no
10117 fi
10118
10119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10120       conftest$ac_exeext conftest.$ac_ext
10121 LIBS=$ac_check_lib_save_LIBS
10122 fi
10123 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10124 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10125 if test $ac_cv_lib_dld_dld_link = yes; then
10126   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10127 fi
10128
10129
10130 fi
10131
10132
10133 fi
10134
10135
10136 fi
10137
10138
10139 fi
10140
10141
10142 fi
10143
10144     ;;
10145   esac
10146
10147   if test "x$lt_cv_dlopen" != xno; then
10148     enable_dlopen=yes
10149   else
10150     enable_dlopen=no
10151   fi
10152
10153   case $lt_cv_dlopen in
10154   dlopen)
10155     save_CPPFLAGS="$CPPFLAGS"
10156     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10157
10158     save_LDFLAGS="$LDFLAGS"
10159     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10160
10161     save_LIBS="$LIBS"
10162     LIBS="$lt_cv_dlopen_libs $LIBS"
10163
10164     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10165 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10166 if test "${lt_cv_dlopen_self+set}" = set; then
10167   echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169           if test "$cross_compiling" = yes; then :
10170   lt_cv_dlopen_self=cross
10171 else
10172   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10173   lt_status=$lt_dlunknown
10174   cat > conftest.$ac_ext <<EOF
10175 #line 10175 "configure"
10176 #include "confdefs.h"
10177
10178 #if HAVE_DLFCN_H
10179 #include <dlfcn.h>
10180 #endif
10181
10182 #include <stdio.h>
10183
10184 #ifdef RTLD_GLOBAL
10185 #  define LT_DLGLOBAL           RTLD_GLOBAL
10186 #else
10187 #  ifdef DL_GLOBAL
10188 #    define LT_DLGLOBAL         DL_GLOBAL
10189 #  else
10190 #    define LT_DLGLOBAL         0
10191 #  endif
10192 #endif
10193
10194 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10195    find out it does not work in some platform. */
10196 #ifndef LT_DLLAZY_OR_NOW
10197 #  ifdef RTLD_LAZY
10198 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10199 #  else
10200 #    ifdef DL_LAZY
10201 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10202 #    else
10203 #      ifdef RTLD_NOW
10204 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10205 #      else
10206 #        ifdef DL_NOW
10207 #          define LT_DLLAZY_OR_NOW      DL_NOW
10208 #        else
10209 #          define LT_DLLAZY_OR_NOW      0
10210 #        endif
10211 #      endif
10212 #    endif
10213 #  endif
10214 #endif
10215
10216 #ifdef __cplusplus
10217 extern "C" void exit (int);
10218 #endif
10219
10220 void fnord() { int i=42;}
10221 int main ()
10222 {
10223   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10224   int status = $lt_dlunknown;
10225
10226   if (self)
10227     {
10228       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10229       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10230       /* dlclose (self); */
10231     }
10232   else
10233     puts (dlerror ());
10234
10235     exit (status);
10236 }
10237 EOF
10238   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10239   (eval $ac_link) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10243     (./conftest; exit; ) >&5 2>/dev/null
10244     lt_status=$?
10245     case x$lt_status in
10246       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10247       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10248       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10249     esac
10250   else :
10251     # compilation failed
10252     lt_cv_dlopen_self=no
10253   fi
10254 fi
10255 rm -fr conftest*
10256
10257
10258 fi
10259 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10260 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10261
10262     if test "x$lt_cv_dlopen_self" = xyes; then
10263       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10264       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10265 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10266 if test "${lt_cv_dlopen_self_static+set}" = set; then
10267   echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269           if test "$cross_compiling" = yes; then :
10270   lt_cv_dlopen_self_static=cross
10271 else
10272   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10273   lt_status=$lt_dlunknown
10274   cat > conftest.$ac_ext <<EOF
10275 #line 10275 "configure"
10276 #include "confdefs.h"
10277
10278 #if HAVE_DLFCN_H
10279 #include <dlfcn.h>
10280 #endif
10281
10282 #include <stdio.h>
10283
10284 #ifdef RTLD_GLOBAL
10285 #  define LT_DLGLOBAL           RTLD_GLOBAL
10286 #else
10287 #  ifdef DL_GLOBAL
10288 #    define LT_DLGLOBAL         DL_GLOBAL
10289 #  else
10290 #    define LT_DLGLOBAL         0
10291 #  endif
10292 #endif
10293
10294 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10295    find out it does not work in some platform. */
10296 #ifndef LT_DLLAZY_OR_NOW
10297 #  ifdef RTLD_LAZY
10298 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10299 #  else
10300 #    ifdef DL_LAZY
10301 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10302 #    else
10303 #      ifdef RTLD_NOW
10304 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10305 #      else
10306 #        ifdef DL_NOW
10307 #          define LT_DLLAZY_OR_NOW      DL_NOW
10308 #        else
10309 #          define LT_DLLAZY_OR_NOW      0
10310 #        endif
10311 #      endif
10312 #    endif
10313 #  endif
10314 #endif
10315
10316 #ifdef __cplusplus
10317 extern "C" void exit (int);
10318 #endif
10319
10320 void fnord() { int i=42;}
10321 int main ()
10322 {
10323   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10324   int status = $lt_dlunknown;
10325
10326   if (self)
10327     {
10328       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10329       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10330       /* dlclose (self); */
10331     }
10332   else
10333     puts (dlerror ());
10334
10335     exit (status);
10336 }
10337 EOF
10338   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10339   (eval $ac_link) 2>&5
10340   ac_status=$?
10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10343     (./conftest; exit; ) >&5 2>/dev/null
10344     lt_status=$?
10345     case x$lt_status in
10346       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10347       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10348       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10349     esac
10350   else :
10351     # compilation failed
10352     lt_cv_dlopen_self_static=no
10353   fi
10354 fi
10355 rm -fr conftest*
10356
10357
10358 fi
10359 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10360 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10361     fi
10362
10363     CPPFLAGS="$save_CPPFLAGS"
10364     LDFLAGS="$save_LDFLAGS"
10365     LIBS="$save_LIBS"
10366     ;;
10367   esac
10368
10369   case $lt_cv_dlopen_self in
10370   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10371   *) enable_dlopen_self=unknown ;;
10372   esac
10373
10374   case $lt_cv_dlopen_self_static in
10375   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10376   *) enable_dlopen_self_static=unknown ;;
10377   esac
10378 fi
10379
10380
10381 # Report which library types will actually be built
10382 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10383 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10384 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10385 echo "${ECHO_T}$can_build_shared" >&6; }
10386
10387 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10388 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10389 test "$can_build_shared" = "no" && enable_shared=no
10390
10391 # On AIX, shared libraries and static libraries use the same namespace, and
10392 # are all built from PIC.
10393 case $host_os in
10394 aix3*)
10395   test "$enable_shared" = yes && enable_static=no
10396   if test -n "$RANLIB"; then
10397     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10398     postinstall_cmds='$RANLIB $lib'
10399   fi
10400   ;;
10401
10402 aix4* | aix5*)
10403   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10404     test "$enable_shared" = yes && enable_static=no
10405   fi
10406     ;;
10407 esac
10408 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10409 echo "${ECHO_T}$enable_shared" >&6; }
10410
10411 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10412 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10413 # Make sure either enable_shared or enable_static is yes.
10414 test "$enable_shared" = yes || enable_static=yes
10415 { echo "$as_me:$LINENO: result: $enable_static" >&5
10416 echo "${ECHO_T}$enable_static" >&6; }
10417
10418 # The else clause should only fire when bootstrapping the
10419 # libtool distribution, otherwise you forgot to ship ltmain.sh
10420 # with your package, and you will get complaints that there are
10421 # no rules to generate ltmain.sh.
10422 if test -f "$ltmain"; then
10423   # See if we are running on zsh, and set the options which allow our commands through
10424   # without removal of \ escapes.
10425   if test -n "${ZSH_VERSION+set}" ; then
10426     setopt NO_GLOB_SUBST
10427   fi
10428   # Now quote all the things that may contain metacharacters while being
10429   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10430   # variables and quote the copies for generation of the libtool script.
10431   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10432     SED SHELL STRIP \
10433     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10434     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10435     deplibs_check_method reload_flag reload_cmds need_locks \
10436     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10437     lt_cv_sys_global_symbol_to_c_name_address \
10438     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10439     old_postinstall_cmds old_postuninstall_cmds \
10440     compiler \
10441     CC \
10442     LD \
10443     lt_prog_compiler_wl \
10444     lt_prog_compiler_pic \
10445     lt_prog_compiler_static \
10446     lt_prog_compiler_no_builtin_flag \
10447     export_dynamic_flag_spec \
10448     thread_safe_flag_spec \
10449     whole_archive_flag_spec \
10450     enable_shared_with_static_runtimes \
10451     old_archive_cmds \
10452     old_archive_from_new_cmds \
10453     predep_objects \
10454     postdep_objects \
10455     predeps \
10456     postdeps \
10457     compiler_lib_search_path \
10458     archive_cmds \
10459     archive_expsym_cmds \
10460     postinstall_cmds \
10461     postuninstall_cmds \
10462     old_archive_from_expsyms_cmds \
10463     allow_undefined_flag \
10464     no_undefined_flag \
10465     export_symbols_cmds \
10466     hardcode_libdir_flag_spec \
10467     hardcode_libdir_flag_spec_ld \
10468     hardcode_libdir_separator \
10469     hardcode_automatic \
10470     module_cmds \
10471     module_expsym_cmds \
10472     lt_cv_prog_compiler_c_o \
10473     exclude_expsyms \
10474     include_expsyms; do
10475
10476     case $var in
10477     old_archive_cmds | \
10478     old_archive_from_new_cmds | \
10479     archive_cmds | \
10480     archive_expsym_cmds | \
10481     module_cmds | \
10482     module_expsym_cmds | \
10483     old_archive_from_expsyms_cmds | \
10484     export_symbols_cmds | \
10485     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10486     postinstall_cmds | postuninstall_cmds | \
10487     old_postinstall_cmds | old_postuninstall_cmds | \
10488     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10489       # Double-quote double-evaled strings.
10490       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10491       ;;
10492     *)
10493       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10494       ;;
10495     esac
10496   done
10497
10498   case $lt_echo in
10499   *'\$0 --fallback-echo"')
10500     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10501     ;;
10502   esac
10503
10504 cfgfile="${ofile}T"
10505   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10506   $rm -f "$cfgfile"
10507   { echo "$as_me:$LINENO: creating $ofile" >&5
10508 echo "$as_me: creating $ofile" >&6;}
10509
10510   cat <<__EOF__ >> "$cfgfile"
10511 #! $SHELL
10512
10513 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10514 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10515 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10516 #
10517 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10518 # Free Software Foundation, Inc.
10519 #
10520 # This file is part of GNU Libtool:
10521 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10522 #
10523 # This program is free software; you can redistribute it and/or modify
10524 # it under the terms of the GNU General Public License as published by
10525 # the Free Software Foundation; either version 2 of the License, or
10526 # (at your option) any later version.
10527 #
10528 # This program is distributed in the hope that it will be useful, but
10529 # WITHOUT ANY WARRANTY; without even the implied warranty of
10530 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10531 # General Public License for more details.
10532 #
10533 # You should have received a copy of the GNU General Public License
10534 # along with this program; if not, write to the Free Software
10535 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10536 #
10537 # As a special exception to the GNU General Public License, if you
10538 # distribute this file as part of a program that contains a
10539 # configuration script generated by Autoconf, you may include it under
10540 # the same distribution terms that you use for the rest of that program.
10541
10542 # A sed program that does not truncate output.
10543 SED=$lt_SED
10544
10545 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10546 Xsed="$SED -e 1s/^X//"
10547
10548 # The HP-UX ksh and POSIX shell print the target directory to stdout
10549 # if CDPATH is set.
10550 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10551
10552 # The names of the tagged configurations supported by this script.
10553 available_tags=
10554
10555 # ### BEGIN LIBTOOL CONFIG
10556
10557 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10558
10559 # Shell to use when invoking shell scripts.
10560 SHELL=$lt_SHELL
10561
10562 # Whether or not to build shared libraries.
10563 build_libtool_libs=$enable_shared
10564
10565 # Whether or not to build static libraries.
10566 build_old_libs=$enable_static
10567
10568 # Whether or not to add -lc for building shared libraries.
10569 build_libtool_need_lc=$archive_cmds_need_lc
10570
10571 # Whether or not to disallow shared libs when runtime libs are static
10572 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10573
10574 # Whether or not to optimize for fast installation.
10575 fast_install=$enable_fast_install
10576
10577 # The host system.
10578 host_alias=$host_alias
10579 host=$host
10580 host_os=$host_os
10581
10582 # The build system.
10583 build_alias=$build_alias
10584 build=$build
10585 build_os=$build_os
10586
10587 # An echo program that does not interpret backslashes.
10588 echo=$lt_echo
10589
10590 # The archiver.
10591 AR=$lt_AR
10592 AR_FLAGS=$lt_AR_FLAGS
10593
10594 # A C compiler.
10595 LTCC=$lt_LTCC
10596
10597 # LTCC compiler flags.
10598 LTCFLAGS=$lt_LTCFLAGS
10599
10600 # A language-specific compiler.
10601 CC=$lt_compiler
10602
10603 # Is the compiler the GNU C compiler?
10604 with_gcc=$GCC
10605
10606 # An ERE matcher.
10607 EGREP=$lt_EGREP
10608
10609 # The linker used to build libraries.
10610 LD=$lt_LD
10611
10612 # Whether we need hard or soft links.
10613 LN_S=$lt_LN_S
10614
10615 # A BSD-compatible nm program.
10616 NM=$lt_NM
10617
10618 # A symbol stripping program
10619 STRIP=$lt_STRIP
10620
10621 # Used to examine libraries when file_magic_cmd begins "file"
10622 MAGIC_CMD=$MAGIC_CMD
10623
10624 # Used on cygwin: DLL creation program.
10625 DLLTOOL="$DLLTOOL"
10626
10627 # Used on cygwin: object dumper.
10628 OBJDUMP="$OBJDUMP"
10629
10630 # Used on cygwin: assembler.
10631 AS="$AS"
10632
10633 # The name of the directory that contains temporary libtool files.
10634 objdir=$objdir
10635
10636 # How to create reloadable object files.
10637 reload_flag=$lt_reload_flag
10638 reload_cmds=$lt_reload_cmds
10639
10640 # How to pass a linker flag through the compiler.
10641 wl=$lt_lt_prog_compiler_wl
10642
10643 # Object file suffix (normally "o").
10644 objext="$ac_objext"
10645
10646 # Old archive suffix (normally "a").
10647 libext="$libext"
10648
10649 # Shared library suffix (normally ".so").
10650 shrext_cmds='$shrext_cmds'
10651
10652 # Executable file suffix (normally "").
10653 exeext="$exeext"
10654
10655 # Additional compiler flags for building library objects.
10656 pic_flag=$lt_lt_prog_compiler_pic
10657 pic_mode=$pic_mode
10658
10659 # What is the maximum length of a command?
10660 max_cmd_len=$lt_cv_sys_max_cmd_len
10661
10662 # Does compiler simultaneously support -c and -o options?
10663 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10664
10665 # Must we lock files when doing compilation?
10666 need_locks=$lt_need_locks
10667
10668 # Do we need the lib prefix for modules?
10669 need_lib_prefix=$need_lib_prefix
10670
10671 # Do we need a version for libraries?
10672 need_version=$need_version
10673
10674 # Whether dlopen is supported.
10675 dlopen_support=$enable_dlopen
10676
10677 # Whether dlopen of programs is supported.
10678 dlopen_self=$enable_dlopen_self
10679
10680 # Whether dlopen of statically linked programs is supported.
10681 dlopen_self_static=$enable_dlopen_self_static
10682
10683 # Compiler flag to prevent dynamic linking.
10684 link_static_flag=$lt_lt_prog_compiler_static
10685
10686 # Compiler flag to turn off builtin functions.
10687 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10688
10689 # Compiler flag to allow reflexive dlopens.
10690 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10691
10692 # Compiler flag to generate shared objects directly from archives.
10693 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10694
10695 # Compiler flag to generate thread-safe objects.
10696 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10697
10698 # Library versioning type.
10699 version_type=$version_type
10700
10701 # Format of library name prefix.
10702 libname_spec=$lt_libname_spec
10703
10704 # List of archive names.  First name is the real one, the rest are links.
10705 # The last name is the one that the linker finds with -lNAME.
10706 library_names_spec=$lt_library_names_spec
10707
10708 # The coded name of the library, if different from the real name.
10709 soname_spec=$lt_soname_spec
10710
10711 # Commands used to build and install an old-style archive.
10712 RANLIB=$lt_RANLIB
10713 old_archive_cmds=$lt_old_archive_cmds
10714 old_postinstall_cmds=$lt_old_postinstall_cmds
10715 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10716
10717 # Create an old-style archive from a shared archive.
10718 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10719
10720 # Create a temporary old-style archive to link instead of a shared archive.
10721 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10722
10723 # Commands used to build and install a shared archive.
10724 archive_cmds=$lt_archive_cmds
10725 archive_expsym_cmds=$lt_archive_expsym_cmds
10726 postinstall_cmds=$lt_postinstall_cmds
10727 postuninstall_cmds=$lt_postuninstall_cmds
10728
10729 # Commands used to build a loadable module (assumed same as above if empty)
10730 module_cmds=$lt_module_cmds
10731 module_expsym_cmds=$lt_module_expsym_cmds
10732
10733 # Commands to strip libraries.
10734 old_striplib=$lt_old_striplib
10735 striplib=$lt_striplib
10736
10737 # Dependencies to place before the objects being linked to create a
10738 # shared library.
10739 predep_objects=$lt_predep_objects
10740
10741 # Dependencies to place after the objects being linked to create a
10742 # shared library.
10743 postdep_objects=$lt_postdep_objects
10744
10745 # Dependencies to place before the objects being linked to create a
10746 # shared library.
10747 predeps=$lt_predeps
10748
10749 # Dependencies to place after the objects being linked to create a
10750 # shared library.
10751 postdeps=$lt_postdeps
10752
10753 # The library search path used internally by the compiler when linking
10754 # a shared library.
10755 compiler_lib_search_path=$lt_compiler_lib_search_path
10756
10757 # Method to check whether dependent libraries are shared objects.
10758 deplibs_check_method=$lt_deplibs_check_method
10759
10760 # Command to use when deplibs_check_method == file_magic.
10761 file_magic_cmd=$lt_file_magic_cmd
10762
10763 # Flag that allows shared libraries with undefined symbols to be built.
10764 allow_undefined_flag=$lt_allow_undefined_flag
10765
10766 # Flag that forces no undefined symbols.
10767 no_undefined_flag=$lt_no_undefined_flag
10768
10769 # Commands used to finish a libtool library installation in a directory.
10770 finish_cmds=$lt_finish_cmds
10771
10772 # Same as above, but a single script fragment to be evaled but not shown.
10773 finish_eval=$lt_finish_eval
10774
10775 # Take the output of nm and produce a listing of raw symbols and C names.
10776 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10777
10778 # Transform the output of nm in a proper C declaration
10779 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10780
10781 # Transform the output of nm in a C name address pair
10782 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10783
10784 # This is the shared library runtime path variable.
10785 runpath_var=$runpath_var
10786
10787 # This is the shared library path variable.
10788 shlibpath_var=$shlibpath_var
10789
10790 # Is shlibpath searched before the hard-coded library search path?
10791 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10792
10793 # How to hardcode a shared library path into an executable.
10794 hardcode_action=$hardcode_action
10795
10796 # Whether we should hardcode library paths into libraries.
10797 hardcode_into_libs=$hardcode_into_libs
10798
10799 # Flag to hardcode \$libdir into a binary during linking.
10800 # This must work even if \$libdir does not exist.
10801 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10802
10803 # If ld is used when linking, flag to hardcode \$libdir into
10804 # a binary during linking. This must work even if \$libdir does
10805 # not exist.
10806 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10807
10808 # Whether we need a single -rpath flag with a separated argument.
10809 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10810
10811 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10812 # resulting binary.
10813 hardcode_direct=$hardcode_direct
10814
10815 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10816 # resulting binary.
10817 hardcode_minus_L=$hardcode_minus_L
10818
10819 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10820 # the resulting binary.
10821 hardcode_shlibpath_var=$hardcode_shlibpath_var
10822
10823 # Set to yes if building a shared library automatically hardcodes DIR into the library
10824 # and all subsequent libraries and executables linked against it.
10825 hardcode_automatic=$hardcode_automatic
10826
10827 # Variables whose values should be saved in libtool wrapper scripts and
10828 # restored at relink time.
10829 variables_saved_for_relink="$variables_saved_for_relink"
10830
10831 # Whether libtool must link a program against all its dependency libraries.
10832 link_all_deplibs=$link_all_deplibs
10833
10834 # Compile-time system search path for libraries
10835 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10836
10837 # Run-time system search path for libraries
10838 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10839
10840 # Fix the shell variable \$srcfile for the compiler.
10841 fix_srcfile_path="$fix_srcfile_path"
10842
10843 # Set to yes if exported symbols are required.
10844 always_export_symbols=$always_export_symbols
10845
10846 # The commands to list exported symbols.
10847 export_symbols_cmds=$lt_export_symbols_cmds
10848
10849 # The commands to extract the exported symbol list from a shared archive.
10850 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10851
10852 # Symbols that should not be listed in the preloaded symbols.
10853 exclude_expsyms=$lt_exclude_expsyms
10854
10855 # Symbols that must always be exported.
10856 include_expsyms=$lt_include_expsyms
10857
10858 # ### END LIBTOOL CONFIG
10859
10860 __EOF__
10861
10862
10863   case $host_os in
10864   aix3*)
10865     cat <<\EOF >> "$cfgfile"
10866
10867 # AIX sometimes has problems with the GCC collect2 program.  For some
10868 # reason, if we set the COLLECT_NAMES environment variable, the problems
10869 # vanish in a puff of smoke.
10870 if test "X${COLLECT_NAMES+set}" != Xset; then
10871   COLLECT_NAMES=
10872   export COLLECT_NAMES
10873 fi
10874 EOF
10875     ;;
10876   esac
10877
10878   # We use sed instead of cat because bash on DJGPP gets confused if
10879   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10880   # text mode, it properly converts lines to CR/LF.  This bash problem
10881   # is reportedly fixed, but why not run on old versions too?
10882   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10883
10884   mv -f "$cfgfile" "$ofile" || \
10885     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10886   chmod +x "$ofile"
10887
10888 else
10889   # If there is no Makefile yet, we rely on a make rule to execute
10890   # `config.status --recheck' to rerun these tests and create the
10891   # libtool script then.
10892   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10893   if test -f "$ltmain_in"; then
10894     test -f Makefile && make "$ltmain"
10895   fi
10896 fi
10897
10898
10899 ac_ext=c
10900 ac_cpp='$CPP $CPPFLAGS'
10901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10904
10905 CC="$lt_save_CC"
10906
10907
10908 # Check whether --with-tags was given.
10909 if test "${with_tags+set}" = set; then
10910   withval=$with_tags; tagnames="$withval"
10911 fi
10912
10913
10914 if test -f "$ltmain" && test -n "$tagnames"; then
10915   if test ! -f "${ofile}"; then
10916     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10917 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10918   fi
10919
10920   if test -z "$LTCC"; then
10921     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10922     if test -z "$LTCC"; then
10923       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10924 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10925     else
10926       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10927 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10928     fi
10929   fi
10930   if test -z "$LTCFLAGS"; then
10931     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10932   fi
10933
10934   # Extract list of available tagged configurations in $ofile.
10935   # Note that this assumes the entire list is on one line.
10936   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10937
10938   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10939   for tagname in $tagnames; do
10940     IFS="$lt_save_ifs"
10941     # Check whether tagname contains only valid characters
10942     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10943     "") ;;
10944     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10945 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10946    { (exit 1); exit 1; }; }
10947         ;;
10948     esac
10949
10950     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10951     then
10952       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10953 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10954    { (exit 1); exit 1; }; }
10955     fi
10956
10957     # Update the list of available tags.
10958     if test -n "$tagname"; then
10959       echo appending configuration tag \"$tagname\" to $ofile
10960
10961       case $tagname in
10962       CXX)
10963         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10964             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10965             (test "X$CXX" != "Xg++"))) ; then
10966           ac_ext=cpp
10967 ac_cpp='$CXXCPP $CPPFLAGS'
10968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10971
10972
10973
10974
10975 archive_cmds_need_lc_CXX=no
10976 allow_undefined_flag_CXX=
10977 always_export_symbols_CXX=no
10978 archive_expsym_cmds_CXX=
10979 export_dynamic_flag_spec_CXX=
10980 hardcode_direct_CXX=no
10981 hardcode_libdir_flag_spec_CXX=
10982 hardcode_libdir_flag_spec_ld_CXX=
10983 hardcode_libdir_separator_CXX=
10984 hardcode_minus_L_CXX=no
10985 hardcode_shlibpath_var_CXX=unsupported
10986 hardcode_automatic_CXX=no
10987 module_cmds_CXX=
10988 module_expsym_cmds_CXX=
10989 link_all_deplibs_CXX=unknown
10990 old_archive_cmds_CXX=$old_archive_cmds
10991 no_undefined_flag_CXX=
10992 whole_archive_flag_spec_CXX=
10993 enable_shared_with_static_runtimes_CXX=no
10994
10995 # Dependencies to place before and after the object being linked:
10996 predep_objects_CXX=
10997 postdep_objects_CXX=
10998 predeps_CXX=
10999 postdeps_CXX=
11000 compiler_lib_search_path_CXX=
11001
11002 # Source file extension for C++ test sources.
11003 ac_ext=cpp
11004
11005 # Object file extension for compiled C++ test sources.
11006 objext=o
11007 objext_CXX=$objext
11008
11009 # Code to be used in simple compile tests
11010 lt_simple_compile_test_code="int some_variable = 0;\n"
11011
11012 # Code to be used in simple link tests
11013 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11014
11015 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11016
11017 # If no C compiler was specified, use CC.
11018 LTCC=${LTCC-"$CC"}
11019
11020 # If no C compiler flags were specified, use CFLAGS.
11021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11022
11023 # Allow CC to be a program name with arguments.
11024 compiler=$CC
11025
11026
11027 # save warnings/boilerplate of simple test code
11028 ac_outfile=conftest.$ac_objext
11029 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11030 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11031 _lt_compiler_boilerplate=`cat conftest.err`
11032 $rm conftest*
11033
11034 ac_outfile=conftest.$ac_objext
11035 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11036 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11037 _lt_linker_boilerplate=`cat conftest.err`
11038 $rm conftest*
11039
11040
11041 # Allow CC to be a program name with arguments.
11042 lt_save_CC=$CC
11043 lt_save_LD=$LD
11044 lt_save_GCC=$GCC
11045 GCC=$GXX
11046 lt_save_with_gnu_ld=$with_gnu_ld
11047 lt_save_path_LD=$lt_cv_path_LD
11048 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11049   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11050 else
11051   $as_unset lt_cv_prog_gnu_ld
11052 fi
11053 if test -n "${lt_cv_path_LDCXX+set}"; then
11054   lt_cv_path_LD=$lt_cv_path_LDCXX
11055 else
11056   $as_unset lt_cv_path_LD
11057 fi
11058 test -z "${LDCXX+set}" || LD=$LDCXX
11059 CC=${CXX-"c++"}
11060 compiler=$CC
11061 compiler_CXX=$CC
11062 for cc_temp in $compiler""; do
11063   case $cc_temp in
11064     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11065     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11066     \-*) ;;
11067     *) break;;
11068   esac
11069 done
11070 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11071
11072
11073 # We don't want -fno-exception wen compiling C++ code, so set the
11074 # no_builtin_flag separately
11075 if test "$GXX" = yes; then
11076   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11077 else
11078   lt_prog_compiler_no_builtin_flag_CXX=
11079 fi
11080
11081 if test "$GXX" = yes; then
11082   # Set up default GNU C++ configuration
11083
11084
11085 # Check whether --with-gnu-ld was given.
11086 if test "${with_gnu_ld+set}" = set; then
11087   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11088 else
11089   with_gnu_ld=no
11090 fi
11091
11092 ac_prog=ld
11093 if test "$GCC" = yes; then
11094   # Check if gcc -print-prog-name=ld gives a path.
11095   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11096 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11097   case $host in
11098   *-*-mingw*)
11099     # gcc leaves a trailing carriage return which upsets mingw
11100     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11101   *)
11102     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11103   esac
11104   case $ac_prog in
11105     # Accept absolute paths.
11106     [\\/]* | ?:[\\/]*)
11107       re_direlt='/[^/][^/]*/\.\./'
11108       # Canonicalize the pathname of ld
11109       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11110       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11111         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11112       done
11113       test -z "$LD" && LD="$ac_prog"
11114       ;;
11115   "")
11116     # If it fails, then pretend we aren't using GCC.
11117     ac_prog=ld
11118     ;;
11119   *)
11120     # If it is relative, then search for the first ld in PATH.
11121     with_gnu_ld=unknown
11122     ;;
11123   esac
11124 elif test "$with_gnu_ld" = yes; then
11125   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11126 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11127 else
11128   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11129 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11130 fi
11131 if test "${lt_cv_path_LD+set}" = set; then
11132   echo $ECHO_N "(cached) $ECHO_C" >&6
11133 else
11134   if test -z "$LD"; then
11135   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11136   for ac_dir in $PATH; do
11137     IFS="$lt_save_ifs"
11138     test -z "$ac_dir" && ac_dir=.
11139     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11140       lt_cv_path_LD="$ac_dir/$ac_prog"
11141       # Check to see if the program is GNU ld.  I'd rather use --version,
11142       # but apparently some variants of GNU ld only accept -v.
11143       # Break only if it was the GNU/non-GNU ld that we prefer.
11144       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11145       *GNU* | *'with BFD'*)
11146         test "$with_gnu_ld" != no && break
11147         ;;
11148       *)
11149         test "$with_gnu_ld" != yes && break
11150         ;;
11151       esac
11152     fi
11153   done
11154   IFS="$lt_save_ifs"
11155 else
11156   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11157 fi
11158 fi
11159
11160 LD="$lt_cv_path_LD"
11161 if test -n "$LD"; then
11162   { echo "$as_me:$LINENO: result: $LD" >&5
11163 echo "${ECHO_T}$LD" >&6; }
11164 else
11165   { echo "$as_me:$LINENO: result: no" >&5
11166 echo "${ECHO_T}no" >&6; }
11167 fi
11168 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11169 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11170    { (exit 1); exit 1; }; }
11171 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11172 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11173 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11174   echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11177 case `$LD -v 2>&1 </dev/null` in
11178 *GNU* | *'with BFD'*)
11179   lt_cv_prog_gnu_ld=yes
11180   ;;
11181 *)
11182   lt_cv_prog_gnu_ld=no
11183   ;;
11184 esac
11185 fi
11186 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11187 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11188 with_gnu_ld=$lt_cv_prog_gnu_ld
11189
11190
11191
11192   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11193   # archiving commands below assume that GNU ld is being used.
11194   if test "$with_gnu_ld" = yes; then
11195     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11196     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'
11197
11198     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11199     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11200
11201     # If archive_cmds runs LD, not CC, wlarc should be empty
11202     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11203     #     investigate it a little bit more. (MM)
11204     wlarc='${wl}'
11205
11206     # ancient GNU ld didn't support --whole-archive et. al.
11207     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11208         grep 'no-whole-archive' > /dev/null; then
11209       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11210     else
11211       whole_archive_flag_spec_CXX=
11212     fi
11213   else
11214     with_gnu_ld=no
11215     wlarc=
11216
11217     # A generic and very simple default shared library creation
11218     # command for GNU C++ for the case where it uses the native
11219     # linker, instead of GNU ld.  If possible, this setting should
11220     # overridden to take advantage of the native linker features on
11221     # the platform it is being used on.
11222     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11223   fi
11224
11225   # Commands to make compiler produce verbose output that lists
11226   # what "hidden" libraries, object files and flags are used when
11227   # linking a shared library.
11228   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11229
11230 else
11231   GXX=no
11232   with_gnu_ld=no
11233   wlarc=
11234 fi
11235
11236 # PORTME: fill in a description of your system's C++ link characteristics
11237 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11238 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11239 ld_shlibs_CXX=yes
11240 case $host_os in
11241   aix3*)
11242     # FIXME: insert proper C++ library support
11243     ld_shlibs_CXX=no
11244     ;;
11245   aix4* | aix5*)
11246     if test "$host_cpu" = ia64; then
11247       # On IA64, the linker does run time linking by default, so we don't
11248       # have to do anything special.
11249       aix_use_runtimelinking=no
11250       exp_sym_flag='-Bexport'
11251       no_entry_flag=""
11252     else
11253       aix_use_runtimelinking=no
11254
11255       # Test if we are trying to use run time linking or normal
11256       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11257       # need to do runtime linking.
11258       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11259         for ld_flag in $LDFLAGS; do
11260           case $ld_flag in
11261           *-brtl*)
11262             aix_use_runtimelinking=yes
11263             break
11264             ;;
11265           esac
11266         done
11267         ;;
11268       esac
11269
11270       exp_sym_flag='-bexport'
11271       no_entry_flag='-bnoentry'
11272     fi
11273
11274     # When large executables or shared objects are built, AIX ld can
11275     # have problems creating the table of contents.  If linking a library
11276     # or program results in "error TOC overflow" add -mminimal-toc to
11277     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11278     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11279
11280     archive_cmds_CXX=''
11281     hardcode_direct_CXX=yes
11282     hardcode_libdir_separator_CXX=':'
11283     link_all_deplibs_CXX=yes
11284
11285     if test "$GXX" = yes; then
11286       case $host_os in aix4.[012]|aix4.[012].*)
11287       # We only want to do this on AIX 4.2 and lower, the check
11288       # below for broken collect2 doesn't work under 4.3+
11289         collect2name=`${CC} -print-prog-name=collect2`
11290         if test -f "$collect2name" && \
11291            strings "$collect2name" | grep resolve_lib_name >/dev/null
11292         then
11293           # We have reworked collect2
11294           hardcode_direct_CXX=yes
11295         else
11296           # We have old collect2
11297           hardcode_direct_CXX=unsupported
11298           # It fails to find uninstalled libraries when the uninstalled
11299           # path is not listed in the libpath.  Setting hardcode_minus_L
11300           # to unsupported forces relinking
11301           hardcode_minus_L_CXX=yes
11302           hardcode_libdir_flag_spec_CXX='-L$libdir'
11303           hardcode_libdir_separator_CXX=
11304         fi
11305         ;;
11306       esac
11307       shared_flag='-shared'
11308       if test "$aix_use_runtimelinking" = yes; then
11309         shared_flag="$shared_flag "'${wl}-G'
11310       fi
11311     else
11312       # not using gcc
11313       if test "$host_cpu" = ia64; then
11314         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11315         # chokes on -Wl,-G. The following line is correct:
11316         shared_flag='-G'
11317       else
11318         if test "$aix_use_runtimelinking" = yes; then
11319           shared_flag='${wl}-G'
11320         else
11321           shared_flag='${wl}-bM:SRE'
11322         fi
11323       fi
11324     fi
11325
11326     # It seems that -bexpall does not export symbols beginning with
11327     # underscore (_), so it is better to generate a list of symbols to export.
11328     always_export_symbols_CXX=yes
11329     if test "$aix_use_runtimelinking" = yes; then
11330       # Warning - without using the other runtime loading flags (-brtl),
11331       # -berok will link without error, but may produce a broken library.
11332       allow_undefined_flag_CXX='-berok'
11333       # Determine the default libpath from the value encoded in an empty executable.
11334       cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h.  */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h.  */
11340
11341 int
11342 main ()
11343 {
11344
11345   ;
11346   return 0;
11347 }
11348 _ACEOF
11349 rm -f conftest.$ac_objext conftest$ac_exeext
11350 if { (ac_try="$ac_link"
11351 case "(($ac_try" in
11352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353   *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356   (eval "$ac_link") 2>conftest.er1
11357   ac_status=$?
11358   grep -v '^ *+' conftest.er1 >conftest.err
11359   rm -f conftest.er1
11360   cat conftest.err >&5
11361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362   (exit $ac_status); } &&
11363          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11364   { (case "(($ac_try" in
11365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366   *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369   (eval "$ac_try") 2>&5
11370   ac_status=$?
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); }; } &&
11373          { ac_try='test -s conftest$ac_exeext'
11374   { (case "(($ac_try" in
11375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376   *) ac_try_echo=$ac_try;;
11377 esac
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379   (eval "$ac_try") 2>&5
11380   ac_status=$?
11381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382   (exit $ac_status); }; }; then
11383
11384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11385 }'`
11386 # Check for a 64-bit object if we didn't find anything.
11387 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; }
11388 }'`; fi
11389 else
11390   echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11392
11393
11394 fi
11395
11396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11397       conftest$ac_exeext conftest.$ac_ext
11398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11399
11400       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11401
11402       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"
11403      else
11404       if test "$host_cpu" = ia64; then
11405         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11406         allow_undefined_flag_CXX="-z nodefs"
11407         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"
11408       else
11409         # Determine the default libpath from the value encoded in an empty executable.
11410         cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h.  */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h.  */
11416
11417 int
11418 main ()
11419 {
11420
11421   ;
11422   return 0;
11423 }
11424 _ACEOF
11425 rm -f conftest.$ac_objext conftest$ac_exeext
11426 if { (ac_try="$ac_link"
11427 case "(($ac_try" in
11428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429   *) ac_try_echo=$ac_try;;
11430 esac
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432   (eval "$ac_link") 2>conftest.er1
11433   ac_status=$?
11434   grep -v '^ *+' conftest.er1 >conftest.err
11435   rm -f conftest.er1
11436   cat conftest.err >&5
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); } &&
11439          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11440   { (case "(($ac_try" in
11441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442   *) ac_try_echo=$ac_try;;
11443 esac
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445   (eval "$ac_try") 2>&5
11446   ac_status=$?
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); }; } &&
11449          { ac_try='test -s conftest$ac_exeext'
11450   { (case "(($ac_try" in
11451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452   *) ac_try_echo=$ac_try;;
11453 esac
11454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455   (eval "$ac_try") 2>&5
11456   ac_status=$?
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); }; }; then
11459
11460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11461 }'`
11462 # Check for a 64-bit object if we didn't find anything.
11463 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; }
11464 }'`; fi
11465 else
11466   echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11468
11469
11470 fi
11471
11472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11473       conftest$ac_exeext conftest.$ac_ext
11474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11475
11476         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11477         # Warning - without using the other run time loading flags,
11478         # -berok will link without error, but may produce a broken library.
11479         no_undefined_flag_CXX=' ${wl}-bernotok'
11480         allow_undefined_flag_CXX=' ${wl}-berok'
11481         # Exported symbols can be pulled into shared objects from archives
11482         whole_archive_flag_spec_CXX='$convenience'
11483         archive_cmds_need_lc_CXX=yes
11484         # This is similar to how AIX traditionally builds its shared libraries.
11485         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'
11486       fi
11487     fi
11488     ;;
11489
11490   beos*)
11491     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11492       allow_undefined_flag_CXX=unsupported
11493       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11494       # support --undefined.  This deserves some investigation.  FIXME
11495       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11496     else
11497       ld_shlibs_CXX=no
11498     fi
11499     ;;
11500
11501   chorus*)
11502     case $cc_basename in
11503       *)
11504         # FIXME: insert proper C++ library support
11505         ld_shlibs_CXX=no
11506         ;;
11507     esac
11508     ;;
11509
11510   cygwin* | mingw* | pw32*)
11511     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11512     # as there is no search path for DLLs.
11513     hardcode_libdir_flag_spec_CXX='-L$libdir'
11514     allow_undefined_flag_CXX=unsupported
11515     always_export_symbols_CXX=no
11516     enable_shared_with_static_runtimes_CXX=yes
11517
11518     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11519       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'
11520       # If the export-symbols file already is a .def file (1st line
11521       # is EXPORTS), use it as is; otherwise, prepend...
11522       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11523         cp $export_symbols $output_objdir/$soname.def;
11524       else
11525         echo EXPORTS > $output_objdir/$soname.def;
11526         cat $export_symbols >> $output_objdir/$soname.def;
11527       fi~
11528       $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'
11529     else
11530       ld_shlibs_CXX=no
11531     fi
11532   ;;
11533       darwin* | rhapsody*)
11534         case $host_os in
11535         rhapsody* | darwin1.[012])
11536          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11537          ;;
11538        *) # Darwin 1.3 on
11539          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11540            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11541          else
11542            case ${MACOSX_DEPLOYMENT_TARGET} in
11543              10.[012])
11544                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11545                ;;
11546              10.*)
11547                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11548                ;;
11549            esac
11550          fi
11551          ;;
11552         esac
11553       archive_cmds_need_lc_CXX=no
11554       hardcode_direct_CXX=no
11555       hardcode_automatic_CXX=yes
11556       hardcode_shlibpath_var_CXX=unsupported
11557       whole_archive_flag_spec_CXX=''
11558       link_all_deplibs_CXX=yes
11559
11560     if test "$GXX" = yes ; then
11561       lt_int_apple_cc_single_mod=no
11562       output_verbose_link_cmd='echo'
11563       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11564        lt_int_apple_cc_single_mod=yes
11565       fi
11566       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11567        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11568       else
11569           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'
11570         fi
11571         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11572         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11573           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11574             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}'
11575           else
11576             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}'
11577           fi
11578             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}'
11579       else
11580       case $cc_basename in
11581         xlc*)
11582          output_verbose_link_cmd='echo'
11583           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'
11584           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11585           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11586           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}'
11587           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}'
11588           ;;
11589        *)
11590          ld_shlibs_CXX=no
11591           ;;
11592       esac
11593       fi
11594         ;;
11595
11596   dgux*)
11597     case $cc_basename in
11598       ec++*)
11599         # FIXME: insert proper C++ library support
11600         ld_shlibs_CXX=no
11601         ;;
11602       ghcx*)
11603         # Green Hills C++ Compiler
11604         # FIXME: insert proper C++ library support
11605         ld_shlibs_CXX=no
11606         ;;
11607       *)
11608         # FIXME: insert proper C++ library support
11609         ld_shlibs_CXX=no
11610         ;;
11611     esac
11612     ;;
11613   freebsd[12]*)
11614     # C++ shared libraries reported to be fairly broken before switch to ELF
11615     ld_shlibs_CXX=no
11616     ;;
11617   freebsd-elf*)
11618     archive_cmds_need_lc_CXX=no
11619     ;;
11620   freebsd* | kfreebsd*-gnu | dragonfly*)
11621     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11622     # conventions
11623     ld_shlibs_CXX=yes
11624     ;;
11625   gnu*)
11626     ;;
11627   hpux9*)
11628     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11629     hardcode_libdir_separator_CXX=:
11630     export_dynamic_flag_spec_CXX='${wl}-E'
11631     hardcode_direct_CXX=yes
11632     hardcode_minus_L_CXX=yes # Not in the search PATH,
11633                                 # but as the default
11634                                 # location of the library.
11635
11636     case $cc_basename in
11637     CC*)
11638       # FIXME: insert proper C++ library support
11639       ld_shlibs_CXX=no
11640       ;;
11641     aCC*)
11642       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'
11643       # Commands to make compiler produce verbose output that lists
11644       # what "hidden" libraries, object files and flags are used when
11645       # linking a shared library.
11646       #
11647       # There doesn't appear to be a way to prevent this compiler from
11648       # explicitly linking system object files so we need to strip them
11649       # from the output so that they don't get included in the library
11650       # dependencies.
11651       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'
11652       ;;
11653     *)
11654       if test "$GXX" = yes; then
11655         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'
11656       else
11657         # FIXME: insert proper C++ library support
11658         ld_shlibs_CXX=no
11659       fi
11660       ;;
11661     esac
11662     ;;
11663   hpux10*|hpux11*)
11664     if test $with_gnu_ld = no; then
11665       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11666       hardcode_libdir_separator_CXX=:
11667
11668       case $host_cpu in
11669       hppa*64*|ia64*)
11670         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11671         ;;
11672       *)
11673         export_dynamic_flag_spec_CXX='${wl}-E'
11674         ;;
11675       esac
11676     fi
11677     case $host_cpu in
11678     hppa*64*|ia64*)
11679       hardcode_direct_CXX=no
11680       hardcode_shlibpath_var_CXX=no
11681       ;;
11682     *)
11683       hardcode_direct_CXX=yes
11684       hardcode_minus_L_CXX=yes # Not in the search PATH,
11685                                               # but as the default
11686                                               # location of the library.
11687       ;;
11688     esac
11689
11690     case $cc_basename in
11691       CC*)
11692         # FIXME: insert proper C++ library support
11693         ld_shlibs_CXX=no
11694         ;;
11695       aCC*)
11696         case $host_cpu in
11697         hppa*64*)
11698           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11699           ;;
11700         ia64*)
11701           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11702           ;;
11703         *)
11704           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11705           ;;
11706         esac
11707         # Commands to make compiler produce verbose output that lists
11708         # what "hidden" libraries, object files and flags are used when
11709         # linking a shared library.
11710         #
11711         # There doesn't appear to be a way to prevent this compiler from
11712         # explicitly linking system object files so we need to strip them
11713         # from the output so that they don't get included in the library
11714         # dependencies.
11715         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'
11716         ;;
11717       *)
11718         if test "$GXX" = yes; then
11719           if test $with_gnu_ld = no; then
11720             case $host_cpu in
11721             hppa*64*)
11722               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11723               ;;
11724             ia64*)
11725               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11726               ;;
11727             *)
11728               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'
11729               ;;
11730             esac
11731           fi
11732         else
11733           # FIXME: insert proper C++ library support
11734           ld_shlibs_CXX=no
11735         fi
11736         ;;
11737     esac
11738     ;;
11739   interix3*)
11740     hardcode_direct_CXX=no
11741     hardcode_shlibpath_var_CXX=no
11742     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11743     export_dynamic_flag_spec_CXX='${wl}-E'
11744     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11745     # Instead, shared libraries are loaded at an image base (0x10000000 by
11746     # default) and relocated if they conflict, which is a slow very memory
11747     # consuming and fragmenting process.  To avoid this, we pick a random,
11748     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11749     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11750     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'
11751     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'
11752     ;;
11753   irix5* | irix6*)
11754     case $cc_basename in
11755       CC*)
11756         # SGI C++
11757         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'
11758
11759         # Archives containing C++ object files must be created using
11760         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11761         # necessary to make sure instantiated templates are included
11762         # in the archive.
11763         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11764         ;;
11765       *)
11766         if test "$GXX" = yes; then
11767           if test "$with_gnu_ld" = no; then
11768             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'
11769           else
11770             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'
11771           fi
11772         fi
11773         link_all_deplibs_CXX=yes
11774         ;;
11775     esac
11776     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11777     hardcode_libdir_separator_CXX=:
11778     ;;
11779   linux*)
11780     case $cc_basename in
11781       KCC*)
11782         # Kuck and Associates, Inc. (KAI) C++ Compiler
11783
11784         # KCC will only create a shared library if the output file
11785         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11786         # to its proper name (with version) after linking.
11787         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'
11788         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'
11789         # Commands to make compiler produce verbose output that lists
11790         # what "hidden" libraries, object files and flags are used when
11791         # linking a shared library.
11792         #
11793         # There doesn't appear to be a way to prevent this compiler from
11794         # explicitly linking system object files so we need to strip them
11795         # from the output so that they don't get included in the library
11796         # dependencies.
11797         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'
11798
11799         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11800         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11801
11802         # Archives containing C++ object files must be created using
11803         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11804         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11805         ;;
11806       icpc*)
11807         # Intel C++
11808         with_gnu_ld=yes
11809         # version 8.0 and above of icpc choke on multiply defined symbols
11810         # if we add $predep_objects and $postdep_objects, however 7.1 and
11811         # earlier do not add the objects themselves.
11812         case `$CC -V 2>&1` in
11813         *"Version 7."*)
11814           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11815           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'
11816           ;;
11817         *)  # Version 8.0 or newer
11818           tmp_idyn=
11819           case $host_cpu in
11820             ia64*) tmp_idyn=' -i_dynamic';;
11821           esac
11822           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11823           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'
11824           ;;
11825         esac
11826         archive_cmds_need_lc_CXX=no
11827         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11828         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11829         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11830         ;;
11831       pgCC*)
11832         # Portland Group C++ compiler
11833         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11834         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'
11835
11836         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11837         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11838         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'
11839         ;;
11840       cxx*)
11841         # Compaq C++
11842         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11843         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'
11844
11845         runpath_var=LD_RUN_PATH
11846         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11847         hardcode_libdir_separator_CXX=:
11848
11849         # Commands to make compiler produce verbose output that lists
11850         # what "hidden" libraries, object files and flags are used when
11851         # linking a shared library.
11852         #
11853         # There doesn't appear to be a way to prevent this compiler from
11854         # explicitly linking system object files so we need to strip them
11855         # from the output so that they don't get included in the library
11856         # dependencies.
11857         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'
11858         ;;
11859     esac
11860     ;;
11861   lynxos*)
11862     # FIXME: insert proper C++ library support
11863     ld_shlibs_CXX=no
11864     ;;
11865   m88k*)
11866     # FIXME: insert proper C++ library support
11867     ld_shlibs_CXX=no
11868     ;;
11869   mvs*)
11870     case $cc_basename in
11871       cxx*)
11872         # FIXME: insert proper C++ library support
11873         ld_shlibs_CXX=no
11874         ;;
11875       *)
11876         # FIXME: insert proper C++ library support
11877         ld_shlibs_CXX=no
11878         ;;
11879     esac
11880     ;;
11881   netbsd*)
11882     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11883       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11884       wlarc=
11885       hardcode_libdir_flag_spec_CXX='-R$libdir'
11886       hardcode_direct_CXX=yes
11887       hardcode_shlibpath_var_CXX=no
11888     fi
11889     # Workaround some broken pre-1.5 toolchains
11890     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11891     ;;
11892   openbsd2*)
11893     # C++ shared libraries are fairly broken
11894     ld_shlibs_CXX=no
11895     ;;
11896   openbsd*)
11897     hardcode_direct_CXX=yes
11898     hardcode_shlibpath_var_CXX=no
11899     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11900     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11901     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11902       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11903       export_dynamic_flag_spec_CXX='${wl}-E'
11904       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11905     fi
11906     output_verbose_link_cmd='echo'
11907     ;;
11908   osf3*)
11909     case $cc_basename in
11910       KCC*)
11911         # Kuck and Associates, Inc. (KAI) C++ Compiler
11912
11913         # KCC will only create a shared library if the output file
11914         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11915         # to its proper name (with version) after linking.
11916         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'
11917
11918         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11919         hardcode_libdir_separator_CXX=:
11920
11921         # Archives containing C++ object files must be created using
11922         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11923         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11924
11925         ;;
11926       RCC*)
11927         # Rational C++ 2.4.1
11928         # FIXME: insert proper C++ library support
11929         ld_shlibs_CXX=no
11930         ;;
11931       cxx*)
11932         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11933         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'
11934
11935         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11936         hardcode_libdir_separator_CXX=:
11937
11938         # Commands to make compiler produce verbose output that lists
11939         # what "hidden" libraries, object files and flags are used when
11940         # linking a shared library.
11941         #
11942         # There doesn't appear to be a way to prevent this compiler from
11943         # explicitly linking system object files so we need to strip them
11944         # from the output so that they don't get included in the library
11945         # dependencies.
11946         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'
11947         ;;
11948       *)
11949         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11950           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11951           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'
11952
11953           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11954           hardcode_libdir_separator_CXX=:
11955
11956           # Commands to make compiler produce verbose output that lists
11957           # what "hidden" libraries, object files and flags are used when
11958           # linking a shared library.
11959           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11960
11961         else
11962           # FIXME: insert proper C++ library support
11963           ld_shlibs_CXX=no
11964         fi
11965         ;;
11966     esac
11967     ;;
11968   osf4* | osf5*)
11969     case $cc_basename in
11970       KCC*)
11971         # Kuck and Associates, Inc. (KAI) C++ Compiler
11972
11973         # KCC will only create a shared library if the output file
11974         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11975         # to its proper name (with version) after linking.
11976         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'
11977
11978         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11979         hardcode_libdir_separator_CXX=:
11980
11981         # Archives containing C++ object files must be created using
11982         # the KAI C++ compiler.
11983         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11984         ;;
11985       RCC*)
11986         # Rational C++ 2.4.1
11987         # FIXME: insert proper C++ library support
11988         ld_shlibs_CXX=no
11989         ;;
11990       cxx*)
11991         allow_undefined_flag_CXX=' -expect_unresolved \*'
11992         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'
11993         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11994           echo "-hidden">> $lib.exp~
11995           $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~
11996           $rm $lib.exp'
11997
11998         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11999         hardcode_libdir_separator_CXX=:
12000
12001         # Commands to make compiler produce verbose output that lists
12002         # what "hidden" libraries, object files and flags are used when
12003         # linking a shared library.
12004         #
12005         # There doesn't appear to be a way to prevent this compiler from
12006         # explicitly linking system object files so we need to strip them
12007         # from the output so that they don't get included in the library
12008         # dependencies.
12009         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'
12010         ;;
12011       *)
12012         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12013           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12014          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'
12015
12016           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12017           hardcode_libdir_separator_CXX=:
12018
12019           # Commands to make compiler produce verbose output that lists
12020           # what "hidden" libraries, object files and flags are used when
12021           # linking a shared library.
12022           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12023
12024         else
12025           # FIXME: insert proper C++ library support
12026           ld_shlibs_CXX=no
12027         fi
12028         ;;
12029     esac
12030     ;;
12031   psos*)
12032     # FIXME: insert proper C++ library support
12033     ld_shlibs_CXX=no
12034     ;;
12035   sunos4*)
12036     case $cc_basename in
12037       CC*)
12038         # Sun C++ 4.x
12039         # FIXME: insert proper C++ library support
12040         ld_shlibs_CXX=no
12041         ;;
12042       lcc*)
12043         # Lucid
12044         # FIXME: insert proper C++ library support
12045         ld_shlibs_CXX=no
12046         ;;
12047       *)
12048         # FIXME: insert proper C++ library support
12049         ld_shlibs_CXX=no
12050         ;;
12051     esac
12052     ;;
12053   solaris*)
12054     case $cc_basename in
12055       CC*)
12056         # Sun C++ 4.2, 5.x and Centerline C++
12057         archive_cmds_need_lc_CXX=yes
12058         no_undefined_flag_CXX=' -zdefs'
12059         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12060         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12061         $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'
12062
12063         hardcode_libdir_flag_spec_CXX='-R$libdir'
12064         hardcode_shlibpath_var_CXX=no
12065         case $host_os in
12066           solaris2.[0-5] | solaris2.[0-5].*) ;;
12067           *)
12068             # The C++ compiler is used as linker so we must use $wl
12069             # flag to pass the commands to the underlying system
12070             # linker. We must also pass each convience library through
12071             # to the system linker between allextract/defaultextract.
12072             # The C++ compiler will combine linker options so we
12073             # cannot just pass the convience library names through
12074             # without $wl.
12075             # Supported since Solaris 2.6 (maybe 2.5.1?)
12076             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'
12077             ;;
12078         esac
12079         link_all_deplibs_CXX=yes
12080
12081         output_verbose_link_cmd='echo'
12082
12083         # Archives containing C++ object files must be created using
12084         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12085         # necessary to make sure instantiated templates are included
12086         # in the archive.
12087         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12088         ;;
12089       gcx*)
12090         # Green Hills C++ Compiler
12091         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12092
12093         # The C++ compiler must be used to create the archive.
12094         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12095         ;;
12096       *)
12097         # GNU C++ compiler with Solaris linker
12098         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12099           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12100           if $CC --version | grep -v '^2\.7' > /dev/null; then
12101             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12102             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12103                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12104
12105             # Commands to make compiler produce verbose output that lists
12106             # what "hidden" libraries, object files and flags are used when
12107             # linking a shared library.
12108             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12109           else
12110             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12111             # platform.
12112             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12113             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12114                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12115
12116             # Commands to make compiler produce verbose output that lists
12117             # what "hidden" libraries, object files and flags are used when
12118             # linking a shared library.
12119             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12120           fi
12121
12122           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12123         fi
12124         ;;
12125     esac
12126     ;;
12127   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12128     no_undefined_flag_CXX='${wl}-z,text'
12129     archive_cmds_need_lc_CXX=no
12130     hardcode_shlibpath_var_CXX=no
12131     runpath_var='LD_RUN_PATH'
12132
12133     case $cc_basename in
12134       CC*)
12135         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12136         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12137         ;;
12138       *)
12139         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12140         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12141         ;;
12142     esac
12143     ;;
12144   sysv5* | sco3.2v5* | sco5v6*)
12145     # Note: We can NOT use -z defs as we might desire, because we do not
12146     # link with -lc, and that would cause any symbols used from libc to
12147     # always be unresolved, which means just about no library would
12148     # ever link correctly.  If we're not using GNU ld we use -z text
12149     # though, which does catch some bad symbols but isn't as heavy-handed
12150     # as -z defs.
12151     # For security reasons, it is highly recommended that you always
12152     # use absolute paths for naming shared libraries, and exclude the
12153     # DT_RUNPATH tag from executables and libraries.  But doing so
12154     # requires that you compile everything twice, which is a pain.
12155     # So that behaviour is only enabled if SCOABSPATH is set to a
12156     # non-empty value in the environment.  Most likely only useful for
12157     # creating official distributions of packages.
12158     # This is a hack until libtool officially supports absolute path
12159     # names for shared libraries.
12160     no_undefined_flag_CXX='${wl}-z,text'
12161     allow_undefined_flag_CXX='${wl}-z,nodefs'
12162     archive_cmds_need_lc_CXX=no
12163     hardcode_shlibpath_var_CXX=no
12164     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12165     hardcode_libdir_separator_CXX=':'
12166     link_all_deplibs_CXX=yes
12167     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12168     runpath_var='LD_RUN_PATH'
12169
12170     case $cc_basename in
12171       CC*)
12172         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12173         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12174         ;;
12175       *)
12176         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12177         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12178         ;;
12179     esac
12180     ;;
12181   tandem*)
12182     case $cc_basename in
12183       NCC*)
12184         # NonStop-UX NCC 3.20
12185         # FIXME: insert proper C++ library support
12186         ld_shlibs_CXX=no
12187         ;;
12188       *)
12189         # FIXME: insert proper C++ library support
12190         ld_shlibs_CXX=no
12191         ;;
12192     esac
12193     ;;
12194   vxworks*)
12195     # FIXME: insert proper C++ library support
12196     ld_shlibs_CXX=no
12197     ;;
12198   *)
12199     # FIXME: insert proper C++ library support
12200     ld_shlibs_CXX=no
12201     ;;
12202 esac
12203 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12204 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12205 test "$ld_shlibs_CXX" = no && can_build_shared=no
12206
12207 GCC_CXX="$GXX"
12208 LD_CXX="$LD"
12209
12210 ## CAVEAT EMPTOR:
12211 ## There is no encapsulation within the following macros, do not change
12212 ## the running order or otherwise move them around unless you know exactly
12213 ## what you are doing...
12214
12215 cat > conftest.$ac_ext <<EOF
12216 class Foo
12217 {
12218 public:
12219   Foo (void) { a = 0; }
12220 private:
12221   int a;
12222 };
12223 EOF
12224
12225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12226   (eval $ac_compile) 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }; then
12230   # Parse the compiler output and extract the necessary
12231   # objects, libraries and library flags.
12232
12233   # Sentinel used to keep track of whether or not we are before
12234   # the conftest object file.
12235   pre_test_object_deps_done=no
12236
12237   # The `*' in the case matches for architectures that use `case' in
12238   # $output_verbose_cmd can trigger glob expansion during the loop
12239   # eval without this substitution.
12240   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12241
12242   for p in `eval $output_verbose_link_cmd`; do
12243     case $p in
12244
12245     -L* | -R* | -l*)
12246        # Some compilers place space between "-{L,R}" and the path.
12247        # Remove the space.
12248        if test $p = "-L" \
12249           || test $p = "-R"; then
12250          prev=$p
12251          continue
12252        else
12253          prev=
12254        fi
12255
12256        if test "$pre_test_object_deps_done" = no; then
12257          case $p in
12258          -L* | -R*)
12259            # Internal compiler library paths should come after those
12260            # provided the user.  The postdeps already come after the
12261            # user supplied libs so there is no need to process them.
12262            if test -z "$compiler_lib_search_path_CXX"; then
12263              compiler_lib_search_path_CXX="${prev}${p}"
12264            else
12265              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12266            fi
12267            ;;
12268          # The "-l" case would never come before the object being
12269          # linked, so don't bother handling this case.
12270          esac
12271        else
12272          if test -z "$postdeps_CXX"; then
12273            postdeps_CXX="${prev}${p}"
12274          else
12275            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12276          fi
12277        fi
12278        ;;
12279
12280     *.$objext)
12281        # This assumes that the test object file only shows up
12282        # once in the compiler output.
12283        if test "$p" = "conftest.$objext"; then
12284          pre_test_object_deps_done=yes
12285          continue
12286        fi
12287
12288        if test "$pre_test_object_deps_done" = no; then
12289          if test -z "$predep_objects_CXX"; then
12290            predep_objects_CXX="$p"
12291          else
12292            predep_objects_CXX="$predep_objects_CXX $p"
12293          fi
12294        else
12295          if test -z "$postdep_objects_CXX"; then
12296            postdep_objects_CXX="$p"
12297          else
12298            postdep_objects_CXX="$postdep_objects_CXX $p"
12299          fi
12300        fi
12301        ;;
12302
12303     *) ;; # Ignore the rest.
12304
12305     esac
12306   done
12307
12308   # Clean up.
12309   rm -f a.out a.exe
12310 else
12311   echo "libtool.m4: error: problem compiling CXX test program"
12312 fi
12313
12314 $rm -f confest.$objext
12315
12316 # PORTME: override above test on systems where it is broken
12317 case $host_os in
12318 interix3*)
12319   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12320   # hack all around it, let's just trust "g++" to DTRT.
12321   predep_objects_CXX=
12322   postdep_objects_CXX=
12323   postdeps_CXX=
12324   ;;
12325
12326 solaris*)
12327   case $cc_basename in
12328   CC*)
12329     # Adding this requires a known-good setup of shared libraries for
12330     # Sun compiler versions before 5.6, else PIC objects from an old
12331     # archive will be linked into the output, leading to subtle bugs.
12332     postdeps_CXX='-lCstd -lCrun'
12333     ;;
12334   esac
12335   ;;
12336 esac
12337
12338
12339 case " $postdeps_CXX " in
12340 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12341 esac
12342
12343 lt_prog_compiler_wl_CXX=
12344 lt_prog_compiler_pic_CXX=
12345 lt_prog_compiler_static_CXX=
12346
12347 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12348 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12349
12350   # C++ specific cases for pic, static, wl, etc.
12351   if test "$GXX" = yes; then
12352     lt_prog_compiler_wl_CXX='-Wl,'
12353     lt_prog_compiler_static_CXX='-static'
12354
12355     case $host_os in
12356     aix*)
12357       # All AIX code is PIC.
12358       if test "$host_cpu" = ia64; then
12359         # AIX 5 now supports IA64 processor
12360         lt_prog_compiler_static_CXX='-Bstatic'
12361       fi
12362       ;;
12363     amigaos*)
12364       # FIXME: we need at least 68020 code to build shared libraries, but
12365       # adding the `-m68020' flag to GCC prevents building anything better,
12366       # like `-m68040'.
12367       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12368       ;;
12369     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12370       # PIC is the default for these OSes.
12371       ;;
12372     mingw* | os2* | pw32*)
12373       # This hack is so that the source file can tell whether it is being
12374       # built for inclusion in a dll (and should export symbols for example).
12375       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12376       ;;
12377     darwin* | rhapsody*)
12378       # PIC is the default on this platform
12379       # Common symbols not allowed in MH_DYLIB files
12380       lt_prog_compiler_pic_CXX='-fno-common'
12381       ;;
12382     *djgpp*)
12383       # DJGPP does not support shared libraries at all
12384       lt_prog_compiler_pic_CXX=
12385       ;;
12386     interix3*)
12387       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12388       # Instead, we relocate shared libraries at runtime.
12389       ;;
12390     sysv4*MP*)
12391       if test -d /usr/nec; then
12392         lt_prog_compiler_pic_CXX=-Kconform_pic
12393       fi
12394       ;;
12395     hpux*)
12396       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12397       # not for PA HP-UX.
12398       case $host_cpu in
12399       hppa*64*|ia64*)
12400         ;;
12401       *)
12402         lt_prog_compiler_pic_CXX='-fPIC'
12403         ;;
12404       esac
12405       ;;
12406     *)
12407       lt_prog_compiler_pic_CXX='-fPIC'
12408       ;;
12409     esac
12410   else
12411     case $host_os in
12412       aix4* | aix5*)
12413         # All AIX code is PIC.
12414         if test "$host_cpu" = ia64; then
12415           # AIX 5 now supports IA64 processor
12416           lt_prog_compiler_static_CXX='-Bstatic'
12417         else
12418           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12419         fi
12420         ;;
12421       chorus*)
12422         case $cc_basename in
12423         cxch68*)
12424           # Green Hills C++ Compiler
12425           # _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"
12426           ;;
12427         esac
12428         ;;
12429        darwin*)
12430          # PIC is the default on this platform
12431          # Common symbols not allowed in MH_DYLIB files
12432          case $cc_basename in
12433            xlc*)
12434            lt_prog_compiler_pic_CXX='-qnocommon'
12435            lt_prog_compiler_wl_CXX='-Wl,'
12436            ;;
12437          esac
12438        ;;
12439       dgux*)
12440         case $cc_basename in
12441           ec++*)
12442             lt_prog_compiler_pic_CXX='-KPIC'
12443             ;;
12444           ghcx*)
12445             # Green Hills C++ Compiler
12446             lt_prog_compiler_pic_CXX='-pic'
12447             ;;
12448           *)
12449             ;;
12450         esac
12451         ;;
12452       freebsd* | kfreebsd*-gnu | dragonfly*)
12453         # FreeBSD uses GNU C++
12454         ;;
12455       hpux9* | hpux10* | hpux11*)
12456         case $cc_basename in
12457           CC*)
12458             lt_prog_compiler_wl_CXX='-Wl,'
12459             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12460             if test "$host_cpu" != ia64; then
12461               lt_prog_compiler_pic_CXX='+Z'
12462             fi
12463             ;;
12464           aCC*)
12465             lt_prog_compiler_wl_CXX='-Wl,'
12466             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12467             case $host_cpu in
12468             hppa*64*|ia64*)
12469               # +Z the default
12470               ;;
12471             *)
12472               lt_prog_compiler_pic_CXX='+Z'
12473               ;;
12474             esac
12475             ;;
12476           *)
12477             ;;
12478         esac
12479         ;;
12480       interix*)
12481         # This is c89, which is MS Visual C++ (no shared libs)
12482         # Anyone wants to do a port?
12483         ;;
12484       irix5* | irix6* | nonstopux*)
12485         case $cc_basename in
12486           CC*)
12487             lt_prog_compiler_wl_CXX='-Wl,'
12488             lt_prog_compiler_static_CXX='-non_shared'
12489             # CC pic flag -KPIC is the default.
12490             ;;
12491           *)
12492             ;;
12493         esac
12494         ;;
12495       linux*)
12496         case $cc_basename in
12497           KCC*)
12498             # KAI C++ Compiler
12499             lt_prog_compiler_wl_CXX='--backend -Wl,'
12500             lt_prog_compiler_pic_CXX='-fPIC'
12501             ;;
12502           icpc* | ecpc*)
12503             # Intel C++
12504             lt_prog_compiler_wl_CXX='-Wl,'
12505             lt_prog_compiler_pic_CXX='-KPIC'
12506             lt_prog_compiler_static_CXX='-static'
12507             ;;
12508           pgCC*)
12509             # Portland Group C++ compiler.
12510             lt_prog_compiler_wl_CXX='-Wl,'
12511             lt_prog_compiler_pic_CXX='-fpic'
12512             lt_prog_compiler_static_CXX='-Bstatic'
12513             ;;
12514           cxx*)
12515             # Compaq C++
12516             # Make sure the PIC flag is empty.  It appears that all Alpha
12517             # Linux and Compaq Tru64 Unix objects are PIC.
12518             lt_prog_compiler_pic_CXX=
12519             lt_prog_compiler_static_CXX='-non_shared'
12520             ;;
12521           *)
12522             ;;
12523         esac
12524         ;;
12525       lynxos*)
12526         ;;
12527       m88k*)
12528         ;;
12529       mvs*)
12530         case $cc_basename in
12531           cxx*)
12532             lt_prog_compiler_pic_CXX='-W c,exportall'
12533             ;;
12534           *)
12535             ;;
12536         esac
12537         ;;
12538       netbsd*)
12539         ;;
12540       osf3* | osf4* | osf5*)
12541         case $cc_basename in
12542           KCC*)
12543             lt_prog_compiler_wl_CXX='--backend -Wl,'
12544             ;;
12545           RCC*)
12546             # Rational C++ 2.4.1
12547             lt_prog_compiler_pic_CXX='-pic'
12548             ;;
12549           cxx*)
12550             # Digital/Compaq C++
12551             lt_prog_compiler_wl_CXX='-Wl,'
12552             # Make sure the PIC flag is empty.  It appears that all Alpha
12553             # Linux and Compaq Tru64 Unix objects are PIC.
12554             lt_prog_compiler_pic_CXX=
12555             lt_prog_compiler_static_CXX='-non_shared'
12556             ;;
12557           *)
12558             ;;
12559         esac
12560         ;;
12561       psos*)
12562         ;;
12563       solaris*)
12564         case $cc_basename in
12565           CC*)
12566             # Sun C++ 4.2, 5.x and Centerline C++
12567             lt_prog_compiler_pic_CXX='-KPIC'
12568             lt_prog_compiler_static_CXX='-Bstatic'
12569             lt_prog_compiler_wl_CXX='-Qoption ld '
12570             ;;
12571           gcx*)
12572             # Green Hills C++ Compiler
12573             lt_prog_compiler_pic_CXX='-PIC'
12574             ;;
12575           *)
12576             ;;
12577         esac
12578         ;;
12579       sunos4*)
12580         case $cc_basename in
12581           CC*)
12582             # Sun C++ 4.x
12583             lt_prog_compiler_pic_CXX='-pic'
12584             lt_prog_compiler_static_CXX='-Bstatic'
12585             ;;
12586           lcc*)
12587             # Lucid
12588             lt_prog_compiler_pic_CXX='-pic'
12589             ;;
12590           *)
12591             ;;
12592         esac
12593         ;;
12594       tandem*)
12595         case $cc_basename in
12596           NCC*)
12597             # NonStop-UX NCC 3.20
12598             lt_prog_compiler_pic_CXX='-KPIC'
12599             ;;
12600           *)
12601             ;;
12602         esac
12603         ;;
12604       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12605         case $cc_basename in
12606           CC*)
12607             lt_prog_compiler_wl_CXX='-Wl,'
12608             lt_prog_compiler_pic_CXX='-KPIC'
12609             lt_prog_compiler_static_CXX='-Bstatic'
12610             ;;
12611         esac
12612         ;;
12613       vxworks*)
12614         ;;
12615       *)
12616         lt_prog_compiler_can_build_shared_CXX=no
12617         ;;
12618     esac
12619   fi
12620
12621 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12622 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12623
12624 #
12625 # Check to make sure the PIC flag actually works.
12626 #
12627 if test -n "$lt_prog_compiler_pic_CXX"; then
12628
12629 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12630 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12631 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12632   echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12634   lt_prog_compiler_pic_works_CXX=no
12635   ac_outfile=conftest.$ac_objext
12636    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12637    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12638    # Insert the option either (1) after the last *FLAGS variable, or
12639    # (2) before a word containing "conftest.", or (3) at the end.
12640    # Note that $ac_compile itself does not contain backslashes and begins
12641    # with a dollar sign (not a hyphen), so the echo should work correctly.
12642    # The option is referenced via a variable to avoid confusing sed.
12643    lt_compile=`echo "$ac_compile" | $SED \
12644    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12645    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12646    -e 's:$: $lt_compiler_flag:'`
12647    (eval echo "\"\$as_me:12647: $lt_compile\"" >&5)
12648    (eval "$lt_compile" 2>conftest.err)
12649    ac_status=$?
12650    cat conftest.err >&5
12651    echo "$as_me:12651: \$? = $ac_status" >&5
12652    if (exit $ac_status) && test -s "$ac_outfile"; then
12653      # The compiler can only warn and ignore the option if not recognized
12654      # So say no if there are warnings other than the usual output.
12655      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12656      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12657      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12658        lt_prog_compiler_pic_works_CXX=yes
12659      fi
12660    fi
12661    $rm conftest*
12662
12663 fi
12664 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12665 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12666
12667 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12668     case $lt_prog_compiler_pic_CXX in
12669      "" | " "*) ;;
12670      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12671      esac
12672 else
12673     lt_prog_compiler_pic_CXX=
12674      lt_prog_compiler_can_build_shared_CXX=no
12675 fi
12676
12677 fi
12678 case $host_os in
12679   # For platforms which do not support PIC, -DPIC is meaningless:
12680   *djgpp*)
12681     lt_prog_compiler_pic_CXX=
12682     ;;
12683   *)
12684     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12685     ;;
12686 esac
12687
12688 #
12689 # Check to make sure the static flag actually works.
12690 #
12691 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12692 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12693 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12694 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12695   echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697   lt_prog_compiler_static_works_CXX=no
12698    save_LDFLAGS="$LDFLAGS"
12699    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12700    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12701    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12702      # The linker can only warn and ignore the option if not recognized
12703      # So say no if there are warnings
12704      if test -s conftest.err; then
12705        # Append any errors to the config.log.
12706        cat conftest.err 1>&5
12707        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12708        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12709        if diff conftest.exp conftest.er2 >/dev/null; then
12710          lt_prog_compiler_static_works_CXX=yes
12711        fi
12712      else
12713        lt_prog_compiler_static_works_CXX=yes
12714      fi
12715    fi
12716    $rm conftest*
12717    LDFLAGS="$save_LDFLAGS"
12718
12719 fi
12720 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12721 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12722
12723 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12724     :
12725 else
12726     lt_prog_compiler_static_CXX=
12727 fi
12728
12729
12730 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12731 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12732 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12733   echo $ECHO_N "(cached) $ECHO_C" >&6
12734 else
12735   lt_cv_prog_compiler_c_o_CXX=no
12736    $rm -r conftest 2>/dev/null
12737    mkdir conftest
12738    cd conftest
12739    mkdir out
12740    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12741
12742    lt_compiler_flag="-o out/conftest2.$ac_objext"
12743    # Insert the option either (1) after the last *FLAGS variable, or
12744    # (2) before a word containing "conftest.", or (3) at the end.
12745    # Note that $ac_compile itself does not contain backslashes and begins
12746    # with a dollar sign (not a hyphen), so the echo should work correctly.
12747    lt_compile=`echo "$ac_compile" | $SED \
12748    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12749    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12750    -e 's:$: $lt_compiler_flag:'`
12751    (eval echo "\"\$as_me:12751: $lt_compile\"" >&5)
12752    (eval "$lt_compile" 2>out/conftest.err)
12753    ac_status=$?
12754    cat out/conftest.err >&5
12755    echo "$as_me:12755: \$? = $ac_status" >&5
12756    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12757    then
12758      # The compiler can only warn and ignore the option if not recognized
12759      # So say no if there are warnings
12760      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12761      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12762      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12763        lt_cv_prog_compiler_c_o_CXX=yes
12764      fi
12765    fi
12766    chmod u+w . 2>&5
12767    $rm conftest*
12768    # SGI C++ compiler will create directory out/ii_files/ for
12769    # template instantiation
12770    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12771    $rm out/* && rmdir out
12772    cd ..
12773    rmdir conftest
12774    $rm conftest*
12775
12776 fi
12777 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12778 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12779
12780
12781 hard_links="nottested"
12782 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12783   # do not overwrite the value of need_locks provided by the user
12784   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12785 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12786   hard_links=yes
12787   $rm conftest*
12788   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12789   touch conftest.a
12790   ln conftest.a conftest.b 2>&5 || hard_links=no
12791   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12792   { echo "$as_me:$LINENO: result: $hard_links" >&5
12793 echo "${ECHO_T}$hard_links" >&6; }
12794   if test "$hard_links" = no; then
12795     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12796 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12797     need_locks=warn
12798   fi
12799 else
12800   need_locks=no
12801 fi
12802
12803 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12805
12806   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12807   case $host_os in
12808   aix4* | aix5*)
12809     # If we're using GNU nm, then we don't want the "-C" option.
12810     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12811     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12812       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'
12813     else
12814       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'
12815     fi
12816     ;;
12817   pw32*)
12818     export_symbols_cmds_CXX="$ltdll_cmds"
12819   ;;
12820   cygwin* | mingw*)
12821     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'
12822   ;;
12823   *)
12824     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12825   ;;
12826   esac
12827
12828 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12829 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12830 test "$ld_shlibs_CXX" = no && can_build_shared=no
12831
12832 #
12833 # Do we need to explicitly link libc?
12834 #
12835 case "x$archive_cmds_need_lc_CXX" in
12836 x|xyes)
12837   # Assume -lc should be added
12838   archive_cmds_need_lc_CXX=yes
12839
12840   if test "$enable_shared" = yes && test "$GCC" = yes; then
12841     case $archive_cmds_CXX in
12842     *'~'*)
12843       # FIXME: we may have to deal with multi-command sequences.
12844       ;;
12845     '$CC '*)
12846       # Test whether the compiler implicitly links with -lc since on some
12847       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12848       # to ld, don't add -lc before -lgcc.
12849       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12850 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12851       $rm conftest*
12852       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12853
12854       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12855   (eval $ac_compile) 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); } 2>conftest.err; then
12859         soname=conftest
12860         lib=conftest
12861         libobjs=conftest.$ac_objext
12862         deplibs=
12863         wl=$lt_prog_compiler_wl_CXX
12864         pic_flag=$lt_prog_compiler_pic_CXX
12865         compiler_flags=-v
12866         linker_flags=-v
12867         verstring=
12868         output_objdir=.
12869         libname=conftest
12870         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12871         allow_undefined_flag_CXX=
12872         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12873   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12874   ac_status=$?
12875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876   (exit $ac_status); }
12877         then
12878           archive_cmds_need_lc_CXX=no
12879         else
12880           archive_cmds_need_lc_CXX=yes
12881         fi
12882         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12883       else
12884         cat conftest.err 1>&5
12885       fi
12886       $rm conftest*
12887       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12888 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12889       ;;
12890     esac
12891   fi
12892   ;;
12893 esac
12894
12895 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12896 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12897 library_names_spec=
12898 libname_spec='lib$name'
12899 soname_spec=
12900 shrext_cmds=".so"
12901 postinstall_cmds=
12902 postuninstall_cmds=
12903 finish_cmds=
12904 finish_eval=
12905 shlibpath_var=
12906 shlibpath_overrides_runpath=unknown
12907 version_type=none
12908 dynamic_linker="$host_os ld.so"
12909 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12910 if test "$GCC" = yes; then
12911   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12912   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12913     # if the path contains ";" then we assume it to be the separator
12914     # otherwise default to the standard path separator (i.e. ":") - it is
12915     # assumed that no part of a normal pathname contains ";" but that should
12916     # okay in the real world where ";" in dirpaths is itself problematic.
12917     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12918   else
12919     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12920   fi
12921 else
12922   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12923 fi
12924 need_lib_prefix=unknown
12925 hardcode_into_libs=no
12926
12927 # when you set need_version to no, make sure it does not cause -set_version
12928 # flags to be left without arguments
12929 need_version=unknown
12930
12931 case $host_os in
12932 aix3*)
12933   version_type=linux
12934   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12935   shlibpath_var=LIBPATH
12936
12937   # AIX 3 has no versioning support, so we append a major version to the name.
12938   soname_spec='${libname}${release}${shared_ext}$major'
12939   ;;
12940
12941 aix4* | aix5*)
12942   version_type=linux
12943   need_lib_prefix=no
12944   need_version=no
12945   hardcode_into_libs=yes
12946   if test "$host_cpu" = ia64; then
12947     # AIX 5 supports IA64
12948     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12949     shlibpath_var=LD_LIBRARY_PATH
12950   else
12951     # With GCC up to 2.95.x, collect2 would create an import file
12952     # for dependence libraries.  The import file would start with
12953     # the line `#! .'.  This would cause the generated library to
12954     # depend on `.', always an invalid library.  This was fixed in
12955     # development snapshots of GCC prior to 3.0.
12956     case $host_os in
12957       aix4 | aix4.[01] | aix4.[01].*)
12958       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12959            echo ' yes '
12960            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12961         :
12962       else
12963         can_build_shared=no
12964       fi
12965       ;;
12966     esac
12967     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12968     # soname into executable. Probably we can add versioning support to
12969     # collect2, so additional links can be useful in future.
12970     if test "$aix_use_runtimelinking" = yes; then
12971       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12972       # instead of lib<name>.a to let people know that these are not
12973       # typical AIX shared libraries.
12974       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12975     else
12976       # We preserve .a as extension for shared libraries through AIX4.2
12977       # and later when we are not doing run time linking.
12978       library_names_spec='${libname}${release}.a $libname.a'
12979       soname_spec='${libname}${release}${shared_ext}$major'
12980     fi
12981     shlibpath_var=LIBPATH
12982   fi
12983   ;;
12984
12985 amigaos*)
12986   library_names_spec='$libname.ixlibrary $libname.a'
12987   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12988   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'
12989   ;;
12990
12991 beos*)
12992   library_names_spec='${libname}${shared_ext}'
12993   dynamic_linker="$host_os ld.so"
12994   shlibpath_var=LIBRARY_PATH
12995   ;;
12996
12997 bsdi[45]*)
12998   version_type=linux
12999   need_version=no
13000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13001   soname_spec='${libname}${release}${shared_ext}$major'
13002   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13003   shlibpath_var=LD_LIBRARY_PATH
13004   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13005   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13006   # the default ld.so.conf also contains /usr/contrib/lib and
13007   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13008   # libtool to hard-code these into programs
13009   ;;
13010
13011 cygwin* | mingw* | pw32*)
13012   version_type=windows
13013   shrext_cmds=".dll"
13014   need_version=no
13015   need_lib_prefix=no
13016
13017   case $GCC,$host_os in
13018   yes,cygwin* | yes,mingw* | yes,pw32*)
13019     library_names_spec='$libname.dll.a'
13020     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13021     postinstall_cmds='base_file=`basename \${file}`~
13022       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13023       dldir=$destdir/`dirname \$dlpath`~
13024       test -d \$dldir || mkdir -p \$dldir~
13025       $install_prog $dir/$dlname \$dldir/$dlname~
13026       chmod a+x \$dldir/$dlname'
13027     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13028       dlpath=$dir/\$dldll~
13029        $rm \$dlpath'
13030     shlibpath_overrides_runpath=yes
13031
13032     case $host_os in
13033     cygwin*)
13034       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13035       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13036       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13037       ;;
13038     mingw*)
13039       # MinGW DLLs use traditional 'lib' prefix
13040       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13041       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13042       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13043         # It is most probably a Windows format PATH printed by
13044         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13045         # path with ; separators, and with drive letters. We can handle the
13046         # drive letters (cygwin fileutils understands them), so leave them,
13047         # especially as we might pass files found there to a mingw objdump,
13048         # which wouldn't understand a cygwinified path. Ahh.
13049         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13050       else
13051         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13052       fi
13053       ;;
13054     pw32*)
13055       # pw32 DLLs use 'pw' prefix rather than 'lib'
13056       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13057       ;;
13058     esac
13059     ;;
13060
13061   *)
13062     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13063     ;;
13064   esac
13065   dynamic_linker='Win32 ld.exe'
13066   # FIXME: first we should search . and the directory the executable is in
13067   shlibpath_var=PATH
13068   ;;
13069
13070 darwin* | rhapsody*)
13071   dynamic_linker="$host_os dyld"
13072   version_type=darwin
13073   need_lib_prefix=no
13074   need_version=no
13075   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13076   soname_spec='${libname}${release}${major}$shared_ext'
13077   shlibpath_overrides_runpath=yes
13078   shlibpath_var=DYLD_LIBRARY_PATH
13079   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13080   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13081   if test "$GCC" = yes; then
13082     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"`
13083   else
13084     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13085   fi
13086   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13087   ;;
13088
13089 dgux*)
13090   version_type=linux
13091   need_lib_prefix=no
13092   need_version=no
13093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13094   soname_spec='${libname}${release}${shared_ext}$major'
13095   shlibpath_var=LD_LIBRARY_PATH
13096   ;;
13097
13098 freebsd1*)
13099   dynamic_linker=no
13100   ;;
13101
13102 kfreebsd*-gnu)
13103   version_type=linux
13104   need_lib_prefix=no
13105   need_version=no
13106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13107   soname_spec='${libname}${release}${shared_ext}$major'
13108   shlibpath_var=LD_LIBRARY_PATH
13109   shlibpath_overrides_runpath=no
13110   hardcode_into_libs=yes
13111   dynamic_linker='GNU ld.so'
13112   ;;
13113
13114 freebsd* | dragonfly*)
13115   # DragonFly does not have aout.  When/if they implement a new
13116   # versioning mechanism, adjust this.
13117   if test -x /usr/bin/objformat; then
13118     objformat=`/usr/bin/objformat`
13119   else
13120     case $host_os in
13121     freebsd[123]*) objformat=aout ;;
13122     *) objformat=elf ;;
13123     esac
13124   fi
13125   version_type=freebsd-$objformat
13126   case $version_type in
13127     freebsd-elf*)
13128       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13129       need_version=no
13130       need_lib_prefix=no
13131       ;;
13132     freebsd-*)
13133       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13134       need_version=yes
13135       ;;
13136   esac
13137   shlibpath_var=LD_LIBRARY_PATH
13138   case $host_os in
13139   freebsd2*)
13140     shlibpath_overrides_runpath=yes
13141     ;;
13142   freebsd3.[01]* | freebsdelf3.[01]*)
13143     shlibpath_overrides_runpath=yes
13144     hardcode_into_libs=yes
13145     ;;
13146   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13147   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13148     shlibpath_overrides_runpath=no
13149     hardcode_into_libs=yes
13150     ;;
13151   freebsd*) # from 4.6 on
13152     shlibpath_overrides_runpath=yes
13153     hardcode_into_libs=yes
13154     ;;
13155   esac
13156   ;;
13157
13158 gnu*)
13159   version_type=linux
13160   need_lib_prefix=no
13161   need_version=no
13162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13163   soname_spec='${libname}${release}${shared_ext}$major'
13164   shlibpath_var=LD_LIBRARY_PATH
13165   hardcode_into_libs=yes
13166   ;;
13167
13168 hpux9* | hpux10* | hpux11*)
13169   # Give a soname corresponding to the major version so that dld.sl refuses to
13170   # link against other versions.
13171   version_type=sunos
13172   need_lib_prefix=no
13173   need_version=no
13174   case $host_cpu in
13175   ia64*)
13176     shrext_cmds='.so'
13177     hardcode_into_libs=yes
13178     dynamic_linker="$host_os dld.so"
13179     shlibpath_var=LD_LIBRARY_PATH
13180     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13182     soname_spec='${libname}${release}${shared_ext}$major'
13183     if test "X$HPUX_IA64_MODE" = X32; then
13184       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13185     else
13186       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13187     fi
13188     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13189     ;;
13190    hppa*64*)
13191      shrext_cmds='.sl'
13192      hardcode_into_libs=yes
13193      dynamic_linker="$host_os dld.sl"
13194      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13195      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13196      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197      soname_spec='${libname}${release}${shared_ext}$major'
13198      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13199      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13200      ;;
13201    *)
13202     shrext_cmds='.sl'
13203     dynamic_linker="$host_os dld.sl"
13204     shlibpath_var=SHLIB_PATH
13205     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13207     soname_spec='${libname}${release}${shared_ext}$major'
13208     ;;
13209   esac
13210   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13211   postinstall_cmds='chmod 555 $lib'
13212   ;;
13213
13214 interix3*)
13215   version_type=linux
13216   need_lib_prefix=no
13217   need_version=no
13218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13219   soname_spec='${libname}${release}${shared_ext}$major'
13220   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13221   shlibpath_var=LD_LIBRARY_PATH
13222   shlibpath_overrides_runpath=no
13223   hardcode_into_libs=yes
13224   ;;
13225
13226 irix5* | irix6* | nonstopux*)
13227   case $host_os in
13228     nonstopux*) version_type=nonstopux ;;
13229     *)
13230         if test "$lt_cv_prog_gnu_ld" = yes; then
13231                 version_type=linux
13232         else
13233                 version_type=irix
13234         fi ;;
13235   esac
13236   need_lib_prefix=no
13237   need_version=no
13238   soname_spec='${libname}${release}${shared_ext}$major'
13239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13240   case $host_os in
13241   irix5* | nonstopux*)
13242     libsuff= shlibsuff=
13243     ;;
13244   *)
13245     case $LD in # libtool.m4 will add one of these switches to LD
13246     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13247       libsuff= shlibsuff= libmagic=32-bit;;
13248     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13249       libsuff=32 shlibsuff=N32 libmagic=N32;;
13250     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13251       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13252     *) libsuff= shlibsuff= libmagic=never-match;;
13253     esac
13254     ;;
13255   esac
13256   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13257   shlibpath_overrides_runpath=no
13258   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13259   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13260   hardcode_into_libs=yes
13261   ;;
13262
13263 # No shared lib support for Linux oldld, aout, or coff.
13264 linux*oldld* | linux*aout* | linux*coff*)
13265   dynamic_linker=no
13266   ;;
13267
13268 # This must be Linux ELF.
13269 linux*)
13270   version_type=linux
13271   need_lib_prefix=no
13272   need_version=no
13273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13274   soname_spec='${libname}${release}${shared_ext}$major'
13275   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13276   shlibpath_var=LD_LIBRARY_PATH
13277   shlibpath_overrides_runpath=no
13278   # This implies no fast_install, which is unacceptable.
13279   # Some rework will be needed to allow for fast_install
13280   # before this can be enabled.
13281   hardcode_into_libs=yes
13282
13283   # Append ld.so.conf contents to the search path
13284   if test -f /etc/ld.so.conf; then
13285     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' ' '`
13286     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13287   fi
13288
13289   # We used to test for /lib/ld.so.1 and disable shared libraries on
13290   # powerpc, because MkLinux only supported shared libraries with the
13291   # GNU dynamic linker.  Since this was broken with cross compilers,
13292   # most powerpc-linux boxes support dynamic linking these days and
13293   # people can always --disable-shared, the test was removed, and we
13294   # assume the GNU/Linux dynamic linker is in use.
13295   dynamic_linker='GNU/Linux ld.so'
13296   ;;
13297
13298 knetbsd*-gnu)
13299   version_type=linux
13300   need_lib_prefix=no
13301   need_version=no
13302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13303   soname_spec='${libname}${release}${shared_ext}$major'
13304   shlibpath_var=LD_LIBRARY_PATH
13305   shlibpath_overrides_runpath=no
13306   hardcode_into_libs=yes
13307   dynamic_linker='GNU ld.so'
13308   ;;
13309
13310 netbsd*)
13311   version_type=sunos
13312   need_lib_prefix=no
13313   need_version=no
13314   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13315     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13316     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13317     dynamic_linker='NetBSD (a.out) ld.so'
13318   else
13319     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13320     soname_spec='${libname}${release}${shared_ext}$major'
13321     dynamic_linker='NetBSD ld.elf_so'
13322   fi
13323   shlibpath_var=LD_LIBRARY_PATH
13324   shlibpath_overrides_runpath=yes
13325   hardcode_into_libs=yes
13326   ;;
13327
13328 newsos6)
13329   version_type=linux
13330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13331   shlibpath_var=LD_LIBRARY_PATH
13332   shlibpath_overrides_runpath=yes
13333   ;;
13334
13335 nto-qnx*)
13336   version_type=linux
13337   need_lib_prefix=no
13338   need_version=no
13339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13340   soname_spec='${libname}${release}${shared_ext}$major'
13341   shlibpath_var=LD_LIBRARY_PATH
13342   shlibpath_overrides_runpath=yes
13343   ;;
13344
13345 openbsd*)
13346   version_type=sunos
13347   sys_lib_dlsearch_path_spec="/usr/lib"
13348   need_lib_prefix=no
13349   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13350   case $host_os in
13351     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13352     *)                         need_version=no  ;;
13353   esac
13354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13355   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13356   shlibpath_var=LD_LIBRARY_PATH
13357   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13358     case $host_os in
13359       openbsd2.[89] | openbsd2.[89].*)
13360         shlibpath_overrides_runpath=no
13361         ;;
13362       *)
13363         shlibpath_overrides_runpath=yes
13364         ;;
13365       esac
13366   else
13367     shlibpath_overrides_runpath=yes
13368   fi
13369   ;;
13370
13371 os2*)
13372   libname_spec='$name'
13373   shrext_cmds=".dll"
13374   need_lib_prefix=no
13375   library_names_spec='$libname${shared_ext} $libname.a'
13376   dynamic_linker='OS/2 ld.exe'
13377   shlibpath_var=LIBPATH
13378   ;;
13379
13380 osf3* | osf4* | osf5*)
13381   version_type=osf
13382   need_lib_prefix=no
13383   need_version=no
13384   soname_spec='${libname}${release}${shared_ext}$major'
13385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13386   shlibpath_var=LD_LIBRARY_PATH
13387   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13388   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13389   ;;
13390
13391 solaris*)
13392   version_type=linux
13393   need_lib_prefix=no
13394   need_version=no
13395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13396   soname_spec='${libname}${release}${shared_ext}$major'
13397   shlibpath_var=LD_LIBRARY_PATH
13398   shlibpath_overrides_runpath=yes
13399   hardcode_into_libs=yes
13400   # ldd complains unless libraries are executable
13401   postinstall_cmds='chmod +x $lib'
13402   ;;
13403
13404 sunos4*)
13405   version_type=sunos
13406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13407   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13408   shlibpath_var=LD_LIBRARY_PATH
13409   shlibpath_overrides_runpath=yes
13410   if test "$with_gnu_ld" = yes; then
13411     need_lib_prefix=no
13412   fi
13413   need_version=yes
13414   ;;
13415
13416 sysv4 | sysv4.3*)
13417   version_type=linux
13418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13419   soname_spec='${libname}${release}${shared_ext}$major'
13420   shlibpath_var=LD_LIBRARY_PATH
13421   case $host_vendor in
13422     sni)
13423       shlibpath_overrides_runpath=no
13424       need_lib_prefix=no
13425       export_dynamic_flag_spec='${wl}-Blargedynsym'
13426       runpath_var=LD_RUN_PATH
13427       ;;
13428     siemens)
13429       need_lib_prefix=no
13430       ;;
13431     motorola)
13432       need_lib_prefix=no
13433       need_version=no
13434       shlibpath_overrides_runpath=no
13435       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13436       ;;
13437   esac
13438   ;;
13439
13440 sysv4*MP*)
13441   if test -d /usr/nec ;then
13442     version_type=linux
13443     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13444     soname_spec='$libname${shared_ext}.$major'
13445     shlibpath_var=LD_LIBRARY_PATH
13446   fi
13447   ;;
13448
13449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13450   version_type=freebsd-elf
13451   need_lib_prefix=no
13452   need_version=no
13453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13454   soname_spec='${libname}${release}${shared_ext}$major'
13455   shlibpath_var=LD_LIBRARY_PATH
13456   hardcode_into_libs=yes
13457   if test "$with_gnu_ld" = yes; then
13458     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13459     shlibpath_overrides_runpath=no
13460   else
13461     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13462     shlibpath_overrides_runpath=yes
13463     case $host_os in
13464       sco3.2v5*)
13465         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13466         ;;
13467     esac
13468   fi
13469   sys_lib_dlsearch_path_spec='/usr/lib'
13470   ;;
13471
13472 uts4*)
13473   version_type=linux
13474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475   soname_spec='${libname}${release}${shared_ext}$major'
13476   shlibpath_var=LD_LIBRARY_PATH
13477   ;;
13478
13479 *)
13480   dynamic_linker=no
13481   ;;
13482 esac
13483 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13484 echo "${ECHO_T}$dynamic_linker" >&6; }
13485 test "$dynamic_linker" = no && can_build_shared=no
13486
13487 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13488 if test "$GCC" = yes; then
13489   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13490 fi
13491
13492 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13493 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13494 hardcode_action_CXX=
13495 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13496    test -n "$runpath_var_CXX" || \
13497    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13498
13499   # We can hardcode non-existant directories.
13500   if test "$hardcode_direct_CXX" != no &&
13501      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13502      # have to relink, otherwise we might link with an installed library
13503      # when we should be linking with a yet-to-be-installed one
13504      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13505      test "$hardcode_minus_L_CXX" != no; then
13506     # Linking always hardcodes the temporary library directory.
13507     hardcode_action_CXX=relink
13508   else
13509     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13510     hardcode_action_CXX=immediate
13511   fi
13512 else
13513   # We cannot hardcode anything, or else we can only hardcode existing
13514   # directories.
13515   hardcode_action_CXX=unsupported
13516 fi
13517 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13518 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13519
13520 if test "$hardcode_action_CXX" = relink; then
13521   # Fast installation is not supported
13522   enable_fast_install=no
13523 elif test "$shlibpath_overrides_runpath" = yes ||
13524      test "$enable_shared" = no; then
13525   # Fast installation is not necessary
13526   enable_fast_install=needless
13527 fi
13528
13529
13530 # The else clause should only fire when bootstrapping the
13531 # libtool distribution, otherwise you forgot to ship ltmain.sh
13532 # with your package, and you will get complaints that there are
13533 # no rules to generate ltmain.sh.
13534 if test -f "$ltmain"; then
13535   # See if we are running on zsh, and set the options which allow our commands through
13536   # without removal of \ escapes.
13537   if test -n "${ZSH_VERSION+set}" ; then
13538     setopt NO_GLOB_SUBST
13539   fi
13540   # Now quote all the things that may contain metacharacters while being
13541   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13542   # variables and quote the copies for generation of the libtool script.
13543   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13544     SED SHELL STRIP \
13545     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13546     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13547     deplibs_check_method reload_flag reload_cmds need_locks \
13548     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13549     lt_cv_sys_global_symbol_to_c_name_address \
13550     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13551     old_postinstall_cmds old_postuninstall_cmds \
13552     compiler_CXX \
13553     CC_CXX \
13554     LD_CXX \
13555     lt_prog_compiler_wl_CXX \
13556     lt_prog_compiler_pic_CXX \
13557     lt_prog_compiler_static_CXX \
13558     lt_prog_compiler_no_builtin_flag_CXX \
13559     export_dynamic_flag_spec_CXX \
13560     thread_safe_flag_spec_CXX \
13561     whole_archive_flag_spec_CXX \
13562     enable_shared_with_static_runtimes_CXX \
13563     old_archive_cmds_CXX \
13564     old_archive_from_new_cmds_CXX \
13565     predep_objects_CXX \
13566     postdep_objects_CXX \
13567     predeps_CXX \
13568     postdeps_CXX \
13569     compiler_lib_search_path_CXX \
13570     archive_cmds_CXX \
13571     archive_expsym_cmds_CXX \
13572     postinstall_cmds_CXX \
13573     postuninstall_cmds_CXX \
13574     old_archive_from_expsyms_cmds_CXX \
13575     allow_undefined_flag_CXX \
13576     no_undefined_flag_CXX \
13577     export_symbols_cmds_CXX \
13578     hardcode_libdir_flag_spec_CXX \
13579     hardcode_libdir_flag_spec_ld_CXX \
13580     hardcode_libdir_separator_CXX \
13581     hardcode_automatic_CXX \
13582     module_cmds_CXX \
13583     module_expsym_cmds_CXX \
13584     lt_cv_prog_compiler_c_o_CXX \
13585     exclude_expsyms_CXX \
13586     include_expsyms_CXX; do
13587
13588     case $var in
13589     old_archive_cmds_CXX | \
13590     old_archive_from_new_cmds_CXX | \
13591     archive_cmds_CXX | \
13592     archive_expsym_cmds_CXX | \
13593     module_cmds_CXX | \
13594     module_expsym_cmds_CXX | \
13595     old_archive_from_expsyms_cmds_CXX | \
13596     export_symbols_cmds_CXX | \
13597     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13598     postinstall_cmds | postuninstall_cmds | \
13599     old_postinstall_cmds | old_postuninstall_cmds | \
13600     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13601       # Double-quote double-evaled strings.
13602       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13603       ;;
13604     *)
13605       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13606       ;;
13607     esac
13608   done
13609
13610   case $lt_echo in
13611   *'\$0 --fallback-echo"')
13612     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13613     ;;
13614   esac
13615
13616 cfgfile="$ofile"
13617
13618   cat <<__EOF__ >> "$cfgfile"
13619 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13620
13621 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13622
13623 # Shell to use when invoking shell scripts.
13624 SHELL=$lt_SHELL
13625
13626 # Whether or not to build shared libraries.
13627 build_libtool_libs=$enable_shared
13628
13629 # Whether or not to build static libraries.
13630 build_old_libs=$enable_static
13631
13632 # Whether or not to add -lc for building shared libraries.
13633 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13634
13635 # Whether or not to disallow shared libs when runtime libs are static
13636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13637
13638 # Whether or not to optimize for fast installation.
13639 fast_install=$enable_fast_install
13640
13641 # The host system.
13642 host_alias=$host_alias
13643 host=$host
13644 host_os=$host_os
13645
13646 # The build system.
13647 build_alias=$build_alias
13648 build=$build
13649 build_os=$build_os
13650
13651 # An echo program that does not interpret backslashes.
13652 echo=$lt_echo
13653
13654 # The archiver.
13655 AR=$lt_AR
13656 AR_FLAGS=$lt_AR_FLAGS
13657
13658 # A C compiler.
13659 LTCC=$lt_LTCC
13660
13661 # LTCC compiler flags.
13662 LTCFLAGS=$lt_LTCFLAGS
13663
13664 # A language-specific compiler.
13665 CC=$lt_compiler_CXX
13666
13667 # Is the compiler the GNU C compiler?
13668 with_gcc=$GCC_CXX
13669
13670 # An ERE matcher.
13671 EGREP=$lt_EGREP
13672
13673 # The linker used to build libraries.
13674 LD=$lt_LD_CXX
13675
13676 # Whether we need hard or soft links.
13677 LN_S=$lt_LN_S
13678
13679 # A BSD-compatible nm program.
13680 NM=$lt_NM
13681
13682 # A symbol stripping program
13683 STRIP=$lt_STRIP
13684
13685 # Used to examine libraries when file_magic_cmd begins "file"
13686 MAGIC_CMD=$MAGIC_CMD
13687
13688 # Used on cygwin: DLL creation program.
13689 DLLTOOL="$DLLTOOL"
13690
13691 # Used on cygwin: object dumper.
13692 OBJDUMP="$OBJDUMP"
13693
13694 # Used on cygwin: assembler.
13695 AS="$AS"
13696
13697 # The name of the directory that contains temporary libtool files.
13698 objdir=$objdir
13699
13700 # How to create reloadable object files.
13701 reload_flag=$lt_reload_flag
13702 reload_cmds=$lt_reload_cmds
13703
13704 # How to pass a linker flag through the compiler.
13705 wl=$lt_lt_prog_compiler_wl_CXX
13706
13707 # Object file suffix (normally "o").
13708 objext="$ac_objext"
13709
13710 # Old archive suffix (normally "a").
13711 libext="$libext"
13712
13713 # Shared library suffix (normally ".so").
13714 shrext_cmds='$shrext_cmds'
13715
13716 # Executable file suffix (normally "").
13717 exeext="$exeext"
13718
13719 # Additional compiler flags for building library objects.
13720 pic_flag=$lt_lt_prog_compiler_pic_CXX
13721 pic_mode=$pic_mode
13722
13723 # What is the maximum length of a command?
13724 max_cmd_len=$lt_cv_sys_max_cmd_len
13725
13726 # Does compiler simultaneously support -c and -o options?
13727 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13728
13729 # Must we lock files when doing compilation?
13730 need_locks=$lt_need_locks
13731
13732 # Do we need the lib prefix for modules?
13733 need_lib_prefix=$need_lib_prefix
13734
13735 # Do we need a version for libraries?
13736 need_version=$need_version
13737
13738 # Whether dlopen is supported.
13739 dlopen_support=$enable_dlopen
13740
13741 # Whether dlopen of programs is supported.
13742 dlopen_self=$enable_dlopen_self
13743
13744 # Whether dlopen of statically linked programs is supported.
13745 dlopen_self_static=$enable_dlopen_self_static
13746
13747 # Compiler flag to prevent dynamic linking.
13748 link_static_flag=$lt_lt_prog_compiler_static_CXX
13749
13750 # Compiler flag to turn off builtin functions.
13751 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13752
13753 # Compiler flag to allow reflexive dlopens.
13754 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13755
13756 # Compiler flag to generate shared objects directly from archives.
13757 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13758
13759 # Compiler flag to generate thread-safe objects.
13760 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13761
13762 # Library versioning type.
13763 version_type=$version_type
13764
13765 # Format of library name prefix.
13766 libname_spec=$lt_libname_spec
13767
13768 # List of archive names.  First name is the real one, the rest are links.
13769 # The last name is the one that the linker finds with -lNAME.
13770 library_names_spec=$lt_library_names_spec
13771
13772 # The coded name of the library, if different from the real name.
13773 soname_spec=$lt_soname_spec
13774
13775 # Commands used to build and install an old-style archive.
13776 RANLIB=$lt_RANLIB
13777 old_archive_cmds=$lt_old_archive_cmds_CXX
13778 old_postinstall_cmds=$lt_old_postinstall_cmds
13779 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13780
13781 # Create an old-style archive from a shared archive.
13782 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13783
13784 # Create a temporary old-style archive to link instead of a shared archive.
13785 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13786
13787 # Commands used to build and install a shared archive.
13788 archive_cmds=$lt_archive_cmds_CXX
13789 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13790 postinstall_cmds=$lt_postinstall_cmds
13791 postuninstall_cmds=$lt_postuninstall_cmds
13792
13793 # Commands used to build a loadable module (assumed same as above if empty)
13794 module_cmds=$lt_module_cmds_CXX
13795 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13796
13797 # Commands to strip libraries.
13798 old_striplib=$lt_old_striplib
13799 striplib=$lt_striplib
13800
13801 # Dependencies to place before the objects being linked to create a
13802 # shared library.
13803 predep_objects=$lt_predep_objects_CXX
13804
13805 # Dependencies to place after the objects being linked to create a
13806 # shared library.
13807 postdep_objects=$lt_postdep_objects_CXX
13808
13809 # Dependencies to place before the objects being linked to create a
13810 # shared library.
13811 predeps=$lt_predeps_CXX
13812
13813 # Dependencies to place after the objects being linked to create a
13814 # shared library.
13815 postdeps=$lt_postdeps_CXX
13816
13817 # The library search path used internally by the compiler when linking
13818 # a shared library.
13819 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13820
13821 # Method to check whether dependent libraries are shared objects.
13822 deplibs_check_method=$lt_deplibs_check_method
13823
13824 # Command to use when deplibs_check_method == file_magic.
13825 file_magic_cmd=$lt_file_magic_cmd
13826
13827 # Flag that allows shared libraries with undefined symbols to be built.
13828 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13829
13830 # Flag that forces no undefined symbols.
13831 no_undefined_flag=$lt_no_undefined_flag_CXX
13832
13833 # Commands used to finish a libtool library installation in a directory.
13834 finish_cmds=$lt_finish_cmds
13835
13836 # Same as above, but a single script fragment to be evaled but not shown.
13837 finish_eval=$lt_finish_eval
13838
13839 # Take the output of nm and produce a listing of raw symbols and C names.
13840 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13841
13842 # Transform the output of nm in a proper C declaration
13843 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13844
13845 # Transform the output of nm in a C name address pair
13846 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13847
13848 # This is the shared library runtime path variable.
13849 runpath_var=$runpath_var
13850
13851 # This is the shared library path variable.
13852 shlibpath_var=$shlibpath_var
13853
13854 # Is shlibpath searched before the hard-coded library search path?
13855 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13856
13857 # How to hardcode a shared library path into an executable.
13858 hardcode_action=$hardcode_action_CXX
13859
13860 # Whether we should hardcode library paths into libraries.
13861 hardcode_into_libs=$hardcode_into_libs
13862
13863 # Flag to hardcode \$libdir into a binary during linking.
13864 # This must work even if \$libdir does not exist.
13865 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13866
13867 # If ld is used when linking, flag to hardcode \$libdir into
13868 # a binary during linking. This must work even if \$libdir does
13869 # not exist.
13870 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13871
13872 # Whether we need a single -rpath flag with a separated argument.
13873 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13874
13875 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13876 # resulting binary.
13877 hardcode_direct=$hardcode_direct_CXX
13878
13879 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13880 # resulting binary.
13881 hardcode_minus_L=$hardcode_minus_L_CXX
13882
13883 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13884 # the resulting binary.
13885 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13886
13887 # Set to yes if building a shared library automatically hardcodes DIR into the library
13888 # and all subsequent libraries and executables linked against it.
13889 hardcode_automatic=$hardcode_automatic_CXX
13890
13891 # Variables whose values should be saved in libtool wrapper scripts and
13892 # restored at relink time.
13893 variables_saved_for_relink="$variables_saved_for_relink"
13894
13895 # Whether libtool must link a program against all its dependency libraries.
13896 link_all_deplibs=$link_all_deplibs_CXX
13897
13898 # Compile-time system search path for libraries
13899 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13900
13901 # Run-time system search path for libraries
13902 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13903
13904 # Fix the shell variable \$srcfile for the compiler.
13905 fix_srcfile_path="$fix_srcfile_path_CXX"
13906
13907 # Set to yes if exported symbols are required.
13908 always_export_symbols=$always_export_symbols_CXX
13909
13910 # The commands to list exported symbols.
13911 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13912
13913 # The commands to extract the exported symbol list from a shared archive.
13914 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13915
13916 # Symbols that should not be listed in the preloaded symbols.
13917 exclude_expsyms=$lt_exclude_expsyms_CXX
13918
13919 # Symbols that must always be exported.
13920 include_expsyms=$lt_include_expsyms_CXX
13921
13922 # ### END LIBTOOL TAG CONFIG: $tagname
13923
13924 __EOF__
13925
13926
13927 else
13928   # If there is no Makefile yet, we rely on a make rule to execute
13929   # `config.status --recheck' to rerun these tests and create the
13930   # libtool script then.
13931   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13932   if test -f "$ltmain_in"; then
13933     test -f Makefile && make "$ltmain"
13934   fi
13935 fi
13936
13937
13938 ac_ext=c
13939 ac_cpp='$CPP $CPPFLAGS'
13940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13943
13944 CC=$lt_save_CC
13945 LDCXX=$LD
13946 LD=$lt_save_LD
13947 GCC=$lt_save_GCC
13948 with_gnu_ldcxx=$with_gnu_ld
13949 with_gnu_ld=$lt_save_with_gnu_ld
13950 lt_cv_path_LDCXX=$lt_cv_path_LD
13951 lt_cv_path_LD=$lt_save_path_LD
13952 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13953 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13954
13955         else
13956           tagname=""
13957         fi
13958         ;;
13959
13960       F77)
13961         if test -n "$F77" && test "X$F77" != "Xno"; then
13962
13963 ac_ext=f
13964 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13965 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13966 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13967
13968
13969 archive_cmds_need_lc_F77=no
13970 allow_undefined_flag_F77=
13971 always_export_symbols_F77=no
13972 archive_expsym_cmds_F77=
13973 export_dynamic_flag_spec_F77=
13974 hardcode_direct_F77=no
13975 hardcode_libdir_flag_spec_F77=
13976 hardcode_libdir_flag_spec_ld_F77=
13977 hardcode_libdir_separator_F77=
13978 hardcode_minus_L_F77=no
13979 hardcode_automatic_F77=no
13980 module_cmds_F77=
13981 module_expsym_cmds_F77=
13982 link_all_deplibs_F77=unknown
13983 old_archive_cmds_F77=$old_archive_cmds
13984 no_undefined_flag_F77=
13985 whole_archive_flag_spec_F77=
13986 enable_shared_with_static_runtimes_F77=no
13987
13988 # Source file extension for f77 test sources.
13989 ac_ext=f
13990
13991 # Object file extension for compiled f77 test sources.
13992 objext=o
13993 objext_F77=$objext
13994
13995 # Code to be used in simple compile tests
13996 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13997
13998 # Code to be used in simple link tests
13999 lt_simple_link_test_code="      program t\n      end\n"
14000
14001 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14002
14003 # If no C compiler was specified, use CC.
14004 LTCC=${LTCC-"$CC"}
14005
14006 # If no C compiler flags were specified, use CFLAGS.
14007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14008
14009 # Allow CC to be a program name with arguments.
14010 compiler=$CC
14011
14012
14013 # save warnings/boilerplate of simple test code
14014 ac_outfile=conftest.$ac_objext
14015 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14016 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14017 _lt_compiler_boilerplate=`cat conftest.err`
14018 $rm conftest*
14019
14020 ac_outfile=conftest.$ac_objext
14021 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14022 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14023 _lt_linker_boilerplate=`cat conftest.err`
14024 $rm conftest*
14025
14026
14027 # Allow CC to be a program name with arguments.
14028 lt_save_CC="$CC"
14029 CC=${F77-"f77"}
14030 compiler=$CC
14031 compiler_F77=$CC
14032 for cc_temp in $compiler""; do
14033   case $cc_temp in
14034     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14035     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14036     \-*) ;;
14037     *) break;;
14038   esac
14039 done
14040 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14041
14042
14043 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14044 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14045 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14046 echo "${ECHO_T}$can_build_shared" >&6; }
14047
14048 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14049 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14050 test "$can_build_shared" = "no" && enable_shared=no
14051
14052 # On AIX, shared libraries and static libraries use the same namespace, and
14053 # are all built from PIC.
14054 case $host_os in
14055 aix3*)
14056   test "$enable_shared" = yes && enable_static=no
14057   if test -n "$RANLIB"; then
14058     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14059     postinstall_cmds='$RANLIB $lib'
14060   fi
14061   ;;
14062 aix4* | aix5*)
14063   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14064     test "$enable_shared" = yes && enable_static=no
14065   fi
14066   ;;
14067 esac
14068 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14069 echo "${ECHO_T}$enable_shared" >&6; }
14070
14071 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14072 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14073 # Make sure either enable_shared or enable_static is yes.
14074 test "$enable_shared" = yes || enable_static=yes
14075 { echo "$as_me:$LINENO: result: $enable_static" >&5
14076 echo "${ECHO_T}$enable_static" >&6; }
14077
14078 GCC_F77="$G77"
14079 LD_F77="$LD"
14080
14081 lt_prog_compiler_wl_F77=
14082 lt_prog_compiler_pic_F77=
14083 lt_prog_compiler_static_F77=
14084
14085 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14086 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14087
14088   if test "$GCC" = yes; then
14089     lt_prog_compiler_wl_F77='-Wl,'
14090     lt_prog_compiler_static_F77='-static'
14091
14092     case $host_os in
14093       aix*)
14094       # All AIX code is PIC.
14095       if test "$host_cpu" = ia64; then
14096         # AIX 5 now supports IA64 processor
14097         lt_prog_compiler_static_F77='-Bstatic'
14098       fi
14099       ;;
14100
14101     amigaos*)
14102       # FIXME: we need at least 68020 code to build shared libraries, but
14103       # adding the `-m68020' flag to GCC prevents building anything better,
14104       # like `-m68040'.
14105       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14106       ;;
14107
14108     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14109       # PIC is the default for these OSes.
14110       ;;
14111
14112     mingw* | pw32* | os2*)
14113       # This hack is so that the source file can tell whether it is being
14114       # built for inclusion in a dll (and should export symbols for example).
14115       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14116       ;;
14117
14118     darwin* | rhapsody*)
14119       # PIC is the default on this platform
14120       # Common symbols not allowed in MH_DYLIB files
14121       lt_prog_compiler_pic_F77='-fno-common'
14122       ;;
14123
14124     interix3*)
14125       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14126       # Instead, we relocate shared libraries at runtime.
14127       ;;
14128
14129     msdosdjgpp*)
14130       # Just because we use GCC doesn't mean we suddenly get shared libraries
14131       # on systems that don't support them.
14132       lt_prog_compiler_can_build_shared_F77=no
14133       enable_shared=no
14134       ;;
14135
14136     sysv4*MP*)
14137       if test -d /usr/nec; then
14138         lt_prog_compiler_pic_F77=-Kconform_pic
14139       fi
14140       ;;
14141
14142     hpux*)
14143       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14144       # not for PA HP-UX.
14145       case $host_cpu in
14146       hppa*64*|ia64*)
14147         # +Z the default
14148         ;;
14149       *)
14150         lt_prog_compiler_pic_F77='-fPIC'
14151         ;;
14152       esac
14153       ;;
14154
14155     *)
14156       lt_prog_compiler_pic_F77='-fPIC'
14157       ;;
14158     esac
14159   else
14160     # PORTME Check for flag to pass linker flags through the system compiler.
14161     case $host_os in
14162     aix*)
14163       lt_prog_compiler_wl_F77='-Wl,'
14164       if test "$host_cpu" = ia64; then
14165         # AIX 5 now supports IA64 processor
14166         lt_prog_compiler_static_F77='-Bstatic'
14167       else
14168         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14169       fi
14170       ;;
14171       darwin*)
14172         # PIC is the default on this platform
14173         # Common symbols not allowed in MH_DYLIB files
14174        case $cc_basename in
14175          xlc*)
14176          lt_prog_compiler_pic_F77='-qnocommon'
14177          lt_prog_compiler_wl_F77='-Wl,'
14178          ;;
14179        esac
14180        ;;
14181
14182     mingw* | pw32* | os2*)
14183       # This hack is so that the source file can tell whether it is being
14184       # built for inclusion in a dll (and should export symbols for example).
14185       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14186       ;;
14187
14188     hpux9* | hpux10* | hpux11*)
14189       lt_prog_compiler_wl_F77='-Wl,'
14190       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14191       # not for PA HP-UX.
14192       case $host_cpu in
14193       hppa*64*|ia64*)
14194         # +Z the default
14195         ;;
14196       *)
14197         lt_prog_compiler_pic_F77='+Z'
14198         ;;
14199       esac
14200       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14201       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14202       ;;
14203
14204     irix5* | irix6* | nonstopux*)
14205       lt_prog_compiler_wl_F77='-Wl,'
14206       # PIC (with -KPIC) is the default.
14207       lt_prog_compiler_static_F77='-non_shared'
14208       ;;
14209
14210     newsos6)
14211       lt_prog_compiler_pic_F77='-KPIC'
14212       lt_prog_compiler_static_F77='-Bstatic'
14213       ;;
14214
14215     linux*)
14216       case $cc_basename in
14217       icc* | ecc*)
14218         lt_prog_compiler_wl_F77='-Wl,'
14219         lt_prog_compiler_pic_F77='-KPIC'
14220         lt_prog_compiler_static_F77='-static'
14221         ;;
14222       pgcc* | pgf77* | pgf90* | pgf95*)
14223         # Portland Group compilers (*not* the Pentium gcc compiler,
14224         # which looks to be a dead project)
14225         lt_prog_compiler_wl_F77='-Wl,'
14226         lt_prog_compiler_pic_F77='-fpic'
14227         lt_prog_compiler_static_F77='-Bstatic'
14228         ;;
14229       ccc*)
14230         lt_prog_compiler_wl_F77='-Wl,'
14231         # All Alpha code is PIC.
14232         lt_prog_compiler_static_F77='-non_shared'
14233         ;;
14234       esac
14235       ;;
14236
14237     osf3* | osf4* | osf5*)
14238       lt_prog_compiler_wl_F77='-Wl,'
14239       # All OSF/1 code is PIC.
14240       lt_prog_compiler_static_F77='-non_shared'
14241       ;;
14242
14243     solaris*)
14244       lt_prog_compiler_pic_F77='-KPIC'
14245       lt_prog_compiler_static_F77='-Bstatic'
14246       case $cc_basename in
14247       f77* | f90* | f95*)
14248         lt_prog_compiler_wl_F77='-Qoption ld ';;
14249       *)
14250         lt_prog_compiler_wl_F77='-Wl,';;
14251       esac
14252       ;;
14253
14254     sunos4*)
14255       lt_prog_compiler_wl_F77='-Qoption ld '
14256       lt_prog_compiler_pic_F77='-PIC'
14257       lt_prog_compiler_static_F77='-Bstatic'
14258       ;;
14259
14260     sysv4 | sysv4.2uw2* | sysv4.3*)
14261       lt_prog_compiler_wl_F77='-Wl,'
14262       lt_prog_compiler_pic_F77='-KPIC'
14263       lt_prog_compiler_static_F77='-Bstatic'
14264       ;;
14265
14266     sysv4*MP*)
14267       if test -d /usr/nec ;then
14268         lt_prog_compiler_pic_F77='-Kconform_pic'
14269         lt_prog_compiler_static_F77='-Bstatic'
14270       fi
14271       ;;
14272
14273     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14274       lt_prog_compiler_wl_F77='-Wl,'
14275       lt_prog_compiler_pic_F77='-KPIC'
14276       lt_prog_compiler_static_F77='-Bstatic'
14277       ;;
14278
14279     unicos*)
14280       lt_prog_compiler_wl_F77='-Wl,'
14281       lt_prog_compiler_can_build_shared_F77=no
14282       ;;
14283
14284     uts4*)
14285       lt_prog_compiler_pic_F77='-pic'
14286       lt_prog_compiler_static_F77='-Bstatic'
14287       ;;
14288
14289     *)
14290       lt_prog_compiler_can_build_shared_F77=no
14291       ;;
14292     esac
14293   fi
14294
14295 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14296 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14297
14298 #
14299 # Check to make sure the PIC flag actually works.
14300 #
14301 if test -n "$lt_prog_compiler_pic_F77"; then
14302
14303 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14304 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14305 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14306   echo $ECHO_N "(cached) $ECHO_C" >&6
14307 else
14308   lt_prog_compiler_pic_works_F77=no
14309   ac_outfile=conftest.$ac_objext
14310    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14311    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14312    # Insert the option either (1) after the last *FLAGS variable, or
14313    # (2) before a word containing "conftest.", or (3) at the end.
14314    # Note that $ac_compile itself does not contain backslashes and begins
14315    # with a dollar sign (not a hyphen), so the echo should work correctly.
14316    # The option is referenced via a variable to avoid confusing sed.
14317    lt_compile=`echo "$ac_compile" | $SED \
14318    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14319    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14320    -e 's:$: $lt_compiler_flag:'`
14321    (eval echo "\"\$as_me:14321: $lt_compile\"" >&5)
14322    (eval "$lt_compile" 2>conftest.err)
14323    ac_status=$?
14324    cat conftest.err >&5
14325    echo "$as_me:14325: \$? = $ac_status" >&5
14326    if (exit $ac_status) && test -s "$ac_outfile"; then
14327      # The compiler can only warn and ignore the option if not recognized
14328      # So say no if there are warnings other than the usual output.
14329      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14330      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14331      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14332        lt_prog_compiler_pic_works_F77=yes
14333      fi
14334    fi
14335    $rm conftest*
14336
14337 fi
14338 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14339 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14340
14341 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14342     case $lt_prog_compiler_pic_F77 in
14343      "" | " "*) ;;
14344      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14345      esac
14346 else
14347     lt_prog_compiler_pic_F77=
14348      lt_prog_compiler_can_build_shared_F77=no
14349 fi
14350
14351 fi
14352 case $host_os in
14353   # For platforms which do not support PIC, -DPIC is meaningless:
14354   *djgpp*)
14355     lt_prog_compiler_pic_F77=
14356     ;;
14357   *)
14358     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14359     ;;
14360 esac
14361
14362 #
14363 # Check to make sure the static flag actually works.
14364 #
14365 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14366 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14367 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14368 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14369   echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371   lt_prog_compiler_static_works_F77=no
14372    save_LDFLAGS="$LDFLAGS"
14373    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14374    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14375    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14376      # The linker can only warn and ignore the option if not recognized
14377      # So say no if there are warnings
14378      if test -s conftest.err; then
14379        # Append any errors to the config.log.
14380        cat conftest.err 1>&5
14381        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14382        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14383        if diff conftest.exp conftest.er2 >/dev/null; then
14384          lt_prog_compiler_static_works_F77=yes
14385        fi
14386      else
14387        lt_prog_compiler_static_works_F77=yes
14388      fi
14389    fi
14390    $rm conftest*
14391    LDFLAGS="$save_LDFLAGS"
14392
14393 fi
14394 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14395 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14396
14397 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14398     :
14399 else
14400     lt_prog_compiler_static_F77=
14401 fi
14402
14403
14404 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14405 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14406 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14407   echo $ECHO_N "(cached) $ECHO_C" >&6
14408 else
14409   lt_cv_prog_compiler_c_o_F77=no
14410    $rm -r conftest 2>/dev/null
14411    mkdir conftest
14412    cd conftest
14413    mkdir out
14414    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14415
14416    lt_compiler_flag="-o out/conftest2.$ac_objext"
14417    # Insert the option either (1) after the last *FLAGS variable, or
14418    # (2) before a word containing "conftest.", or (3) at the end.
14419    # Note that $ac_compile itself does not contain backslashes and begins
14420    # with a dollar sign (not a hyphen), so the echo should work correctly.
14421    lt_compile=`echo "$ac_compile" | $SED \
14422    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14424    -e 's:$: $lt_compiler_flag:'`
14425    (eval echo "\"\$as_me:14425: $lt_compile\"" >&5)
14426    (eval "$lt_compile" 2>out/conftest.err)
14427    ac_status=$?
14428    cat out/conftest.err >&5
14429    echo "$as_me:14429: \$? = $ac_status" >&5
14430    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14431    then
14432      # The compiler can only warn and ignore the option if not recognized
14433      # So say no if there are warnings
14434      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14435      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14436      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14437        lt_cv_prog_compiler_c_o_F77=yes
14438      fi
14439    fi
14440    chmod u+w . 2>&5
14441    $rm conftest*
14442    # SGI C++ compiler will create directory out/ii_files/ for
14443    # template instantiation
14444    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14445    $rm out/* && rmdir out
14446    cd ..
14447    rmdir conftest
14448    $rm conftest*
14449
14450 fi
14451 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14452 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14453
14454
14455 hard_links="nottested"
14456 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14457   # do not overwrite the value of need_locks provided by the user
14458   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14459 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14460   hard_links=yes
14461   $rm conftest*
14462   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14463   touch conftest.a
14464   ln conftest.a conftest.b 2>&5 || hard_links=no
14465   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14466   { echo "$as_me:$LINENO: result: $hard_links" >&5
14467 echo "${ECHO_T}$hard_links" >&6; }
14468   if test "$hard_links" = no; then
14469     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14470 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14471     need_locks=warn
14472   fi
14473 else
14474   need_locks=no
14475 fi
14476
14477 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14478 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14479
14480   runpath_var=
14481   allow_undefined_flag_F77=
14482   enable_shared_with_static_runtimes_F77=no
14483   archive_cmds_F77=
14484   archive_expsym_cmds_F77=
14485   old_archive_From_new_cmds_F77=
14486   old_archive_from_expsyms_cmds_F77=
14487   export_dynamic_flag_spec_F77=
14488   whole_archive_flag_spec_F77=
14489   thread_safe_flag_spec_F77=
14490   hardcode_libdir_flag_spec_F77=
14491   hardcode_libdir_flag_spec_ld_F77=
14492   hardcode_libdir_separator_F77=
14493   hardcode_direct_F77=no
14494   hardcode_minus_L_F77=no
14495   hardcode_shlibpath_var_F77=unsupported
14496   link_all_deplibs_F77=unknown
14497   hardcode_automatic_F77=no
14498   module_cmds_F77=
14499   module_expsym_cmds_F77=
14500   always_export_symbols_F77=no
14501   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14502   # include_expsyms should be a list of space-separated symbols to be *always*
14503   # included in the symbol list
14504   include_expsyms_F77=
14505   # exclude_expsyms can be an extended regexp of symbols to exclude
14506   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14507   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14508   # as well as any symbol that contains `d'.
14509   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14510   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14511   # platforms (ab)use it in PIC code, but their linkers get confused if
14512   # the symbol is explicitly referenced.  Since portable code cannot
14513   # rely on this symbol name, it's probably fine to never include it in
14514   # preloaded symbol tables.
14515   extract_expsyms_cmds=
14516   # Just being paranoid about ensuring that cc_basename is set.
14517   for cc_temp in $compiler""; do
14518   case $cc_temp in
14519     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14520     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14521     \-*) ;;
14522     *) break;;
14523   esac
14524 done
14525 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14526
14527   case $host_os in
14528   cygwin* | mingw* | pw32*)
14529     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14530     # When not using gcc, we currently assume that we are using
14531     # Microsoft Visual C++.
14532     if test "$GCC" != yes; then
14533       with_gnu_ld=no
14534     fi
14535     ;;
14536   interix*)
14537     # we just hope/assume this is gcc and not c89 (= MSVC++)
14538     with_gnu_ld=yes
14539     ;;
14540   openbsd*)
14541     with_gnu_ld=no
14542     ;;
14543   esac
14544
14545   ld_shlibs_F77=yes
14546   if test "$with_gnu_ld" = yes; then
14547     # If archive_cmds runs LD, not CC, wlarc should be empty
14548     wlarc='${wl}'
14549
14550     # Set some defaults for GNU ld with shared library support. These
14551     # are reset later if shared libraries are not supported. Putting them
14552     # here allows them to be overridden if necessary.
14553     runpath_var=LD_RUN_PATH
14554     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14555     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14556     # ancient GNU ld didn't support --whole-archive et. al.
14557     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14558         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14559       else
14560         whole_archive_flag_spec_F77=
14561     fi
14562     supports_anon_versioning=no
14563     case `$LD -v 2>/dev/null` in
14564       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14565       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14566       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14567       *\ 2.11.*) ;; # other 2.11 versions
14568       *) supports_anon_versioning=yes ;;
14569     esac
14570
14571     # See if GNU ld supports shared libraries.
14572     case $host_os in
14573     aix3* | aix4* | aix5*)
14574       # On AIX/PPC, the GNU linker is very broken
14575       if test "$host_cpu" != ia64; then
14576         ld_shlibs_F77=no
14577         cat <<EOF 1>&2
14578
14579 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14580 *** to be unable to reliably create shared libraries on AIX.
14581 *** Therefore, libtool is disabling shared libraries support.  If you
14582 *** really care for shared libraries, you may want to modify your PATH
14583 *** so that a non-GNU linker is found, and then restart.
14584
14585 EOF
14586       fi
14587       ;;
14588
14589     amigaos*)
14590       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)'
14591       hardcode_libdir_flag_spec_F77='-L$libdir'
14592       hardcode_minus_L_F77=yes
14593
14594       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14595       # that the semantics of dynamic libraries on AmigaOS, at least up
14596       # to version 4, is to share data among multiple programs linked
14597       # with the same dynamic library.  Since this doesn't match the
14598       # behavior of shared libraries on other platforms, we can't use
14599       # them.
14600       ld_shlibs_F77=no
14601       ;;
14602
14603     beos*)
14604       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14605         allow_undefined_flag_F77=unsupported
14606         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14607         # support --undefined.  This deserves some investigation.  FIXME
14608         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14609       else
14610         ld_shlibs_F77=no
14611       fi
14612       ;;
14613
14614     cygwin* | mingw* | pw32*)
14615       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14616       # as there is no search path for DLLs.
14617       hardcode_libdir_flag_spec_F77='-L$libdir'
14618       allow_undefined_flag_F77=unsupported
14619       always_export_symbols_F77=no
14620       enable_shared_with_static_runtimes_F77=yes
14621       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14622
14623       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14624         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14625         # If the export-symbols file already is a .def file (1st line
14626         # is EXPORTS), use it as is; otherwise, prepend...
14627         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14628           cp $export_symbols $output_objdir/$soname.def;
14629         else
14630           echo EXPORTS > $output_objdir/$soname.def;
14631           cat $export_symbols >> $output_objdir/$soname.def;
14632         fi~
14633         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14634       else
14635         ld_shlibs_F77=no
14636       fi
14637       ;;
14638
14639     interix3*)
14640       hardcode_direct_F77=no
14641       hardcode_shlibpath_var_F77=no
14642       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14643       export_dynamic_flag_spec_F77='${wl}-E'
14644       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14645       # Instead, shared libraries are loaded at an image base (0x10000000 by
14646       # default) and relocated if they conflict, which is a slow very memory
14647       # consuming and fragmenting process.  To avoid this, we pick a random,
14648       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14649       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14650       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'
14651       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'
14652       ;;
14653
14654     linux*)
14655       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14656         tmp_addflag=
14657         case $cc_basename,$host_cpu in
14658         pgcc*)                          # Portland Group C compiler
14659           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'
14660           tmp_addflag=' $pic_flag'
14661           ;;
14662         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14663           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'
14664           tmp_addflag=' $pic_flag -Mnomain' ;;
14665         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14666           tmp_addflag=' -i_dynamic' ;;
14667         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14668           tmp_addflag=' -i_dynamic -nofor_main' ;;
14669         ifc* | ifort*)                  # Intel Fortran compiler
14670           tmp_addflag=' -nofor_main' ;;
14671         esac
14672         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14673
14674         if test $supports_anon_versioning = yes; then
14675           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14676   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14677   $echo "local: *; };" >> $output_objdir/$libname.ver~
14678           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14679         fi
14680       else
14681         ld_shlibs_F77=no
14682       fi
14683       ;;
14684
14685     netbsd*)
14686       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14687         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14688         wlarc=
14689       else
14690         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14691         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14692       fi
14693       ;;
14694
14695     solaris*)
14696       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14697         ld_shlibs_F77=no
14698         cat <<EOF 1>&2
14699
14700 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14701 *** create shared libraries on Solaris systems.  Therefore, libtool
14702 *** is disabling shared libraries support.  We urge you to upgrade GNU
14703 *** binutils to release 2.9.1 or newer.  Another option is to modify
14704 *** your PATH or compiler configuration so that the native linker is
14705 *** used, and then restart.
14706
14707 EOF
14708       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14709         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14710         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14711       else
14712         ld_shlibs_F77=no
14713       fi
14714       ;;
14715
14716     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14717       case `$LD -v 2>&1` in
14718         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14719         ld_shlibs_F77=no
14720         cat <<_LT_EOF 1>&2
14721
14722 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14723 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14724 *** is disabling shared libraries support.  We urge you to upgrade GNU
14725 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14726 *** your PATH or compiler configuration so that the native linker is
14727 *** used, and then restart.
14728
14729 _LT_EOF
14730         ;;
14731         *)
14732           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14733             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14734             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14735             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14736           else
14737             ld_shlibs_F77=no
14738           fi
14739         ;;
14740       esac
14741       ;;
14742
14743     sunos4*)
14744       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14745       wlarc=
14746       hardcode_direct_F77=yes
14747       hardcode_shlibpath_var_F77=no
14748       ;;
14749
14750     *)
14751       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14752         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14753         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14754       else
14755         ld_shlibs_F77=no
14756       fi
14757       ;;
14758     esac
14759
14760     if test "$ld_shlibs_F77" = no; then
14761       runpath_var=
14762       hardcode_libdir_flag_spec_F77=
14763       export_dynamic_flag_spec_F77=
14764       whole_archive_flag_spec_F77=
14765     fi
14766   else
14767     # PORTME fill in a description of your system's linker (not GNU ld)
14768     case $host_os in
14769     aix3*)
14770       allow_undefined_flag_F77=unsupported
14771       always_export_symbols_F77=yes
14772       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'
14773       # Note: this linker hardcodes the directories in LIBPATH if there
14774       # are no directories specified by -L.
14775       hardcode_minus_L_F77=yes
14776       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14777         # Neither direct hardcoding nor static linking is supported with a
14778         # broken collect2.
14779         hardcode_direct_F77=unsupported
14780       fi
14781       ;;
14782
14783     aix4* | aix5*)
14784       if test "$host_cpu" = ia64; then
14785         # On IA64, the linker does run time linking by default, so we don't
14786         # have to do anything special.
14787         aix_use_runtimelinking=no
14788         exp_sym_flag='-Bexport'
14789         no_entry_flag=""
14790       else
14791         # If we're using GNU nm, then we don't want the "-C" option.
14792         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14793         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14794           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'
14795         else
14796           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'
14797         fi
14798         aix_use_runtimelinking=no
14799
14800         # Test if we are trying to use run time linking or normal
14801         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14802         # need to do runtime linking.
14803         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14804           for ld_flag in $LDFLAGS; do
14805           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14806             aix_use_runtimelinking=yes
14807             break
14808           fi
14809           done
14810           ;;
14811         esac
14812
14813         exp_sym_flag='-bexport'
14814         no_entry_flag='-bnoentry'
14815       fi
14816
14817       # When large executables or shared objects are built, AIX ld can
14818       # have problems creating the table of contents.  If linking a library
14819       # or program results in "error TOC overflow" add -mminimal-toc to
14820       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14821       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14822
14823       archive_cmds_F77=''
14824       hardcode_direct_F77=yes
14825       hardcode_libdir_separator_F77=':'
14826       link_all_deplibs_F77=yes
14827
14828       if test "$GCC" = yes; then
14829         case $host_os in aix4.[012]|aix4.[012].*)
14830         # We only want to do this on AIX 4.2 and lower, the check
14831         # below for broken collect2 doesn't work under 4.3+
14832           collect2name=`${CC} -print-prog-name=collect2`
14833           if test -f "$collect2name" && \
14834            strings "$collect2name" | grep resolve_lib_name >/dev/null
14835           then
14836           # We have reworked collect2
14837           hardcode_direct_F77=yes
14838           else
14839           # We have old collect2
14840           hardcode_direct_F77=unsupported
14841           # It fails to find uninstalled libraries when the uninstalled
14842           # path is not listed in the libpath.  Setting hardcode_minus_L
14843           # to unsupported forces relinking
14844           hardcode_minus_L_F77=yes
14845           hardcode_libdir_flag_spec_F77='-L$libdir'
14846           hardcode_libdir_separator_F77=
14847           fi
14848           ;;
14849         esac
14850         shared_flag='-shared'
14851         if test "$aix_use_runtimelinking" = yes; then
14852           shared_flag="$shared_flag "'${wl}-G'
14853         fi
14854       else
14855         # not using gcc
14856         if test "$host_cpu" = ia64; then
14857         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14858         # chokes on -Wl,-G. The following line is correct:
14859           shared_flag='-G'
14860         else
14861           if test "$aix_use_runtimelinking" = yes; then
14862             shared_flag='${wl}-G'
14863           else
14864             shared_flag='${wl}-bM:SRE'
14865           fi
14866         fi
14867       fi
14868
14869       # It seems that -bexpall does not export symbols beginning with
14870       # underscore (_), so it is better to generate a list of symbols to export.
14871       always_export_symbols_F77=yes
14872       if test "$aix_use_runtimelinking" = yes; then
14873         # Warning - without using the other runtime loading flags (-brtl),
14874         # -berok will link without error, but may produce a broken library.
14875         allow_undefined_flag_F77='-berok'
14876        # Determine the default libpath from the value encoded in an empty executable.
14877        cat >conftest.$ac_ext <<_ACEOF
14878       program main
14879
14880       end
14881 _ACEOF
14882 rm -f conftest.$ac_objext conftest$ac_exeext
14883 if { (ac_try="$ac_link"
14884 case "(($ac_try" in
14885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886   *) ac_try_echo=$ac_try;;
14887 esac
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889   (eval "$ac_link") 2>conftest.er1
14890   ac_status=$?
14891   grep -v '^ *+' conftest.er1 >conftest.err
14892   rm -f conftest.er1
14893   cat conftest.err >&5
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); } &&
14896          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14897   { (case "(($ac_try" in
14898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899   *) ac_try_echo=$ac_try;;
14900 esac
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902   (eval "$ac_try") 2>&5
14903   ac_status=$?
14904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905   (exit $ac_status); }; } &&
14906          { ac_try='test -s conftest$ac_exeext'
14907   { (case "(($ac_try" in
14908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909   *) ac_try_echo=$ac_try;;
14910 esac
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912   (eval "$ac_try") 2>&5
14913   ac_status=$?
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); }; }; then
14916
14917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14918 }'`
14919 # Check for a 64-bit object if we didn't find anything.
14920 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; }
14921 }'`; fi
14922 else
14923   echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14925
14926
14927 fi
14928
14929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14930       conftest$ac_exeext conftest.$ac_ext
14931 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14932
14933        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14934         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"
14935        else
14936         if test "$host_cpu" = ia64; then
14937           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14938           allow_undefined_flag_F77="-z nodefs"
14939           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"
14940         else
14941          # Determine the default libpath from the value encoded in an empty executable.
14942          cat >conftest.$ac_ext <<_ACEOF
14943       program main
14944
14945       end
14946 _ACEOF
14947 rm -f conftest.$ac_objext conftest$ac_exeext
14948 if { (ac_try="$ac_link"
14949 case "(($ac_try" in
14950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951   *) ac_try_echo=$ac_try;;
14952 esac
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954   (eval "$ac_link") 2>conftest.er1
14955   ac_status=$?
14956   grep -v '^ *+' conftest.er1 >conftest.err
14957   rm -f conftest.er1
14958   cat conftest.err >&5
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); } &&
14961          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14962   { (case "(($ac_try" in
14963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964   *) ac_try_echo=$ac_try;;
14965 esac
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967   (eval "$ac_try") 2>&5
14968   ac_status=$?
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); }; } &&
14971          { ac_try='test -s conftest$ac_exeext'
14972   { (case "(($ac_try" in
14973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974   *) ac_try_echo=$ac_try;;
14975 esac
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977   (eval "$ac_try") 2>&5
14978   ac_status=$?
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); }; }; then
14981
14982 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14983 }'`
14984 # Check for a 64-bit object if we didn't find anything.
14985 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; }
14986 }'`; fi
14987 else
14988   echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14990
14991
14992 fi
14993
14994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14995       conftest$ac_exeext conftest.$ac_ext
14996 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14997
14998          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14999           # Warning - without using the other run time loading flags,
15000           # -berok will link without error, but may produce a broken library.
15001           no_undefined_flag_F77=' ${wl}-bernotok'
15002           allow_undefined_flag_F77=' ${wl}-berok'
15003           # Exported symbols can be pulled into shared objects from archives
15004           whole_archive_flag_spec_F77='$convenience'
15005           archive_cmds_need_lc_F77=yes
15006           # This is similar to how AIX traditionally builds its shared libraries.
15007           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'
15008         fi
15009       fi
15010       ;;
15011
15012     amigaos*)
15013       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)'
15014       hardcode_libdir_flag_spec_F77='-L$libdir'
15015       hardcode_minus_L_F77=yes
15016       # see comment about different semantics on the GNU ld section
15017       ld_shlibs_F77=no
15018       ;;
15019
15020     bsdi[45]*)
15021       export_dynamic_flag_spec_F77=-rdynamic
15022       ;;
15023
15024     cygwin* | mingw* | pw32*)
15025       # When not using gcc, we currently assume that we are using
15026       # Microsoft Visual C++.
15027       # hardcode_libdir_flag_spec is actually meaningless, as there is
15028       # no search path for DLLs.
15029       hardcode_libdir_flag_spec_F77=' '
15030       allow_undefined_flag_F77=unsupported
15031       # Tell ltmain to make .lib files, not .a files.
15032       libext=lib
15033       # Tell ltmain to make .dll files, not .so files.
15034       shrext_cmds=".dll"
15035       # FIXME: Setting linknames here is a bad hack.
15036       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15037       # The linker will automatically build a .lib file if we build a DLL.
15038       old_archive_From_new_cmds_F77='true'
15039       # FIXME: Should let the user specify the lib program.
15040       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15041       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15042       enable_shared_with_static_runtimes_F77=yes
15043       ;;
15044
15045     darwin* | rhapsody*)
15046       case $host_os in
15047         rhapsody* | darwin1.[012])
15048          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15049          ;;
15050        *) # Darwin 1.3 on
15051          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15052            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15053          else
15054            case ${MACOSX_DEPLOYMENT_TARGET} in
15055              10.[012])
15056                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15057                ;;
15058              10.*)
15059                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15060                ;;
15061            esac
15062          fi
15063          ;;
15064       esac
15065       archive_cmds_need_lc_F77=no
15066       hardcode_direct_F77=no
15067       hardcode_automatic_F77=yes
15068       hardcode_shlibpath_var_F77=unsupported
15069       whole_archive_flag_spec_F77=''
15070       link_all_deplibs_F77=yes
15071     if test "$GCC" = yes ; then
15072         output_verbose_link_cmd='echo'
15073         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15074       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15075       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15076       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}'
15077       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}'
15078     else
15079       case $cc_basename in
15080         xlc*)
15081          output_verbose_link_cmd='echo'
15082          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15083          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15084           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15085          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}'
15086           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}'
15087           ;;
15088        *)
15089          ld_shlibs_F77=no
15090           ;;
15091       esac
15092     fi
15093       ;;
15094
15095     dgux*)
15096       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15097       hardcode_libdir_flag_spec_F77='-L$libdir'
15098       hardcode_shlibpath_var_F77=no
15099       ;;
15100
15101     freebsd1*)
15102       ld_shlibs_F77=no
15103       ;;
15104
15105     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15106     # support.  Future versions do this automatically, but an explicit c++rt0.o
15107     # does not break anything, and helps significantly (at the cost of a little
15108     # extra space).
15109     freebsd2.2*)
15110       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15111       hardcode_libdir_flag_spec_F77='-R$libdir'
15112       hardcode_direct_F77=yes
15113       hardcode_shlibpath_var_F77=no
15114       ;;
15115
15116     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15117     freebsd2*)
15118       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15119       hardcode_direct_F77=yes
15120       hardcode_minus_L_F77=yes
15121       hardcode_shlibpath_var_F77=no
15122       ;;
15123
15124     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15125     freebsd* | kfreebsd*-gnu | dragonfly*)
15126       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15127       hardcode_libdir_flag_spec_F77='-R$libdir'
15128       hardcode_direct_F77=yes
15129       hardcode_shlibpath_var_F77=no
15130       ;;
15131
15132     hpux9*)
15133       if test "$GCC" = yes; then
15134         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'
15135       else
15136         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'
15137       fi
15138       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15139       hardcode_libdir_separator_F77=:
15140       hardcode_direct_F77=yes
15141
15142       # hardcode_minus_L: Not really in the search PATH,
15143       # but as the default location of the library.
15144       hardcode_minus_L_F77=yes
15145       export_dynamic_flag_spec_F77='${wl}-E'
15146       ;;
15147
15148     hpux10*)
15149       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15150         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15151       else
15152         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15153       fi
15154       if test "$with_gnu_ld" = no; then
15155         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15156         hardcode_libdir_separator_F77=:
15157
15158         hardcode_direct_F77=yes
15159         export_dynamic_flag_spec_F77='${wl}-E'
15160
15161         # hardcode_minus_L: Not really in the search PATH,
15162         # but as the default location of the library.
15163         hardcode_minus_L_F77=yes
15164       fi
15165       ;;
15166
15167     hpux11*)
15168       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15169         case $host_cpu in
15170         hppa*64*)
15171           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15172           ;;
15173         ia64*)
15174           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15175           ;;
15176         *)
15177           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15178           ;;
15179         esac
15180       else
15181         case $host_cpu in
15182         hppa*64*)
15183           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15184           ;;
15185         ia64*)
15186           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15187           ;;
15188         *)
15189           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15190           ;;
15191         esac
15192       fi
15193       if test "$with_gnu_ld" = no; then
15194         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15195         hardcode_libdir_separator_F77=:
15196
15197         case $host_cpu in
15198         hppa*64*|ia64*)
15199           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15200           hardcode_direct_F77=no
15201           hardcode_shlibpath_var_F77=no
15202           ;;
15203         *)
15204           hardcode_direct_F77=yes
15205           export_dynamic_flag_spec_F77='${wl}-E'
15206
15207           # hardcode_minus_L: Not really in the search PATH,
15208           # but as the default location of the library.
15209           hardcode_minus_L_F77=yes
15210           ;;
15211         esac
15212       fi
15213       ;;
15214
15215     irix5* | irix6* | nonstopux*)
15216       if test "$GCC" = yes; then
15217         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'
15218       else
15219         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'
15220         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15221       fi
15222       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15223       hardcode_libdir_separator_F77=:
15224       link_all_deplibs_F77=yes
15225       ;;
15226
15227     netbsd*)
15228       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15229         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15230       else
15231         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15232       fi
15233       hardcode_libdir_flag_spec_F77='-R$libdir'
15234       hardcode_direct_F77=yes
15235       hardcode_shlibpath_var_F77=no
15236       ;;
15237
15238     newsos6)
15239       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15240       hardcode_direct_F77=yes
15241       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15242       hardcode_libdir_separator_F77=:
15243       hardcode_shlibpath_var_F77=no
15244       ;;
15245
15246     openbsd*)
15247       hardcode_direct_F77=yes
15248       hardcode_shlibpath_var_F77=no
15249       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15250         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15251         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15252         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15253         export_dynamic_flag_spec_F77='${wl}-E'
15254       else
15255        case $host_os in
15256          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15257            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15258            hardcode_libdir_flag_spec_F77='-R$libdir'
15259            ;;
15260          *)
15261            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15262            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15263            ;;
15264        esac
15265       fi
15266       ;;
15267
15268     os2*)
15269       hardcode_libdir_flag_spec_F77='-L$libdir'
15270       hardcode_minus_L_F77=yes
15271       allow_undefined_flag_F77=unsupported
15272       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'
15273       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15274       ;;
15275
15276     osf3*)
15277       if test "$GCC" = yes; then
15278         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15279         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'
15280       else
15281         allow_undefined_flag_F77=' -expect_unresolved \*'
15282         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'
15283       fi
15284       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15285       hardcode_libdir_separator_F77=:
15286       ;;
15287
15288     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15289       if test "$GCC" = yes; then
15290         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15291         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'
15292         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15293       else
15294         allow_undefined_flag_F77=' -expect_unresolved \*'
15295         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'
15296         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~
15297         $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'
15298
15299         # Both c and cxx compiler support -rpath directly
15300         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15301       fi
15302       hardcode_libdir_separator_F77=:
15303       ;;
15304
15305     solaris*)
15306       no_undefined_flag_F77=' -z text'
15307       if test "$GCC" = yes; then
15308         wlarc='${wl}'
15309         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15310         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15311           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15312       else
15313         wlarc=''
15314         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15315         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15316         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15317       fi
15318       hardcode_libdir_flag_spec_F77='-R$libdir'
15319       hardcode_shlibpath_var_F77=no
15320       case $host_os in
15321       solaris2.[0-5] | solaris2.[0-5].*) ;;
15322       *)
15323         # The compiler driver will combine linker options so we
15324         # cannot just pass the convience library names through
15325         # without $wl, iff we do not link with $LD.
15326         # Luckily, gcc supports the same syntax we need for Sun Studio.
15327         # Supported since Solaris 2.6 (maybe 2.5.1?)
15328         case $wlarc in
15329         '')
15330           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15331         *)
15332           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' ;;
15333         esac ;;
15334       esac
15335       link_all_deplibs_F77=yes
15336       ;;
15337
15338     sunos4*)
15339       if test "x$host_vendor" = xsequent; then
15340         # Use $CC to link under sequent, because it throws in some extra .o
15341         # files that make .init and .fini sections work.
15342         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15343       else
15344         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15345       fi
15346       hardcode_libdir_flag_spec_F77='-L$libdir'
15347       hardcode_direct_F77=yes
15348       hardcode_minus_L_F77=yes
15349       hardcode_shlibpath_var_F77=no
15350       ;;
15351
15352     sysv4)
15353       case $host_vendor in
15354         sni)
15355           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15356           hardcode_direct_F77=yes # is this really true???
15357         ;;
15358         siemens)
15359           ## LD is ld it makes a PLAMLIB
15360           ## CC just makes a GrossModule.
15361           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15362           reload_cmds_F77='$CC -r -o $output$reload_objs'
15363           hardcode_direct_F77=no
15364         ;;
15365         motorola)
15366           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15367           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15368         ;;
15369       esac
15370       runpath_var='LD_RUN_PATH'
15371       hardcode_shlibpath_var_F77=no
15372       ;;
15373
15374     sysv4.3*)
15375       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15376       hardcode_shlibpath_var_F77=no
15377       export_dynamic_flag_spec_F77='-Bexport'
15378       ;;
15379
15380     sysv4*MP*)
15381       if test -d /usr/nec; then
15382         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15383         hardcode_shlibpath_var_F77=no
15384         runpath_var=LD_RUN_PATH
15385         hardcode_runpath_var=yes
15386         ld_shlibs_F77=yes
15387       fi
15388       ;;
15389
15390     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15391       no_undefined_flag_F77='${wl}-z,text'
15392       archive_cmds_need_lc_F77=no
15393       hardcode_shlibpath_var_F77=no
15394       runpath_var='LD_RUN_PATH'
15395
15396       if test "$GCC" = yes; then
15397         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15398         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15399       else
15400         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15401         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15402       fi
15403       ;;
15404
15405     sysv5* | sco3.2v5* | sco5v6*)
15406       # Note: We can NOT use -z defs as we might desire, because we do not
15407       # link with -lc, and that would cause any symbols used from libc to
15408       # always be unresolved, which means just about no library would
15409       # ever link correctly.  If we're not using GNU ld we use -z text
15410       # though, which does catch some bad symbols but isn't as heavy-handed
15411       # as -z defs.
15412       no_undefined_flag_F77='${wl}-z,text'
15413       allow_undefined_flag_F77='${wl}-z,nodefs'
15414       archive_cmds_need_lc_F77=no
15415       hardcode_shlibpath_var_F77=no
15416       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15417       hardcode_libdir_separator_F77=':'
15418       link_all_deplibs_F77=yes
15419       export_dynamic_flag_spec_F77='${wl}-Bexport'
15420       runpath_var='LD_RUN_PATH'
15421
15422       if test "$GCC" = yes; then
15423         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15424         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15425       else
15426         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15427         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15428       fi
15429       ;;
15430
15431     uts4*)
15432       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15433       hardcode_libdir_flag_spec_F77='-L$libdir'
15434       hardcode_shlibpath_var_F77=no
15435       ;;
15436
15437     *)
15438       ld_shlibs_F77=no
15439       ;;
15440     esac
15441   fi
15442
15443 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15444 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15445 test "$ld_shlibs_F77" = no && can_build_shared=no
15446
15447 #
15448 # Do we need to explicitly link libc?
15449 #
15450 case "x$archive_cmds_need_lc_F77" in
15451 x|xyes)
15452   # Assume -lc should be added
15453   archive_cmds_need_lc_F77=yes
15454
15455   if test "$enable_shared" = yes && test "$GCC" = yes; then
15456     case $archive_cmds_F77 in
15457     *'~'*)
15458       # FIXME: we may have to deal with multi-command sequences.
15459       ;;
15460     '$CC '*)
15461       # Test whether the compiler implicitly links with -lc since on some
15462       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15463       # to ld, don't add -lc before -lgcc.
15464       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15465 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15466       $rm conftest*
15467       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15468
15469       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15470   (eval $ac_compile) 2>&5
15471   ac_status=$?
15472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473   (exit $ac_status); } 2>conftest.err; then
15474         soname=conftest
15475         lib=conftest
15476         libobjs=conftest.$ac_objext
15477         deplibs=
15478         wl=$lt_prog_compiler_wl_F77
15479         pic_flag=$lt_prog_compiler_pic_F77
15480         compiler_flags=-v
15481         linker_flags=-v
15482         verstring=
15483         output_objdir=.
15484         libname=conftest
15485         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15486         allow_undefined_flag_F77=
15487         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15488   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15489   ac_status=$?
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); }
15492         then
15493           archive_cmds_need_lc_F77=no
15494         else
15495           archive_cmds_need_lc_F77=yes
15496         fi
15497         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15498       else
15499         cat conftest.err 1>&5
15500       fi
15501       $rm conftest*
15502       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15503 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15504       ;;
15505     esac
15506   fi
15507   ;;
15508 esac
15509
15510 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15511 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15512 library_names_spec=
15513 libname_spec='lib$name'
15514 soname_spec=
15515 shrext_cmds=".so"
15516 postinstall_cmds=
15517 postuninstall_cmds=
15518 finish_cmds=
15519 finish_eval=
15520 shlibpath_var=
15521 shlibpath_overrides_runpath=unknown
15522 version_type=none
15523 dynamic_linker="$host_os ld.so"
15524 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15525 if test "$GCC" = yes; then
15526   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15527   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15528     # if the path contains ";" then we assume it to be the separator
15529     # otherwise default to the standard path separator (i.e. ":") - it is
15530     # assumed that no part of a normal pathname contains ";" but that should
15531     # okay in the real world where ";" in dirpaths is itself problematic.
15532     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15533   else
15534     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15535   fi
15536 else
15537   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15538 fi
15539 need_lib_prefix=unknown
15540 hardcode_into_libs=no
15541
15542 # when you set need_version to no, make sure it does not cause -set_version
15543 # flags to be left without arguments
15544 need_version=unknown
15545
15546 case $host_os in
15547 aix3*)
15548   version_type=linux
15549   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15550   shlibpath_var=LIBPATH
15551
15552   # AIX 3 has no versioning support, so we append a major version to the name.
15553   soname_spec='${libname}${release}${shared_ext}$major'
15554   ;;
15555
15556 aix4* | aix5*)
15557   version_type=linux
15558   need_lib_prefix=no
15559   need_version=no
15560   hardcode_into_libs=yes
15561   if test "$host_cpu" = ia64; then
15562     # AIX 5 supports IA64
15563     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15564     shlibpath_var=LD_LIBRARY_PATH
15565   else
15566     # With GCC up to 2.95.x, collect2 would create an import file
15567     # for dependence libraries.  The import file would start with
15568     # the line `#! .'.  This would cause the generated library to
15569     # depend on `.', always an invalid library.  This was fixed in
15570     # development snapshots of GCC prior to 3.0.
15571     case $host_os in
15572       aix4 | aix4.[01] | aix4.[01].*)
15573       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15574            echo ' yes '
15575            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15576         :
15577       else
15578         can_build_shared=no
15579       fi
15580       ;;
15581     esac
15582     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15583     # soname into executable. Probably we can add versioning support to
15584     # collect2, so additional links can be useful in future.
15585     if test "$aix_use_runtimelinking" = yes; then
15586       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15587       # instead of lib<name>.a to let people know that these are not
15588       # typical AIX shared libraries.
15589       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590     else
15591       # We preserve .a as extension for shared libraries through AIX4.2
15592       # and later when we are not doing run time linking.
15593       library_names_spec='${libname}${release}.a $libname.a'
15594       soname_spec='${libname}${release}${shared_ext}$major'
15595     fi
15596     shlibpath_var=LIBPATH
15597   fi
15598   ;;
15599
15600 amigaos*)
15601   library_names_spec='$libname.ixlibrary $libname.a'
15602   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15603   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'
15604   ;;
15605
15606 beos*)
15607   library_names_spec='${libname}${shared_ext}'
15608   dynamic_linker="$host_os ld.so"
15609   shlibpath_var=LIBRARY_PATH
15610   ;;
15611
15612 bsdi[45]*)
15613   version_type=linux
15614   need_version=no
15615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15616   soname_spec='${libname}${release}${shared_ext}$major'
15617   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15618   shlibpath_var=LD_LIBRARY_PATH
15619   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15620   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15621   # the default ld.so.conf also contains /usr/contrib/lib and
15622   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15623   # libtool to hard-code these into programs
15624   ;;
15625
15626 cygwin* | mingw* | pw32*)
15627   version_type=windows
15628   shrext_cmds=".dll"
15629   need_version=no
15630   need_lib_prefix=no
15631
15632   case $GCC,$host_os in
15633   yes,cygwin* | yes,mingw* | yes,pw32*)
15634     library_names_spec='$libname.dll.a'
15635     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15636     postinstall_cmds='base_file=`basename \${file}`~
15637       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15638       dldir=$destdir/`dirname \$dlpath`~
15639       test -d \$dldir || mkdir -p \$dldir~
15640       $install_prog $dir/$dlname \$dldir/$dlname~
15641       chmod a+x \$dldir/$dlname'
15642     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15643       dlpath=$dir/\$dldll~
15644        $rm \$dlpath'
15645     shlibpath_overrides_runpath=yes
15646
15647     case $host_os in
15648     cygwin*)
15649       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15650       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15651       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15652       ;;
15653     mingw*)
15654       # MinGW DLLs use traditional 'lib' prefix
15655       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15656       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15657       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15658         # It is most probably a Windows format PATH printed by
15659         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15660         # path with ; separators, and with drive letters. We can handle the
15661         # drive letters (cygwin fileutils understands them), so leave them,
15662         # especially as we might pass files found there to a mingw objdump,
15663         # which wouldn't understand a cygwinified path. Ahh.
15664         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15665       else
15666         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15667       fi
15668       ;;
15669     pw32*)
15670       # pw32 DLLs use 'pw' prefix rather than 'lib'
15671       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15672       ;;
15673     esac
15674     ;;
15675
15676   *)
15677     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15678     ;;
15679   esac
15680   dynamic_linker='Win32 ld.exe'
15681   # FIXME: first we should search . and the directory the executable is in
15682   shlibpath_var=PATH
15683   ;;
15684
15685 darwin* | rhapsody*)
15686   dynamic_linker="$host_os dyld"
15687   version_type=darwin
15688   need_lib_prefix=no
15689   need_version=no
15690   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15691   soname_spec='${libname}${release}${major}$shared_ext'
15692   shlibpath_overrides_runpath=yes
15693   shlibpath_var=DYLD_LIBRARY_PATH
15694   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15695   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15696   if test "$GCC" = yes; then
15697     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"`
15698   else
15699     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15700   fi
15701   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15702   ;;
15703
15704 dgux*)
15705   version_type=linux
15706   need_lib_prefix=no
15707   need_version=no
15708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15709   soname_spec='${libname}${release}${shared_ext}$major'
15710   shlibpath_var=LD_LIBRARY_PATH
15711   ;;
15712
15713 freebsd1*)
15714   dynamic_linker=no
15715   ;;
15716
15717 kfreebsd*-gnu)
15718   version_type=linux
15719   need_lib_prefix=no
15720   need_version=no
15721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15722   soname_spec='${libname}${release}${shared_ext}$major'
15723   shlibpath_var=LD_LIBRARY_PATH
15724   shlibpath_overrides_runpath=no
15725   hardcode_into_libs=yes
15726   dynamic_linker='GNU ld.so'
15727   ;;
15728
15729 freebsd* | dragonfly*)
15730   # DragonFly does not have aout.  When/if they implement a new
15731   # versioning mechanism, adjust this.
15732   if test -x /usr/bin/objformat; then
15733     objformat=`/usr/bin/objformat`
15734   else
15735     case $host_os in
15736     freebsd[123]*) objformat=aout ;;
15737     *) objformat=elf ;;
15738     esac
15739   fi
15740   version_type=freebsd-$objformat
15741   case $version_type in
15742     freebsd-elf*)
15743       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15744       need_version=no
15745       need_lib_prefix=no
15746       ;;
15747     freebsd-*)
15748       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15749       need_version=yes
15750       ;;
15751   esac
15752   shlibpath_var=LD_LIBRARY_PATH
15753   case $host_os in
15754   freebsd2*)
15755     shlibpath_overrides_runpath=yes
15756     ;;
15757   freebsd3.[01]* | freebsdelf3.[01]*)
15758     shlibpath_overrides_runpath=yes
15759     hardcode_into_libs=yes
15760     ;;
15761   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15762   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15763     shlibpath_overrides_runpath=no
15764     hardcode_into_libs=yes
15765     ;;
15766   freebsd*) # from 4.6 on
15767     shlibpath_overrides_runpath=yes
15768     hardcode_into_libs=yes
15769     ;;
15770   esac
15771   ;;
15772
15773 gnu*)
15774   version_type=linux
15775   need_lib_prefix=no
15776   need_version=no
15777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15778   soname_spec='${libname}${release}${shared_ext}$major'
15779   shlibpath_var=LD_LIBRARY_PATH
15780   hardcode_into_libs=yes
15781   ;;
15782
15783 hpux9* | hpux10* | hpux11*)
15784   # Give a soname corresponding to the major version so that dld.sl refuses to
15785   # link against other versions.
15786   version_type=sunos
15787   need_lib_prefix=no
15788   need_version=no
15789   case $host_cpu in
15790   ia64*)
15791     shrext_cmds='.so'
15792     hardcode_into_libs=yes
15793     dynamic_linker="$host_os dld.so"
15794     shlibpath_var=LD_LIBRARY_PATH
15795     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15797     soname_spec='${libname}${release}${shared_ext}$major'
15798     if test "X$HPUX_IA64_MODE" = X32; then
15799       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15800     else
15801       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15802     fi
15803     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15804     ;;
15805    hppa*64*)
15806      shrext_cmds='.sl'
15807      hardcode_into_libs=yes
15808      dynamic_linker="$host_os dld.sl"
15809      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15810      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15811      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812      soname_spec='${libname}${release}${shared_ext}$major'
15813      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15814      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15815      ;;
15816    *)
15817     shrext_cmds='.sl'
15818     dynamic_linker="$host_os dld.sl"
15819     shlibpath_var=SHLIB_PATH
15820     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15821     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15822     soname_spec='${libname}${release}${shared_ext}$major'
15823     ;;
15824   esac
15825   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15826   postinstall_cmds='chmod 555 $lib'
15827   ;;
15828
15829 interix3*)
15830   version_type=linux
15831   need_lib_prefix=no
15832   need_version=no
15833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15834   soname_spec='${libname}${release}${shared_ext}$major'
15835   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15836   shlibpath_var=LD_LIBRARY_PATH
15837   shlibpath_overrides_runpath=no
15838   hardcode_into_libs=yes
15839   ;;
15840
15841 irix5* | irix6* | nonstopux*)
15842   case $host_os in
15843     nonstopux*) version_type=nonstopux ;;
15844     *)
15845         if test "$lt_cv_prog_gnu_ld" = yes; then
15846                 version_type=linux
15847         else
15848                 version_type=irix
15849         fi ;;
15850   esac
15851   need_lib_prefix=no
15852   need_version=no
15853   soname_spec='${libname}${release}${shared_ext}$major'
15854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15855   case $host_os in
15856   irix5* | nonstopux*)
15857     libsuff= shlibsuff=
15858     ;;
15859   *)
15860     case $LD in # libtool.m4 will add one of these switches to LD
15861     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15862       libsuff= shlibsuff= libmagic=32-bit;;
15863     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15864       libsuff=32 shlibsuff=N32 libmagic=N32;;
15865     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15866       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15867     *) libsuff= shlibsuff= libmagic=never-match;;
15868     esac
15869     ;;
15870   esac
15871   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15872   shlibpath_overrides_runpath=no
15873   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15874   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15875   hardcode_into_libs=yes
15876   ;;
15877
15878 # No shared lib support for Linux oldld, aout, or coff.
15879 linux*oldld* | linux*aout* | linux*coff*)
15880   dynamic_linker=no
15881   ;;
15882
15883 # This must be Linux ELF.
15884 linux*)
15885   version_type=linux
15886   need_lib_prefix=no
15887   need_version=no
15888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15889   soname_spec='${libname}${release}${shared_ext}$major'
15890   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15891   shlibpath_var=LD_LIBRARY_PATH
15892   shlibpath_overrides_runpath=no
15893   # This implies no fast_install, which is unacceptable.
15894   # Some rework will be needed to allow for fast_install
15895   # before this can be enabled.
15896   hardcode_into_libs=yes
15897
15898   # Append ld.so.conf contents to the search path
15899   if test -f /etc/ld.so.conf; then
15900     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' ' '`
15901     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15902   fi
15903
15904   # We used to test for /lib/ld.so.1 and disable shared libraries on
15905   # powerpc, because MkLinux only supported shared libraries with the
15906   # GNU dynamic linker.  Since this was broken with cross compilers,
15907   # most powerpc-linux boxes support dynamic linking these days and
15908   # people can always --disable-shared, the test was removed, and we
15909   # assume the GNU/Linux dynamic linker is in use.
15910   dynamic_linker='GNU/Linux ld.so'
15911   ;;
15912
15913 knetbsd*-gnu)
15914   version_type=linux
15915   need_lib_prefix=no
15916   need_version=no
15917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15918   soname_spec='${libname}${release}${shared_ext}$major'
15919   shlibpath_var=LD_LIBRARY_PATH
15920   shlibpath_overrides_runpath=no
15921   hardcode_into_libs=yes
15922   dynamic_linker='GNU ld.so'
15923   ;;
15924
15925 netbsd*)
15926   version_type=sunos
15927   need_lib_prefix=no
15928   need_version=no
15929   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15930     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15931     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15932     dynamic_linker='NetBSD (a.out) ld.so'
15933   else
15934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15935     soname_spec='${libname}${release}${shared_ext}$major'
15936     dynamic_linker='NetBSD ld.elf_so'
15937   fi
15938   shlibpath_var=LD_LIBRARY_PATH
15939   shlibpath_overrides_runpath=yes
15940   hardcode_into_libs=yes
15941   ;;
15942
15943 newsos6)
15944   version_type=linux
15945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946   shlibpath_var=LD_LIBRARY_PATH
15947   shlibpath_overrides_runpath=yes
15948   ;;
15949
15950 nto-qnx*)
15951   version_type=linux
15952   need_lib_prefix=no
15953   need_version=no
15954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955   soname_spec='${libname}${release}${shared_ext}$major'
15956   shlibpath_var=LD_LIBRARY_PATH
15957   shlibpath_overrides_runpath=yes
15958   ;;
15959
15960 openbsd*)
15961   version_type=sunos
15962   sys_lib_dlsearch_path_spec="/usr/lib"
15963   need_lib_prefix=no
15964   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15965   case $host_os in
15966     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15967     *)                         need_version=no  ;;
15968   esac
15969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15970   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15971   shlibpath_var=LD_LIBRARY_PATH
15972   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15973     case $host_os in
15974       openbsd2.[89] | openbsd2.[89].*)
15975         shlibpath_overrides_runpath=no
15976         ;;
15977       *)
15978         shlibpath_overrides_runpath=yes
15979         ;;
15980       esac
15981   else
15982     shlibpath_overrides_runpath=yes
15983   fi
15984   ;;
15985
15986 os2*)
15987   libname_spec='$name'
15988   shrext_cmds=".dll"
15989   need_lib_prefix=no
15990   library_names_spec='$libname${shared_ext} $libname.a'
15991   dynamic_linker='OS/2 ld.exe'
15992   shlibpath_var=LIBPATH
15993   ;;
15994
15995 osf3* | osf4* | osf5*)
15996   version_type=osf
15997   need_lib_prefix=no
15998   need_version=no
15999   soname_spec='${libname}${release}${shared_ext}$major'
16000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001   shlibpath_var=LD_LIBRARY_PATH
16002   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16003   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16004   ;;
16005
16006 solaris*)
16007   version_type=linux
16008   need_lib_prefix=no
16009   need_version=no
16010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011   soname_spec='${libname}${release}${shared_ext}$major'
16012   shlibpath_var=LD_LIBRARY_PATH
16013   shlibpath_overrides_runpath=yes
16014   hardcode_into_libs=yes
16015   # ldd complains unless libraries are executable
16016   postinstall_cmds='chmod +x $lib'
16017   ;;
16018
16019 sunos4*)
16020   version_type=sunos
16021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16022   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16023   shlibpath_var=LD_LIBRARY_PATH
16024   shlibpath_overrides_runpath=yes
16025   if test "$with_gnu_ld" = yes; then
16026     need_lib_prefix=no
16027   fi
16028   need_version=yes
16029   ;;
16030
16031 sysv4 | sysv4.3*)
16032   version_type=linux
16033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034   soname_spec='${libname}${release}${shared_ext}$major'
16035   shlibpath_var=LD_LIBRARY_PATH
16036   case $host_vendor in
16037     sni)
16038       shlibpath_overrides_runpath=no
16039       need_lib_prefix=no
16040       export_dynamic_flag_spec='${wl}-Blargedynsym'
16041       runpath_var=LD_RUN_PATH
16042       ;;
16043     siemens)
16044       need_lib_prefix=no
16045       ;;
16046     motorola)
16047       need_lib_prefix=no
16048       need_version=no
16049       shlibpath_overrides_runpath=no
16050       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16051       ;;
16052   esac
16053   ;;
16054
16055 sysv4*MP*)
16056   if test -d /usr/nec ;then
16057     version_type=linux
16058     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16059     soname_spec='$libname${shared_ext}.$major'
16060     shlibpath_var=LD_LIBRARY_PATH
16061   fi
16062   ;;
16063
16064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16065   version_type=freebsd-elf
16066   need_lib_prefix=no
16067   need_version=no
16068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16069   soname_spec='${libname}${release}${shared_ext}$major'
16070   shlibpath_var=LD_LIBRARY_PATH
16071   hardcode_into_libs=yes
16072   if test "$with_gnu_ld" = yes; then
16073     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16074     shlibpath_overrides_runpath=no
16075   else
16076     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16077     shlibpath_overrides_runpath=yes
16078     case $host_os in
16079       sco3.2v5*)
16080         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16081         ;;
16082     esac
16083   fi
16084   sys_lib_dlsearch_path_spec='/usr/lib'
16085   ;;
16086
16087 uts4*)
16088   version_type=linux
16089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090   soname_spec='${libname}${release}${shared_ext}$major'
16091   shlibpath_var=LD_LIBRARY_PATH
16092   ;;
16093
16094 *)
16095   dynamic_linker=no
16096   ;;
16097 esac
16098 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16099 echo "${ECHO_T}$dynamic_linker" >&6; }
16100 test "$dynamic_linker" = no && can_build_shared=no
16101
16102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16103 if test "$GCC" = yes; then
16104   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16105 fi
16106
16107 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16108 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16109 hardcode_action_F77=
16110 if test -n "$hardcode_libdir_flag_spec_F77" || \
16111    test -n "$runpath_var_F77" || \
16112    test "X$hardcode_automatic_F77" = "Xyes" ; then
16113
16114   # We can hardcode non-existant directories.
16115   if test "$hardcode_direct_F77" != no &&
16116      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16117      # have to relink, otherwise we might link with an installed library
16118      # when we should be linking with a yet-to-be-installed one
16119      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16120      test "$hardcode_minus_L_F77" != no; then
16121     # Linking always hardcodes the temporary library directory.
16122     hardcode_action_F77=relink
16123   else
16124     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16125     hardcode_action_F77=immediate
16126   fi
16127 else
16128   # We cannot hardcode anything, or else we can only hardcode existing
16129   # directories.
16130   hardcode_action_F77=unsupported
16131 fi
16132 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16133 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16134
16135 if test "$hardcode_action_F77" = relink; then
16136   # Fast installation is not supported
16137   enable_fast_install=no
16138 elif test "$shlibpath_overrides_runpath" = yes ||
16139      test "$enable_shared" = no; then
16140   # Fast installation is not necessary
16141   enable_fast_install=needless
16142 fi
16143
16144
16145 # The else clause should only fire when bootstrapping the
16146 # libtool distribution, otherwise you forgot to ship ltmain.sh
16147 # with your package, and you will get complaints that there are
16148 # no rules to generate ltmain.sh.
16149 if test -f "$ltmain"; then
16150   # See if we are running on zsh, and set the options which allow our commands through
16151   # without removal of \ escapes.
16152   if test -n "${ZSH_VERSION+set}" ; then
16153     setopt NO_GLOB_SUBST
16154   fi
16155   # Now quote all the things that may contain metacharacters while being
16156   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16157   # variables and quote the copies for generation of the libtool script.
16158   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16159     SED SHELL STRIP \
16160     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16161     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16162     deplibs_check_method reload_flag reload_cmds need_locks \
16163     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16164     lt_cv_sys_global_symbol_to_c_name_address \
16165     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16166     old_postinstall_cmds old_postuninstall_cmds \
16167     compiler_F77 \
16168     CC_F77 \
16169     LD_F77 \
16170     lt_prog_compiler_wl_F77 \
16171     lt_prog_compiler_pic_F77 \
16172     lt_prog_compiler_static_F77 \
16173     lt_prog_compiler_no_builtin_flag_F77 \
16174     export_dynamic_flag_spec_F77 \
16175     thread_safe_flag_spec_F77 \
16176     whole_archive_flag_spec_F77 \
16177     enable_shared_with_static_runtimes_F77 \
16178     old_archive_cmds_F77 \
16179     old_archive_from_new_cmds_F77 \
16180     predep_objects_F77 \
16181     postdep_objects_F77 \
16182     predeps_F77 \
16183     postdeps_F77 \
16184     compiler_lib_search_path_F77 \
16185     archive_cmds_F77 \
16186     archive_expsym_cmds_F77 \
16187     postinstall_cmds_F77 \
16188     postuninstall_cmds_F77 \
16189     old_archive_from_expsyms_cmds_F77 \
16190     allow_undefined_flag_F77 \
16191     no_undefined_flag_F77 \
16192     export_symbols_cmds_F77 \
16193     hardcode_libdir_flag_spec_F77 \
16194     hardcode_libdir_flag_spec_ld_F77 \
16195     hardcode_libdir_separator_F77 \
16196     hardcode_automatic_F77 \
16197     module_cmds_F77 \
16198     module_expsym_cmds_F77 \
16199     lt_cv_prog_compiler_c_o_F77 \
16200     exclude_expsyms_F77 \
16201     include_expsyms_F77; do
16202
16203     case $var in
16204     old_archive_cmds_F77 | \
16205     old_archive_from_new_cmds_F77 | \
16206     archive_cmds_F77 | \
16207     archive_expsym_cmds_F77 | \
16208     module_cmds_F77 | \
16209     module_expsym_cmds_F77 | \
16210     old_archive_from_expsyms_cmds_F77 | \
16211     export_symbols_cmds_F77 | \
16212     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16213     postinstall_cmds | postuninstall_cmds | \
16214     old_postinstall_cmds | old_postuninstall_cmds | \
16215     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16216       # Double-quote double-evaled strings.
16217       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16218       ;;
16219     *)
16220       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16221       ;;
16222     esac
16223   done
16224
16225   case $lt_echo in
16226   *'\$0 --fallback-echo"')
16227     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16228     ;;
16229   esac
16230
16231 cfgfile="$ofile"
16232
16233   cat <<__EOF__ >> "$cfgfile"
16234 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16235
16236 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16237
16238 # Shell to use when invoking shell scripts.
16239 SHELL=$lt_SHELL
16240
16241 # Whether or not to build shared libraries.
16242 build_libtool_libs=$enable_shared
16243
16244 # Whether or not to build static libraries.
16245 build_old_libs=$enable_static
16246
16247 # Whether or not to add -lc for building shared libraries.
16248 build_libtool_need_lc=$archive_cmds_need_lc_F77
16249
16250 # Whether or not to disallow shared libs when runtime libs are static
16251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16252
16253 # Whether or not to optimize for fast installation.
16254 fast_install=$enable_fast_install
16255
16256 # The host system.
16257 host_alias=$host_alias
16258 host=$host
16259 host_os=$host_os
16260
16261 # The build system.
16262 build_alias=$build_alias
16263 build=$build
16264 build_os=$build_os
16265
16266 # An echo program that does not interpret backslashes.
16267 echo=$lt_echo
16268
16269 # The archiver.
16270 AR=$lt_AR
16271 AR_FLAGS=$lt_AR_FLAGS
16272
16273 # A C compiler.
16274 LTCC=$lt_LTCC
16275
16276 # LTCC compiler flags.
16277 LTCFLAGS=$lt_LTCFLAGS
16278
16279 # A language-specific compiler.
16280 CC=$lt_compiler_F77
16281
16282 # Is the compiler the GNU C compiler?
16283 with_gcc=$GCC_F77
16284
16285 # An ERE matcher.
16286 EGREP=$lt_EGREP
16287
16288 # The linker used to build libraries.
16289 LD=$lt_LD_F77
16290
16291 # Whether we need hard or soft links.
16292 LN_S=$lt_LN_S
16293
16294 # A BSD-compatible nm program.
16295 NM=$lt_NM
16296
16297 # A symbol stripping program
16298 STRIP=$lt_STRIP
16299
16300 # Used to examine libraries when file_magic_cmd begins "file"
16301 MAGIC_CMD=$MAGIC_CMD
16302
16303 # Used on cygwin: DLL creation program.
16304 DLLTOOL="$DLLTOOL"
16305
16306 # Used on cygwin: object dumper.
16307 OBJDUMP="$OBJDUMP"
16308
16309 # Used on cygwin: assembler.
16310 AS="$AS"
16311
16312 # The name of the directory that contains temporary libtool files.
16313 objdir=$objdir
16314
16315 # How to create reloadable object files.
16316 reload_flag=$lt_reload_flag
16317 reload_cmds=$lt_reload_cmds
16318
16319 # How to pass a linker flag through the compiler.
16320 wl=$lt_lt_prog_compiler_wl_F77
16321
16322 # Object file suffix (normally "o").
16323 objext="$ac_objext"
16324
16325 # Old archive suffix (normally "a").
16326 libext="$libext"
16327
16328 # Shared library suffix (normally ".so").
16329 shrext_cmds='$shrext_cmds'
16330
16331 # Executable file suffix (normally "").
16332 exeext="$exeext"
16333
16334 # Additional compiler flags for building library objects.
16335 pic_flag=$lt_lt_prog_compiler_pic_F77
16336 pic_mode=$pic_mode
16337
16338 # What is the maximum length of a command?
16339 max_cmd_len=$lt_cv_sys_max_cmd_len
16340
16341 # Does compiler simultaneously support -c and -o options?
16342 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16343
16344 # Must we lock files when doing compilation?
16345 need_locks=$lt_need_locks
16346
16347 # Do we need the lib prefix for modules?
16348 need_lib_prefix=$need_lib_prefix
16349
16350 # Do we need a version for libraries?
16351 need_version=$need_version
16352
16353 # Whether dlopen is supported.
16354 dlopen_support=$enable_dlopen
16355
16356 # Whether dlopen of programs is supported.
16357 dlopen_self=$enable_dlopen_self
16358
16359 # Whether dlopen of statically linked programs is supported.
16360 dlopen_self_static=$enable_dlopen_self_static
16361
16362 # Compiler flag to prevent dynamic linking.
16363 link_static_flag=$lt_lt_prog_compiler_static_F77
16364
16365 # Compiler flag to turn off builtin functions.
16366 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16367
16368 # Compiler flag to allow reflexive dlopens.
16369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16370
16371 # Compiler flag to generate shared objects directly from archives.
16372 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16373
16374 # Compiler flag to generate thread-safe objects.
16375 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16376
16377 # Library versioning type.
16378 version_type=$version_type
16379
16380 # Format of library name prefix.
16381 libname_spec=$lt_libname_spec
16382
16383 # List of archive names.  First name is the real one, the rest are links.
16384 # The last name is the one that the linker finds with -lNAME.
16385 library_names_spec=$lt_library_names_spec
16386
16387 # The coded name of the library, if different from the real name.
16388 soname_spec=$lt_soname_spec
16389
16390 # Commands used to build and install an old-style archive.
16391 RANLIB=$lt_RANLIB
16392 old_archive_cmds=$lt_old_archive_cmds_F77
16393 old_postinstall_cmds=$lt_old_postinstall_cmds
16394 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16395
16396 # Create an old-style archive from a shared archive.
16397 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16398
16399 # Create a temporary old-style archive to link instead of a shared archive.
16400 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16401
16402 # Commands used to build and install a shared archive.
16403 archive_cmds=$lt_archive_cmds_F77
16404 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16405 postinstall_cmds=$lt_postinstall_cmds
16406 postuninstall_cmds=$lt_postuninstall_cmds
16407
16408 # Commands used to build a loadable module (assumed same as above if empty)
16409 module_cmds=$lt_module_cmds_F77
16410 module_expsym_cmds=$lt_module_expsym_cmds_F77
16411
16412 # Commands to strip libraries.
16413 old_striplib=$lt_old_striplib
16414 striplib=$lt_striplib
16415
16416 # Dependencies to place before the objects being linked to create a
16417 # shared library.
16418 predep_objects=$lt_predep_objects_F77
16419
16420 # Dependencies to place after the objects being linked to create a
16421 # shared library.
16422 postdep_objects=$lt_postdep_objects_F77
16423
16424 # Dependencies to place before the objects being linked to create a
16425 # shared library.
16426 predeps=$lt_predeps_F77
16427
16428 # Dependencies to place after the objects being linked to create a
16429 # shared library.
16430 postdeps=$lt_postdeps_F77
16431
16432 # The library search path used internally by the compiler when linking
16433 # a shared library.
16434 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16435
16436 # Method to check whether dependent libraries are shared objects.
16437 deplibs_check_method=$lt_deplibs_check_method
16438
16439 # Command to use when deplibs_check_method == file_magic.
16440 file_magic_cmd=$lt_file_magic_cmd
16441
16442 # Flag that allows shared libraries with undefined symbols to be built.
16443 allow_undefined_flag=$lt_allow_undefined_flag_F77
16444
16445 # Flag that forces no undefined symbols.
16446 no_undefined_flag=$lt_no_undefined_flag_F77
16447
16448 # Commands used to finish a libtool library installation in a directory.
16449 finish_cmds=$lt_finish_cmds
16450
16451 # Same as above, but a single script fragment to be evaled but not shown.
16452 finish_eval=$lt_finish_eval
16453
16454 # Take the output of nm and produce a listing of raw symbols and C names.
16455 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16456
16457 # Transform the output of nm in a proper C declaration
16458 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16459
16460 # Transform the output of nm in a C name address pair
16461 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16462
16463 # This is the shared library runtime path variable.
16464 runpath_var=$runpath_var
16465
16466 # This is the shared library path variable.
16467 shlibpath_var=$shlibpath_var
16468
16469 # Is shlibpath searched before the hard-coded library search path?
16470 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16471
16472 # How to hardcode a shared library path into an executable.
16473 hardcode_action=$hardcode_action_F77
16474
16475 # Whether we should hardcode library paths into libraries.
16476 hardcode_into_libs=$hardcode_into_libs
16477
16478 # Flag to hardcode \$libdir into a binary during linking.
16479 # This must work even if \$libdir does not exist.
16480 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16481
16482 # If ld is used when linking, flag to hardcode \$libdir into
16483 # a binary during linking. This must work even if \$libdir does
16484 # not exist.
16485 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16486
16487 # Whether we need a single -rpath flag with a separated argument.
16488 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16489
16490 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16491 # resulting binary.
16492 hardcode_direct=$hardcode_direct_F77
16493
16494 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16495 # resulting binary.
16496 hardcode_minus_L=$hardcode_minus_L_F77
16497
16498 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16499 # the resulting binary.
16500 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16501
16502 # Set to yes if building a shared library automatically hardcodes DIR into the library
16503 # and all subsequent libraries and executables linked against it.
16504 hardcode_automatic=$hardcode_automatic_F77
16505
16506 # Variables whose values should be saved in libtool wrapper scripts and
16507 # restored at relink time.
16508 variables_saved_for_relink="$variables_saved_for_relink"
16509
16510 # Whether libtool must link a program against all its dependency libraries.
16511 link_all_deplibs=$link_all_deplibs_F77
16512
16513 # Compile-time system search path for libraries
16514 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16515
16516 # Run-time system search path for libraries
16517 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16518
16519 # Fix the shell variable \$srcfile for the compiler.
16520 fix_srcfile_path="$fix_srcfile_path_F77"
16521
16522 # Set to yes if exported symbols are required.
16523 always_export_symbols=$always_export_symbols_F77
16524
16525 # The commands to list exported symbols.
16526 export_symbols_cmds=$lt_export_symbols_cmds_F77
16527
16528 # The commands to extract the exported symbol list from a shared archive.
16529 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16530
16531 # Symbols that should not be listed in the preloaded symbols.
16532 exclude_expsyms=$lt_exclude_expsyms_F77
16533
16534 # Symbols that must always be exported.
16535 include_expsyms=$lt_include_expsyms_F77
16536
16537 # ### END LIBTOOL TAG CONFIG: $tagname
16538
16539 __EOF__
16540
16541
16542 else
16543   # If there is no Makefile yet, we rely on a make rule to execute
16544   # `config.status --recheck' to rerun these tests and create the
16545   # libtool script then.
16546   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16547   if test -f "$ltmain_in"; then
16548     test -f Makefile && make "$ltmain"
16549   fi
16550 fi
16551
16552
16553 ac_ext=c
16554 ac_cpp='$CPP $CPPFLAGS'
16555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16558
16559 CC="$lt_save_CC"
16560
16561         else
16562           tagname=""
16563         fi
16564         ;;
16565
16566       GCJ)
16567         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16568
16569
16570 # Source file extension for Java test sources.
16571 ac_ext=java
16572
16573 # Object file extension for compiled Java test sources.
16574 objext=o
16575 objext_GCJ=$objext
16576
16577 # Code to be used in simple compile tests
16578 lt_simple_compile_test_code="class foo {}\n"
16579
16580 # Code to be used in simple link tests
16581 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16582
16583 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16584
16585 # If no C compiler was specified, use CC.
16586 LTCC=${LTCC-"$CC"}
16587
16588 # If no C compiler flags were specified, use CFLAGS.
16589 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16590
16591 # Allow CC to be a program name with arguments.
16592 compiler=$CC
16593
16594
16595 # save warnings/boilerplate of simple test code
16596 ac_outfile=conftest.$ac_objext
16597 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16598 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16599 _lt_compiler_boilerplate=`cat conftest.err`
16600 $rm conftest*
16601
16602 ac_outfile=conftest.$ac_objext
16603 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16604 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16605 _lt_linker_boilerplate=`cat conftest.err`
16606 $rm conftest*
16607
16608
16609 # Allow CC to be a program name with arguments.
16610 lt_save_CC="$CC"
16611 CC=${GCJ-"gcj"}
16612 compiler=$CC
16613 compiler_GCJ=$CC
16614 for cc_temp in $compiler""; do
16615   case $cc_temp in
16616     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16617     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16618     \-*) ;;
16619     *) break;;
16620   esac
16621 done
16622 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16623
16624
16625 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16626 archive_cmds_need_lc_GCJ=no
16627
16628 old_archive_cmds_GCJ=$old_archive_cmds
16629
16630 ## CAVEAT EMPTOR:
16631 ## There is no encapsulation within the following macros, do not change
16632 ## the running order or otherwise move them around unless you know exactly
16633 ## what you are doing...
16634
16635 lt_prog_compiler_no_builtin_flag_GCJ=
16636
16637 if test "$GCC" = yes; then
16638   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16639
16640
16641 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16642 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16643 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16644   echo $ECHO_N "(cached) $ECHO_C" >&6
16645 else
16646   lt_cv_prog_compiler_rtti_exceptions=no
16647   ac_outfile=conftest.$ac_objext
16648    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16649    lt_compiler_flag="-fno-rtti -fno-exceptions"
16650    # Insert the option either (1) after the last *FLAGS variable, or
16651    # (2) before a word containing "conftest.", or (3) at the end.
16652    # Note that $ac_compile itself does not contain backslashes and begins
16653    # with a dollar sign (not a hyphen), so the echo should work correctly.
16654    # The option is referenced via a variable to avoid confusing sed.
16655    lt_compile=`echo "$ac_compile" | $SED \
16656    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16657    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16658    -e 's:$: $lt_compiler_flag:'`
16659    (eval echo "\"\$as_me:16659: $lt_compile\"" >&5)
16660    (eval "$lt_compile" 2>conftest.err)
16661    ac_status=$?
16662    cat conftest.err >&5
16663    echo "$as_me:16663: \$? = $ac_status" >&5
16664    if (exit $ac_status) && test -s "$ac_outfile"; then
16665      # The compiler can only warn and ignore the option if not recognized
16666      # So say no if there are warnings other than the usual output.
16667      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16668      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16669      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16670        lt_cv_prog_compiler_rtti_exceptions=yes
16671      fi
16672    fi
16673    $rm conftest*
16674
16675 fi
16676 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16677 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16678
16679 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16680     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16681 else
16682     :
16683 fi
16684
16685 fi
16686
16687 lt_prog_compiler_wl_GCJ=
16688 lt_prog_compiler_pic_GCJ=
16689 lt_prog_compiler_static_GCJ=
16690
16691 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16692 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16693
16694   if test "$GCC" = yes; then
16695     lt_prog_compiler_wl_GCJ='-Wl,'
16696     lt_prog_compiler_static_GCJ='-static'
16697
16698     case $host_os in
16699       aix*)
16700       # All AIX code is PIC.
16701       if test "$host_cpu" = ia64; then
16702         # AIX 5 now supports IA64 processor
16703         lt_prog_compiler_static_GCJ='-Bstatic'
16704       fi
16705       ;;
16706
16707     amigaos*)
16708       # FIXME: we need at least 68020 code to build shared libraries, but
16709       # adding the `-m68020' flag to GCC prevents building anything better,
16710       # like `-m68040'.
16711       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16712       ;;
16713
16714     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16715       # PIC is the default for these OSes.
16716       ;;
16717
16718     mingw* | pw32* | os2*)
16719       # This hack is so that the source file can tell whether it is being
16720       # built for inclusion in a dll (and should export symbols for example).
16721       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16722       ;;
16723
16724     darwin* | rhapsody*)
16725       # PIC is the default on this platform
16726       # Common symbols not allowed in MH_DYLIB files
16727       lt_prog_compiler_pic_GCJ='-fno-common'
16728       ;;
16729
16730     interix3*)
16731       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16732       # Instead, we relocate shared libraries at runtime.
16733       ;;
16734
16735     msdosdjgpp*)
16736       # Just because we use GCC doesn't mean we suddenly get shared libraries
16737       # on systems that don't support them.
16738       lt_prog_compiler_can_build_shared_GCJ=no
16739       enable_shared=no
16740       ;;
16741
16742     sysv4*MP*)
16743       if test -d /usr/nec; then
16744         lt_prog_compiler_pic_GCJ=-Kconform_pic
16745       fi
16746       ;;
16747
16748     hpux*)
16749       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16750       # not for PA HP-UX.
16751       case $host_cpu in
16752       hppa*64*|ia64*)
16753         # +Z the default
16754         ;;
16755       *)
16756         lt_prog_compiler_pic_GCJ='-fPIC'
16757         ;;
16758       esac
16759       ;;
16760
16761     *)
16762       lt_prog_compiler_pic_GCJ='-fPIC'
16763       ;;
16764     esac
16765   else
16766     # PORTME Check for flag to pass linker flags through the system compiler.
16767     case $host_os in
16768     aix*)
16769       lt_prog_compiler_wl_GCJ='-Wl,'
16770       if test "$host_cpu" = ia64; then
16771         # AIX 5 now supports IA64 processor
16772         lt_prog_compiler_static_GCJ='-Bstatic'
16773       else
16774         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16775       fi
16776       ;;
16777       darwin*)
16778         # PIC is the default on this platform
16779         # Common symbols not allowed in MH_DYLIB files
16780        case $cc_basename in
16781          xlc*)
16782          lt_prog_compiler_pic_GCJ='-qnocommon'
16783          lt_prog_compiler_wl_GCJ='-Wl,'
16784          ;;
16785        esac
16786        ;;
16787
16788     mingw* | pw32* | os2*)
16789       # This hack is so that the source file can tell whether it is being
16790       # built for inclusion in a dll (and should export symbols for example).
16791       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16792       ;;
16793
16794     hpux9* | hpux10* | hpux11*)
16795       lt_prog_compiler_wl_GCJ='-Wl,'
16796       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16797       # not for PA HP-UX.
16798       case $host_cpu in
16799       hppa*64*|ia64*)
16800         # +Z the default
16801         ;;
16802       *)
16803         lt_prog_compiler_pic_GCJ='+Z'
16804         ;;
16805       esac
16806       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16807       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16808       ;;
16809
16810     irix5* | irix6* | nonstopux*)
16811       lt_prog_compiler_wl_GCJ='-Wl,'
16812       # PIC (with -KPIC) is the default.
16813       lt_prog_compiler_static_GCJ='-non_shared'
16814       ;;
16815
16816     newsos6)
16817       lt_prog_compiler_pic_GCJ='-KPIC'
16818       lt_prog_compiler_static_GCJ='-Bstatic'
16819       ;;
16820
16821     linux*)
16822       case $cc_basename in
16823       icc* | ecc*)
16824         lt_prog_compiler_wl_GCJ='-Wl,'
16825         lt_prog_compiler_pic_GCJ='-KPIC'
16826         lt_prog_compiler_static_GCJ='-static'
16827         ;;
16828       pgcc* | pgf77* | pgf90* | pgf95*)
16829         # Portland Group compilers (*not* the Pentium gcc compiler,
16830         # which looks to be a dead project)
16831         lt_prog_compiler_wl_GCJ='-Wl,'
16832         lt_prog_compiler_pic_GCJ='-fpic'
16833         lt_prog_compiler_static_GCJ='-Bstatic'
16834         ;;
16835       ccc*)
16836         lt_prog_compiler_wl_GCJ='-Wl,'
16837         # All Alpha code is PIC.
16838         lt_prog_compiler_static_GCJ='-non_shared'
16839         ;;
16840       esac
16841       ;;
16842
16843     osf3* | osf4* | osf5*)
16844       lt_prog_compiler_wl_GCJ='-Wl,'
16845       # All OSF/1 code is PIC.
16846       lt_prog_compiler_static_GCJ='-non_shared'
16847       ;;
16848
16849     solaris*)
16850       lt_prog_compiler_pic_GCJ='-KPIC'
16851       lt_prog_compiler_static_GCJ='-Bstatic'
16852       case $cc_basename in
16853       f77* | f90* | f95*)
16854         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16855       *)
16856         lt_prog_compiler_wl_GCJ='-Wl,';;
16857       esac
16858       ;;
16859
16860     sunos4*)
16861       lt_prog_compiler_wl_GCJ='-Qoption ld '
16862       lt_prog_compiler_pic_GCJ='-PIC'
16863       lt_prog_compiler_static_GCJ='-Bstatic'
16864       ;;
16865
16866     sysv4 | sysv4.2uw2* | sysv4.3*)
16867       lt_prog_compiler_wl_GCJ='-Wl,'
16868       lt_prog_compiler_pic_GCJ='-KPIC'
16869       lt_prog_compiler_static_GCJ='-Bstatic'
16870       ;;
16871
16872     sysv4*MP*)
16873       if test -d /usr/nec ;then
16874         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16875         lt_prog_compiler_static_GCJ='-Bstatic'
16876       fi
16877       ;;
16878
16879     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16880       lt_prog_compiler_wl_GCJ='-Wl,'
16881       lt_prog_compiler_pic_GCJ='-KPIC'
16882       lt_prog_compiler_static_GCJ='-Bstatic'
16883       ;;
16884
16885     unicos*)
16886       lt_prog_compiler_wl_GCJ='-Wl,'
16887       lt_prog_compiler_can_build_shared_GCJ=no
16888       ;;
16889
16890     uts4*)
16891       lt_prog_compiler_pic_GCJ='-pic'
16892       lt_prog_compiler_static_GCJ='-Bstatic'
16893       ;;
16894
16895     *)
16896       lt_prog_compiler_can_build_shared_GCJ=no
16897       ;;
16898     esac
16899   fi
16900
16901 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16902 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16903
16904 #
16905 # Check to make sure the PIC flag actually works.
16906 #
16907 if test -n "$lt_prog_compiler_pic_GCJ"; then
16908
16909 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16910 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16911 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16912   echo $ECHO_N "(cached) $ECHO_C" >&6
16913 else
16914   lt_prog_compiler_pic_works_GCJ=no
16915   ac_outfile=conftest.$ac_objext
16916    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16917    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16918    # Insert the option either (1) after the last *FLAGS variable, or
16919    # (2) before a word containing "conftest.", or (3) at the end.
16920    # Note that $ac_compile itself does not contain backslashes and begins
16921    # with a dollar sign (not a hyphen), so the echo should work correctly.
16922    # The option is referenced via a variable to avoid confusing sed.
16923    lt_compile=`echo "$ac_compile" | $SED \
16924    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16925    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16926    -e 's:$: $lt_compiler_flag:'`
16927    (eval echo "\"\$as_me:16927: $lt_compile\"" >&5)
16928    (eval "$lt_compile" 2>conftest.err)
16929    ac_status=$?
16930    cat conftest.err >&5
16931    echo "$as_me:16931: \$? = $ac_status" >&5
16932    if (exit $ac_status) && test -s "$ac_outfile"; then
16933      # The compiler can only warn and ignore the option if not recognized
16934      # So say no if there are warnings other than the usual output.
16935      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16936      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16937      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16938        lt_prog_compiler_pic_works_GCJ=yes
16939      fi
16940    fi
16941    $rm conftest*
16942
16943 fi
16944 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16945 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16946
16947 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16948     case $lt_prog_compiler_pic_GCJ in
16949      "" | " "*) ;;
16950      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16951      esac
16952 else
16953     lt_prog_compiler_pic_GCJ=
16954      lt_prog_compiler_can_build_shared_GCJ=no
16955 fi
16956
16957 fi
16958 case $host_os in
16959   # For platforms which do not support PIC, -DPIC is meaningless:
16960   *djgpp*)
16961     lt_prog_compiler_pic_GCJ=
16962     ;;
16963   *)
16964     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16965     ;;
16966 esac
16967
16968 #
16969 # Check to make sure the static flag actually works.
16970 #
16971 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16972 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16973 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16974 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16975   echo $ECHO_N "(cached) $ECHO_C" >&6
16976 else
16977   lt_prog_compiler_static_works_GCJ=no
16978    save_LDFLAGS="$LDFLAGS"
16979    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16980    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16981    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16982      # The linker can only warn and ignore the option if not recognized
16983      # So say no if there are warnings
16984      if test -s conftest.err; then
16985        # Append any errors to the config.log.
16986        cat conftest.err 1>&5
16987        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16988        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16989        if diff conftest.exp conftest.er2 >/dev/null; then
16990          lt_prog_compiler_static_works_GCJ=yes
16991        fi
16992      else
16993        lt_prog_compiler_static_works_GCJ=yes
16994      fi
16995    fi
16996    $rm conftest*
16997    LDFLAGS="$save_LDFLAGS"
16998
16999 fi
17000 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17001 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17002
17003 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17004     :
17005 else
17006     lt_prog_compiler_static_GCJ=
17007 fi
17008
17009
17010 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17011 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17012 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17013   echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17015   lt_cv_prog_compiler_c_o_GCJ=no
17016    $rm -r conftest 2>/dev/null
17017    mkdir conftest
17018    cd conftest
17019    mkdir out
17020    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17021
17022    lt_compiler_flag="-o out/conftest2.$ac_objext"
17023    # Insert the option either (1) after the last *FLAGS variable, or
17024    # (2) before a word containing "conftest.", or (3) at the end.
17025    # Note that $ac_compile itself does not contain backslashes and begins
17026    # with a dollar sign (not a hyphen), so the echo should work correctly.
17027    lt_compile=`echo "$ac_compile" | $SED \
17028    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17029    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17030    -e 's:$: $lt_compiler_flag:'`
17031    (eval echo "\"\$as_me:17031: $lt_compile\"" >&5)
17032    (eval "$lt_compile" 2>out/conftest.err)
17033    ac_status=$?
17034    cat out/conftest.err >&5
17035    echo "$as_me:17035: \$? = $ac_status" >&5
17036    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17037    then
17038      # The compiler can only warn and ignore the option if not recognized
17039      # So say no if there are warnings
17040      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17041      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17042      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17043        lt_cv_prog_compiler_c_o_GCJ=yes
17044      fi
17045    fi
17046    chmod u+w . 2>&5
17047    $rm conftest*
17048    # SGI C++ compiler will create directory out/ii_files/ for
17049    # template instantiation
17050    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17051    $rm out/* && rmdir out
17052    cd ..
17053    rmdir conftest
17054    $rm conftest*
17055
17056 fi
17057 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17058 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17059
17060
17061 hard_links="nottested"
17062 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17063   # do not overwrite the value of need_locks provided by the user
17064   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17065 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17066   hard_links=yes
17067   $rm conftest*
17068   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17069   touch conftest.a
17070   ln conftest.a conftest.b 2>&5 || hard_links=no
17071   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17072   { echo "$as_me:$LINENO: result: $hard_links" >&5
17073 echo "${ECHO_T}$hard_links" >&6; }
17074   if test "$hard_links" = no; then
17075     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17076 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17077     need_locks=warn
17078   fi
17079 else
17080   need_locks=no
17081 fi
17082
17083 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17084 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17085
17086   runpath_var=
17087   allow_undefined_flag_GCJ=
17088   enable_shared_with_static_runtimes_GCJ=no
17089   archive_cmds_GCJ=
17090   archive_expsym_cmds_GCJ=
17091   old_archive_From_new_cmds_GCJ=
17092   old_archive_from_expsyms_cmds_GCJ=
17093   export_dynamic_flag_spec_GCJ=
17094   whole_archive_flag_spec_GCJ=
17095   thread_safe_flag_spec_GCJ=
17096   hardcode_libdir_flag_spec_GCJ=
17097   hardcode_libdir_flag_spec_ld_GCJ=
17098   hardcode_libdir_separator_GCJ=
17099   hardcode_direct_GCJ=no
17100   hardcode_minus_L_GCJ=no
17101   hardcode_shlibpath_var_GCJ=unsupported
17102   link_all_deplibs_GCJ=unknown
17103   hardcode_automatic_GCJ=no
17104   module_cmds_GCJ=
17105   module_expsym_cmds_GCJ=
17106   always_export_symbols_GCJ=no
17107   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17108   # include_expsyms should be a list of space-separated symbols to be *always*
17109   # included in the symbol list
17110   include_expsyms_GCJ=
17111   # exclude_expsyms can be an extended regexp of symbols to exclude
17112   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17113   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17114   # as well as any symbol that contains `d'.
17115   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17116   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17117   # platforms (ab)use it in PIC code, but their linkers get confused if
17118   # the symbol is explicitly referenced.  Since portable code cannot
17119   # rely on this symbol name, it's probably fine to never include it in
17120   # preloaded symbol tables.
17121   extract_expsyms_cmds=
17122   # Just being paranoid about ensuring that cc_basename is set.
17123   for cc_temp in $compiler""; do
17124   case $cc_temp in
17125     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17126     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17127     \-*) ;;
17128     *) break;;
17129   esac
17130 done
17131 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17132
17133   case $host_os in
17134   cygwin* | mingw* | pw32*)
17135     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17136     # When not using gcc, we currently assume that we are using
17137     # Microsoft Visual C++.
17138     if test "$GCC" != yes; then
17139       with_gnu_ld=no
17140     fi
17141     ;;
17142   interix*)
17143     # we just hope/assume this is gcc and not c89 (= MSVC++)
17144     with_gnu_ld=yes
17145     ;;
17146   openbsd*)
17147     with_gnu_ld=no
17148     ;;
17149   esac
17150
17151   ld_shlibs_GCJ=yes
17152   if test "$with_gnu_ld" = yes; then
17153     # If archive_cmds runs LD, not CC, wlarc should be empty
17154     wlarc='${wl}'
17155
17156     # Set some defaults for GNU ld with shared library support. These
17157     # are reset later if shared libraries are not supported. Putting them
17158     # here allows them to be overridden if necessary.
17159     runpath_var=LD_RUN_PATH
17160     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17161     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17162     # ancient GNU ld didn't support --whole-archive et. al.
17163     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17164         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17165       else
17166         whole_archive_flag_spec_GCJ=
17167     fi
17168     supports_anon_versioning=no
17169     case `$LD -v 2>/dev/null` in
17170       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17171       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17172       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17173       *\ 2.11.*) ;; # other 2.11 versions
17174       *) supports_anon_versioning=yes ;;
17175     esac
17176
17177     # See if GNU ld supports shared libraries.
17178     case $host_os in
17179     aix3* | aix4* | aix5*)
17180       # On AIX/PPC, the GNU linker is very broken
17181       if test "$host_cpu" != ia64; then
17182         ld_shlibs_GCJ=no
17183         cat <<EOF 1>&2
17184
17185 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17186 *** to be unable to reliably create shared libraries on AIX.
17187 *** Therefore, libtool is disabling shared libraries support.  If you
17188 *** really care for shared libraries, you may want to modify your PATH
17189 *** so that a non-GNU linker is found, and then restart.
17190
17191 EOF
17192       fi
17193       ;;
17194
17195     amigaos*)
17196       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)'
17197       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17198       hardcode_minus_L_GCJ=yes
17199
17200       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17201       # that the semantics of dynamic libraries on AmigaOS, at least up
17202       # to version 4, is to share data among multiple programs linked
17203       # with the same dynamic library.  Since this doesn't match the
17204       # behavior of shared libraries on other platforms, we can't use
17205       # them.
17206       ld_shlibs_GCJ=no
17207       ;;
17208
17209     beos*)
17210       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17211         allow_undefined_flag_GCJ=unsupported
17212         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17213         # support --undefined.  This deserves some investigation.  FIXME
17214         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17215       else
17216         ld_shlibs_GCJ=no
17217       fi
17218       ;;
17219
17220     cygwin* | mingw* | pw32*)
17221       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17222       # as there is no search path for DLLs.
17223       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17224       allow_undefined_flag_GCJ=unsupported
17225       always_export_symbols_GCJ=no
17226       enable_shared_with_static_runtimes_GCJ=yes
17227       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17228
17229       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17230         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17231         # If the export-symbols file already is a .def file (1st line
17232         # is EXPORTS), use it as is; otherwise, prepend...
17233         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17234           cp $export_symbols $output_objdir/$soname.def;
17235         else
17236           echo EXPORTS > $output_objdir/$soname.def;
17237           cat $export_symbols >> $output_objdir/$soname.def;
17238         fi~
17239         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17240       else
17241         ld_shlibs_GCJ=no
17242       fi
17243       ;;
17244
17245     interix3*)
17246       hardcode_direct_GCJ=no
17247       hardcode_shlibpath_var_GCJ=no
17248       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17249       export_dynamic_flag_spec_GCJ='${wl}-E'
17250       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17251       # Instead, shared libraries are loaded at an image base (0x10000000 by
17252       # default) and relocated if they conflict, which is a slow very memory
17253       # consuming and fragmenting process.  To avoid this, we pick a random,
17254       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17255       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17256       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'
17257       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'
17258       ;;
17259
17260     linux*)
17261       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17262         tmp_addflag=
17263         case $cc_basename,$host_cpu in
17264         pgcc*)                          # Portland Group C compiler
17265           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'
17266           tmp_addflag=' $pic_flag'
17267           ;;
17268         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17269           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'
17270           tmp_addflag=' $pic_flag -Mnomain' ;;
17271         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17272           tmp_addflag=' -i_dynamic' ;;
17273         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17274           tmp_addflag=' -i_dynamic -nofor_main' ;;
17275         ifc* | ifort*)                  # Intel Fortran compiler
17276           tmp_addflag=' -nofor_main' ;;
17277         esac
17278         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17279
17280         if test $supports_anon_versioning = yes; then
17281           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17282   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17283   $echo "local: *; };" >> $output_objdir/$libname.ver~
17284           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17285         fi
17286       else
17287         ld_shlibs_GCJ=no
17288       fi
17289       ;;
17290
17291     netbsd*)
17292       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17293         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17294         wlarc=
17295       else
17296         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17297         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17298       fi
17299       ;;
17300
17301     solaris*)
17302       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17303         ld_shlibs_GCJ=no
17304         cat <<EOF 1>&2
17305
17306 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17307 *** create shared libraries on Solaris systems.  Therefore, libtool
17308 *** is disabling shared libraries support.  We urge you to upgrade GNU
17309 *** binutils to release 2.9.1 or newer.  Another option is to modify
17310 *** your PATH or compiler configuration so that the native linker is
17311 *** used, and then restart.
17312
17313 EOF
17314       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17315         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17316         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17317       else
17318         ld_shlibs_GCJ=no
17319       fi
17320       ;;
17321
17322     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17323       case `$LD -v 2>&1` in
17324         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17325         ld_shlibs_GCJ=no
17326         cat <<_LT_EOF 1>&2
17327
17328 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17329 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17330 *** is disabling shared libraries support.  We urge you to upgrade GNU
17331 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17332 *** your PATH or compiler configuration so that the native linker is
17333 *** used, and then restart.
17334
17335 _LT_EOF
17336         ;;
17337         *)
17338           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17339             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17340             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17341             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17342           else
17343             ld_shlibs_GCJ=no
17344           fi
17345         ;;
17346       esac
17347       ;;
17348
17349     sunos4*)
17350       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17351       wlarc=
17352       hardcode_direct_GCJ=yes
17353       hardcode_shlibpath_var_GCJ=no
17354       ;;
17355
17356     *)
17357       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17358         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17359         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17360       else
17361         ld_shlibs_GCJ=no
17362       fi
17363       ;;
17364     esac
17365
17366     if test "$ld_shlibs_GCJ" = no; then
17367       runpath_var=
17368       hardcode_libdir_flag_spec_GCJ=
17369       export_dynamic_flag_spec_GCJ=
17370       whole_archive_flag_spec_GCJ=
17371     fi
17372   else
17373     # PORTME fill in a description of your system's linker (not GNU ld)
17374     case $host_os in
17375     aix3*)
17376       allow_undefined_flag_GCJ=unsupported
17377       always_export_symbols_GCJ=yes
17378       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'
17379       # Note: this linker hardcodes the directories in LIBPATH if there
17380       # are no directories specified by -L.
17381       hardcode_minus_L_GCJ=yes
17382       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17383         # Neither direct hardcoding nor static linking is supported with a
17384         # broken collect2.
17385         hardcode_direct_GCJ=unsupported
17386       fi
17387       ;;
17388
17389     aix4* | aix5*)
17390       if test "$host_cpu" = ia64; then
17391         # On IA64, the linker does run time linking by default, so we don't
17392         # have to do anything special.
17393         aix_use_runtimelinking=no
17394         exp_sym_flag='-Bexport'
17395         no_entry_flag=""
17396       else
17397         # If we're using GNU nm, then we don't want the "-C" option.
17398         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17399         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17400           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'
17401         else
17402           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'
17403         fi
17404         aix_use_runtimelinking=no
17405
17406         # Test if we are trying to use run time linking or normal
17407         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17408         # need to do runtime linking.
17409         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17410           for ld_flag in $LDFLAGS; do
17411           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17412             aix_use_runtimelinking=yes
17413             break
17414           fi
17415           done
17416           ;;
17417         esac
17418
17419         exp_sym_flag='-bexport'
17420         no_entry_flag='-bnoentry'
17421       fi
17422
17423       # When large executables or shared objects are built, AIX ld can
17424       # have problems creating the table of contents.  If linking a library
17425       # or program results in "error TOC overflow" add -mminimal-toc to
17426       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17427       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17428
17429       archive_cmds_GCJ=''
17430       hardcode_direct_GCJ=yes
17431       hardcode_libdir_separator_GCJ=':'
17432       link_all_deplibs_GCJ=yes
17433
17434       if test "$GCC" = yes; then
17435         case $host_os in aix4.[012]|aix4.[012].*)
17436         # We only want to do this on AIX 4.2 and lower, the check
17437         # below for broken collect2 doesn't work under 4.3+
17438           collect2name=`${CC} -print-prog-name=collect2`
17439           if test -f "$collect2name" && \
17440            strings "$collect2name" | grep resolve_lib_name >/dev/null
17441           then
17442           # We have reworked collect2
17443           hardcode_direct_GCJ=yes
17444           else
17445           # We have old collect2
17446           hardcode_direct_GCJ=unsupported
17447           # It fails to find uninstalled libraries when the uninstalled
17448           # path is not listed in the libpath.  Setting hardcode_minus_L
17449           # to unsupported forces relinking
17450           hardcode_minus_L_GCJ=yes
17451           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17452           hardcode_libdir_separator_GCJ=
17453           fi
17454           ;;
17455         esac
17456         shared_flag='-shared'
17457         if test "$aix_use_runtimelinking" = yes; then
17458           shared_flag="$shared_flag "'${wl}-G'
17459         fi
17460       else
17461         # not using gcc
17462         if test "$host_cpu" = ia64; then
17463         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17464         # chokes on -Wl,-G. The following line is correct:
17465           shared_flag='-G'
17466         else
17467           if test "$aix_use_runtimelinking" = yes; then
17468             shared_flag='${wl}-G'
17469           else
17470             shared_flag='${wl}-bM:SRE'
17471           fi
17472         fi
17473       fi
17474
17475       # It seems that -bexpall does not export symbols beginning with
17476       # underscore (_), so it is better to generate a list of symbols to export.
17477       always_export_symbols_GCJ=yes
17478       if test "$aix_use_runtimelinking" = yes; then
17479         # Warning - without using the other runtime loading flags (-brtl),
17480         # -berok will link without error, but may produce a broken library.
17481         allow_undefined_flag_GCJ='-berok'
17482        # Determine the default libpath from the value encoded in an empty executable.
17483        cat >conftest.$ac_ext <<_ACEOF
17484 /* confdefs.h.  */
17485 _ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h.  */
17489
17490 int
17491 main ()
17492 {
17493
17494   ;
17495   return 0;
17496 }
17497 _ACEOF
17498 rm -f conftest.$ac_objext conftest$ac_exeext
17499 if { (ac_try="$ac_link"
17500 case "(($ac_try" in
17501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502   *) ac_try_echo=$ac_try;;
17503 esac
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505   (eval "$ac_link") 2>conftest.er1
17506   ac_status=$?
17507   grep -v '^ *+' conftest.er1 >conftest.err
17508   rm -f conftest.er1
17509   cat conftest.err >&5
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); } &&
17512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17513   { (case "(($ac_try" in
17514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515   *) ac_try_echo=$ac_try;;
17516 esac
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518   (eval "$ac_try") 2>&5
17519   ac_status=$?
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); }; } &&
17522          { ac_try='test -s conftest$ac_exeext'
17523   { (case "(($ac_try" in
17524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525   *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528   (eval "$ac_try") 2>&5
17529   ac_status=$?
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); }; }; then
17532
17533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17534 }'`
17535 # Check for a 64-bit object if we didn't find anything.
17536 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; }
17537 }'`; fi
17538 else
17539   echo "$as_me: failed program was:" >&5
17540 sed 's/^/| /' conftest.$ac_ext >&5
17541
17542
17543 fi
17544
17545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17546       conftest$ac_exeext conftest.$ac_ext
17547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17548
17549        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17550         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"
17551        else
17552         if test "$host_cpu" = ia64; then
17553           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17554           allow_undefined_flag_GCJ="-z nodefs"
17555           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"
17556         else
17557          # Determine the default libpath from the value encoded in an empty executable.
17558          cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h.  */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h.  */
17564
17565 int
17566 main ()
17567 {
17568
17569   ;
17570   return 0;
17571 }
17572 _ACEOF
17573 rm -f conftest.$ac_objext conftest$ac_exeext
17574 if { (ac_try="$ac_link"
17575 case "(($ac_try" in
17576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577   *) ac_try_echo=$ac_try;;
17578 esac
17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580   (eval "$ac_link") 2>conftest.er1
17581   ac_status=$?
17582   grep -v '^ *+' conftest.er1 >conftest.err
17583   rm -f conftest.er1
17584   cat conftest.err >&5
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); } &&
17587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17588   { (case "(($ac_try" in
17589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590   *) ac_try_echo=$ac_try;;
17591 esac
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593   (eval "$ac_try") 2>&5
17594   ac_status=$?
17595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596   (exit $ac_status); }; } &&
17597          { ac_try='test -s conftest$ac_exeext'
17598   { (case "(($ac_try" in
17599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600   *) ac_try_echo=$ac_try;;
17601 esac
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603   (eval "$ac_try") 2>&5
17604   ac_status=$?
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); }; }; then
17607
17608 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17609 }'`
17610 # Check for a 64-bit object if we didn't find anything.
17611 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; }
17612 }'`; fi
17613 else
17614   echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17616
17617
17618 fi
17619
17620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17621       conftest$ac_exeext conftest.$ac_ext
17622 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17623
17624          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17625           # Warning - without using the other run time loading flags,
17626           # -berok will link without error, but may produce a broken library.
17627           no_undefined_flag_GCJ=' ${wl}-bernotok'
17628           allow_undefined_flag_GCJ=' ${wl}-berok'
17629           # Exported symbols can be pulled into shared objects from archives
17630           whole_archive_flag_spec_GCJ='$convenience'
17631           archive_cmds_need_lc_GCJ=yes
17632           # This is similar to how AIX traditionally builds its shared libraries.
17633           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'
17634         fi
17635       fi
17636       ;;
17637
17638     amigaos*)
17639       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)'
17640       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17641       hardcode_minus_L_GCJ=yes
17642       # see comment about different semantics on the GNU ld section
17643       ld_shlibs_GCJ=no
17644       ;;
17645
17646     bsdi[45]*)
17647       export_dynamic_flag_spec_GCJ=-rdynamic
17648       ;;
17649
17650     cygwin* | mingw* | pw32*)
17651       # When not using gcc, we currently assume that we are using
17652       # Microsoft Visual C++.
17653       # hardcode_libdir_flag_spec is actually meaningless, as there is
17654       # no search path for DLLs.
17655       hardcode_libdir_flag_spec_GCJ=' '
17656       allow_undefined_flag_GCJ=unsupported
17657       # Tell ltmain to make .lib files, not .a files.
17658       libext=lib
17659       # Tell ltmain to make .dll files, not .so files.
17660       shrext_cmds=".dll"
17661       # FIXME: Setting linknames here is a bad hack.
17662       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17663       # The linker will automatically build a .lib file if we build a DLL.
17664       old_archive_From_new_cmds_GCJ='true'
17665       # FIXME: Should let the user specify the lib program.
17666       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17667       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17668       enable_shared_with_static_runtimes_GCJ=yes
17669       ;;
17670
17671     darwin* | rhapsody*)
17672       case $host_os in
17673         rhapsody* | darwin1.[012])
17674          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17675          ;;
17676        *) # Darwin 1.3 on
17677          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17678            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17679          else
17680            case ${MACOSX_DEPLOYMENT_TARGET} in
17681              10.[012])
17682                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17683                ;;
17684              10.*)
17685                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17686                ;;
17687            esac
17688          fi
17689          ;;
17690       esac
17691       archive_cmds_need_lc_GCJ=no
17692       hardcode_direct_GCJ=no
17693       hardcode_automatic_GCJ=yes
17694       hardcode_shlibpath_var_GCJ=unsupported
17695       whole_archive_flag_spec_GCJ=''
17696       link_all_deplibs_GCJ=yes
17697     if test "$GCC" = yes ; then
17698         output_verbose_link_cmd='echo'
17699         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17700       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17701       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17702       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}'
17703       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}'
17704     else
17705       case $cc_basename in
17706         xlc*)
17707          output_verbose_link_cmd='echo'
17708          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17709          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17710           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17711          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}'
17712           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}'
17713           ;;
17714        *)
17715          ld_shlibs_GCJ=no
17716           ;;
17717       esac
17718     fi
17719       ;;
17720
17721     dgux*)
17722       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17723       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17724       hardcode_shlibpath_var_GCJ=no
17725       ;;
17726
17727     freebsd1*)
17728       ld_shlibs_GCJ=no
17729       ;;
17730
17731     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17732     # support.  Future versions do this automatically, but an explicit c++rt0.o
17733     # does not break anything, and helps significantly (at the cost of a little
17734     # extra space).
17735     freebsd2.2*)
17736       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17737       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17738       hardcode_direct_GCJ=yes
17739       hardcode_shlibpath_var_GCJ=no
17740       ;;
17741
17742     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17743     freebsd2*)
17744       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17745       hardcode_direct_GCJ=yes
17746       hardcode_minus_L_GCJ=yes
17747       hardcode_shlibpath_var_GCJ=no
17748       ;;
17749
17750     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17751     freebsd* | kfreebsd*-gnu | dragonfly*)
17752       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17753       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17754       hardcode_direct_GCJ=yes
17755       hardcode_shlibpath_var_GCJ=no
17756       ;;
17757
17758     hpux9*)
17759       if test "$GCC" = yes; then
17760         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'
17761       else
17762         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'
17763       fi
17764       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17765       hardcode_libdir_separator_GCJ=:
17766       hardcode_direct_GCJ=yes
17767
17768       # hardcode_minus_L: Not really in the search PATH,
17769       # but as the default location of the library.
17770       hardcode_minus_L_GCJ=yes
17771       export_dynamic_flag_spec_GCJ='${wl}-E'
17772       ;;
17773
17774     hpux10*)
17775       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17776         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17777       else
17778         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17779       fi
17780       if test "$with_gnu_ld" = no; then
17781         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17782         hardcode_libdir_separator_GCJ=:
17783
17784         hardcode_direct_GCJ=yes
17785         export_dynamic_flag_spec_GCJ='${wl}-E'
17786
17787         # hardcode_minus_L: Not really in the search PATH,
17788         # but as the default location of the library.
17789         hardcode_minus_L_GCJ=yes
17790       fi
17791       ;;
17792
17793     hpux11*)
17794       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17795         case $host_cpu in
17796         hppa*64*)
17797           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17798           ;;
17799         ia64*)
17800           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17801           ;;
17802         *)
17803           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17804           ;;
17805         esac
17806       else
17807         case $host_cpu in
17808         hppa*64*)
17809           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17810           ;;
17811         ia64*)
17812           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17813           ;;
17814         *)
17815           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17816           ;;
17817         esac
17818       fi
17819       if test "$with_gnu_ld" = no; then
17820         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17821         hardcode_libdir_separator_GCJ=:
17822
17823         case $host_cpu in
17824         hppa*64*|ia64*)
17825           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17826           hardcode_direct_GCJ=no
17827           hardcode_shlibpath_var_GCJ=no
17828           ;;
17829         *)
17830           hardcode_direct_GCJ=yes
17831           export_dynamic_flag_spec_GCJ='${wl}-E'
17832
17833           # hardcode_minus_L: Not really in the search PATH,
17834           # but as the default location of the library.
17835           hardcode_minus_L_GCJ=yes
17836           ;;
17837         esac
17838       fi
17839       ;;
17840
17841     irix5* | irix6* | nonstopux*)
17842       if test "$GCC" = yes; then
17843         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'
17844       else
17845         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'
17846         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17847       fi
17848       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17849       hardcode_libdir_separator_GCJ=:
17850       link_all_deplibs_GCJ=yes
17851       ;;
17852
17853     netbsd*)
17854       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17855         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17856       else
17857         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17858       fi
17859       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17860       hardcode_direct_GCJ=yes
17861       hardcode_shlibpath_var_GCJ=no
17862       ;;
17863
17864     newsos6)
17865       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17866       hardcode_direct_GCJ=yes
17867       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17868       hardcode_libdir_separator_GCJ=:
17869       hardcode_shlibpath_var_GCJ=no
17870       ;;
17871
17872     openbsd*)
17873       hardcode_direct_GCJ=yes
17874       hardcode_shlibpath_var_GCJ=no
17875       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17876         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17877         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17878         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17879         export_dynamic_flag_spec_GCJ='${wl}-E'
17880       else
17881        case $host_os in
17882          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17883            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17884            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17885            ;;
17886          *)
17887            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17888            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17889            ;;
17890        esac
17891       fi
17892       ;;
17893
17894     os2*)
17895       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17896       hardcode_minus_L_GCJ=yes
17897       allow_undefined_flag_GCJ=unsupported
17898       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'
17899       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17900       ;;
17901
17902     osf3*)
17903       if test "$GCC" = yes; then
17904         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17905         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'
17906       else
17907         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17908         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'
17909       fi
17910       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17911       hardcode_libdir_separator_GCJ=:
17912       ;;
17913
17914     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17915       if test "$GCC" = yes; then
17916         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17917         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'
17918         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17919       else
17920         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17921         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'
17922         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~
17923         $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'
17924
17925         # Both c and cxx compiler support -rpath directly
17926         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17927       fi
17928       hardcode_libdir_separator_GCJ=:
17929       ;;
17930
17931     solaris*)
17932       no_undefined_flag_GCJ=' -z text'
17933       if test "$GCC" = yes; then
17934         wlarc='${wl}'
17935         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17936         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17937           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17938       else
17939         wlarc=''
17940         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17941         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17942         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17943       fi
17944       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17945       hardcode_shlibpath_var_GCJ=no
17946       case $host_os in
17947       solaris2.[0-5] | solaris2.[0-5].*) ;;
17948       *)
17949         # The compiler driver will combine linker options so we
17950         # cannot just pass the convience library names through
17951         # without $wl, iff we do not link with $LD.
17952         # Luckily, gcc supports the same syntax we need for Sun Studio.
17953         # Supported since Solaris 2.6 (maybe 2.5.1?)
17954         case $wlarc in
17955         '')
17956           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17957         *)
17958           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' ;;
17959         esac ;;
17960       esac
17961       link_all_deplibs_GCJ=yes
17962       ;;
17963
17964     sunos4*)
17965       if test "x$host_vendor" = xsequent; then
17966         # Use $CC to link under sequent, because it throws in some extra .o
17967         # files that make .init and .fini sections work.
17968         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17969       else
17970         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17971       fi
17972       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17973       hardcode_direct_GCJ=yes
17974       hardcode_minus_L_GCJ=yes
17975       hardcode_shlibpath_var_GCJ=no
17976       ;;
17977
17978     sysv4)
17979       case $host_vendor in
17980         sni)
17981           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17982           hardcode_direct_GCJ=yes # is this really true???
17983         ;;
17984         siemens)
17985           ## LD is ld it makes a PLAMLIB
17986           ## CC just makes a GrossModule.
17987           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17988           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17989           hardcode_direct_GCJ=no
17990         ;;
17991         motorola)
17992           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17993           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17994         ;;
17995       esac
17996       runpath_var='LD_RUN_PATH'
17997       hardcode_shlibpath_var_GCJ=no
17998       ;;
17999
18000     sysv4.3*)
18001       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18002       hardcode_shlibpath_var_GCJ=no
18003       export_dynamic_flag_spec_GCJ='-Bexport'
18004       ;;
18005
18006     sysv4*MP*)
18007       if test -d /usr/nec; then
18008         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18009         hardcode_shlibpath_var_GCJ=no
18010         runpath_var=LD_RUN_PATH
18011         hardcode_runpath_var=yes
18012         ld_shlibs_GCJ=yes
18013       fi
18014       ;;
18015
18016     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18017       no_undefined_flag_GCJ='${wl}-z,text'
18018       archive_cmds_need_lc_GCJ=no
18019       hardcode_shlibpath_var_GCJ=no
18020       runpath_var='LD_RUN_PATH'
18021
18022       if test "$GCC" = yes; then
18023         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18024         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18025       else
18026         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18027         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18028       fi
18029       ;;
18030
18031     sysv5* | sco3.2v5* | sco5v6*)
18032       # Note: We can NOT use -z defs as we might desire, because we do not
18033       # link with -lc, and that would cause any symbols used from libc to
18034       # always be unresolved, which means just about no library would
18035       # ever link correctly.  If we're not using GNU ld we use -z text
18036       # though, which does catch some bad symbols but isn't as heavy-handed
18037       # as -z defs.
18038       no_undefined_flag_GCJ='${wl}-z,text'
18039       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18040       archive_cmds_need_lc_GCJ=no
18041       hardcode_shlibpath_var_GCJ=no
18042       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18043       hardcode_libdir_separator_GCJ=':'
18044       link_all_deplibs_GCJ=yes
18045       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18046       runpath_var='LD_RUN_PATH'
18047
18048       if test "$GCC" = yes; then
18049         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18050         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18051       else
18052         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18053         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18054       fi
18055       ;;
18056
18057     uts4*)
18058       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18059       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18060       hardcode_shlibpath_var_GCJ=no
18061       ;;
18062
18063     *)
18064       ld_shlibs_GCJ=no
18065       ;;
18066     esac
18067   fi
18068
18069 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18070 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18071 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18072
18073 #
18074 # Do we need to explicitly link libc?
18075 #
18076 case "x$archive_cmds_need_lc_GCJ" in
18077 x|xyes)
18078   # Assume -lc should be added
18079   archive_cmds_need_lc_GCJ=yes
18080
18081   if test "$enable_shared" = yes && test "$GCC" = yes; then
18082     case $archive_cmds_GCJ in
18083     *'~'*)
18084       # FIXME: we may have to deal with multi-command sequences.
18085       ;;
18086     '$CC '*)
18087       # Test whether the compiler implicitly links with -lc since on some
18088       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18089       # to ld, don't add -lc before -lgcc.
18090       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18091 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18092       $rm conftest*
18093       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18094
18095       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18096   (eval $ac_compile) 2>&5
18097   ac_status=$?
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); } 2>conftest.err; then
18100         soname=conftest
18101         lib=conftest
18102         libobjs=conftest.$ac_objext
18103         deplibs=
18104         wl=$lt_prog_compiler_wl_GCJ
18105         pic_flag=$lt_prog_compiler_pic_GCJ
18106         compiler_flags=-v
18107         linker_flags=-v
18108         verstring=
18109         output_objdir=.
18110         libname=conftest
18111         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18112         allow_undefined_flag_GCJ=
18113         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18114   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18115   ac_status=$?
18116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117   (exit $ac_status); }
18118         then
18119           archive_cmds_need_lc_GCJ=no
18120         else
18121           archive_cmds_need_lc_GCJ=yes
18122         fi
18123         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18124       else
18125         cat conftest.err 1>&5
18126       fi
18127       $rm conftest*
18128       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18129 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18130       ;;
18131     esac
18132   fi
18133   ;;
18134 esac
18135
18136 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18137 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18138 library_names_spec=
18139 libname_spec='lib$name'
18140 soname_spec=
18141 shrext_cmds=".so"
18142 postinstall_cmds=
18143 postuninstall_cmds=
18144 finish_cmds=
18145 finish_eval=
18146 shlibpath_var=
18147 shlibpath_overrides_runpath=unknown
18148 version_type=none
18149 dynamic_linker="$host_os ld.so"
18150 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18151 if test "$GCC" = yes; then
18152   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18153   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18154     # if the path contains ";" then we assume it to be the separator
18155     # otherwise default to the standard path separator (i.e. ":") - it is
18156     # assumed that no part of a normal pathname contains ";" but that should
18157     # okay in the real world where ";" in dirpaths is itself problematic.
18158     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18159   else
18160     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18161   fi
18162 else
18163   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18164 fi
18165 need_lib_prefix=unknown
18166 hardcode_into_libs=no
18167
18168 # when you set need_version to no, make sure it does not cause -set_version
18169 # flags to be left without arguments
18170 need_version=unknown
18171
18172 case $host_os in
18173 aix3*)
18174   version_type=linux
18175   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18176   shlibpath_var=LIBPATH
18177
18178   # AIX 3 has no versioning support, so we append a major version to the name.
18179   soname_spec='${libname}${release}${shared_ext}$major'
18180   ;;
18181
18182 aix4* | aix5*)
18183   version_type=linux
18184   need_lib_prefix=no
18185   need_version=no
18186   hardcode_into_libs=yes
18187   if test "$host_cpu" = ia64; then
18188     # AIX 5 supports IA64
18189     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18190     shlibpath_var=LD_LIBRARY_PATH
18191   else
18192     # With GCC up to 2.95.x, collect2 would create an import file
18193     # for dependence libraries.  The import file would start with
18194     # the line `#! .'.  This would cause the generated library to
18195     # depend on `.', always an invalid library.  This was fixed in
18196     # development snapshots of GCC prior to 3.0.
18197     case $host_os in
18198       aix4 | aix4.[01] | aix4.[01].*)
18199       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18200            echo ' yes '
18201            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18202         :
18203       else
18204         can_build_shared=no
18205       fi
18206       ;;
18207     esac
18208     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18209     # soname into executable. Probably we can add versioning support to
18210     # collect2, so additional links can be useful in future.
18211     if test "$aix_use_runtimelinking" = yes; then
18212       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18213       # instead of lib<name>.a to let people know that these are not
18214       # typical AIX shared libraries.
18215       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18216     else
18217       # We preserve .a as extension for shared libraries through AIX4.2
18218       # and later when we are not doing run time linking.
18219       library_names_spec='${libname}${release}.a $libname.a'
18220       soname_spec='${libname}${release}${shared_ext}$major'
18221     fi
18222     shlibpath_var=LIBPATH
18223   fi
18224   ;;
18225
18226 amigaos*)
18227   library_names_spec='$libname.ixlibrary $libname.a'
18228   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18229   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'
18230   ;;
18231
18232 beos*)
18233   library_names_spec='${libname}${shared_ext}'
18234   dynamic_linker="$host_os ld.so"
18235   shlibpath_var=LIBRARY_PATH
18236   ;;
18237
18238 bsdi[45]*)
18239   version_type=linux
18240   need_version=no
18241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18242   soname_spec='${libname}${release}${shared_ext}$major'
18243   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18244   shlibpath_var=LD_LIBRARY_PATH
18245   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18246   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18247   # the default ld.so.conf also contains /usr/contrib/lib and
18248   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18249   # libtool to hard-code these into programs
18250   ;;
18251
18252 cygwin* | mingw* | pw32*)
18253   version_type=windows
18254   shrext_cmds=".dll"
18255   need_version=no
18256   need_lib_prefix=no
18257
18258   case $GCC,$host_os in
18259   yes,cygwin* | yes,mingw* | yes,pw32*)
18260     library_names_spec='$libname.dll.a'
18261     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18262     postinstall_cmds='base_file=`basename \${file}`~
18263       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18264       dldir=$destdir/`dirname \$dlpath`~
18265       test -d \$dldir || mkdir -p \$dldir~
18266       $install_prog $dir/$dlname \$dldir/$dlname~
18267       chmod a+x \$dldir/$dlname'
18268     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18269       dlpath=$dir/\$dldll~
18270        $rm \$dlpath'
18271     shlibpath_overrides_runpath=yes
18272
18273     case $host_os in
18274     cygwin*)
18275       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18276       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18277       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18278       ;;
18279     mingw*)
18280       # MinGW DLLs use traditional 'lib' prefix
18281       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18282       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18283       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18284         # It is most probably a Windows format PATH printed by
18285         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18286         # path with ; separators, and with drive letters. We can handle the
18287         # drive letters (cygwin fileutils understands them), so leave them,
18288         # especially as we might pass files found there to a mingw objdump,
18289         # which wouldn't understand a cygwinified path. Ahh.
18290         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18291       else
18292         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18293       fi
18294       ;;
18295     pw32*)
18296       # pw32 DLLs use 'pw' prefix rather than 'lib'
18297       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18298       ;;
18299     esac
18300     ;;
18301
18302   *)
18303     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18304     ;;
18305   esac
18306   dynamic_linker='Win32 ld.exe'
18307   # FIXME: first we should search . and the directory the executable is in
18308   shlibpath_var=PATH
18309   ;;
18310
18311 darwin* | rhapsody*)
18312   dynamic_linker="$host_os dyld"
18313   version_type=darwin
18314   need_lib_prefix=no
18315   need_version=no
18316   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18317   soname_spec='${libname}${release}${major}$shared_ext'
18318   shlibpath_overrides_runpath=yes
18319   shlibpath_var=DYLD_LIBRARY_PATH
18320   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18321   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18322   if test "$GCC" = yes; then
18323     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"`
18324   else
18325     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18326   fi
18327   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18328   ;;
18329
18330 dgux*)
18331   version_type=linux
18332   need_lib_prefix=no
18333   need_version=no
18334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18335   soname_spec='${libname}${release}${shared_ext}$major'
18336   shlibpath_var=LD_LIBRARY_PATH
18337   ;;
18338
18339 freebsd1*)
18340   dynamic_linker=no
18341   ;;
18342
18343 kfreebsd*-gnu)
18344   version_type=linux
18345   need_lib_prefix=no
18346   need_version=no
18347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18348   soname_spec='${libname}${release}${shared_ext}$major'
18349   shlibpath_var=LD_LIBRARY_PATH
18350   shlibpath_overrides_runpath=no
18351   hardcode_into_libs=yes
18352   dynamic_linker='GNU ld.so'
18353   ;;
18354
18355 freebsd* | dragonfly*)
18356   # DragonFly does not have aout.  When/if they implement a new
18357   # versioning mechanism, adjust this.
18358   if test -x /usr/bin/objformat; then
18359     objformat=`/usr/bin/objformat`
18360   else
18361     case $host_os in
18362     freebsd[123]*) objformat=aout ;;
18363     *) objformat=elf ;;
18364     esac
18365   fi
18366   version_type=freebsd-$objformat
18367   case $version_type in
18368     freebsd-elf*)
18369       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18370       need_version=no
18371       need_lib_prefix=no
18372       ;;
18373     freebsd-*)
18374       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18375       need_version=yes
18376       ;;
18377   esac
18378   shlibpath_var=LD_LIBRARY_PATH
18379   case $host_os in
18380   freebsd2*)
18381     shlibpath_overrides_runpath=yes
18382     ;;
18383   freebsd3.[01]* | freebsdelf3.[01]*)
18384     shlibpath_overrides_runpath=yes
18385     hardcode_into_libs=yes
18386     ;;
18387   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18388   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18389     shlibpath_overrides_runpath=no
18390     hardcode_into_libs=yes
18391     ;;
18392   freebsd*) # from 4.6 on
18393     shlibpath_overrides_runpath=yes
18394     hardcode_into_libs=yes
18395     ;;
18396   esac
18397   ;;
18398
18399 gnu*)
18400   version_type=linux
18401   need_lib_prefix=no
18402   need_version=no
18403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18404   soname_spec='${libname}${release}${shared_ext}$major'
18405   shlibpath_var=LD_LIBRARY_PATH
18406   hardcode_into_libs=yes
18407   ;;
18408
18409 hpux9* | hpux10* | hpux11*)
18410   # Give a soname corresponding to the major version so that dld.sl refuses to
18411   # link against other versions.
18412   version_type=sunos
18413   need_lib_prefix=no
18414   need_version=no
18415   case $host_cpu in
18416   ia64*)
18417     shrext_cmds='.so'
18418     hardcode_into_libs=yes
18419     dynamic_linker="$host_os dld.so"
18420     shlibpath_var=LD_LIBRARY_PATH
18421     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18423     soname_spec='${libname}${release}${shared_ext}$major'
18424     if test "X$HPUX_IA64_MODE" = X32; then
18425       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18426     else
18427       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18428     fi
18429     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18430     ;;
18431    hppa*64*)
18432      shrext_cmds='.sl'
18433      hardcode_into_libs=yes
18434      dynamic_linker="$host_os dld.sl"
18435      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18436      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18437      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18438      soname_spec='${libname}${release}${shared_ext}$major'
18439      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18440      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18441      ;;
18442    *)
18443     shrext_cmds='.sl'
18444     dynamic_linker="$host_os dld.sl"
18445     shlibpath_var=SHLIB_PATH
18446     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18448     soname_spec='${libname}${release}${shared_ext}$major'
18449     ;;
18450   esac
18451   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18452   postinstall_cmds='chmod 555 $lib'
18453   ;;
18454
18455 interix3*)
18456   version_type=linux
18457   need_lib_prefix=no
18458   need_version=no
18459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18460   soname_spec='${libname}${release}${shared_ext}$major'
18461   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18462   shlibpath_var=LD_LIBRARY_PATH
18463   shlibpath_overrides_runpath=no
18464   hardcode_into_libs=yes
18465   ;;
18466
18467 irix5* | irix6* | nonstopux*)
18468   case $host_os in
18469     nonstopux*) version_type=nonstopux ;;
18470     *)
18471         if test "$lt_cv_prog_gnu_ld" = yes; then
18472                 version_type=linux
18473         else
18474                 version_type=irix
18475         fi ;;
18476   esac
18477   need_lib_prefix=no
18478   need_version=no
18479   soname_spec='${libname}${release}${shared_ext}$major'
18480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18481   case $host_os in
18482   irix5* | nonstopux*)
18483     libsuff= shlibsuff=
18484     ;;
18485   *)
18486     case $LD in # libtool.m4 will add one of these switches to LD
18487     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18488       libsuff= shlibsuff= libmagic=32-bit;;
18489     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18490       libsuff=32 shlibsuff=N32 libmagic=N32;;
18491     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18492       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18493     *) libsuff= shlibsuff= libmagic=never-match;;
18494     esac
18495     ;;
18496   esac
18497   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18498   shlibpath_overrides_runpath=no
18499   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18500   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18501   hardcode_into_libs=yes
18502   ;;
18503
18504 # No shared lib support for Linux oldld, aout, or coff.
18505 linux*oldld* | linux*aout* | linux*coff*)
18506   dynamic_linker=no
18507   ;;
18508
18509 # This must be Linux ELF.
18510 linux*)
18511   version_type=linux
18512   need_lib_prefix=no
18513   need_version=no
18514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18515   soname_spec='${libname}${release}${shared_ext}$major'
18516   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18517   shlibpath_var=LD_LIBRARY_PATH
18518   shlibpath_overrides_runpath=no
18519   # This implies no fast_install, which is unacceptable.
18520   # Some rework will be needed to allow for fast_install
18521   # before this can be enabled.
18522   hardcode_into_libs=yes
18523
18524   # Append ld.so.conf contents to the search path
18525   if test -f /etc/ld.so.conf; then
18526     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' ' '`
18527     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18528   fi
18529
18530   # We used to test for /lib/ld.so.1 and disable shared libraries on
18531   # powerpc, because MkLinux only supported shared libraries with the
18532   # GNU dynamic linker.  Since this was broken with cross compilers,
18533   # most powerpc-linux boxes support dynamic linking these days and
18534   # people can always --disable-shared, the test was removed, and we
18535   # assume the GNU/Linux dynamic linker is in use.
18536   dynamic_linker='GNU/Linux ld.so'
18537   ;;
18538
18539 knetbsd*-gnu)
18540   version_type=linux
18541   need_lib_prefix=no
18542   need_version=no
18543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18544   soname_spec='${libname}${release}${shared_ext}$major'
18545   shlibpath_var=LD_LIBRARY_PATH
18546   shlibpath_overrides_runpath=no
18547   hardcode_into_libs=yes
18548   dynamic_linker='GNU ld.so'
18549   ;;
18550
18551 netbsd*)
18552   version_type=sunos
18553   need_lib_prefix=no
18554   need_version=no
18555   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18557     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18558     dynamic_linker='NetBSD (a.out) ld.so'
18559   else
18560     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18561     soname_spec='${libname}${release}${shared_ext}$major'
18562     dynamic_linker='NetBSD ld.elf_so'
18563   fi
18564   shlibpath_var=LD_LIBRARY_PATH
18565   shlibpath_overrides_runpath=yes
18566   hardcode_into_libs=yes
18567   ;;
18568
18569 newsos6)
18570   version_type=linux
18571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18572   shlibpath_var=LD_LIBRARY_PATH
18573   shlibpath_overrides_runpath=yes
18574   ;;
18575
18576 nto-qnx*)
18577   version_type=linux
18578   need_lib_prefix=no
18579   need_version=no
18580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581   soname_spec='${libname}${release}${shared_ext}$major'
18582   shlibpath_var=LD_LIBRARY_PATH
18583   shlibpath_overrides_runpath=yes
18584   ;;
18585
18586 openbsd*)
18587   version_type=sunos
18588   sys_lib_dlsearch_path_spec="/usr/lib"
18589   need_lib_prefix=no
18590   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18591   case $host_os in
18592     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18593     *)                         need_version=no  ;;
18594   esac
18595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18596   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18597   shlibpath_var=LD_LIBRARY_PATH
18598   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18599     case $host_os in
18600       openbsd2.[89] | openbsd2.[89].*)
18601         shlibpath_overrides_runpath=no
18602         ;;
18603       *)
18604         shlibpath_overrides_runpath=yes
18605         ;;
18606       esac
18607   else
18608     shlibpath_overrides_runpath=yes
18609   fi
18610   ;;
18611
18612 os2*)
18613   libname_spec='$name'
18614   shrext_cmds=".dll"
18615   need_lib_prefix=no
18616   library_names_spec='$libname${shared_ext} $libname.a'
18617   dynamic_linker='OS/2 ld.exe'
18618   shlibpath_var=LIBPATH
18619   ;;
18620
18621 osf3* | osf4* | osf5*)
18622   version_type=osf
18623   need_lib_prefix=no
18624   need_version=no
18625   soname_spec='${libname}${release}${shared_ext}$major'
18626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18627   shlibpath_var=LD_LIBRARY_PATH
18628   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18629   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18630   ;;
18631
18632 solaris*)
18633   version_type=linux
18634   need_lib_prefix=no
18635   need_version=no
18636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18637   soname_spec='${libname}${release}${shared_ext}$major'
18638   shlibpath_var=LD_LIBRARY_PATH
18639   shlibpath_overrides_runpath=yes
18640   hardcode_into_libs=yes
18641   # ldd complains unless libraries are executable
18642   postinstall_cmds='chmod +x $lib'
18643   ;;
18644
18645 sunos4*)
18646   version_type=sunos
18647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18648   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18649   shlibpath_var=LD_LIBRARY_PATH
18650   shlibpath_overrides_runpath=yes
18651   if test "$with_gnu_ld" = yes; then
18652     need_lib_prefix=no
18653   fi
18654   need_version=yes
18655   ;;
18656
18657 sysv4 | sysv4.3*)
18658   version_type=linux
18659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18660   soname_spec='${libname}${release}${shared_ext}$major'
18661   shlibpath_var=LD_LIBRARY_PATH
18662   case $host_vendor in
18663     sni)
18664       shlibpath_overrides_runpath=no
18665       need_lib_prefix=no
18666       export_dynamic_flag_spec='${wl}-Blargedynsym'
18667       runpath_var=LD_RUN_PATH
18668       ;;
18669     siemens)
18670       need_lib_prefix=no
18671       ;;
18672     motorola)
18673       need_lib_prefix=no
18674       need_version=no
18675       shlibpath_overrides_runpath=no
18676       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18677       ;;
18678   esac
18679   ;;
18680
18681 sysv4*MP*)
18682   if test -d /usr/nec ;then
18683     version_type=linux
18684     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18685     soname_spec='$libname${shared_ext}.$major'
18686     shlibpath_var=LD_LIBRARY_PATH
18687   fi
18688   ;;
18689
18690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18691   version_type=freebsd-elf
18692   need_lib_prefix=no
18693   need_version=no
18694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18695   soname_spec='${libname}${release}${shared_ext}$major'
18696   shlibpath_var=LD_LIBRARY_PATH
18697   hardcode_into_libs=yes
18698   if test "$with_gnu_ld" = yes; then
18699     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18700     shlibpath_overrides_runpath=no
18701   else
18702     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18703     shlibpath_overrides_runpath=yes
18704     case $host_os in
18705       sco3.2v5*)
18706         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18707         ;;
18708     esac
18709   fi
18710   sys_lib_dlsearch_path_spec='/usr/lib'
18711   ;;
18712
18713 uts4*)
18714   version_type=linux
18715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18716   soname_spec='${libname}${release}${shared_ext}$major'
18717   shlibpath_var=LD_LIBRARY_PATH
18718   ;;
18719
18720 *)
18721   dynamic_linker=no
18722   ;;
18723 esac
18724 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18725 echo "${ECHO_T}$dynamic_linker" >&6; }
18726 test "$dynamic_linker" = no && can_build_shared=no
18727
18728 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18729 if test "$GCC" = yes; then
18730   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18731 fi
18732
18733 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18734 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18735 hardcode_action_GCJ=
18736 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18737    test -n "$runpath_var_GCJ" || \
18738    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18739
18740   # We can hardcode non-existant directories.
18741   if test "$hardcode_direct_GCJ" != no &&
18742      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18743      # have to relink, otherwise we might link with an installed library
18744      # when we should be linking with a yet-to-be-installed one
18745      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18746      test "$hardcode_minus_L_GCJ" != no; then
18747     # Linking always hardcodes the temporary library directory.
18748     hardcode_action_GCJ=relink
18749   else
18750     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18751     hardcode_action_GCJ=immediate
18752   fi
18753 else
18754   # We cannot hardcode anything, or else we can only hardcode existing
18755   # directories.
18756   hardcode_action_GCJ=unsupported
18757 fi
18758 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18759 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18760
18761 if test "$hardcode_action_GCJ" = relink; then
18762   # Fast installation is not supported
18763   enable_fast_install=no
18764 elif test "$shlibpath_overrides_runpath" = yes ||
18765      test "$enable_shared" = no; then
18766   # Fast installation is not necessary
18767   enable_fast_install=needless
18768 fi
18769
18770
18771 # The else clause should only fire when bootstrapping the
18772 # libtool distribution, otherwise you forgot to ship ltmain.sh
18773 # with your package, and you will get complaints that there are
18774 # no rules to generate ltmain.sh.
18775 if test -f "$ltmain"; then
18776   # See if we are running on zsh, and set the options which allow our commands through
18777   # without removal of \ escapes.
18778   if test -n "${ZSH_VERSION+set}" ; then
18779     setopt NO_GLOB_SUBST
18780   fi
18781   # Now quote all the things that may contain metacharacters while being
18782   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18783   # variables and quote the copies for generation of the libtool script.
18784   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18785     SED SHELL STRIP \
18786     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18787     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18788     deplibs_check_method reload_flag reload_cmds need_locks \
18789     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18790     lt_cv_sys_global_symbol_to_c_name_address \
18791     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18792     old_postinstall_cmds old_postuninstall_cmds \
18793     compiler_GCJ \
18794     CC_GCJ \
18795     LD_GCJ \
18796     lt_prog_compiler_wl_GCJ \
18797     lt_prog_compiler_pic_GCJ \
18798     lt_prog_compiler_static_GCJ \
18799     lt_prog_compiler_no_builtin_flag_GCJ \
18800     export_dynamic_flag_spec_GCJ \
18801     thread_safe_flag_spec_GCJ \
18802     whole_archive_flag_spec_GCJ \
18803     enable_shared_with_static_runtimes_GCJ \
18804     old_archive_cmds_GCJ \
18805     old_archive_from_new_cmds_GCJ \
18806     predep_objects_GCJ \
18807     postdep_objects_GCJ \
18808     predeps_GCJ \
18809     postdeps_GCJ \
18810     compiler_lib_search_path_GCJ \
18811     archive_cmds_GCJ \
18812     archive_expsym_cmds_GCJ \
18813     postinstall_cmds_GCJ \
18814     postuninstall_cmds_GCJ \
18815     old_archive_from_expsyms_cmds_GCJ \
18816     allow_undefined_flag_GCJ \
18817     no_undefined_flag_GCJ \
18818     export_symbols_cmds_GCJ \
18819     hardcode_libdir_flag_spec_GCJ \
18820     hardcode_libdir_flag_spec_ld_GCJ \
18821     hardcode_libdir_separator_GCJ \
18822     hardcode_automatic_GCJ \
18823     module_cmds_GCJ \
18824     module_expsym_cmds_GCJ \
18825     lt_cv_prog_compiler_c_o_GCJ \
18826     exclude_expsyms_GCJ \
18827     include_expsyms_GCJ; do
18828
18829     case $var in
18830     old_archive_cmds_GCJ | \
18831     old_archive_from_new_cmds_GCJ | \
18832     archive_cmds_GCJ | \
18833     archive_expsym_cmds_GCJ | \
18834     module_cmds_GCJ | \
18835     module_expsym_cmds_GCJ | \
18836     old_archive_from_expsyms_cmds_GCJ | \
18837     export_symbols_cmds_GCJ | \
18838     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18839     postinstall_cmds | postuninstall_cmds | \
18840     old_postinstall_cmds | old_postuninstall_cmds | \
18841     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18842       # Double-quote double-evaled strings.
18843       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18844       ;;
18845     *)
18846       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18847       ;;
18848     esac
18849   done
18850
18851   case $lt_echo in
18852   *'\$0 --fallback-echo"')
18853     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18854     ;;
18855   esac
18856
18857 cfgfile="$ofile"
18858
18859   cat <<__EOF__ >> "$cfgfile"
18860 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18861
18862 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18863
18864 # Shell to use when invoking shell scripts.
18865 SHELL=$lt_SHELL
18866
18867 # Whether or not to build shared libraries.
18868 build_libtool_libs=$enable_shared
18869
18870 # Whether or not to build static libraries.
18871 build_old_libs=$enable_static
18872
18873 # Whether or not to add -lc for building shared libraries.
18874 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18875
18876 # Whether or not to disallow shared libs when runtime libs are static
18877 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18878
18879 # Whether or not to optimize for fast installation.
18880 fast_install=$enable_fast_install
18881
18882 # The host system.
18883 host_alias=$host_alias
18884 host=$host
18885 host_os=$host_os
18886
18887 # The build system.
18888 build_alias=$build_alias
18889 build=$build
18890 build_os=$build_os
18891
18892 # An echo program that does not interpret backslashes.
18893 echo=$lt_echo
18894
18895 # The archiver.
18896 AR=$lt_AR
18897 AR_FLAGS=$lt_AR_FLAGS
18898
18899 # A C compiler.
18900 LTCC=$lt_LTCC
18901
18902 # LTCC compiler flags.
18903 LTCFLAGS=$lt_LTCFLAGS
18904
18905 # A language-specific compiler.
18906 CC=$lt_compiler_GCJ
18907
18908 # Is the compiler the GNU C compiler?
18909 with_gcc=$GCC_GCJ
18910
18911 # An ERE matcher.
18912 EGREP=$lt_EGREP
18913
18914 # The linker used to build libraries.
18915 LD=$lt_LD_GCJ
18916
18917 # Whether we need hard or soft links.
18918 LN_S=$lt_LN_S
18919
18920 # A BSD-compatible nm program.
18921 NM=$lt_NM
18922
18923 # A symbol stripping program
18924 STRIP=$lt_STRIP
18925
18926 # Used to examine libraries when file_magic_cmd begins "file"
18927 MAGIC_CMD=$MAGIC_CMD
18928
18929 # Used on cygwin: DLL creation program.
18930 DLLTOOL="$DLLTOOL"
18931
18932 # Used on cygwin: object dumper.
18933 OBJDUMP="$OBJDUMP"
18934
18935 # Used on cygwin: assembler.
18936 AS="$AS"
18937
18938 # The name of the directory that contains temporary libtool files.
18939 objdir=$objdir
18940
18941 # How to create reloadable object files.
18942 reload_flag=$lt_reload_flag
18943 reload_cmds=$lt_reload_cmds
18944
18945 # How to pass a linker flag through the compiler.
18946 wl=$lt_lt_prog_compiler_wl_GCJ
18947
18948 # Object file suffix (normally "o").
18949 objext="$ac_objext"
18950
18951 # Old archive suffix (normally "a").
18952 libext="$libext"
18953
18954 # Shared library suffix (normally ".so").
18955 shrext_cmds='$shrext_cmds'
18956
18957 # Executable file suffix (normally "").
18958 exeext="$exeext"
18959
18960 # Additional compiler flags for building library objects.
18961 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18962 pic_mode=$pic_mode
18963
18964 # What is the maximum length of a command?
18965 max_cmd_len=$lt_cv_sys_max_cmd_len
18966
18967 # Does compiler simultaneously support -c and -o options?
18968 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18969
18970 # Must we lock files when doing compilation?
18971 need_locks=$lt_need_locks
18972
18973 # Do we need the lib prefix for modules?
18974 need_lib_prefix=$need_lib_prefix
18975
18976 # Do we need a version for libraries?
18977 need_version=$need_version
18978
18979 # Whether dlopen is supported.
18980 dlopen_support=$enable_dlopen
18981
18982 # Whether dlopen of programs is supported.
18983 dlopen_self=$enable_dlopen_self
18984
18985 # Whether dlopen of statically linked programs is supported.
18986 dlopen_self_static=$enable_dlopen_self_static
18987
18988 # Compiler flag to prevent dynamic linking.
18989 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18990
18991 # Compiler flag to turn off builtin functions.
18992 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18993
18994 # Compiler flag to allow reflexive dlopens.
18995 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18996
18997 # Compiler flag to generate shared objects directly from archives.
18998 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18999
19000 # Compiler flag to generate thread-safe objects.
19001 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19002
19003 # Library versioning type.
19004 version_type=$version_type
19005
19006 # Format of library name prefix.
19007 libname_spec=$lt_libname_spec
19008
19009 # List of archive names.  First name is the real one, the rest are links.
19010 # The last name is the one that the linker finds with -lNAME.
19011 library_names_spec=$lt_library_names_spec
19012
19013 # The coded name of the library, if different from the real name.
19014 soname_spec=$lt_soname_spec
19015
19016 # Commands used to build and install an old-style archive.
19017 RANLIB=$lt_RANLIB
19018 old_archive_cmds=$lt_old_archive_cmds_GCJ
19019 old_postinstall_cmds=$lt_old_postinstall_cmds
19020 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19021
19022 # Create an old-style archive from a shared archive.
19023 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19024
19025 # Create a temporary old-style archive to link instead of a shared archive.
19026 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19027
19028 # Commands used to build and install a shared archive.
19029 archive_cmds=$lt_archive_cmds_GCJ
19030 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19031 postinstall_cmds=$lt_postinstall_cmds
19032 postuninstall_cmds=$lt_postuninstall_cmds
19033
19034 # Commands used to build a loadable module (assumed same as above if empty)
19035 module_cmds=$lt_module_cmds_GCJ
19036 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19037
19038 # Commands to strip libraries.
19039 old_striplib=$lt_old_striplib
19040 striplib=$lt_striplib
19041
19042 # Dependencies to place before the objects being linked to create a
19043 # shared library.
19044 predep_objects=$lt_predep_objects_GCJ
19045
19046 # Dependencies to place after the objects being linked to create a
19047 # shared library.
19048 postdep_objects=$lt_postdep_objects_GCJ
19049
19050 # Dependencies to place before the objects being linked to create a
19051 # shared library.
19052 predeps=$lt_predeps_GCJ
19053
19054 # Dependencies to place after the objects being linked to create a
19055 # shared library.
19056 postdeps=$lt_postdeps_GCJ
19057
19058 # The library search path used internally by the compiler when linking
19059 # a shared library.
19060 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19061
19062 # Method to check whether dependent libraries are shared objects.
19063 deplibs_check_method=$lt_deplibs_check_method
19064
19065 # Command to use when deplibs_check_method == file_magic.
19066 file_magic_cmd=$lt_file_magic_cmd
19067
19068 # Flag that allows shared libraries with undefined symbols to be built.
19069 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19070
19071 # Flag that forces no undefined symbols.
19072 no_undefined_flag=$lt_no_undefined_flag_GCJ
19073
19074 # Commands used to finish a libtool library installation in a directory.
19075 finish_cmds=$lt_finish_cmds
19076
19077 # Same as above, but a single script fragment to be evaled but not shown.
19078 finish_eval=$lt_finish_eval
19079
19080 # Take the output of nm and produce a listing of raw symbols and C names.
19081 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19082
19083 # Transform the output of nm in a proper C declaration
19084 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19085
19086 # Transform the output of nm in a C name address pair
19087 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19088
19089 # This is the shared library runtime path variable.
19090 runpath_var=$runpath_var
19091
19092 # This is the shared library path variable.
19093 shlibpath_var=$shlibpath_var
19094
19095 # Is shlibpath searched before the hard-coded library search path?
19096 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19097
19098 # How to hardcode a shared library path into an executable.
19099 hardcode_action=$hardcode_action_GCJ
19100
19101 # Whether we should hardcode library paths into libraries.
19102 hardcode_into_libs=$hardcode_into_libs
19103
19104 # Flag to hardcode \$libdir into a binary during linking.
19105 # This must work even if \$libdir does not exist.
19106 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19107
19108 # If ld is used when linking, flag to hardcode \$libdir into
19109 # a binary during linking. This must work even if \$libdir does
19110 # not exist.
19111 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19112
19113 # Whether we need a single -rpath flag with a separated argument.
19114 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19115
19116 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19117 # resulting binary.
19118 hardcode_direct=$hardcode_direct_GCJ
19119
19120 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19121 # resulting binary.
19122 hardcode_minus_L=$hardcode_minus_L_GCJ
19123
19124 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19125 # the resulting binary.
19126 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19127
19128 # Set to yes if building a shared library automatically hardcodes DIR into the library
19129 # and all subsequent libraries and executables linked against it.
19130 hardcode_automatic=$hardcode_automatic_GCJ
19131
19132 # Variables whose values should be saved in libtool wrapper scripts and
19133 # restored at relink time.
19134 variables_saved_for_relink="$variables_saved_for_relink"
19135
19136 # Whether libtool must link a program against all its dependency libraries.
19137 link_all_deplibs=$link_all_deplibs_GCJ
19138
19139 # Compile-time system search path for libraries
19140 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19141
19142 # Run-time system search path for libraries
19143 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19144
19145 # Fix the shell variable \$srcfile for the compiler.
19146 fix_srcfile_path="$fix_srcfile_path_GCJ"
19147
19148 # Set to yes if exported symbols are required.
19149 always_export_symbols=$always_export_symbols_GCJ
19150
19151 # The commands to list exported symbols.
19152 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19153
19154 # The commands to extract the exported symbol list from a shared archive.
19155 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19156
19157 # Symbols that should not be listed in the preloaded symbols.
19158 exclude_expsyms=$lt_exclude_expsyms_GCJ
19159
19160 # Symbols that must always be exported.
19161 include_expsyms=$lt_include_expsyms_GCJ
19162
19163 # ### END LIBTOOL TAG CONFIG: $tagname
19164
19165 __EOF__
19166
19167
19168 else
19169   # If there is no Makefile yet, we rely on a make rule to execute
19170   # `config.status --recheck' to rerun these tests and create the
19171   # libtool script then.
19172   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19173   if test -f "$ltmain_in"; then
19174     test -f Makefile && make "$ltmain"
19175   fi
19176 fi
19177
19178
19179 ac_ext=c
19180 ac_cpp='$CPP $CPPFLAGS'
19181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19184
19185 CC="$lt_save_CC"
19186
19187         else
19188           tagname=""
19189         fi
19190         ;;
19191
19192       RC)
19193
19194
19195 # Source file extension for RC test sources.
19196 ac_ext=rc
19197
19198 # Object file extension for compiled RC test sources.
19199 objext=o
19200 objext_RC=$objext
19201
19202 # Code to be used in simple compile tests
19203 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19204
19205 # Code to be used in simple link tests
19206 lt_simple_link_test_code="$lt_simple_compile_test_code"
19207
19208 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19209
19210 # If no C compiler was specified, use CC.
19211 LTCC=${LTCC-"$CC"}
19212
19213 # If no C compiler flags were specified, use CFLAGS.
19214 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19215
19216 # Allow CC to be a program name with arguments.
19217 compiler=$CC
19218
19219
19220 # save warnings/boilerplate of simple test code
19221 ac_outfile=conftest.$ac_objext
19222 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19223 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19224 _lt_compiler_boilerplate=`cat conftest.err`
19225 $rm conftest*
19226
19227 ac_outfile=conftest.$ac_objext
19228 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19229 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19230 _lt_linker_boilerplate=`cat conftest.err`
19231 $rm conftest*
19232
19233
19234 # Allow CC to be a program name with arguments.
19235 lt_save_CC="$CC"
19236 CC=${RC-"windres"}
19237 compiler=$CC
19238 compiler_RC=$CC
19239 for cc_temp in $compiler""; do
19240   case $cc_temp in
19241     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19242     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19243     \-*) ;;
19244     *) break;;
19245   esac
19246 done
19247 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19248
19249 lt_cv_prog_compiler_c_o_RC=yes
19250
19251 # The else clause should only fire when bootstrapping the
19252 # libtool distribution, otherwise you forgot to ship ltmain.sh
19253 # with your package, and you will get complaints that there are
19254 # no rules to generate ltmain.sh.
19255 if test -f "$ltmain"; then
19256   # See if we are running on zsh, and set the options which allow our commands through
19257   # without removal of \ escapes.
19258   if test -n "${ZSH_VERSION+set}" ; then
19259     setopt NO_GLOB_SUBST
19260   fi
19261   # Now quote all the things that may contain metacharacters while being
19262   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19263   # variables and quote the copies for generation of the libtool script.
19264   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19265     SED SHELL STRIP \
19266     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19267     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19268     deplibs_check_method reload_flag reload_cmds need_locks \
19269     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19270     lt_cv_sys_global_symbol_to_c_name_address \
19271     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19272     old_postinstall_cmds old_postuninstall_cmds \
19273     compiler_RC \
19274     CC_RC \
19275     LD_RC \
19276     lt_prog_compiler_wl_RC \
19277     lt_prog_compiler_pic_RC \
19278     lt_prog_compiler_static_RC \
19279     lt_prog_compiler_no_builtin_flag_RC \
19280     export_dynamic_flag_spec_RC \
19281     thread_safe_flag_spec_RC \
19282     whole_archive_flag_spec_RC \
19283     enable_shared_with_static_runtimes_RC \
19284     old_archive_cmds_RC \
19285     old_archive_from_new_cmds_RC \
19286     predep_objects_RC \
19287     postdep_objects_RC \
19288     predeps_RC \
19289     postdeps_RC \
19290     compiler_lib_search_path_RC \
19291     archive_cmds_RC \
19292     archive_expsym_cmds_RC \
19293     postinstall_cmds_RC \
19294     postuninstall_cmds_RC \
19295     old_archive_from_expsyms_cmds_RC \
19296     allow_undefined_flag_RC \
19297     no_undefined_flag_RC \
19298     export_symbols_cmds_RC \
19299     hardcode_libdir_flag_spec_RC \
19300     hardcode_libdir_flag_spec_ld_RC \
19301     hardcode_libdir_separator_RC \
19302     hardcode_automatic_RC \
19303     module_cmds_RC \
19304     module_expsym_cmds_RC \
19305     lt_cv_prog_compiler_c_o_RC \
19306     exclude_expsyms_RC \
19307     include_expsyms_RC; do
19308
19309     case $var in
19310     old_archive_cmds_RC | \
19311     old_archive_from_new_cmds_RC | \
19312     archive_cmds_RC | \
19313     archive_expsym_cmds_RC | \
19314     module_cmds_RC | \
19315     module_expsym_cmds_RC | \
19316     old_archive_from_expsyms_cmds_RC | \
19317     export_symbols_cmds_RC | \
19318     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19319     postinstall_cmds | postuninstall_cmds | \
19320     old_postinstall_cmds | old_postuninstall_cmds | \
19321     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19322       # Double-quote double-evaled strings.
19323       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19324       ;;
19325     *)
19326       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19327       ;;
19328     esac
19329   done
19330
19331   case $lt_echo in
19332   *'\$0 --fallback-echo"')
19333     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19334     ;;
19335   esac
19336
19337 cfgfile="$ofile"
19338
19339   cat <<__EOF__ >> "$cfgfile"
19340 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19341
19342 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19343
19344 # Shell to use when invoking shell scripts.
19345 SHELL=$lt_SHELL
19346
19347 # Whether or not to build shared libraries.
19348 build_libtool_libs=$enable_shared
19349
19350 # Whether or not to build static libraries.
19351 build_old_libs=$enable_static
19352
19353 # Whether or not to add -lc for building shared libraries.
19354 build_libtool_need_lc=$archive_cmds_need_lc_RC
19355
19356 # Whether or not to disallow shared libs when runtime libs are static
19357 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19358
19359 # Whether or not to optimize for fast installation.
19360 fast_install=$enable_fast_install
19361
19362 # The host system.
19363 host_alias=$host_alias
19364 host=$host
19365 host_os=$host_os
19366
19367 # The build system.
19368 build_alias=$build_alias
19369 build=$build
19370 build_os=$build_os
19371
19372 # An echo program that does not interpret backslashes.
19373 echo=$lt_echo
19374
19375 # The archiver.
19376 AR=$lt_AR
19377 AR_FLAGS=$lt_AR_FLAGS
19378
19379 # A C compiler.
19380 LTCC=$lt_LTCC
19381
19382 # LTCC compiler flags.
19383 LTCFLAGS=$lt_LTCFLAGS
19384
19385 # A language-specific compiler.
19386 CC=$lt_compiler_RC
19387
19388 # Is the compiler the GNU C compiler?
19389 with_gcc=$GCC_RC
19390
19391 # An ERE matcher.
19392 EGREP=$lt_EGREP
19393
19394 # The linker used to build libraries.
19395 LD=$lt_LD_RC
19396
19397 # Whether we need hard or soft links.
19398 LN_S=$lt_LN_S
19399
19400 # A BSD-compatible nm program.
19401 NM=$lt_NM
19402
19403 # A symbol stripping program
19404 STRIP=$lt_STRIP
19405
19406 # Used to examine libraries when file_magic_cmd begins "file"
19407 MAGIC_CMD=$MAGIC_CMD
19408
19409 # Used on cygwin: DLL creation program.
19410 DLLTOOL="$DLLTOOL"
19411
19412 # Used on cygwin: object dumper.
19413 OBJDUMP="$OBJDUMP"
19414
19415 # Used on cygwin: assembler.
19416 AS="$AS"
19417
19418 # The name of the directory that contains temporary libtool files.
19419 objdir=$objdir
19420
19421 # How to create reloadable object files.
19422 reload_flag=$lt_reload_flag
19423 reload_cmds=$lt_reload_cmds
19424
19425 # How to pass a linker flag through the compiler.
19426 wl=$lt_lt_prog_compiler_wl_RC
19427
19428 # Object file suffix (normally "o").
19429 objext="$ac_objext"
19430
19431 # Old archive suffix (normally "a").
19432 libext="$libext"
19433
19434 # Shared library suffix (normally ".so").
19435 shrext_cmds='$shrext_cmds'
19436
19437 # Executable file suffix (normally "").
19438 exeext="$exeext"
19439
19440 # Additional compiler flags for building library objects.
19441 pic_flag=$lt_lt_prog_compiler_pic_RC
19442 pic_mode=$pic_mode
19443
19444 # What is the maximum length of a command?
19445 max_cmd_len=$lt_cv_sys_max_cmd_len
19446
19447 # Does compiler simultaneously support -c and -o options?
19448 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19449
19450 # Must we lock files when doing compilation?
19451 need_locks=$lt_need_locks
19452
19453 # Do we need the lib prefix for modules?
19454 need_lib_prefix=$need_lib_prefix
19455
19456 # Do we need a version for libraries?
19457 need_version=$need_version
19458
19459 # Whether dlopen is supported.
19460 dlopen_support=$enable_dlopen
19461
19462 # Whether dlopen of programs is supported.
19463 dlopen_self=$enable_dlopen_self
19464
19465 # Whether dlopen of statically linked programs is supported.
19466 dlopen_self_static=$enable_dlopen_self_static
19467
19468 # Compiler flag to prevent dynamic linking.
19469 link_static_flag=$lt_lt_prog_compiler_static_RC
19470
19471 # Compiler flag to turn off builtin functions.
19472 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19473
19474 # Compiler flag to allow reflexive dlopens.
19475 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19476
19477 # Compiler flag to generate shared objects directly from archives.
19478 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19479
19480 # Compiler flag to generate thread-safe objects.
19481 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19482
19483 # Library versioning type.
19484 version_type=$version_type
19485
19486 # Format of library name prefix.
19487 libname_spec=$lt_libname_spec
19488
19489 # List of archive names.  First name is the real one, the rest are links.
19490 # The last name is the one that the linker finds with -lNAME.
19491 library_names_spec=$lt_library_names_spec
19492
19493 # The coded name of the library, if different from the real name.
19494 soname_spec=$lt_soname_spec
19495
19496 # Commands used to build and install an old-style archive.
19497 RANLIB=$lt_RANLIB
19498 old_archive_cmds=$lt_old_archive_cmds_RC
19499 old_postinstall_cmds=$lt_old_postinstall_cmds
19500 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19501
19502 # Create an old-style archive from a shared archive.
19503 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19504
19505 # Create a temporary old-style archive to link instead of a shared archive.
19506 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19507
19508 # Commands used to build and install a shared archive.
19509 archive_cmds=$lt_archive_cmds_RC
19510 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19511 postinstall_cmds=$lt_postinstall_cmds
19512 postuninstall_cmds=$lt_postuninstall_cmds
19513
19514 # Commands used to build a loadable module (assumed same as above if empty)
19515 module_cmds=$lt_module_cmds_RC
19516 module_expsym_cmds=$lt_module_expsym_cmds_RC
19517
19518 # Commands to strip libraries.
19519 old_striplib=$lt_old_striplib
19520 striplib=$lt_striplib
19521
19522 # Dependencies to place before the objects being linked to create a
19523 # shared library.
19524 predep_objects=$lt_predep_objects_RC
19525
19526 # Dependencies to place after the objects being linked to create a
19527 # shared library.
19528 postdep_objects=$lt_postdep_objects_RC
19529
19530 # Dependencies to place before the objects being linked to create a
19531 # shared library.
19532 predeps=$lt_predeps_RC
19533
19534 # Dependencies to place after the objects being linked to create a
19535 # shared library.
19536 postdeps=$lt_postdeps_RC
19537
19538 # The library search path used internally by the compiler when linking
19539 # a shared library.
19540 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19541
19542 # Method to check whether dependent libraries are shared objects.
19543 deplibs_check_method=$lt_deplibs_check_method
19544
19545 # Command to use when deplibs_check_method == file_magic.
19546 file_magic_cmd=$lt_file_magic_cmd
19547
19548 # Flag that allows shared libraries with undefined symbols to be built.
19549 allow_undefined_flag=$lt_allow_undefined_flag_RC
19550
19551 # Flag that forces no undefined symbols.
19552 no_undefined_flag=$lt_no_undefined_flag_RC
19553
19554 # Commands used to finish a libtool library installation in a directory.
19555 finish_cmds=$lt_finish_cmds
19556
19557 # Same as above, but a single script fragment to be evaled but not shown.
19558 finish_eval=$lt_finish_eval
19559
19560 # Take the output of nm and produce a listing of raw symbols and C names.
19561 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19562
19563 # Transform the output of nm in a proper C declaration
19564 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19565
19566 # Transform the output of nm in a C name address pair
19567 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19568
19569 # This is the shared library runtime path variable.
19570 runpath_var=$runpath_var
19571
19572 # This is the shared library path variable.
19573 shlibpath_var=$shlibpath_var
19574
19575 # Is shlibpath searched before the hard-coded library search path?
19576 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19577
19578 # How to hardcode a shared library path into an executable.
19579 hardcode_action=$hardcode_action_RC
19580
19581 # Whether we should hardcode library paths into libraries.
19582 hardcode_into_libs=$hardcode_into_libs
19583
19584 # Flag to hardcode \$libdir into a binary during linking.
19585 # This must work even if \$libdir does not exist.
19586 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19587
19588 # If ld is used when linking, flag to hardcode \$libdir into
19589 # a binary during linking. This must work even if \$libdir does
19590 # not exist.
19591 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19592
19593 # Whether we need a single -rpath flag with a separated argument.
19594 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19595
19596 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19597 # resulting binary.
19598 hardcode_direct=$hardcode_direct_RC
19599
19600 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19601 # resulting binary.
19602 hardcode_minus_L=$hardcode_minus_L_RC
19603
19604 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19605 # the resulting binary.
19606 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19607
19608 # Set to yes if building a shared library automatically hardcodes DIR into the library
19609 # and all subsequent libraries and executables linked against it.
19610 hardcode_automatic=$hardcode_automatic_RC
19611
19612 # Variables whose values should be saved in libtool wrapper scripts and
19613 # restored at relink time.
19614 variables_saved_for_relink="$variables_saved_for_relink"
19615
19616 # Whether libtool must link a program against all its dependency libraries.
19617 link_all_deplibs=$link_all_deplibs_RC
19618
19619 # Compile-time system search path for libraries
19620 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19621
19622 # Run-time system search path for libraries
19623 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19624
19625 # Fix the shell variable \$srcfile for the compiler.
19626 fix_srcfile_path="$fix_srcfile_path_RC"
19627
19628 # Set to yes if exported symbols are required.
19629 always_export_symbols=$always_export_symbols_RC
19630
19631 # The commands to list exported symbols.
19632 export_symbols_cmds=$lt_export_symbols_cmds_RC
19633
19634 # The commands to extract the exported symbol list from a shared archive.
19635 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19636
19637 # Symbols that should not be listed in the preloaded symbols.
19638 exclude_expsyms=$lt_exclude_expsyms_RC
19639
19640 # Symbols that must always be exported.
19641 include_expsyms=$lt_include_expsyms_RC
19642
19643 # ### END LIBTOOL TAG CONFIG: $tagname
19644
19645 __EOF__
19646
19647
19648 else
19649   # If there is no Makefile yet, we rely on a make rule to execute
19650   # `config.status --recheck' to rerun these tests and create the
19651   # libtool script then.
19652   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19653   if test -f "$ltmain_in"; then
19654     test -f Makefile && make "$ltmain"
19655   fi
19656 fi
19657
19658
19659 ac_ext=c
19660 ac_cpp='$CPP $CPPFLAGS'
19661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19664
19665 CC="$lt_save_CC"
19666
19667         ;;
19668
19669       *)
19670         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19671 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19672    { (exit 1); exit 1; }; }
19673         ;;
19674       esac
19675
19676       # Append the new tag name to the list of available tags.
19677       if test -n "$tagname" ; then
19678       available_tags="$available_tags $tagname"
19679     fi
19680     fi
19681   done
19682   IFS="$lt_save_ifs"
19683
19684   # Now substitute the updated list of available tags.
19685   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19686     mv "${ofile}T" "$ofile"
19687     chmod +x "$ofile"
19688   else
19689     rm -f "${ofile}T"
19690     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19691 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19692    { (exit 1); exit 1; }; }
19693   fi
19694 fi
19695
19696
19697
19698 # This can be used to rebuild libtool when needed
19699 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19700
19701 # Always use our own libtool.
19702 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19703
19704 # Prevent multiple expansion
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717 # Check whether --with-system-libtool was given.
19718 if test "${with_system_libtool+set}" = set; then
19719   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19720 set dummy libtool; ac_word=$2
19721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19723 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19724   echo $ECHO_N "(cached) $ECHO_C" >&6
19725 else
19726   case $LIBTOOL in
19727   [\\/]* | ?:[\\/]*)
19728   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19729   ;;
19730   *)
19731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19732 as_dummy="$PATH:/usr/local/bin"
19733 for as_dir in $as_dummy
19734 do
19735   IFS=$as_save_IFS
19736   test -z "$as_dir" && as_dir=.
19737   for ac_exec_ext in '' $ac_executable_extensions; do
19738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19739     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19741     break 2
19742   fi
19743 done
19744 done
19745 IFS=$as_save_IFS
19746
19747   ;;
19748 esac
19749 fi
19750 LIBTOOL=$ac_cv_path_LIBTOOL
19751 if test -n "$LIBTOOL"; then
19752   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19753 echo "${ECHO_T}$LIBTOOL" >&6; }
19754 else
19755   { echo "$as_me:$LINENO: result: no" >&5
19756 echo "${ECHO_T}no" >&6; }
19757 fi
19758
19759
19760 else
19761
19762   LIBTOOL="`pwd`/libtool"
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777 fi
19778
19779
19780
19781
19782 # Check whether --enable-strict-dependencies was given.
19783 if test "${enable_strict_dependencies+set}" = set; then
19784   enableval=$enable_strict_dependencies;
19785 fi
19786
19787
19788 docdir='${datadir}/doc/freeradius'
19789 { echo "$as_me:$LINENO: checking docdir" >&5
19790 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19791
19792 # Check whether --with-docdir was given.
19793 if test "${with_docdir+set}" = set; then
19794   withval=$with_docdir;  case "$withval" in
19795     no)
19796         docdir=no
19797         ;;
19798     yes)
19799         ;;
19800     [\\/$]* | ?:[\\/]* )
19801         docdir="$withval"
19802         ;;
19803     *)
19804         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19805 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19806    { (exit 1); exit 1; }; }
19807         ;;
19808   esac
19809
19810 fi
19811
19812
19813 { echo "$as_me:$LINENO: result: $docdir" >&5
19814 echo "${ECHO_T}$docdir" >&6; }
19815 if test "x$docdir" = xno; then
19816         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19817 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19818 fi
19819
19820 logdir='${localstatedir}/log/radius'
19821 { echo "$as_me:$LINENO: checking logdir" >&5
19822 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19823
19824 # Check whether --with-logdir was given.
19825 if test "${with_logdir+set}" = set; then
19826   withval=$with_logdir;  case "$withval" in
19827     no)
19828         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19829 echo "$as_me: error: Need logdir" >&2;}
19830    { (exit 1); exit 1; }; }
19831         ;;
19832     yes)
19833         ;;
19834     [\\/$]* | ?:[\\/]* )
19835         logdir="$withval"
19836         ;;
19837     *)
19838         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19839 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19840    { (exit 1); exit 1; }; }
19841         ;;
19842   esac
19843
19844 fi
19845
19846
19847 { echo "$as_me:$LINENO: result: $logdir" >&5
19848 echo "${ECHO_T}$logdir" >&6; }
19849
19850 radacctdir='${logdir}/radacct'
19851 { echo "$as_me:$LINENO: checking radacctdir" >&5
19852 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19853
19854 # Check whether --with-radacctdir was given.
19855 if test "${with_radacctdir+set}" = set; then
19856   withval=$with_radacctdir;  case "$withval" in
19857     no)
19858         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19859 echo "$as_me: error: Need radacctdir" >&2;}
19860    { (exit 1); exit 1; }; }
19861         ;;
19862     yes)
19863         ;;
19864     [\\/$]* | ?:[\\/]* )
19865         radacctdir="$withval"
19866         ;;
19867     *)
19868         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19869 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19870    { (exit 1); exit 1; }; }
19871         ;;
19872   esac
19873
19874 fi
19875
19876
19877 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19878 echo "${ECHO_T}$radacctdir" >&6; }
19879
19880 raddbdir='${sysconfdir}/raddb'
19881 { echo "$as_me:$LINENO: checking raddbdir" >&5
19882 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19883
19884 # Check whether --with-raddbdir was given.
19885 if test "${with_raddbdir+set}" = set; then
19886   withval=$with_raddbdir;  case "$withval" in
19887     no)
19888         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19889 echo "$as_me: error: Need raddbdir" >&2;}
19890    { (exit 1); exit 1; }; }
19891         ;;
19892     yes)
19893         ;;
19894     [\\/$]* | ?:[\\/]* )
19895         raddbdir="$withval"
19896         ;;
19897     *)
19898         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19899 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19900    { (exit 1); exit 1; }; }
19901         ;;
19902   esac
19903
19904 fi
19905
19906
19907 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19908 echo "${ECHO_T}$raddbdir" >&6; }
19909
19910 ASCEND_BINARY=yes
19911
19912 # Check whether --with-ascend-binary was given.
19913 if test "${with_ascend_binary+set}" = set; then
19914   withval=$with_ascend_binary;  case "$withval" in
19915     yes)
19916         ;;
19917     *)
19918         ASCEND_BINARY=""
19919   esac
19920
19921 fi
19922
19923 if test "X$ASCEND_BINARY" = "Xyes"; then
19924   cat >>confdefs.h <<\_ACEOF
19925 #define ASCEND_BINARY 1
19926 _ACEOF
19927
19928 fi
19929
19930 WITH_THREADS=yes
19931
19932 # Check whether --with-threads was given.
19933 if test "${with_threads+set}" = set; then
19934   withval=$with_threads;  case "$withval" in
19935     yes)
19936         ;;
19937     *)
19938         WITH_THREADS=""
19939   esac
19940
19941 fi
19942
19943
19944 WITH_SNMP=yes
19945
19946 # Check whether --with-snmp was given.
19947 if test "${with_snmp+set}" = set; then
19948   withval=$with_snmp;  case "$withval" in
19949     yes)
19950         ;;
19951     *)
19952         WITH_SNMP=no
19953   esac
19954
19955 fi
19956
19957
19958 rad_enable_largefiles=no
19959
19960 # Check whether --with-large-files was given.
19961 if test "${with_large_files+set}" = set; then
19962   withval=$with_large_files;  case "$withval" in
19963     yes)
19964         rad_enable_largefiles=yes
19965         ;;
19966     *)
19967         ;;
19968   esac
19969
19970 fi
19971
19972
19973
19974 STATIC_MODULES=
19975
19976 # Check whether --with-static_modules was given.
19977 if test "${with_static_modules+set}" = set; then
19978   withval=$with_static_modules;
19979   for i in $withval; do
19980     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19981   done
19982
19983 fi
19984
19985
19986 MODULES=
19987
19988 # Check whether --with-modules was given.
19989 if test "${with_modules+set}" = set; then
19990   withval=$with_modules;
19991  for i in $withval; do
19992    MODULES="$MODULES $i"
19993  done
19994
19995 fi
19996
19997
19998 # Check whether --enable-developer was given.
19999 if test "${enable_developer+set}" = set; then
20000   enableval=$enable_developer;  case "$enableval" in
20001     no)
20002         developer=no
20003         ;;
20004     *)
20005         developer=yes
20006   esac
20007
20008 fi
20009
20010
20011 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20012     developer="yes"
20013 fi
20014
20015 EXPERIMENTAL=
20016
20017 # Check whether --with-experimental-modules was given.
20018 if test "${with_experimental_modules+set}" = set; then
20019   withval=$with_experimental_modules;  case "$withval" in
20020     yes)
20021         EXPERIMENTAL=yes
20022         ;;
20023     *)
20024   esac
20025
20026 fi
20027
20028
20029 OPENSSL_INCLUDE_DIR=
20030
20031 # Check whether --with-openssl-includes was given.
20032 if test "${with_openssl_includes+set}" = set; then
20033   withval=$with_openssl_includes;  case "$withval" in
20034     *) OPENSSL_INCLUDE_DIR="$withval"
20035         ;;
20036   esac
20037
20038 fi
20039
20040
20041 OPENSSL_LIB_DIR=
20042
20043 # Check whether --with-openssl-libraries was given.
20044 if test "${with_openssl_libraries+set}" = set; then
20045   withval=$with_openssl_libraries;  case "$withval" in
20046     *) OPENSSL_LIB_DIR="$withval"
20047         ;;
20048   esac
20049
20050 fi
20051
20052
20053
20054
20055 # Check whether --with-rlm-FOO-lib-dir was given.
20056 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20057   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
20058     *)
20059         ;;
20060   esac
20061
20062 fi
20063
20064
20065
20066 # Check whether --with-rlm-FOO-include-dir was given.
20067 if test "${with_rlm_FOO_include_dir+set}" = set; then
20068   withval=$with_rlm_FOO_include_dir;  case "$withval" in
20069     *)
20070         ;;
20071   esac
20072
20073 fi
20074
20075
20076
20077 WITH_UDPFROMTO=no
20078
20079 # Check whether --with-udpfromto was given.
20080 if test "${with_udpfromto+set}" = set; then
20081   withval=$with_udpfromto;  case "$withval" in
20082     yes)
20083         WITH_UDPFROMTO=yes
20084         ;;
20085     *)
20086         WITH_UDPFROMTO=no
20087   esac
20088
20089 fi
20090
20091
20092 if test "x$WITH_UDPFROMTO" = "xyes"; then
20093         cat >>confdefs.h <<\_ACEOF
20094 #define WITH_UDPFROMTO 1
20095 _ACEOF
20096
20097 fi
20098
20099
20100 # Check whether --with-edir was given.
20101 if test "${with_edir+set}" = set; then
20102   withval=$with_edir;
20103 fi
20104
20105
20106
20107 CHECKRAD=checkrad.pl
20108 # Extract the first word of "perl", so it can be a program name with args.
20109 set dummy perl; ac_word=$2
20110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20112 if test "${ac_cv_path_PERL+set}" = set; then
20113   echo $ECHO_N "(cached) $ECHO_C" >&6
20114 else
20115   case $PERL in
20116   [\\/]* | ?:[\\/]*)
20117   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20118   ;;
20119   *)
20120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20121 for as_dir in $PATH
20122 do
20123   IFS=$as_save_IFS
20124   test -z "$as_dir" && as_dir=.
20125   for ac_exec_ext in '' $ac_executable_extensions; do
20126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20127     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20129     break 2
20130   fi
20131 done
20132 done
20133 IFS=$as_save_IFS
20134
20135   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20136   ;;
20137 esac
20138 fi
20139 PERL=$ac_cv_path_PERL
20140 if test -n "$PERL"; then
20141   { echo "$as_me:$LINENO: result: $PERL" >&5
20142 echo "${ECHO_T}$PERL" >&6; }
20143 else
20144   { echo "$as_me:$LINENO: result: no" >&5
20145 echo "${ECHO_T}no" >&6; }
20146 fi
20147
20148
20149 if test "x$ac_cv_path_PERL" = "x"; then
20150   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20151 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20152 fi
20153 # Extract the first word of "snmpget", so it can be a program name with args.
20154 set dummy snmpget; ac_word=$2
20155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20157 if test "${ac_cv_path_SNMPGET+set}" = set; then
20158   echo $ECHO_N "(cached) $ECHO_C" >&6
20159 else
20160   case $SNMPGET in
20161   [\\/]* | ?:[\\/]*)
20162   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20163   ;;
20164   *)
20165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20166 for as_dir in $PATH
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_SNMPGET="$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 SNMPGET=$ac_cv_path_SNMPGET
20184 if test -n "$SNMPGET"; then
20185   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20186 echo "${ECHO_T}$SNMPGET" >&6; }
20187 else
20188   { echo "$as_me:$LINENO: result: no" >&5
20189 echo "${ECHO_T}no" >&6; }
20190 fi
20191
20192
20193 if test "x$ac_cv_path_SNMPGET" = "x"; then
20194   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20195 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20196 fi
20197
20198 # Extract the first word of "snmpwalk", so it can be a program name with args.
20199 set dummy snmpwalk; ac_word=$2
20200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20202 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20203   echo $ECHO_N "(cached) $ECHO_C" >&6
20204 else
20205   case $SNMPWALK in
20206   [\\/]* | ?:[\\/]*)
20207   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20208   ;;
20209   *)
20210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20211 for as_dir in $PATH
20212 do
20213   IFS=$as_save_IFS
20214   test -z "$as_dir" && as_dir=.
20215   for ac_exec_ext in '' $ac_executable_extensions; do
20216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20217     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20219     break 2
20220   fi
20221 done
20222 done
20223 IFS=$as_save_IFS
20224
20225   ;;
20226 esac
20227 fi
20228 SNMPWALK=$ac_cv_path_SNMPWALK
20229 if test -n "$SNMPWALK"; then
20230   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20231 echo "${ECHO_T}$SNMPWALK" >&6; }
20232 else
20233   { echo "$as_me:$LINENO: result: no" >&5
20234 echo "${ECHO_T}no" >&6; }
20235 fi
20236
20237
20238 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20239   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20240 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20241 fi
20242
20243 # Extract the first word of "rusers", so it can be a program name with args.
20244 set dummy rusers; ac_word=$2
20245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20247 if test "${ac_cv_path_RUSERS+set}" = set; then
20248   echo $ECHO_N "(cached) $ECHO_C" >&6
20249 else
20250   case $RUSERS in
20251   [\\/]* | ?:[\\/]*)
20252   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20253   ;;
20254   *)
20255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20256 for as_dir in $PATH
20257 do
20258   IFS=$as_save_IFS
20259   test -z "$as_dir" && as_dir=.
20260   for ac_exec_ext in '' $ac_executable_extensions; do
20261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20262     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20264     break 2
20265   fi
20266 done
20267 done
20268 IFS=$as_save_IFS
20269
20270   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20271   ;;
20272 esac
20273 fi
20274 RUSERS=$ac_cv_path_RUSERS
20275 if test -n "$RUSERS"; then
20276   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20277 echo "${ECHO_T}$RUSERS" >&6; }
20278 else
20279   { echo "$as_me:$LINENO: result: no" >&5
20280 echo "${ECHO_T}no" >&6; }
20281 fi
20282
20283
20284
20285 missing_dir=`cd $ac_aux_dir && pwd`
20286 { echo "$as_me:$LINENO: checking for working aclocal" >&5
20287 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6; }
20288 # Run test in a subshell; some versions of sh will print an error if
20289 # an executable is not found, even if stderr is redirected.
20290 # Redirect stdin to placate older versions of autoconf.  Sigh.
20291 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
20292    ACLOCAL=aclocal
20293    { echo "$as_me:$LINENO: result: found" >&5
20294 echo "${ECHO_T}found" >&6; }
20295 else
20296    ACLOCAL="$missing_dir/missing aclocal"
20297    { echo "$as_me:$LINENO: result: missing" >&5
20298 echo "${ECHO_T}missing" >&6; }
20299 fi
20300
20301 { echo "$as_me:$LINENO: checking for working autoconf" >&5
20302 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6; }
20303 # Run test in a subshell; some versions of sh will print an error if
20304 # an executable is not found, even if stderr is redirected.
20305 # Redirect stdin to placate older versions of autoconf.  Sigh.
20306 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
20307    AUTOCONF=autoconf
20308    { echo "$as_me:$LINENO: result: found" >&5
20309 echo "${ECHO_T}found" >&6; }
20310 else
20311    AUTOCONF="$missing_dir/missing autoconf"
20312    { echo "$as_me:$LINENO: result: missing" >&5
20313 echo "${ECHO_T}missing" >&6; }
20314 fi
20315
20316 { echo "$as_me:$LINENO: checking for working autoheader" >&5
20317 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6; }
20318 # Run test in a subshell; some versions of sh will print an error if
20319 # an executable is not found, even if stderr is redirected.
20320 # Redirect stdin to placate older versions of autoconf.  Sigh.
20321 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
20322    AUTOHEADER=autoheader
20323    { echo "$as_me:$LINENO: result: found" >&5
20324 echo "${ECHO_T}found" >&6; }
20325 else
20326    AUTOHEADER="$missing_dir/missing autoheader"
20327    { echo "$as_me:$LINENO: result: missing" >&5
20328 echo "${ECHO_T}missing" >&6; }
20329 fi
20330
20331
20332 # Extract the first word of "locate", so it can be a program name with args.
20333 set dummy locate; ac_word=$2
20334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20336 if test "${ac_cv_path_LOCATE+set}" = set; then
20337   echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339   case $LOCATE in
20340   [\\/]* | ?:[\\/]*)
20341   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20342   ;;
20343   *)
20344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20345 for as_dir in $PATH
20346 do
20347   IFS=$as_save_IFS
20348   test -z "$as_dir" && as_dir=.
20349   for ac_exec_ext in '' $ac_executable_extensions; do
20350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20351     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20353     break 2
20354   fi
20355 done
20356 done
20357 IFS=$as_save_IFS
20358
20359   ;;
20360 esac
20361 fi
20362 LOCATE=$ac_cv_path_LOCATE
20363 if test -n "$LOCATE"; then
20364   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20365 echo "${ECHO_T}$LOCATE" >&6; }
20366 else
20367   { echo "$as_me:$LINENO: result: no" >&5
20368 echo "${ECHO_T}no" >&6; }
20369 fi
20370
20371
20372 # Extract the first word of "dirname", so it can be a program name with args.
20373 set dummy dirname; ac_word=$2
20374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20376 if test "${ac_cv_path_DIRNAME+set}" = set; then
20377   echo $ECHO_N "(cached) $ECHO_C" >&6
20378 else
20379   case $DIRNAME in
20380   [\\/]* | ?:[\\/]*)
20381   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20382   ;;
20383   *)
20384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20385 for as_dir in $PATH
20386 do
20387   IFS=$as_save_IFS
20388   test -z "$as_dir" && as_dir=.
20389   for ac_exec_ext in '' $ac_executable_extensions; do
20390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20391     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20393     break 2
20394   fi
20395 done
20396 done
20397 IFS=$as_save_IFS
20398
20399   ;;
20400 esac
20401 fi
20402 DIRNAME=$ac_cv_path_DIRNAME
20403 if test -n "$DIRNAME"; then
20404   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20405 echo "${ECHO_T}$DIRNAME" >&6; }
20406 else
20407   { echo "$as_me:$LINENO: result: no" >&5
20408 echo "${ECHO_T}no" >&6; }
20409 fi
20410
20411
20412 # Extract the first word of "grep", so it can be a program name with args.
20413 set dummy grep; ac_word=$2
20414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20416 if test "${ac_cv_path_GREP+set}" = set; then
20417   echo $ECHO_N "(cached) $ECHO_C" >&6
20418 else
20419   case $GREP in
20420   [\\/]* | ?:[\\/]*)
20421   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20422   ;;
20423   *)
20424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20425 for as_dir in $PATH
20426 do
20427   IFS=$as_save_IFS
20428   test -z "$as_dir" && as_dir=.
20429   for ac_exec_ext in '' $ac_executable_extensions; do
20430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20431     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20433     break 2
20434   fi
20435 done
20436 done
20437 IFS=$as_save_IFS
20438
20439   ;;
20440 esac
20441 fi
20442 GREP=$ac_cv_path_GREP
20443 if test -n "$GREP"; then
20444   { echo "$as_me:$LINENO: result: $GREP" >&5
20445 echo "${ECHO_T}$GREP" >&6; }
20446 else
20447   { echo "$as_me:$LINENO: result: no" >&5
20448 echo "${ECHO_T}no" >&6; }
20449 fi
20450
20451
20452
20453
20454 old_CFLAGS=$CFLAGS
20455 if test "x$WITH_THREADS" = "xyes"; then
20456   if test $ac_cv_prog_suncc = "yes"; then
20457     CFLAGS="$CFLAGS -mt"
20458   fi
20459
20460
20461 for ac_header in pthread.h
20462 do
20463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20465   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20468   echo $ECHO_N "(cached) $ECHO_C" >&6
20469 fi
20470 ac_res=`eval echo '${'$as_ac_Header'}'`
20471                { echo "$as_me:$LINENO: result: $ac_res" >&5
20472 echo "${ECHO_T}$ac_res" >&6; }
20473 else
20474   # Is the header compilable?
20475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20477 cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h.  */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h.  */
20483 $ac_includes_default
20484 #include <$ac_header>
20485 _ACEOF
20486 rm -f conftest.$ac_objext
20487 if { (ac_try="$ac_compile"
20488 case "(($ac_try" in
20489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490   *) ac_try_echo=$ac_try;;
20491 esac
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493   (eval "$ac_compile") 2>conftest.er1
20494   ac_status=$?
20495   grep -v '^ *+' conftest.er1 >conftest.err
20496   rm -f conftest.er1
20497   cat conftest.err >&5
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); } &&
20500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20501   { (case "(($ac_try" in
20502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503   *) ac_try_echo=$ac_try;;
20504 esac
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506   (eval "$ac_try") 2>&5
20507   ac_status=$?
20508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509   (exit $ac_status); }; } &&
20510          { ac_try='test -s conftest.$ac_objext'
20511   { (case "(($ac_try" in
20512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513   *) ac_try_echo=$ac_try;;
20514 esac
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516   (eval "$ac_try") 2>&5
20517   ac_status=$?
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); }; }; then
20520   ac_header_compiler=yes
20521 else
20522   echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20524
20525         ac_header_compiler=no
20526 fi
20527
20528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20530 echo "${ECHO_T}$ac_header_compiler" >&6; }
20531
20532 # Is the header present?
20533 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h.  */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h.  */
20541 #include <$ac_header>
20542 _ACEOF
20543 if { (ac_try="$ac_cpp conftest.$ac_ext"
20544 case "(($ac_try" in
20545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546   *) ac_try_echo=$ac_try;;
20547 esac
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20550   ac_status=$?
20551   grep -v '^ *+' conftest.er1 >conftest.err
20552   rm -f conftest.er1
20553   cat conftest.err >&5
20554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555   (exit $ac_status); } >/dev/null; then
20556   if test -s conftest.err; then
20557     ac_cpp_err=$ac_c_preproc_warn_flag
20558     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20559   else
20560     ac_cpp_err=
20561   fi
20562 else
20563   ac_cpp_err=yes
20564 fi
20565 if test -z "$ac_cpp_err"; then
20566   ac_header_preproc=yes
20567 else
20568   echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20570
20571   ac_header_preproc=no
20572 fi
20573
20574 rm -f conftest.err conftest.$ac_ext
20575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20576 echo "${ECHO_T}$ac_header_preproc" >&6; }
20577
20578 # So?  What about this header?
20579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20580   yes:no: )
20581     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20585     ac_header_preproc=yes
20586     ;;
20587   no:yes:* )
20588     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20590     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20591 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20592     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20594     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20595 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20598     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20600
20601     ;;
20602 esac
20603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20606   echo $ECHO_N "(cached) $ECHO_C" >&6
20607 else
20608   eval "$as_ac_Header=\$ac_header_preproc"
20609 fi
20610 ac_res=`eval echo '${'$as_ac_Header'}'`
20611                { echo "$as_me:$LINENO: result: $ac_res" >&5
20612 echo "${ECHO_T}$ac_res" >&6; }
20613
20614 fi
20615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20616   cat >>confdefs.h <<_ACEOF
20617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20618 _ACEOF
20619
20620 else
20621    WITH_THREADS="no"
20622 fi
20623
20624 done
20625
20626
20627   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20628 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20629 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20630   echo $ECHO_N "(cached) $ECHO_C" >&6
20631 else
20632   ac_check_lib_save_LIBS=$LIBS
20633 LIBS="-lpthread  $LIBS"
20634 cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h.  */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h.  */
20640
20641 /* Override any GCC internal prototype to avoid an error.
20642    Use char because int might match the return type of a GCC
20643    builtin and then its argument prototype would still apply.  */
20644 #ifdef __cplusplus
20645 extern "C"
20646 #endif
20647 char pthread_create ();
20648 int
20649 main ()
20650 {
20651 return pthread_create ();
20652   ;
20653   return 0;
20654 }
20655 _ACEOF
20656 rm -f conftest.$ac_objext conftest$ac_exeext
20657 if { (ac_try="$ac_link"
20658 case "(($ac_try" in
20659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660   *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663   (eval "$ac_link") 2>conftest.er1
20664   ac_status=$?
20665   grep -v '^ *+' conftest.er1 >conftest.err
20666   rm -f conftest.er1
20667   cat conftest.err >&5
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); } &&
20670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20671   { (case "(($ac_try" in
20672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673   *) ac_try_echo=$ac_try;;
20674 esac
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676   (eval "$ac_try") 2>&5
20677   ac_status=$?
20678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679   (exit $ac_status); }; } &&
20680          { ac_try='test -s conftest$ac_exeext'
20681   { (case "(($ac_try" in
20682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683   *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686   (eval "$ac_try") 2>&5
20687   ac_status=$?
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); }; }; then
20690   ac_cv_lib_pthread_pthread_create=yes
20691 else
20692   echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695         ac_cv_lib_pthread_pthread_create=no
20696 fi
20697
20698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20699       conftest$ac_exeext conftest.$ac_ext
20700 LIBS=$ac_check_lib_save_LIBS
20701 fi
20702 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20703 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20704 if test $ac_cv_lib_pthread_pthread_create = yes; then
20705    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20706                   LIBS="$LIBS -lpthread"
20707 else
20708   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20709 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20710 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20711   echo $ECHO_N "(cached) $ECHO_C" >&6
20712 else
20713   ac_check_lib_save_LIBS=$LIBS
20714 LIBS="-lc_r  $LIBS"
20715 cat >conftest.$ac_ext <<_ACEOF
20716 /* confdefs.h.  */
20717 _ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h.  */
20721
20722 /* Override any GCC internal prototype to avoid an error.
20723    Use char because int might match the return type of a GCC
20724    builtin and then its argument prototype would still apply.  */
20725 #ifdef __cplusplus
20726 extern "C"
20727 #endif
20728 char pthread_create ();
20729 int
20730 main ()
20731 {
20732 return pthread_create ();
20733   ;
20734   return 0;
20735 }
20736 _ACEOF
20737 rm -f conftest.$ac_objext conftest$ac_exeext
20738 if { (ac_try="$ac_link"
20739 case "(($ac_try" in
20740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741   *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744   (eval "$ac_link") 2>conftest.er1
20745   ac_status=$?
20746   grep -v '^ *+' conftest.er1 >conftest.err
20747   rm -f conftest.er1
20748   cat conftest.err >&5
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); } &&
20751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20752   { (case "(($ac_try" in
20753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754   *) ac_try_echo=$ac_try;;
20755 esac
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757   (eval "$ac_try") 2>&5
20758   ac_status=$?
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); }; } &&
20761          { ac_try='test -s conftest$ac_exeext'
20762   { (case "(($ac_try" in
20763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764   *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767   (eval "$ac_try") 2>&5
20768   ac_status=$?
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); }; }; then
20771   ac_cv_lib_c_r_pthread_create=yes
20772 else
20773   echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20775
20776         ac_cv_lib_c_r_pthread_create=no
20777 fi
20778
20779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20780       conftest$ac_exeext conftest.$ac_ext
20781 LIBS=$ac_check_lib_save_LIBS
20782 fi
20783 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20784 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20785 if test $ac_cv_lib_c_r_pthread_create = yes; then
20786    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20787 else
20788    WITH_THREADS="no"
20789
20790 fi
20791
20792
20793 fi
20794
20795 fi
20796
20797 if test "x$WITH_THREADS" != "xyes"; then
20798   CFLAGS=$old_CFLAGS
20799   ac_cv_header_pthread_h="no"
20800   WITH_THREADS=no
20801 else
20802
20803   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20804 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20805 if test "${ac_cv_search_sem_init+set}" = set; then
20806   echo $ECHO_N "(cached) $ECHO_C" >&6
20807 else
20808   ac_func_search_save_LIBS=$LIBS
20809 cat >conftest.$ac_ext <<_ACEOF
20810 /* confdefs.h.  */
20811 _ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h.  */
20815
20816 /* Override any GCC internal prototype to avoid an error.
20817    Use char because int might match the return type of a GCC
20818    builtin and then its argument prototype would still apply.  */
20819 #ifdef __cplusplus
20820 extern "C"
20821 #endif
20822 char sem_init ();
20823 int
20824 main ()
20825 {
20826 return sem_init ();
20827   ;
20828   return 0;
20829 }
20830 _ACEOF
20831 for ac_lib in '' pthread sem posix4 rt; do
20832   if test -z "$ac_lib"; then
20833     ac_res="none required"
20834   else
20835     ac_res=-l$ac_lib
20836     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20837   fi
20838   rm -f conftest.$ac_objext conftest$ac_exeext
20839 if { (ac_try="$ac_link"
20840 case "(($ac_try" in
20841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20842   *) ac_try_echo=$ac_try;;
20843 esac
20844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20845   (eval "$ac_link") 2>conftest.er1
20846   ac_status=$?
20847   grep -v '^ *+' conftest.er1 >conftest.err
20848   rm -f conftest.er1
20849   cat conftest.err >&5
20850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851   (exit $ac_status); } &&
20852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20853   { (case "(($ac_try" in
20854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855   *) ac_try_echo=$ac_try;;
20856 esac
20857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20858   (eval "$ac_try") 2>&5
20859   ac_status=$?
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); }; } &&
20862          { ac_try='test -s conftest$ac_exeext'
20863   { (case "(($ac_try" in
20864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865   *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868   (eval "$ac_try") 2>&5
20869   ac_status=$?
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); }; }; then
20872   ac_cv_search_sem_init=$ac_res
20873 else
20874   echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20876
20877
20878 fi
20879
20880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20881       conftest$ac_exeext
20882   if test "${ac_cv_search_sem_init+set}" = set; then
20883   break
20884 fi
20885 done
20886 if test "${ac_cv_search_sem_init+set}" = set; then
20887   :
20888 else
20889   ac_cv_search_sem_init=no
20890 fi
20891 rm conftest.$ac_ext
20892 LIBS=$ac_func_search_save_LIBS
20893 fi
20894 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20895 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20896 ac_res=$ac_cv_search_sem_init
20897 if test "$ac_res" != no; then
20898   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20899
20900 else
20901   { { 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
20902 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;}
20903    { (exit 1); exit 1; }; }
20904
20905 fi
20906
20907 fi
20908
20909
20910 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20911 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20912 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20913   echo $ECHO_N "(cached) $ECHO_C" >&6
20914 else
20915   ac_check_lib_save_LIBS=$LIBS
20916 LIBS="-lsocket  $LIBS"
20917 cat >conftest.$ac_ext <<_ACEOF
20918 /* confdefs.h.  */
20919 _ACEOF
20920 cat confdefs.h >>conftest.$ac_ext
20921 cat >>conftest.$ac_ext <<_ACEOF
20922 /* end confdefs.h.  */
20923
20924 /* Override any GCC internal prototype to avoid an error.
20925    Use char because int might match the return type of a GCC
20926    builtin and then its argument prototype would still apply.  */
20927 #ifdef __cplusplus
20928 extern "C"
20929 #endif
20930 char getsockname ();
20931 int
20932 main ()
20933 {
20934 return getsockname ();
20935   ;
20936   return 0;
20937 }
20938 _ACEOF
20939 rm -f conftest.$ac_objext conftest$ac_exeext
20940 if { (ac_try="$ac_link"
20941 case "(($ac_try" in
20942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943   *) ac_try_echo=$ac_try;;
20944 esac
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946   (eval "$ac_link") 2>conftest.er1
20947   ac_status=$?
20948   grep -v '^ *+' conftest.er1 >conftest.err
20949   rm -f conftest.er1
20950   cat conftest.err >&5
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); } &&
20953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20954   { (case "(($ac_try" in
20955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956   *) ac_try_echo=$ac_try;;
20957 esac
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959   (eval "$ac_try") 2>&5
20960   ac_status=$?
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); }; } &&
20963          { ac_try='test -s conftest$ac_exeext'
20964   { (case "(($ac_try" in
20965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966   *) ac_try_echo=$ac_try;;
20967 esac
20968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969   (eval "$ac_try") 2>&5
20970   ac_status=$?
20971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972   (exit $ac_status); }; }; then
20973   ac_cv_lib_socket_getsockname=yes
20974 else
20975   echo "$as_me: failed program was:" >&5
20976 sed 's/^/| /' conftest.$ac_ext >&5
20977
20978         ac_cv_lib_socket_getsockname=no
20979 fi
20980
20981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20982       conftest$ac_exeext conftest.$ac_ext
20983 LIBS=$ac_check_lib_save_LIBS
20984 fi
20985 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20986 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20987 if test $ac_cv_lib_socket_getsockname = yes; then
20988   cat >>confdefs.h <<_ACEOF
20989 #define HAVE_LIBSOCKET 1
20990 _ACEOF
20991
20992   LIBS="-lsocket $LIBS"
20993
20994 fi
20995
20996
20997
20998 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20999 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21000 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21001   echo $ECHO_N "(cached) $ECHO_C" >&6
21002 else
21003   ac_check_lib_save_LIBS=$LIBS
21004 LIBS="-lresolv  $LIBS"
21005 cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h.  */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h.  */
21011
21012 /* Override any GCC internal prototype to avoid an error.
21013    Use char because int might match the return type of a GCC
21014    builtin and then its argument prototype would still apply.  */
21015 #ifdef __cplusplus
21016 extern "C"
21017 #endif
21018 char inet_aton ();
21019 int
21020 main ()
21021 {
21022 return inet_aton ();
21023   ;
21024   return 0;
21025 }
21026 _ACEOF
21027 rm -f conftest.$ac_objext conftest$ac_exeext
21028 if { (ac_try="$ac_link"
21029 case "(($ac_try" in
21030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031   *) ac_try_echo=$ac_try;;
21032 esac
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034   (eval "$ac_link") 2>conftest.er1
21035   ac_status=$?
21036   grep -v '^ *+' conftest.er1 >conftest.err
21037   rm -f conftest.er1
21038   cat conftest.err >&5
21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); } &&
21041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21042   { (case "(($ac_try" in
21043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044   *) ac_try_echo=$ac_try;;
21045 esac
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047   (eval "$ac_try") 2>&5
21048   ac_status=$?
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); }; } &&
21051          { ac_try='test -s conftest$ac_exeext'
21052   { (case "(($ac_try" in
21053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054   *) ac_try_echo=$ac_try;;
21055 esac
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057   (eval "$ac_try") 2>&5
21058   ac_status=$?
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); }; }; then
21061   ac_cv_lib_resolv_inet_aton=yes
21062 else
21063   echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21065
21066         ac_cv_lib_resolv_inet_aton=no
21067 fi
21068
21069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21070       conftest$ac_exeext conftest.$ac_ext
21071 LIBS=$ac_check_lib_save_LIBS
21072 fi
21073 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21074 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21075 if test $ac_cv_lib_resolv_inet_aton = yes; then
21076   cat >>confdefs.h <<_ACEOF
21077 #define HAVE_LIBRESOLV 1
21078 _ACEOF
21079
21080   LIBS="-lresolv $LIBS"
21081
21082 fi
21083
21084
21085
21086 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21087 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21088 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21089   echo $ECHO_N "(cached) $ECHO_C" >&6
21090 else
21091   ac_check_lib_save_LIBS=$LIBS
21092 LIBS="-lnsl  $LIBS"
21093 cat >conftest.$ac_ext <<_ACEOF
21094 /* confdefs.h.  */
21095 _ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h.  */
21099
21100 /* Override any GCC internal prototype to avoid an error.
21101    Use char because int might match the return type of a GCC
21102    builtin and then its argument prototype would still apply.  */
21103 #ifdef __cplusplus
21104 extern "C"
21105 #endif
21106 char inet_ntoa ();
21107 int
21108 main ()
21109 {
21110 return inet_ntoa ();
21111   ;
21112   return 0;
21113 }
21114 _ACEOF
21115 rm -f conftest.$ac_objext conftest$ac_exeext
21116 if { (ac_try="$ac_link"
21117 case "(($ac_try" in
21118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119   *) ac_try_echo=$ac_try;;
21120 esac
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122   (eval "$ac_link") 2>conftest.er1
21123   ac_status=$?
21124   grep -v '^ *+' conftest.er1 >conftest.err
21125   rm -f conftest.er1
21126   cat conftest.err >&5
21127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128   (exit $ac_status); } &&
21129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21130   { (case "(($ac_try" in
21131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132   *) ac_try_echo=$ac_try;;
21133 esac
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135   (eval "$ac_try") 2>&5
21136   ac_status=$?
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); }; } &&
21139          { ac_try='test -s conftest$ac_exeext'
21140   { (case "(($ac_try" in
21141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142   *) ac_try_echo=$ac_try;;
21143 esac
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145   (eval "$ac_try") 2>&5
21146   ac_status=$?
21147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148   (exit $ac_status); }; }; then
21149   ac_cv_lib_nsl_inet_ntoa=yes
21150 else
21151   echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21153
21154         ac_cv_lib_nsl_inet_ntoa=no
21155 fi
21156
21157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21158       conftest$ac_exeext conftest.$ac_ext
21159 LIBS=$ac_check_lib_save_LIBS
21160 fi
21161 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21162 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21163 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21164   cat >>confdefs.h <<_ACEOF
21165 #define HAVE_LIBNSL 1
21166 _ACEOF
21167
21168   LIBS="-lnsl $LIBS"
21169
21170 fi
21171
21172
21173 OPENSSL_LIBS=
21174 old_LIBS=$LIBS
21175 if test "x$OPENSSL_LIB_DIR" != "x"; then
21176     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
21177 fi
21178 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21179 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21180 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21181   echo $ECHO_N "(cached) $ECHO_C" >&6
21182 else
21183   ac_check_lib_save_LIBS=$LIBS
21184 LIBS="-lcrypto  $LIBS"
21185 cat >conftest.$ac_ext <<_ACEOF
21186 /* confdefs.h.  */
21187 _ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h.  */
21191
21192 /* Override any GCC internal prototype to avoid an error.
21193    Use char because int might match the return type of a GCC
21194    builtin and then its argument prototype would still apply.  */
21195 #ifdef __cplusplus
21196 extern "C"
21197 #endif
21198 char DH_new ();
21199 int
21200 main ()
21201 {
21202 return DH_new ();
21203   ;
21204   return 0;
21205 }
21206 _ACEOF
21207 rm -f conftest.$ac_objext conftest$ac_exeext
21208 if { (ac_try="$ac_link"
21209 case "(($ac_try" in
21210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211   *) ac_try_echo=$ac_try;;
21212 esac
21213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214   (eval "$ac_link") 2>conftest.er1
21215   ac_status=$?
21216   grep -v '^ *+' conftest.er1 >conftest.err
21217   rm -f conftest.er1
21218   cat conftest.err >&5
21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); } &&
21221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21222   { (case "(($ac_try" in
21223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224   *) ac_try_echo=$ac_try;;
21225 esac
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227   (eval "$ac_try") 2>&5
21228   ac_status=$?
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); }; } &&
21231          { ac_try='test -s conftest$ac_exeext'
21232   { (case "(($ac_try" in
21233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234   *) ac_try_echo=$ac_try;;
21235 esac
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237   (eval "$ac_try") 2>&5
21238   ac_status=$?
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); }; }; then
21241   ac_cv_lib_crypto_DH_new=yes
21242 else
21243   echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21245
21246         ac_cv_lib_crypto_DH_new=no
21247 fi
21248
21249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21250       conftest$ac_exeext conftest.$ac_ext
21251 LIBS=$ac_check_lib_save_LIBS
21252 fi
21253 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21254 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21255 if test $ac_cv_lib_crypto_DH_new = yes; then
21256
21257
21258 cat >>confdefs.h <<\_ACEOF
21259 #define HAVE_LIBCRYPTO 1
21260 _ACEOF
21261
21262         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21263 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21264 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21265   echo $ECHO_N "(cached) $ECHO_C" >&6
21266 else
21267   ac_check_lib_save_LIBS=$LIBS
21268 LIBS="-lssl  $LIBS"
21269 cat >conftest.$ac_ext <<_ACEOF
21270 /* confdefs.h.  */
21271 _ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h.  */
21275
21276 /* Override any GCC internal prototype to avoid an error.
21277    Use char because int might match the return type of a GCC
21278    builtin and then its argument prototype would still apply.  */
21279 #ifdef __cplusplus
21280 extern "C"
21281 #endif
21282 char SSL_new ();
21283 int
21284 main ()
21285 {
21286 return SSL_new ();
21287   ;
21288   return 0;
21289 }
21290 _ACEOF
21291 rm -f conftest.$ac_objext conftest$ac_exeext
21292 if { (ac_try="$ac_link"
21293 case "(($ac_try" in
21294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295   *) ac_try_echo=$ac_try;;
21296 esac
21297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298   (eval "$ac_link") 2>conftest.er1
21299   ac_status=$?
21300   grep -v '^ *+' conftest.er1 >conftest.err
21301   rm -f conftest.er1
21302   cat conftest.err >&5
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); } &&
21305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21306   { (case "(($ac_try" in
21307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308   *) ac_try_echo=$ac_try;;
21309 esac
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311   (eval "$ac_try") 2>&5
21312   ac_status=$?
21313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314   (exit $ac_status); }; } &&
21315          { ac_try='test -s conftest$ac_exeext'
21316   { (case "(($ac_try" in
21317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318   *) ac_try_echo=$ac_try;;
21319 esac
21320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321   (eval "$ac_try") 2>&5
21322   ac_status=$?
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); }; }; then
21325   ac_cv_lib_ssl_SSL_new=yes
21326 else
21327   echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330         ac_cv_lib_ssl_SSL_new=no
21331 fi
21332
21333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21334       conftest$ac_exeext conftest.$ac_ext
21335 LIBS=$ac_check_lib_save_LIBS
21336 fi
21337 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21338 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21339 if test $ac_cv_lib_ssl_SSL_new = yes; then
21340
21341
21342 cat >>confdefs.h <<\_ACEOF
21343 #define HAVE_LIBSSL 1
21344 _ACEOF
21345
21346                 if test "x$OPENSSL_LIB_DIR" != "x"; then
21347                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21348                 fi
21349                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21350
21351 fi
21352
21353
21354 fi
21355
21356 LIBS=$old_LIBS
21357
21358
21359 case "$host" in
21360 *-interix*)
21361         CFLAGS="$CFLAGS -D_ALL_SOURCE"
21362         ;;
21363 *-darwin*)
21364         CFLAGS="$CFLAGS -DDARWIN"
21365         ;;
21366 esac
21367
21368
21369
21370
21371
21372
21373 ac_header_dirent=no
21374 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21375   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21376 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21377 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21379   echo $ECHO_N "(cached) $ECHO_C" >&6
21380 else
21381   cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h.  */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h.  */
21387 #include <sys/types.h>
21388 #include <$ac_hdr>
21389
21390 int
21391 main ()
21392 {
21393 if ((DIR *) 0)
21394 return 0;
21395   ;
21396   return 0;
21397 }
21398 _ACEOF
21399 rm -f conftest.$ac_objext
21400 if { (ac_try="$ac_compile"
21401 case "(($ac_try" in
21402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403   *) ac_try_echo=$ac_try;;
21404 esac
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406   (eval "$ac_compile") 2>conftest.er1
21407   ac_status=$?
21408   grep -v '^ *+' conftest.er1 >conftest.err
21409   rm -f conftest.er1
21410   cat conftest.err >&5
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); } &&
21413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21414   { (case "(($ac_try" in
21415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416   *) ac_try_echo=$ac_try;;
21417 esac
21418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419   (eval "$ac_try") 2>&5
21420   ac_status=$?
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); }; } &&
21423          { ac_try='test -s conftest.$ac_objext'
21424   { (case "(($ac_try" in
21425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426   *) ac_try_echo=$ac_try;;
21427 esac
21428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429   (eval "$ac_try") 2>&5
21430   ac_status=$?
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); }; }; then
21433   eval "$as_ac_Header=yes"
21434 else
21435   echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438         eval "$as_ac_Header=no"
21439 fi
21440
21441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21442 fi
21443 ac_res=`eval echo '${'$as_ac_Header'}'`
21444                { echo "$as_me:$LINENO: result: $ac_res" >&5
21445 echo "${ECHO_T}$ac_res" >&6; }
21446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21447   cat >>confdefs.h <<_ACEOF
21448 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21449 _ACEOF
21450
21451 ac_header_dirent=$ac_hdr; break
21452 fi
21453
21454 done
21455 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21456 if test $ac_header_dirent = dirent.h; then
21457   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21458 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21459 if test "${ac_cv_search_opendir+set}" = set; then
21460   echo $ECHO_N "(cached) $ECHO_C" >&6
21461 else
21462   ac_func_search_save_LIBS=$LIBS
21463 cat >conftest.$ac_ext <<_ACEOF
21464 /* confdefs.h.  */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h.  */
21469
21470 /* Override any GCC internal prototype to avoid an error.
21471    Use char because int might match the return type of a GCC
21472    builtin and then its argument prototype would still apply.  */
21473 #ifdef __cplusplus
21474 extern "C"
21475 #endif
21476 char opendir ();
21477 int
21478 main ()
21479 {
21480 return opendir ();
21481   ;
21482   return 0;
21483 }
21484 _ACEOF
21485 for ac_lib in '' dir; do
21486   if test -z "$ac_lib"; then
21487     ac_res="none required"
21488   else
21489     ac_res=-l$ac_lib
21490     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21491   fi
21492   rm -f conftest.$ac_objext conftest$ac_exeext
21493 if { (ac_try="$ac_link"
21494 case "(($ac_try" in
21495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496   *) ac_try_echo=$ac_try;;
21497 esac
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499   (eval "$ac_link") 2>conftest.er1
21500   ac_status=$?
21501   grep -v '^ *+' conftest.er1 >conftest.err
21502   rm -f conftest.er1
21503   cat conftest.err >&5
21504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); } &&
21506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21507   { (case "(($ac_try" in
21508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509   *) ac_try_echo=$ac_try;;
21510 esac
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512   (eval "$ac_try") 2>&5
21513   ac_status=$?
21514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515   (exit $ac_status); }; } &&
21516          { ac_try='test -s conftest$ac_exeext'
21517   { (case "(($ac_try" in
21518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519   *) ac_try_echo=$ac_try;;
21520 esac
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522   (eval "$ac_try") 2>&5
21523   ac_status=$?
21524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525   (exit $ac_status); }; }; then
21526   ac_cv_search_opendir=$ac_res
21527 else
21528   echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21530
21531
21532 fi
21533
21534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21535       conftest$ac_exeext
21536   if test "${ac_cv_search_opendir+set}" = set; then
21537   break
21538 fi
21539 done
21540 if test "${ac_cv_search_opendir+set}" = set; then
21541   :
21542 else
21543   ac_cv_search_opendir=no
21544 fi
21545 rm conftest.$ac_ext
21546 LIBS=$ac_func_search_save_LIBS
21547 fi
21548 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21549 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21550 ac_res=$ac_cv_search_opendir
21551 if test "$ac_res" != no; then
21552   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21553
21554 fi
21555
21556 else
21557   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21558 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21559 if test "${ac_cv_search_opendir+set}" = set; then
21560   echo $ECHO_N "(cached) $ECHO_C" >&6
21561 else
21562   ac_func_search_save_LIBS=$LIBS
21563 cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h.  */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h.  */
21569
21570 /* Override any GCC internal prototype to avoid an error.
21571    Use char because int might match the return type of a GCC
21572    builtin and then its argument prototype would still apply.  */
21573 #ifdef __cplusplus
21574 extern "C"
21575 #endif
21576 char opendir ();
21577 int
21578 main ()
21579 {
21580 return opendir ();
21581   ;
21582   return 0;
21583 }
21584 _ACEOF
21585 for ac_lib in '' x; do
21586   if test -z "$ac_lib"; then
21587     ac_res="none required"
21588   else
21589     ac_res=-l$ac_lib
21590     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21591   fi
21592   rm -f conftest.$ac_objext conftest$ac_exeext
21593 if { (ac_try="$ac_link"
21594 case "(($ac_try" in
21595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596   *) ac_try_echo=$ac_try;;
21597 esac
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599   (eval "$ac_link") 2>conftest.er1
21600   ac_status=$?
21601   grep -v '^ *+' conftest.er1 >conftest.err
21602   rm -f conftest.er1
21603   cat conftest.err >&5
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); } &&
21606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21607   { (case "(($ac_try" in
21608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609   *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612   (eval "$ac_try") 2>&5
21613   ac_status=$?
21614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615   (exit $ac_status); }; } &&
21616          { ac_try='test -s conftest$ac_exeext'
21617   { (case "(($ac_try" in
21618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619   *) ac_try_echo=$ac_try;;
21620 esac
21621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21622   (eval "$ac_try") 2>&5
21623   ac_status=$?
21624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625   (exit $ac_status); }; }; then
21626   ac_cv_search_opendir=$ac_res
21627 else
21628   echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21630
21631
21632 fi
21633
21634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21635       conftest$ac_exeext
21636   if test "${ac_cv_search_opendir+set}" = set; then
21637   break
21638 fi
21639 done
21640 if test "${ac_cv_search_opendir+set}" = set; then
21641   :
21642 else
21643   ac_cv_search_opendir=no
21644 fi
21645 rm conftest.$ac_ext
21646 LIBS=$ac_func_search_save_LIBS
21647 fi
21648 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21649 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21650 ac_res=$ac_cv_search_opendir
21651 if test "$ac_res" != no; then
21652   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21653
21654 fi
21655
21656 fi
21657
21658 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21659 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21660 if test "${ac_cv_header_stdc+set}" = set; then
21661   echo $ECHO_N "(cached) $ECHO_C" >&6
21662 else
21663   cat >conftest.$ac_ext <<_ACEOF
21664 /* confdefs.h.  */
21665 _ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h.  */
21669 #include <stdlib.h>
21670 #include <stdarg.h>
21671 #include <string.h>
21672 #include <float.h>
21673
21674 int
21675 main ()
21676 {
21677
21678   ;
21679   return 0;
21680 }
21681 _ACEOF
21682 rm -f conftest.$ac_objext
21683 if { (ac_try="$ac_compile"
21684 case "(($ac_try" in
21685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21686   *) ac_try_echo=$ac_try;;
21687 esac
21688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21689   (eval "$ac_compile") 2>conftest.er1
21690   ac_status=$?
21691   grep -v '^ *+' conftest.er1 >conftest.err
21692   rm -f conftest.er1
21693   cat conftest.err >&5
21694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695   (exit $ac_status); } &&
21696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21697   { (case "(($ac_try" in
21698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699   *) ac_try_echo=$ac_try;;
21700 esac
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702   (eval "$ac_try") 2>&5
21703   ac_status=$?
21704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705   (exit $ac_status); }; } &&
21706          { ac_try='test -s conftest.$ac_objext'
21707   { (case "(($ac_try" in
21708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709   *) ac_try_echo=$ac_try;;
21710 esac
21711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21712   (eval "$ac_try") 2>&5
21713   ac_status=$?
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); }; }; then
21716   ac_cv_header_stdc=yes
21717 else
21718   echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21720
21721         ac_cv_header_stdc=no
21722 fi
21723
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725
21726 if test $ac_cv_header_stdc = yes; then
21727   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21728   cat >conftest.$ac_ext <<_ACEOF
21729 /* confdefs.h.  */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h.  */
21734 #include <string.h>
21735
21736 _ACEOF
21737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21738   $EGREP "memchr" >/dev/null 2>&1; then
21739   :
21740 else
21741   ac_cv_header_stdc=no
21742 fi
21743 rm -f conftest*
21744
21745 fi
21746
21747 if test $ac_cv_header_stdc = yes; then
21748   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21749   cat >conftest.$ac_ext <<_ACEOF
21750 /* confdefs.h.  */
21751 _ACEOF
21752 cat confdefs.h >>conftest.$ac_ext
21753 cat >>conftest.$ac_ext <<_ACEOF
21754 /* end confdefs.h.  */
21755 #include <stdlib.h>
21756
21757 _ACEOF
21758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21759   $EGREP "free" >/dev/null 2>&1; then
21760   :
21761 else
21762   ac_cv_header_stdc=no
21763 fi
21764 rm -f conftest*
21765
21766 fi
21767
21768 if test $ac_cv_header_stdc = yes; then
21769   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21770   if test "$cross_compiling" = yes; then
21771   :
21772 else
21773   cat >conftest.$ac_ext <<_ACEOF
21774 /* confdefs.h.  */
21775 _ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h.  */
21779 #include <ctype.h>
21780 #include <stdlib.h>
21781 #if ((' ' & 0x0FF) == 0x020)
21782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21784 #else
21785 # define ISLOWER(c) \
21786                    (('a' <= (c) && (c) <= 'i') \
21787                      || ('j' <= (c) && (c) <= 'r') \
21788                      || ('s' <= (c) && (c) <= 'z'))
21789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21790 #endif
21791
21792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21793 int
21794 main ()
21795 {
21796   int i;
21797   for (i = 0; i < 256; i++)
21798     if (XOR (islower (i), ISLOWER (i))
21799         || toupper (i) != TOUPPER (i))
21800       return 2;
21801   return 0;
21802 }
21803 _ACEOF
21804 rm -f conftest$ac_exeext
21805 if { (ac_try="$ac_link"
21806 case "(($ac_try" in
21807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21808   *) ac_try_echo=$ac_try;;
21809 esac
21810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21811   (eval "$ac_link") 2>&5
21812   ac_status=$?
21813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21815   { (case "(($ac_try" in
21816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817   *) ac_try_echo=$ac_try;;
21818 esac
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820   (eval "$ac_try") 2>&5
21821   ac_status=$?
21822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823   (exit $ac_status); }; }; then
21824   :
21825 else
21826   echo "$as_me: program exited with status $ac_status" >&5
21827 echo "$as_me: failed program was:" >&5
21828 sed 's/^/| /' conftest.$ac_ext >&5
21829
21830 ( exit $ac_status )
21831 ac_cv_header_stdc=no
21832 fi
21833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21834 fi
21835
21836
21837 fi
21838 fi
21839 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21840 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21841 if test $ac_cv_header_stdc = yes; then
21842
21843 cat >>confdefs.h <<\_ACEOF
21844 #define STDC_HEADERS 1
21845 _ACEOF
21846
21847 fi
21848
21849 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21850 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21851 if test "${ac_cv_header_time+set}" = set; then
21852   echo $ECHO_N "(cached) $ECHO_C" >&6
21853 else
21854   cat >conftest.$ac_ext <<_ACEOF
21855 /* confdefs.h.  */
21856 _ACEOF
21857 cat confdefs.h >>conftest.$ac_ext
21858 cat >>conftest.$ac_ext <<_ACEOF
21859 /* end confdefs.h.  */
21860 #include <sys/types.h>
21861 #include <sys/time.h>
21862 #include <time.h>
21863
21864 int
21865 main ()
21866 {
21867 if ((struct tm *) 0)
21868 return 0;
21869   ;
21870   return 0;
21871 }
21872 _ACEOF
21873 rm -f conftest.$ac_objext
21874 if { (ac_try="$ac_compile"
21875 case "(($ac_try" in
21876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877   *) ac_try_echo=$ac_try;;
21878 esac
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880   (eval "$ac_compile") 2>conftest.er1
21881   ac_status=$?
21882   grep -v '^ *+' conftest.er1 >conftest.err
21883   rm -f conftest.er1
21884   cat conftest.err >&5
21885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886   (exit $ac_status); } &&
21887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21888   { (case "(($ac_try" in
21889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890   *) ac_try_echo=$ac_try;;
21891 esac
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893   (eval "$ac_try") 2>&5
21894   ac_status=$?
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); }; } &&
21897          { ac_try='test -s conftest.$ac_objext'
21898   { (case "(($ac_try" in
21899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900   *) ac_try_echo=$ac_try;;
21901 esac
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903   (eval "$ac_try") 2>&5
21904   ac_status=$?
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); }; }; then
21907   ac_cv_header_time=yes
21908 else
21909   echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21911
21912         ac_cv_header_time=no
21913 fi
21914
21915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21916 fi
21917 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21918 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21919 if test $ac_cv_header_time = yes; then
21920
21921 cat >>confdefs.h <<\_ACEOF
21922 #define TIME_WITH_SYS_TIME 1
21923 _ACEOF
21924
21925 fi
21926
21927 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21928 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21929 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21930   echo $ECHO_N "(cached) $ECHO_C" >&6
21931 else
21932   cat >conftest.$ac_ext <<_ACEOF
21933 /* confdefs.h.  */
21934 _ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h.  */
21938 #include <sys/types.h>
21939 #include <sys/wait.h>
21940 #ifndef WEXITSTATUS
21941 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21942 #endif
21943 #ifndef WIFEXITED
21944 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21945 #endif
21946
21947 int
21948 main ()
21949 {
21950   int s;
21951   wait (&s);
21952   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21953   ;
21954   return 0;
21955 }
21956 _ACEOF
21957 rm -f conftest.$ac_objext
21958 if { (ac_try="$ac_compile"
21959 case "(($ac_try" in
21960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961   *) ac_try_echo=$ac_try;;
21962 esac
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964   (eval "$ac_compile") 2>conftest.er1
21965   ac_status=$?
21966   grep -v '^ *+' conftest.er1 >conftest.err
21967   rm -f conftest.er1
21968   cat conftest.err >&5
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); } &&
21971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21972   { (case "(($ac_try" in
21973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974   *) ac_try_echo=$ac_try;;
21975 esac
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977   (eval "$ac_try") 2>&5
21978   ac_status=$?
21979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980   (exit $ac_status); }; } &&
21981          { ac_try='test -s conftest.$ac_objext'
21982   { (case "(($ac_try" in
21983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984   *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987   (eval "$ac_try") 2>&5
21988   ac_status=$?
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); }; }; then
21991   ac_cv_header_sys_wait_h=yes
21992 else
21993   echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21995
21996         ac_cv_header_sys_wait_h=no
21997 fi
21998
21999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22000 fi
22001 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22002 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22003 if test $ac_cv_header_sys_wait_h = yes; then
22004
22005 cat >>confdefs.h <<\_ACEOF
22006 #define HAVE_SYS_WAIT_H 1
22007 _ACEOF
22008
22009 fi
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042 for ac_header in \
22043         unistd.h \
22044         crypt.h \
22045         errno.h \
22046         resource.h \
22047         getopt.h \
22048         malloc.h \
22049         utmp.h \
22050         utmpx.h \
22051         signal.h \
22052         sys/select.h \
22053         syslog.h \
22054         inttypes.h \
22055         stdint.h \
22056         stdio.h \
22057         netdb.h \
22058         semaphore.h \
22059         arpa/inet.h \
22060         netinet/in.h \
22061         sys/types.h \
22062         sys/socket.h \
22063         sys/time.h \
22064         sys/wait.h \
22065         sys/security.h \
22066         fcntl.h \
22067         sys/fcntl.h \
22068         sys/stat.h \
22069         sys/prctl.h \
22070         prot.h \
22071         sia.h \
22072         siad.h
22073
22074 do
22075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22077   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22080   echo $ECHO_N "(cached) $ECHO_C" >&6
22081 fi
22082 ac_res=`eval echo '${'$as_ac_Header'}'`
22083                { echo "$as_me:$LINENO: result: $ac_res" >&5
22084 echo "${ECHO_T}$ac_res" >&6; }
22085 else
22086   # Is the header compilable?
22087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22089 cat >conftest.$ac_ext <<_ACEOF
22090 /* confdefs.h.  */
22091 _ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h.  */
22095 $ac_includes_default
22096 #include <$ac_header>
22097 _ACEOF
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102   *) ac_try_echo=$ac_try;;
22103 esac
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105   (eval "$ac_compile") 2>conftest.er1
22106   ac_status=$?
22107   grep -v '^ *+' conftest.er1 >conftest.err
22108   rm -f conftest.er1
22109   cat conftest.err >&5
22110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111   (exit $ac_status); } &&
22112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22113   { (case "(($ac_try" in
22114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115   *) ac_try_echo=$ac_try;;
22116 esac
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118   (eval "$ac_try") 2>&5
22119   ac_status=$?
22120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121   (exit $ac_status); }; } &&
22122          { ac_try='test -s conftest.$ac_objext'
22123   { (case "(($ac_try" in
22124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125   *) ac_try_echo=$ac_try;;
22126 esac
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128   (eval "$ac_try") 2>&5
22129   ac_status=$?
22130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131   (exit $ac_status); }; }; then
22132   ac_header_compiler=yes
22133 else
22134   echo "$as_me: failed program was:" >&5
22135 sed 's/^/| /' conftest.$ac_ext >&5
22136
22137         ac_header_compiler=no
22138 fi
22139
22140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22142 echo "${ECHO_T}$ac_header_compiler" >&6; }
22143
22144 # Is the header present?
22145 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22147 cat >conftest.$ac_ext <<_ACEOF
22148 /* confdefs.h.  */
22149 _ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h.  */
22153 #include <$ac_header>
22154 _ACEOF
22155 if { (ac_try="$ac_cpp conftest.$ac_ext"
22156 case "(($ac_try" in
22157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158   *) ac_try_echo=$ac_try;;
22159 esac
22160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22161   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22162   ac_status=$?
22163   grep -v '^ *+' conftest.er1 >conftest.err
22164   rm -f conftest.er1
22165   cat conftest.err >&5
22166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167   (exit $ac_status); } >/dev/null; then
22168   if test -s conftest.err; then
22169     ac_cpp_err=$ac_c_preproc_warn_flag
22170     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22171   else
22172     ac_cpp_err=
22173   fi
22174 else
22175   ac_cpp_err=yes
22176 fi
22177 if test -z "$ac_cpp_err"; then
22178   ac_header_preproc=yes
22179 else
22180   echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22182
22183   ac_header_preproc=no
22184 fi
22185
22186 rm -f conftest.err conftest.$ac_ext
22187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22188 echo "${ECHO_T}$ac_header_preproc" >&6; }
22189
22190 # So?  What about this header?
22191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22192   yes:no: )
22193     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22197     ac_header_preproc=yes
22198     ;;
22199   no:yes:* )
22200     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22202     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22203 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22204     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22206     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22207 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22210     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22212
22213     ;;
22214 esac
22215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22218   echo $ECHO_N "(cached) $ECHO_C" >&6
22219 else
22220   eval "$as_ac_Header=\$ac_header_preproc"
22221 fi
22222 ac_res=`eval echo '${'$as_ac_Header'}'`
22223                { echo "$as_me:$LINENO: result: $ac_res" >&5
22224 echo "${ECHO_T}$ac_res" >&6; }
22225
22226 fi
22227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22228   cat >>confdefs.h <<_ACEOF
22229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22230 _ACEOF
22231
22232 fi
22233
22234 done
22235
22236
22237 REGEX=no
22238 if test "${ac_cv_header_regex_h+set}" = set; then
22239   { echo "$as_me:$LINENO: checking for regex.h" >&5
22240 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22241 if test "${ac_cv_header_regex_h+set}" = set; then
22242   echo $ECHO_N "(cached) $ECHO_C" >&6
22243 fi
22244 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22245 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22246 else
22247   # Is the header compilable?
22248 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22249 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22250 cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h.  */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h.  */
22256 $ac_includes_default
22257 #include <regex.h>
22258 _ACEOF
22259 rm -f conftest.$ac_objext
22260 if { (ac_try="$ac_compile"
22261 case "(($ac_try" in
22262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22263   *) ac_try_echo=$ac_try;;
22264 esac
22265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22266   (eval "$ac_compile") 2>conftest.er1
22267   ac_status=$?
22268   grep -v '^ *+' conftest.er1 >conftest.err
22269   rm -f conftest.er1
22270   cat conftest.err >&5
22271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272   (exit $ac_status); } &&
22273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22274   { (case "(($ac_try" in
22275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22276   *) ac_try_echo=$ac_try;;
22277 esac
22278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22279   (eval "$ac_try") 2>&5
22280   ac_status=$?
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); }; } &&
22283          { ac_try='test -s conftest.$ac_objext'
22284   { (case "(($ac_try" in
22285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22286   *) ac_try_echo=$ac_try;;
22287 esac
22288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22289   (eval "$ac_try") 2>&5
22290   ac_status=$?
22291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292   (exit $ac_status); }; }; then
22293   ac_header_compiler=yes
22294 else
22295   echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22297
22298         ac_header_compiler=no
22299 fi
22300
22301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22303 echo "${ECHO_T}$ac_header_compiler" >&6; }
22304
22305 # Is the header present?
22306 { echo "$as_me:$LINENO: checking regex.h presence" >&5
22307 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
22308 cat >conftest.$ac_ext <<_ACEOF
22309 /* confdefs.h.  */
22310 _ACEOF
22311 cat confdefs.h >>conftest.$ac_ext
22312 cat >>conftest.$ac_ext <<_ACEOF
22313 /* end confdefs.h.  */
22314 #include <regex.h>
22315 _ACEOF
22316 if { (ac_try="$ac_cpp conftest.$ac_ext"
22317 case "(($ac_try" in
22318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319   *) ac_try_echo=$ac_try;;
22320 esac
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22323   ac_status=$?
22324   grep -v '^ *+' conftest.er1 >conftest.err
22325   rm -f conftest.er1
22326   cat conftest.err >&5
22327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328   (exit $ac_status); } >/dev/null; then
22329   if test -s conftest.err; then
22330     ac_cpp_err=$ac_c_preproc_warn_flag
22331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22332   else
22333     ac_cpp_err=
22334   fi
22335 else
22336   ac_cpp_err=yes
22337 fi
22338 if test -z "$ac_cpp_err"; then
22339   ac_header_preproc=yes
22340 else
22341   echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22343
22344   ac_header_preproc=no
22345 fi
22346
22347 rm -f conftest.err conftest.$ac_ext
22348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22349 echo "${ECHO_T}$ac_header_preproc" >&6; }
22350
22351 # So?  What about this header?
22352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22353   yes:no: )
22354     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22355 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22356     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22357 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22358     ac_header_preproc=yes
22359     ;;
22360   no:yes:* )
22361     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22362 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22363     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
22364 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
22365     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22366 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22367     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
22368 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22369     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22370 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22371     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22372 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22373
22374     ;;
22375 esac
22376 { echo "$as_me:$LINENO: checking for regex.h" >&5
22377 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22378 if test "${ac_cv_header_regex_h+set}" = set; then
22379   echo $ECHO_N "(cached) $ECHO_C" >&6
22380 else
22381   ac_cv_header_regex_h=$ac_header_preproc
22382 fi
22383 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22384 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22385
22386 fi
22387 if test $ac_cv_header_regex_h = yes; then
22388   cat >>confdefs.h <<\_ACEOF
22389 #define HAVE_REGEX_H 1
22390 _ACEOF
22391
22392 fi
22393
22394
22395 if test "x$ac_cv_header_regex_h" = "xyes"; then
22396   REGEX_EXTENDED=no
22397   REGEX=yes
22398   cat >conftest.$ac_ext <<_ACEOF
22399 /* confdefs.h.  */
22400 _ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h.  */
22404 #include <regex.h>
22405      #ifdef REG_EXTENDED
22406        yes
22407      #endif
22408
22409 _ACEOF
22410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22411   $EGREP "yes" >/dev/null 2>&1; then
22412   cat >>confdefs.h <<\_ACEOF
22413 #define HAVE_REG_EXTENDED 1
22414 _ACEOF
22415  REGEX_EXTENDED=yes
22416 fi
22417 rm -f conftest*
22418
22419 fi
22420
22421
22422
22423 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22424 then
22425   cat >>confdefs.h <<\_ACEOF
22426 #define OSFC2 1
22427 _ACEOF
22428
22429 fi
22430
22431 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22432 then
22433   cat >>confdefs.h <<\_ACEOF
22434 #define OSFSIA 1
22435 _ACEOF
22436
22437 fi
22438
22439 OPENSSL_INCLUDE="-DNO_OPENSSL"
22440 if test "x$OPENSSL_LIBS" = "x"; then
22441     { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
22442 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
22443 else
22444     old_CPPFLAGS=$CPPFLAGS
22445     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22446         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22447     fi
22448         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22449
22450
22451
22452
22453 for ac_header in \
22454         openssl/ssl.h \
22455         openssl/crypto.h \
22456         openssl/err.h \
22457         openssl/engine.h
22458 do
22459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22461   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22464   echo $ECHO_N "(cached) $ECHO_C" >&6
22465 fi
22466 ac_res=`eval echo '${'$as_ac_Header'}'`
22467                { echo "$as_me:$LINENO: result: $ac_res" >&5
22468 echo "${ECHO_T}$ac_res" >&6; }
22469 else
22470   # Is the header compilable?
22471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22473 cat >conftest.$ac_ext <<_ACEOF
22474 /* confdefs.h.  */
22475 _ACEOF
22476 cat confdefs.h >>conftest.$ac_ext
22477 cat >>conftest.$ac_ext <<_ACEOF
22478 /* end confdefs.h.  */
22479 $ac_includes_default
22480 #include <$ac_header>
22481 _ACEOF
22482 rm -f conftest.$ac_objext
22483 if { (ac_try="$ac_compile"
22484 case "(($ac_try" in
22485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22486   *) ac_try_echo=$ac_try;;
22487 esac
22488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22489   (eval "$ac_compile") 2>conftest.er1
22490   ac_status=$?
22491   grep -v '^ *+' conftest.er1 >conftest.err
22492   rm -f conftest.er1
22493   cat conftest.err >&5
22494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495   (exit $ac_status); } &&
22496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22497   { (case "(($ac_try" in
22498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22499   *) ac_try_echo=$ac_try;;
22500 esac
22501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22502   (eval "$ac_try") 2>&5
22503   ac_status=$?
22504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505   (exit $ac_status); }; } &&
22506          { ac_try='test -s conftest.$ac_objext'
22507   { (case "(($ac_try" in
22508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509   *) ac_try_echo=$ac_try;;
22510 esac
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512   (eval "$ac_try") 2>&5
22513   ac_status=$?
22514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515   (exit $ac_status); }; }; then
22516   ac_header_compiler=yes
22517 else
22518   echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22520
22521         ac_header_compiler=no
22522 fi
22523
22524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22526 echo "${ECHO_T}$ac_header_compiler" >&6; }
22527
22528 # Is the header present?
22529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22531 cat >conftest.$ac_ext <<_ACEOF
22532 /* confdefs.h.  */
22533 _ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h.  */
22537 #include <$ac_header>
22538 _ACEOF
22539 if { (ac_try="$ac_cpp conftest.$ac_ext"
22540 case "(($ac_try" in
22541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542   *) ac_try_echo=$ac_try;;
22543 esac
22544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22546   ac_status=$?
22547   grep -v '^ *+' conftest.er1 >conftest.err
22548   rm -f conftest.er1
22549   cat conftest.err >&5
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); } >/dev/null; then
22552   if test -s conftest.err; then
22553     ac_cpp_err=$ac_c_preproc_warn_flag
22554     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22555   else
22556     ac_cpp_err=
22557   fi
22558 else
22559   ac_cpp_err=yes
22560 fi
22561 if test -z "$ac_cpp_err"; then
22562   ac_header_preproc=yes
22563 else
22564   echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567   ac_header_preproc=no
22568 fi
22569
22570 rm -f conftest.err conftest.$ac_ext
22571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22572 echo "${ECHO_T}$ac_header_preproc" >&6; }
22573
22574 # So?  What about this header?
22575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22576   yes:no: )
22577     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22581     ac_header_preproc=yes
22582     ;;
22583   no:yes:* )
22584     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22586     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22587 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22588     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22590     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22591 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22594     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22596
22597     ;;
22598 esac
22599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22602   echo $ECHO_N "(cached) $ECHO_C" >&6
22603 else
22604   eval "$as_ac_Header=\$ac_header_preproc"
22605 fi
22606 ac_res=`eval echo '${'$as_ac_Header'}'`
22607                { echo "$as_me:$LINENO: result: $ac_res" >&5
22608 echo "${ECHO_T}$ac_res" >&6; }
22609
22610 fi
22611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22612   cat >>confdefs.h <<_ACEOF
22613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22614 _ACEOF
22615
22616 else
22617   OPENSSL_LIBS=
22618
22619 fi
22620
22621 done
22622
22623     if test "x$OPENSSL_LIBS" != "x"; then
22624         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22625 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22626         cat >conftest.$ac_ext <<_ACEOF
22627 /* confdefs.h.  */
22628 _ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h.  */
22632 #include <openssl/crypto.h>
22633              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22634              yes
22635              #endif
22636
22637 _ACEOF
22638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22639   $EGREP "yes" >/dev/null 2>&1; then
22640   goodssl="yes"
22641 fi
22642 rm -f conftest*
22643
22644         if test "x$goodssl" != "xyes"; then
22645             { echo "$as_me:$LINENO: result: no" >&5
22646 echo "${ECHO_T}no" >&6; }
22647             OPENSSL_LIBS=
22648         else
22649             { echo "$as_me:$LINENO: result: yes" >&5
22650 echo "${ECHO_T}yes" >&6; }
22651             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22652                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22653             else
22654                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22655             fi
22656         fi
22657     fi
22658     CPPFLAGS=$old_CPPFLAGS
22659 fi
22660
22661
22662 export OPENSSL_LIBS
22663
22664
22665 { echo "$as_me:$LINENO: checking for off_t" >&5
22666 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22667 if test "${ac_cv_type_off_t+set}" = set; then
22668   echo $ECHO_N "(cached) $ECHO_C" >&6
22669 else
22670   cat >conftest.$ac_ext <<_ACEOF
22671 /* confdefs.h.  */
22672 _ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h.  */
22676 $ac_includes_default
22677 typedef off_t ac__type_new_;
22678 int
22679 main ()
22680 {
22681 if ((ac__type_new_ *) 0)
22682   return 0;
22683 if (sizeof (ac__type_new_))
22684   return 0;
22685   ;
22686   return 0;
22687 }
22688 _ACEOF
22689 rm -f conftest.$ac_objext
22690 if { (ac_try="$ac_compile"
22691 case "(($ac_try" in
22692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693   *) ac_try_echo=$ac_try;;
22694 esac
22695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696   (eval "$ac_compile") 2>conftest.er1
22697   ac_status=$?
22698   grep -v '^ *+' conftest.er1 >conftest.err
22699   rm -f conftest.er1
22700   cat conftest.err >&5
22701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702   (exit $ac_status); } &&
22703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22704   { (case "(($ac_try" in
22705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22706   *) ac_try_echo=$ac_try;;
22707 esac
22708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22709   (eval "$ac_try") 2>&5
22710   ac_status=$?
22711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712   (exit $ac_status); }; } &&
22713          { ac_try='test -s conftest.$ac_objext'
22714   { (case "(($ac_try" in
22715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716   *) ac_try_echo=$ac_try;;
22717 esac
22718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719   (eval "$ac_try") 2>&5
22720   ac_status=$?
22721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722   (exit $ac_status); }; }; then
22723   ac_cv_type_off_t=yes
22724 else
22725   echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22727
22728         ac_cv_type_off_t=no
22729 fi
22730
22731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22732 fi
22733 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22734 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22735 if test $ac_cv_type_off_t = yes; then
22736   :
22737 else
22738
22739 cat >>confdefs.h <<_ACEOF
22740 #define off_t long int
22741 _ACEOF
22742
22743 fi
22744
22745 { echo "$as_me:$LINENO: checking for pid_t" >&5
22746 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22747 if test "${ac_cv_type_pid_t+set}" = set; then
22748   echo $ECHO_N "(cached) $ECHO_C" >&6
22749 else
22750   cat >conftest.$ac_ext <<_ACEOF
22751 /* confdefs.h.  */
22752 _ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h.  */
22756 $ac_includes_default
22757 typedef pid_t ac__type_new_;
22758 int
22759 main ()
22760 {
22761 if ((ac__type_new_ *) 0)
22762   return 0;
22763 if (sizeof (ac__type_new_))
22764   return 0;
22765   ;
22766   return 0;
22767 }
22768 _ACEOF
22769 rm -f conftest.$ac_objext
22770 if { (ac_try="$ac_compile"
22771 case "(($ac_try" in
22772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773   *) ac_try_echo=$ac_try;;
22774 esac
22775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776   (eval "$ac_compile") 2>conftest.er1
22777   ac_status=$?
22778   grep -v '^ *+' conftest.er1 >conftest.err
22779   rm -f conftest.er1
22780   cat conftest.err >&5
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); } &&
22783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22784   { (case "(($ac_try" in
22785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786   *) ac_try_echo=$ac_try;;
22787 esac
22788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22789   (eval "$ac_try") 2>&5
22790   ac_status=$?
22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); }; } &&
22793          { ac_try='test -s conftest.$ac_objext'
22794   { (case "(($ac_try" in
22795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22796   *) ac_try_echo=$ac_try;;
22797 esac
22798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22799   (eval "$ac_try") 2>&5
22800   ac_status=$?
22801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); }; }; then
22803   ac_cv_type_pid_t=yes
22804 else
22805   echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22807
22808         ac_cv_type_pid_t=no
22809 fi
22810
22811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22812 fi
22813 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22814 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22815 if test $ac_cv_type_pid_t = yes; then
22816   :
22817 else
22818
22819 cat >>confdefs.h <<_ACEOF
22820 #define pid_t int
22821 _ACEOF
22822
22823 fi
22824
22825 { echo "$as_me:$LINENO: checking for size_t" >&5
22826 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22827 if test "${ac_cv_type_size_t+set}" = set; then
22828   echo $ECHO_N "(cached) $ECHO_C" >&6
22829 else
22830   cat >conftest.$ac_ext <<_ACEOF
22831 /* confdefs.h.  */
22832 _ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h.  */
22836 $ac_includes_default
22837 typedef size_t ac__type_new_;
22838 int
22839 main ()
22840 {
22841 if ((ac__type_new_ *) 0)
22842   return 0;
22843 if (sizeof (ac__type_new_))
22844   return 0;
22845   ;
22846   return 0;
22847 }
22848 _ACEOF
22849 rm -f conftest.$ac_objext
22850 if { (ac_try="$ac_compile"
22851 case "(($ac_try" in
22852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22853   *) ac_try_echo=$ac_try;;
22854 esac
22855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22856   (eval "$ac_compile") 2>conftest.er1
22857   ac_status=$?
22858   grep -v '^ *+' conftest.er1 >conftest.err
22859   rm -f conftest.er1
22860   cat conftest.err >&5
22861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862   (exit $ac_status); } &&
22863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22864   { (case "(($ac_try" in
22865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22866   *) ac_try_echo=$ac_try;;
22867 esac
22868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22869   (eval "$ac_try") 2>&5
22870   ac_status=$?
22871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872   (exit $ac_status); }; } &&
22873          { ac_try='test -s conftest.$ac_objext'
22874   { (case "(($ac_try" in
22875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876   *) ac_try_echo=$ac_try;;
22877 esac
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879   (eval "$ac_try") 2>&5
22880   ac_status=$?
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); }; }; then
22883   ac_cv_type_size_t=yes
22884 else
22885   echo "$as_me: failed program was:" >&5
22886 sed 's/^/| /' conftest.$ac_ext >&5
22887
22888         ac_cv_type_size_t=no
22889 fi
22890
22891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22892 fi
22893 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22894 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22895 if test $ac_cv_type_size_t = yes; then
22896   :
22897 else
22898
22899 cat >>confdefs.h <<_ACEOF
22900 #define size_t unsigned int
22901 _ACEOF
22902
22903 fi
22904
22905 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22906 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22907 if test "${ac_cv_type_uid_t+set}" = set; then
22908   echo $ECHO_N "(cached) $ECHO_C" >&6
22909 else
22910   cat >conftest.$ac_ext <<_ACEOF
22911 /* confdefs.h.  */
22912 _ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h.  */
22916 #include <sys/types.h>
22917
22918 _ACEOF
22919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22920   $EGREP "uid_t" >/dev/null 2>&1; then
22921   ac_cv_type_uid_t=yes
22922 else
22923   ac_cv_type_uid_t=no
22924 fi
22925 rm -f conftest*
22926
22927 fi
22928 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22929 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22930 if test $ac_cv_type_uid_t = no; then
22931
22932 cat >>confdefs.h <<\_ACEOF
22933 #define uid_t int
22934 _ACEOF
22935
22936
22937 cat >>confdefs.h <<\_ACEOF
22938 #define gid_t int
22939 _ACEOF
22940
22941 fi
22942
22943
22944
22945   { echo "$as_me:$LINENO: checking for socklen_t" >&5
22946 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22947 if test "${ac_cv_type_socklen_t+set}" = set; then
22948   echo $ECHO_N "(cached) $ECHO_C" >&6
22949 else
22950    ac_cv_type_socklen_t=no
22951       cat >conftest.$ac_ext <<_ACEOF
22952 /* confdefs.h.  */
22953 _ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h.  */
22957 #ifdef HAVE_SYS_TYPES_H
22958 #include <sys/types.h>
22959 #endif
22960 #ifdef HAVE_SYS_SOCKET_H
22961 #include <sys/socket.h>
22962 #endif
22963
22964 int
22965 main ()
22966 {
22967 socklen_t foo
22968   ;
22969   return 0;
22970 }
22971 _ACEOF
22972 rm -f conftest.$ac_objext
22973 if { (ac_try="$ac_compile"
22974 case "(($ac_try" in
22975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976   *) ac_try_echo=$ac_try;;
22977 esac
22978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979   (eval "$ac_compile") 2>conftest.er1
22980   ac_status=$?
22981   grep -v '^ *+' conftest.er1 >conftest.err
22982   rm -f conftest.er1
22983   cat conftest.err >&5
22984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985   (exit $ac_status); } &&
22986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22987   { (case "(($ac_try" in
22988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989   *) ac_try_echo=$ac_try;;
22990 esac
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992   (eval "$ac_try") 2>&5
22993   ac_status=$?
22994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995   (exit $ac_status); }; } &&
22996          { ac_try='test -s conftest.$ac_objext'
22997   { (case "(($ac_try" in
22998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999   *) ac_try_echo=$ac_try;;
23000 esac
23001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002   (eval "$ac_try") 2>&5
23003   ac_status=$?
23004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005   (exit $ac_status); }; }; then
23006   ac_cv_type_socklen_t=yes
23007 else
23008   echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23010
23011
23012 fi
23013
23014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23015
23016
23017 fi
23018 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23019 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23020
23021   if test "$ac_cv_type_socklen_t" != "yes"; then
23022          cat >>confdefs.h <<\_ACEOF
23023 #define socklen_t int
23024 _ACEOF
23025
23026   fi
23027
23028
23029
23030   { echo "$as_me:$LINENO: checking for uint8_t" >&5
23031 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23032 if test "${ac_cv_type_uint8_t+set}" = set; then
23033   echo $ECHO_N "(cached) $ECHO_C" >&6
23034 else
23035    ac_cv_type_uint8_t=no
23036       cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h.  */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h.  */
23042 #ifdef HAVE_INTTYPES_H
23043 #include <inttypes.h>
23044 #endif
23045 #ifdef HAVE_STDINT_H
23046 #include <stdint.h>
23047 #endif
23048
23049 int
23050 main ()
23051 {
23052 uint8_t foo
23053   ;
23054   return 0;
23055 }
23056 _ACEOF
23057 rm -f conftest.$ac_objext
23058 if { (ac_try="$ac_compile"
23059 case "(($ac_try" in
23060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061   *) ac_try_echo=$ac_try;;
23062 esac
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064   (eval "$ac_compile") 2>conftest.er1
23065   ac_status=$?
23066   grep -v '^ *+' conftest.er1 >conftest.err
23067   rm -f conftest.er1
23068   cat conftest.err >&5
23069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070   (exit $ac_status); } &&
23071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23072   { (case "(($ac_try" in
23073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074   *) ac_try_echo=$ac_try;;
23075 esac
23076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23077   (eval "$ac_try") 2>&5
23078   ac_status=$?
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); }; } &&
23081          { ac_try='test -s conftest.$ac_objext'
23082   { (case "(($ac_try" in
23083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23084   *) ac_try_echo=$ac_try;;
23085 esac
23086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23087   (eval "$ac_try") 2>&5
23088   ac_status=$?
23089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); }; }; then
23091   ac_cv_type_uint8_t=yes
23092 else
23093   echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23095
23096
23097 fi
23098
23099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23100
23101
23102 fi
23103 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23104 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23105
23106   if test "$ac_cv_type_uint8_t" != "yes"; then
23107          cat >>confdefs.h <<\_ACEOF
23108 #define uint8_t unsigned char
23109 _ACEOF
23110
23111   fi
23112
23113
23114
23115   { echo "$as_me:$LINENO: checking for uint16_t" >&5
23116 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23117 if test "${ac_cv_type_uint16_t+set}" = set; then
23118   echo $ECHO_N "(cached) $ECHO_C" >&6
23119 else
23120    ac_cv_type_uint16_t=no
23121       cat >conftest.$ac_ext <<_ACEOF
23122 /* confdefs.h.  */
23123 _ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h.  */
23127 #ifdef HAVE_INTTYPES_H
23128 #include <inttypes.h>
23129 #endif
23130 #ifdef HAVE_STDINT_H
23131 #include <stdint.h>
23132 #endif
23133
23134 int
23135 main ()
23136 {
23137 uint16_t foo
23138   ;
23139   return 0;
23140 }
23141 _ACEOF
23142 rm -f conftest.$ac_objext
23143 if { (ac_try="$ac_compile"
23144 case "(($ac_try" in
23145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23146   *) ac_try_echo=$ac_try;;
23147 esac
23148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23149   (eval "$ac_compile") 2>conftest.er1
23150   ac_status=$?
23151   grep -v '^ *+' conftest.er1 >conftest.err
23152   rm -f conftest.er1
23153   cat conftest.err >&5
23154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155   (exit $ac_status); } &&
23156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23157   { (case "(($ac_try" in
23158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159   *) ac_try_echo=$ac_try;;
23160 esac
23161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162   (eval "$ac_try") 2>&5
23163   ac_status=$?
23164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165   (exit $ac_status); }; } &&
23166          { ac_try='test -s conftest.$ac_objext'
23167   { (case "(($ac_try" in
23168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23169   *) ac_try_echo=$ac_try;;
23170 esac
23171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23172   (eval "$ac_try") 2>&5
23173   ac_status=$?
23174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175   (exit $ac_status); }; }; then
23176   ac_cv_type_uint16_t=yes
23177 else
23178   echo "$as_me: failed program was:" >&5
23179 sed 's/^/| /' conftest.$ac_ext >&5
23180
23181
23182 fi
23183
23184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23185
23186
23187 fi
23188 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23189 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23190
23191   if test "$ac_cv_type_uint16_t" != "yes"; then
23192          cat >>confdefs.h <<\_ACEOF
23193 #define uint16_t unsigned short
23194 _ACEOF
23195
23196   fi
23197
23198
23199
23200   { echo "$as_me:$LINENO: checking for uint32_t" >&5
23201 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23202 if test "${ac_cv_type_uint32_t+set}" = set; then
23203   echo $ECHO_N "(cached) $ECHO_C" >&6
23204 else
23205    ac_cv_type_uint32_t=no
23206       cat >conftest.$ac_ext <<_ACEOF
23207 /* confdefs.h.  */
23208 _ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h.  */
23212 #ifdef HAVE_INTTYPES_H
23213 #include <inttypes.h>
23214 #endif
23215 #ifdef HAVE_STDINT_H
23216 #include <stdint.h>
23217 #endif
23218
23219 int
23220 main ()
23221 {
23222 uint32_t foo
23223   ;
23224   return 0;
23225 }
23226 _ACEOF
23227 rm -f conftest.$ac_objext
23228 if { (ac_try="$ac_compile"
23229 case "(($ac_try" in
23230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231   *) ac_try_echo=$ac_try;;
23232 esac
23233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23234   (eval "$ac_compile") 2>conftest.er1
23235   ac_status=$?
23236   grep -v '^ *+' conftest.er1 >conftest.err
23237   rm -f conftest.er1
23238   cat conftest.err >&5
23239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240   (exit $ac_status); } &&
23241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23242   { (case "(($ac_try" in
23243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244   *) ac_try_echo=$ac_try;;
23245 esac
23246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23247   (eval "$ac_try") 2>&5
23248   ac_status=$?
23249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250   (exit $ac_status); }; } &&
23251          { ac_try='test -s conftest.$ac_objext'
23252   { (case "(($ac_try" in
23253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254   *) ac_try_echo=$ac_try;;
23255 esac
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257   (eval "$ac_try") 2>&5
23258   ac_status=$?
23259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260   (exit $ac_status); }; }; then
23261   ac_cv_type_uint32_t=yes
23262 else
23263   echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.$ac_ext >&5
23265
23266
23267 fi
23268
23269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23270
23271
23272 fi
23273 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23274 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23275
23276   if test "$ac_cv_type_uint32_t" != "yes"; then
23277          cat >>confdefs.h <<\_ACEOF
23278 #define uint32_t unsigned int
23279 _ACEOF
23280
23281   fi
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308 for ac_func in \
23309         getopt_long \
23310         lockf \
23311         strsignal \
23312         sigaction \
23313         sigprocmask \
23314         pthread_sigmask \
23315         snprintf \
23316         vsnprintf \
23317         setsid \
23318         strncasecmp \
23319         strcasecmp \
23320         localtime_r \
23321         ctime_r \
23322         gmtime_r \
23323         strsep \
23324         inet_aton \
23325         inet_pton \
23326         inet_ntop \
23327         gethostname \
23328         setlinebuf \
23329         setvbuf \
23330         getusershell \
23331         initgroups \
23332         closefrom
23333
23334 do
23335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23339   echo $ECHO_N "(cached) $ECHO_C" >&6
23340 else
23341   cat >conftest.$ac_ext <<_ACEOF
23342 /* confdefs.h.  */
23343 _ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h.  */
23347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23349 #define $ac_func innocuous_$ac_func
23350
23351 /* System header to define __stub macros and hopefully few prototypes,
23352     which can conflict with char $ac_func (); below.
23353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23354     <limits.h> exists even on freestanding compilers.  */
23355
23356 #ifdef __STDC__
23357 # include <limits.h>
23358 #else
23359 # include <assert.h>
23360 #endif
23361
23362 #undef $ac_func
23363
23364 /* Override any GCC internal prototype to avoid an error.
23365    Use char because int might match the return type of a GCC
23366    builtin and then its argument prototype would still apply.  */
23367 #ifdef __cplusplus
23368 extern "C"
23369 #endif
23370 char $ac_func ();
23371 /* The GNU C library defines this for functions which it implements
23372     to always fail with ENOSYS.  Some functions are actually named
23373     something starting with __ and the normal name is an alias.  */
23374 #if defined __stub_$ac_func || defined __stub___$ac_func
23375 choke me
23376 #endif
23377
23378 int
23379 main ()
23380 {
23381 return $ac_func ();
23382   ;
23383   return 0;
23384 }
23385 _ACEOF
23386 rm -f conftest.$ac_objext conftest$ac_exeext
23387 if { (ac_try="$ac_link"
23388 case "(($ac_try" in
23389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390   *) ac_try_echo=$ac_try;;
23391 esac
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393   (eval "$ac_link") 2>conftest.er1
23394   ac_status=$?
23395   grep -v '^ *+' conftest.er1 >conftest.err
23396   rm -f conftest.er1
23397   cat conftest.err >&5
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); } &&
23400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23401   { (case "(($ac_try" in
23402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23403   *) ac_try_echo=$ac_try;;
23404 esac
23405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23406   (eval "$ac_try") 2>&5
23407   ac_status=$?
23408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409   (exit $ac_status); }; } &&
23410          { ac_try='test -s conftest$ac_exeext'
23411   { (case "(($ac_try" in
23412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413   *) ac_try_echo=$ac_try;;
23414 esac
23415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416   (eval "$ac_try") 2>&5
23417   ac_status=$?
23418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419   (exit $ac_status); }; }; then
23420   eval "$as_ac_var=yes"
23421 else
23422   echo "$as_me: failed program was:" >&5
23423 sed 's/^/| /' conftest.$ac_ext >&5
23424
23425         eval "$as_ac_var=no"
23426 fi
23427
23428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23429       conftest$ac_exeext conftest.$ac_ext
23430 fi
23431 ac_res=`eval echo '${'$as_ac_var'}'`
23432                { echo "$as_me:$LINENO: result: $ac_res" >&5
23433 echo "${ECHO_T}$ac_res" >&6; }
23434 if test `eval echo '${'$as_ac_var'}'` = yes; then
23435   cat >>confdefs.h <<_ACEOF
23436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23437 _ACEOF
23438
23439 fi
23440 done
23441
23442 for ac_func in \
23443         crypt \
23444         strncasecmp \
23445         strcasecmp \
23446         inet_aton \
23447         gethostname \
23448         setlinebuf \
23449         getusershell \
23450         endusershell
23451
23452 do
23453 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23454 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23455 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23456   echo $ECHO_N "(cached) $ECHO_C" >&6
23457 else
23458   cat >conftest.$ac_ext <<_ACEOF
23459 /* confdefs.h.  */
23460 _ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h.  */
23464
23465 #include <stdio.h>
23466 #include <string.h>
23467 #ifdef HAVE_UNISTD_H
23468 #include <unistd.h>
23469 #endif
23470 #ifdef HAVE_CRYPT_H
23471 #include <crypt.h>
23472 #endif
23473 #ifdef HAVE_ERRNO_H
23474 #include <errno.h>
23475 #endif
23476 #ifdef HAVE_RESOURCE_H
23477 #include <resource.h>
23478 #endif
23479 #ifdef HAVE_GETOPT_H
23480 #include <getopt.h>
23481 #endif
23482 #ifdef HAVE_MALLOC_H
23483 #include <malloc.h>
23484 #endif
23485 #ifdef HAVE_UTMP_H
23486 #include <utmp.h>
23487 #endif
23488 #ifdef HAVE_UTMPX_H
23489 #include <utmpx.h>
23490 #endif
23491 #ifdef HAVE_SYS_SELECT_H
23492 #include <sys/select.h>
23493 #endif
23494 #ifdef HAVE_DLFCN_H
23495 #include <dlfcn.h>
23496 #endif
23497 #ifdef HAVE_REGEX_H
23498 #include <regex.h>
23499 #endif
23500 #ifdef HAVE_SYSLOG_H
23501 #include <syslog.h>
23502 #endif
23503 #ifdef HAVE_INTTYPES_H
23504 #include <inttypes.h>
23505 #endif
23506 #ifdef HAVE_STDINT_H
23507 #include <stdint.h>
23508 #endif
23509 #ifdef HAVE_ARPA_INET_H
23510 #include <arpa/inet.h>
23511 #endif
23512
23513 int
23514 main ()
23515 {
23516 char *(*pfn) = (char *(*)) $ac_func
23517   ;
23518   return 0;
23519 }
23520 _ACEOF
23521 rm -f conftest.$ac_objext
23522 if { (ac_try="$ac_compile"
23523 case "(($ac_try" in
23524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525   *) ac_try_echo=$ac_try;;
23526 esac
23527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23528   (eval "$ac_compile") 2>conftest.er1
23529   ac_status=$?
23530   grep -v '^ *+' conftest.er1 >conftest.err
23531   rm -f conftest.er1
23532   cat conftest.err >&5
23533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534   (exit $ac_status); } &&
23535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23536   { (case "(($ac_try" in
23537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23538   *) ac_try_echo=$ac_try;;
23539 esac
23540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23541   (eval "$ac_try") 2>&5
23542   ac_status=$?
23543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544   (exit $ac_status); }; } &&
23545          { ac_try='test -s conftest.$ac_objext'
23546   { (case "(($ac_try" in
23547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548   *) ac_try_echo=$ac_try;;
23549 esac
23550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23551   (eval "$ac_try") 2>&5
23552   ac_status=$?
23553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554   (exit $ac_status); }; }; then
23555   eval "radius_cv_decl_needed_$ac_func=no"
23556 else
23557   echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23559
23560         eval "radius_cv_decl_needed_$ac_func=yes"
23561 fi
23562
23563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23564 fi
23565
23566 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23567   { echo "$as_me:$LINENO: result: yes" >&5
23568 echo "${ECHO_T}yes" >&6; }
23569   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23570   cat >>confdefs.h <<_ACEOF
23571 #define $radius_tr_decl 1
23572 _ACEOF
23573
23574 else
23575   { echo "$as_me:$LINENO: result: no" >&5
23576 echo "${ECHO_T}no" >&6; }
23577 fi
23578
23579 done
23580
23581
23582 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23583 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23584 if test "${ac_cv_type_signal+set}" = set; then
23585   echo $ECHO_N "(cached) $ECHO_C" >&6
23586 else
23587   cat >conftest.$ac_ext <<_ACEOF
23588 /* confdefs.h.  */
23589 _ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h.  */
23593 #include <sys/types.h>
23594 #include <signal.h>
23595
23596 int
23597 main ()
23598 {
23599 return *(signal (0, 0)) (0) == 1;
23600   ;
23601   return 0;
23602 }
23603 _ACEOF
23604 rm -f conftest.$ac_objext
23605 if { (ac_try="$ac_compile"
23606 case "(($ac_try" in
23607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608   *) ac_try_echo=$ac_try;;
23609 esac
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611   (eval "$ac_compile") 2>conftest.er1
23612   ac_status=$?
23613   grep -v '^ *+' conftest.er1 >conftest.err
23614   rm -f conftest.er1
23615   cat conftest.err >&5
23616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617   (exit $ac_status); } &&
23618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23619   { (case "(($ac_try" in
23620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621   *) ac_try_echo=$ac_try;;
23622 esac
23623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23624   (eval "$ac_try") 2>&5
23625   ac_status=$?
23626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627   (exit $ac_status); }; } &&
23628          { ac_try='test -s conftest.$ac_objext'
23629   { (case "(($ac_try" in
23630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23631   *) ac_try_echo=$ac_try;;
23632 esac
23633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23634   (eval "$ac_try") 2>&5
23635   ac_status=$?
23636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637   (exit $ac_status); }; }; then
23638   ac_cv_type_signal=int
23639 else
23640   echo "$as_me: failed program was:" >&5
23641 sed 's/^/| /' conftest.$ac_ext >&5
23642
23643         ac_cv_type_signal=void
23644 fi
23645
23646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23647 fi
23648 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23649 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23650
23651 cat >>confdefs.h <<_ACEOF
23652 #define RETSIGTYPE $ac_cv_type_signal
23653 _ACEOF
23654
23655
23656
23657 if test "x$ac_cv_header_utmpx_h" = "xyes"
23658 then
23659
23660   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23661 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
23662
23663
23664   cat >conftest.$ac_ext <<_ACEOF
23665 /* confdefs.h.  */
23666 _ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h.  */
23670
23671 #include <utmpx.h>
23672 #ifndef offsetof
23673 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23674 #endif
23675
23676 int
23677 main ()
23678 {
23679  int foo = offsetof(struct utmpx, ut_xtime)
23680   ;
23681   return 0;
23682 }
23683 _ACEOF
23684 rm -f conftest.$ac_objext
23685 if { (ac_try="$ac_compile"
23686 case "(($ac_try" in
23687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688   *) ac_try_echo=$ac_try;;
23689 esac
23690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23691   (eval "$ac_compile") 2>conftest.er1
23692   ac_status=$?
23693   grep -v '^ *+' conftest.er1 >conftest.err
23694   rm -f conftest.er1
23695   cat conftest.err >&5
23696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697   (exit $ac_status); } &&
23698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23699   { (case "(($ac_try" in
23700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701   *) ac_try_echo=$ac_try;;
23702 esac
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704   (eval "$ac_try") 2>&5
23705   ac_status=$?
23706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707   (exit $ac_status); }; } &&
23708          { ac_try='test -s conftest.$ac_objext'
23709   { (case "(($ac_try" in
23710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23711   *) ac_try_echo=$ac_try;;
23712 esac
23713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23714   (eval "$ac_try") 2>&5
23715   ac_status=$?
23716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717   (exit $ac_status); }; }; then
23718   has_element=" "
23719 else
23720   echo "$as_me: failed program was:" >&5
23721 sed 's/^/| /' conftest.$ac_ext >&5
23722
23723         has_element=
23724 fi
23725
23726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23727
23728   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23729   if test "x$has_element" != "x"; then
23730     { echo "$as_me:$LINENO: result: yes" >&5
23731 echo "${ECHO_T}yes" >&6; }
23732     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23733   else
23734     { echo "$as_me:$LINENO: result: no" >&5
23735 echo "${ECHO_T}no" >&6; }
23736     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23737  fi
23738
23739  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23740  then
23741    cat >>confdefs.h <<\_ACEOF
23742 #define ut_xtime ut_tv.tv_sec
23743 _ACEOF
23744
23745  fi
23746 fi
23747
23748
23749   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23750 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
23751
23752
23753   cat >conftest.$ac_ext <<_ACEOF
23754 /* confdefs.h.  */
23755 _ACEOF
23756 cat confdefs.h >>conftest.$ac_ext
23757 cat >>conftest.$ac_ext <<_ACEOF
23758 /* end confdefs.h.  */
23759
23760 #include <netinet/in.h>
23761 #ifndef offsetof
23762 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23763 #endif
23764
23765 int
23766 main ()
23767 {
23768  int foo = offsetof(struct in_pktinfo, ipi_addr)
23769   ;
23770   return 0;
23771 }
23772 _ACEOF
23773 rm -f conftest.$ac_objext
23774 if { (ac_try="$ac_compile"
23775 case "(($ac_try" in
23776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23777   *) ac_try_echo=$ac_try;;
23778 esac
23779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23780   (eval "$ac_compile") 2>conftest.er1
23781   ac_status=$?
23782   grep -v '^ *+' conftest.er1 >conftest.err
23783   rm -f conftest.er1
23784   cat conftest.err >&5
23785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786   (exit $ac_status); } &&
23787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23788   { (case "(($ac_try" in
23789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790   *) ac_try_echo=$ac_try;;
23791 esac
23792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793   (eval "$ac_try") 2>&5
23794   ac_status=$?
23795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796   (exit $ac_status); }; } &&
23797          { ac_try='test -s conftest.$ac_objext'
23798   { (case "(($ac_try" in
23799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800   *) ac_try_echo=$ac_try;;
23801 esac
23802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23803   (eval "$ac_try") 2>&5
23804   ac_status=$?
23805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806   (exit $ac_status); }; }; then
23807   has_element=" "
23808 else
23809   echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.$ac_ext >&5
23811
23812         has_element=
23813 fi
23814
23815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23816
23817   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23818   if test "x$has_element" != "x"; then
23819     { echo "$as_me:$LINENO: result: yes" >&5
23820 echo "${ECHO_T}yes" >&6; }
23821     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23822   else
23823     { echo "$as_me:$LINENO: result: no" >&5
23824 echo "${ECHO_T}no" >&6; }
23825     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23826  fi
23827
23828 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23829 then
23830         cat >>confdefs.h <<\_ACEOF
23831 #define HAVE_IP_PKTINFO 1
23832 _ACEOF
23833
23834 fi
23835
23836
23837 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23838 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23839 if test "${ac_cv_c_const+set}" = set; then
23840   echo $ECHO_N "(cached) $ECHO_C" >&6
23841 else
23842   cat >conftest.$ac_ext <<_ACEOF
23843 /* confdefs.h.  */
23844 _ACEOF
23845 cat confdefs.h >>conftest.$ac_ext
23846 cat >>conftest.$ac_ext <<_ACEOF
23847 /* end confdefs.h.  */
23848
23849 int
23850 main ()
23851 {
23852 /* FIXME: Include the comments suggested by Paul. */
23853 #ifndef __cplusplus
23854   /* Ultrix mips cc rejects this.  */
23855   typedef int charset[2];
23856   const charset cs;
23857   /* SunOS 4.1.1 cc rejects this.  */
23858   char const *const *pcpcc;
23859   char **ppc;
23860   /* NEC SVR4.0.2 mips cc rejects this.  */
23861   struct point {int x, y;};
23862   static struct point const zero = {0,0};
23863   /* AIX XL C 1.02.0.0 rejects this.
23864      It does not let you subtract one const X* pointer from another in
23865      an arm of an if-expression whose if-part is not a constant
23866      expression */
23867   const char *g = "string";
23868   pcpcc = &g + (g ? g-g : 0);
23869   /* HPUX 7.0 cc rejects these. */
23870   ++pcpcc;
23871   ppc = (char**) pcpcc;
23872   pcpcc = (char const *const *) ppc;
23873   { /* SCO 3.2v4 cc rejects this.  */
23874     char *t;
23875     char const *s = 0 ? (char *) 0 : (char const *) 0;
23876
23877     *t++ = 0;
23878     if (s) return 0;
23879   }
23880   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23881     int x[] = {25, 17};
23882     const int *foo = &x[0];
23883     ++foo;
23884   }
23885   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23886     typedef const int *iptr;
23887     iptr p = 0;
23888     ++p;
23889   }
23890   { /* AIX XL C 1.02.0.0 rejects this saying
23891        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23892     struct s { int j; const int *ap[3]; };
23893     struct s *b; b->j = 5;
23894   }
23895   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23896     const int foo = 10;
23897     if (!foo) return 0;
23898   }
23899   return !cs[0] && !zero.x;
23900 #endif
23901
23902   ;
23903   return 0;
23904 }
23905 _ACEOF
23906 rm -f conftest.$ac_objext
23907 if { (ac_try="$ac_compile"
23908 case "(($ac_try" in
23909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23910   *) ac_try_echo=$ac_try;;
23911 esac
23912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913   (eval "$ac_compile") 2>conftest.er1
23914   ac_status=$?
23915   grep -v '^ *+' conftest.er1 >conftest.err
23916   rm -f conftest.er1
23917   cat conftest.err >&5
23918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919   (exit $ac_status); } &&
23920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23921   { (case "(($ac_try" in
23922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923   *) ac_try_echo=$ac_try;;
23924 esac
23925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23926   (eval "$ac_try") 2>&5
23927   ac_status=$?
23928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929   (exit $ac_status); }; } &&
23930          { ac_try='test -s conftest.$ac_objext'
23931   { (case "(($ac_try" in
23932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933   *) ac_try_echo=$ac_try;;
23934 esac
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936   (eval "$ac_try") 2>&5
23937   ac_status=$?
23938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939   (exit $ac_status); }; }; then
23940   ac_cv_c_const=yes
23941 else
23942   echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23944
23945         ac_cv_c_const=no
23946 fi
23947
23948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23949 fi
23950 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23951 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23952 if test $ac_cv_c_const = no; then
23953
23954 cat >>confdefs.h <<\_ACEOF
23955 #define const
23956 _ACEOF
23957
23958 fi
23959
23960
23961 { echo "$as_me:$LINENO: checking type of OS" >&5
23962 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
23963 OS=`uname -s`
23964 { echo "$as_me:$LINENO: result: $OS" >&5
23965 echo "${ECHO_T}$OS" >&6; }
23966 if test "$OS" = "OS/2"; then
23967         LIBPREFIX=
23968 else
23969         LIBPREFIX=lib
23970 fi
23971
23972
23973 if test "x$GCC" = "xyes"; then
23974     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23975 fi
23976
23977 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23978 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
23979 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23980   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23981   CFLAGS="$CFLAGS $devflags"
23982   INSTALLSTRIP=""
23983   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
23984 echo "${ECHO_T}yes.  Using $devflags" >&6; }
23985 else
23986   devflags=""
23987   CFLAGS="$CFLAGS -DNDEBUG"
23988   INSTALLSTRIP="-s"
23989   { echo "$as_me:$LINENO: result: no." >&5
23990 echo "${ECHO_T}no." >&6; }
23991 fi
23992
23993
23994 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23995 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23996 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23997   echo $ECHO_N "(cached) $ECHO_C" >&6
23998 else
23999   ac_check_lib_save_LIBS=$LIBS
24000 LIBS="-lcrypt  $LIBS"
24001 cat >conftest.$ac_ext <<_ACEOF
24002 /* confdefs.h.  */
24003 _ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h.  */
24007
24008 /* Override any GCC internal prototype to avoid an error.
24009    Use char because int might match the return type of a GCC
24010    builtin and then its argument prototype would still apply.  */
24011 #ifdef __cplusplus
24012 extern "C"
24013 #endif
24014 char crypt ();
24015 int
24016 main ()
24017 {
24018 return crypt ();
24019   ;
24020   return 0;
24021 }
24022 _ACEOF
24023 rm -f conftest.$ac_objext conftest$ac_exeext
24024 if { (ac_try="$ac_link"
24025 case "(($ac_try" in
24026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24027   *) ac_try_echo=$ac_try;;
24028 esac
24029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24030   (eval "$ac_link") 2>conftest.er1
24031   ac_status=$?
24032   grep -v '^ *+' conftest.er1 >conftest.err
24033   rm -f conftest.er1
24034   cat conftest.err >&5
24035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036   (exit $ac_status); } &&
24037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24038   { (case "(($ac_try" in
24039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040   *) ac_try_echo=$ac_try;;
24041 esac
24042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24043   (eval "$ac_try") 2>&5
24044   ac_status=$?
24045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046   (exit $ac_status); }; } &&
24047          { ac_try='test -s conftest$ac_exeext'
24048   { (case "(($ac_try" in
24049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050   *) ac_try_echo=$ac_try;;
24051 esac
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053   (eval "$ac_try") 2>&5
24054   ac_status=$?
24055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056   (exit $ac_status); }; }; then
24057   ac_cv_lib_crypt_crypt=yes
24058 else
24059   echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24061
24062         ac_cv_lib_crypt_crypt=no
24063 fi
24064
24065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24066       conftest$ac_exeext conftest.$ac_ext
24067 LIBS=$ac_check_lib_save_LIBS
24068 fi
24069 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
24070 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
24071 if test $ac_cv_lib_crypt_crypt = yes; then
24072   CRYPTLIB="-lcrypt"
24073
24074 fi
24075
24076 if test "$CRYPTLIB" != ""; then
24077   cat >>confdefs.h <<\_ACEOF
24078 #define HAVE_CRYPT 1
24079 _ACEOF
24080
24081 else
24082   { echo "$as_me:$LINENO: checking for crypt" >&5
24083 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
24084 if test "${ac_cv_func_crypt+set}" = set; then
24085   echo $ECHO_N "(cached) $ECHO_C" >&6
24086 else
24087   cat >conftest.$ac_ext <<_ACEOF
24088 /* confdefs.h.  */
24089 _ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h.  */
24093 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24095 #define crypt innocuous_crypt
24096
24097 /* System header to define __stub macros and hopefully few prototypes,
24098     which can conflict with char crypt (); below.
24099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24100     <limits.h> exists even on freestanding compilers.  */
24101
24102 #ifdef __STDC__
24103 # include <limits.h>
24104 #else
24105 # include <assert.h>
24106 #endif
24107
24108 #undef crypt
24109
24110 /* Override any GCC internal prototype to avoid an error.
24111    Use char because int might match the return type of a GCC
24112    builtin and then its argument prototype would still apply.  */
24113 #ifdef __cplusplus
24114 extern "C"
24115 #endif
24116 char crypt ();
24117 /* The GNU C library defines this for functions which it implements
24118     to always fail with ENOSYS.  Some functions are actually named
24119     something starting with __ and the normal name is an alias.  */
24120 #if defined __stub_crypt || defined __stub___crypt
24121 choke me
24122 #endif
24123
24124 int
24125 main ()
24126 {
24127 return crypt ();
24128   ;
24129   return 0;
24130 }
24131 _ACEOF
24132 rm -f conftest.$ac_objext conftest$ac_exeext
24133 if { (ac_try="$ac_link"
24134 case "(($ac_try" in
24135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136   *) ac_try_echo=$ac_try;;
24137 esac
24138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24139   (eval "$ac_link") 2>conftest.er1
24140   ac_status=$?
24141   grep -v '^ *+' conftest.er1 >conftest.err
24142   rm -f conftest.er1
24143   cat conftest.err >&5
24144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145   (exit $ac_status); } &&
24146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24147   { (case "(($ac_try" in
24148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149   *) ac_try_echo=$ac_try;;
24150 esac
24151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24152   (eval "$ac_try") 2>&5
24153   ac_status=$?
24154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155   (exit $ac_status); }; } &&
24156          { ac_try='test -s conftest$ac_exeext'
24157   { (case "(($ac_try" in
24158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24159   *) ac_try_echo=$ac_try;;
24160 esac
24161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24162   (eval "$ac_try") 2>&5
24163   ac_status=$?
24164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165   (exit $ac_status); }; }; then
24166   ac_cv_func_crypt=yes
24167 else
24168   echo "$as_me: failed program was:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24170
24171         ac_cv_func_crypt=no
24172 fi
24173
24174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24175       conftest$ac_exeext conftest.$ac_ext
24176 fi
24177 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24178 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24179 if test $ac_cv_func_crypt = yes; then
24180   cat >>confdefs.h <<\_ACEOF
24181 #define HAVE_CRYPT 1
24182 _ACEOF
24183
24184 fi
24185
24186 fi
24187
24188 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24189 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24190 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24191   echo $ECHO_N "(cached) $ECHO_C" >&6
24192 else
24193   ac_check_lib_save_LIBS=$LIBS
24194 LIBS="-lcipher  $LIBS"
24195 cat >conftest.$ac_ext <<_ACEOF
24196 /* confdefs.h.  */
24197 _ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h.  */
24201
24202 /* Override any GCC internal prototype to avoid an error.
24203    Use char because int might match the return type of a GCC
24204    builtin and then its argument prototype would still apply.  */
24205 #ifdef __cplusplus
24206 extern "C"
24207 #endif
24208 char setkey ();
24209 int
24210 main ()
24211 {
24212 return setkey ();
24213   ;
24214   return 0;
24215 }
24216 _ACEOF
24217 rm -f conftest.$ac_objext conftest$ac_exeext
24218 if { (ac_try="$ac_link"
24219 case "(($ac_try" in
24220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24221   *) ac_try_echo=$ac_try;;
24222 esac
24223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24224   (eval "$ac_link") 2>conftest.er1
24225   ac_status=$?
24226   grep -v '^ *+' conftest.er1 >conftest.err
24227   rm -f conftest.er1
24228   cat conftest.err >&5
24229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230   (exit $ac_status); } &&
24231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
24238   ac_status=$?
24239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240   (exit $ac_status); }; } &&
24241          { ac_try='test -s conftest$ac_exeext'
24242   { (case "(($ac_try" in
24243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244   *) ac_try_echo=$ac_try;;
24245 esac
24246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247   (eval "$ac_try") 2>&5
24248   ac_status=$?
24249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250   (exit $ac_status); }; }; then
24251   ac_cv_lib_cipher_setkey=yes
24252 else
24253   echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24255
24256         ac_cv_lib_cipher_setkey=no
24257 fi
24258
24259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24260       conftest$ac_exeext conftest.$ac_ext
24261 LIBS=$ac_check_lib_save_LIBS
24262 fi
24263 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24264 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24265 if test $ac_cv_lib_cipher_setkey = yes; then
24266   CRYPTLIB="${CRYPTLIB} -lcipher"
24267
24268 fi
24269
24270
24271
24272 if test "x$WITH_SNMP" = "xyes"; then
24273
24274
24275
24276
24277 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24278 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
24279
24280 cat >conftest.$ac_ext <<_ACEOF
24281 /* confdefs.h.  */
24282 _ACEOF
24283 cat confdefs.h >>conftest.$ac_ext
24284 cat >>conftest.$ac_ext <<_ACEOF
24285 /* end confdefs.h.  */
24286
24287 #ifdef HAVE_SYS_TYPES_H
24288 #include <sys/types.h>
24289 #endif
24290 #ifdef HAVE_STDINT_H
24291 #include <stdint.h>
24292 #endif
24293 #ifdef HAVE_STDIO_H
24294 #include <stdio.h>
24295 #endif
24296 #ifdef HAVE_NETDB_H
24297 #include <netdb.h>
24298 #endif
24299 #ifdef HAVE_UNISTD_H
24300 #include <unistd.h>
24301 #endif
24302 #include <ucd-snmp/ucd-snmp-config.h>
24303 #include <ucd-snmp/asn1.h>
24304 #include <ucd-snmp/snmp.h>
24305 #include <ucd-snmp/snmp_impl.h>
24306 int
24307 main ()
24308 {
24309  int a = 1;
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   SNMP_INCLUDE="";ucdsnmp=yes
24349 else
24350   echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24352
24353         ucdsnmp=
24354 fi
24355
24356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24357
24358 if test "x$ucdsnmp" = "x"; then
24359   old_CFLAGS="$CFLAGS"
24360   for try in /usr/include /usr/local/include $with_snmp_include_dir; do
24361     CFLAGS="$old_CFLAGS -I$try"
24362     cat >conftest.$ac_ext <<_ACEOF
24363 /* confdefs.h.  */
24364 _ACEOF
24365 cat confdefs.h >>conftest.$ac_ext
24366 cat >>conftest.$ac_ext <<_ACEOF
24367 /* end confdefs.h.  */
24368
24369 #ifdef HAVE_SYS_TYPES_H
24370 #include <sys/types.h>
24371 #endif
24372 #ifdef HAVE_STDINT_H
24373 #include <stdint.h>
24374 #endif
24375 #ifdef HAVE_STDIO_H
24376 #include <stdio.h>
24377 #endif
24378 #ifdef HAVE_NETDB_H
24379 #include <netdb.h>
24380 #endif
24381 #ifdef HAVE_UNISTD_H
24382 #include <unistd.h>
24383 #endif
24384 #include <ucd-snmp/ucd-snmp-config.h>
24385 #include <ucd-snmp/asn1.h>
24386 #include <ucd-snmp/snmp.h>
24387 #include <ucd-snmp/snmp_impl.h>
24388 int
24389 main ()
24390 {
24391  int a = 1;
24392   ;
24393   return 0;
24394 }
24395 _ACEOF
24396 rm -f conftest.$ac_objext
24397 if { (ac_try="$ac_compile"
24398 case "(($ac_try" in
24399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400   *) ac_try_echo=$ac_try;;
24401 esac
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403   (eval "$ac_compile") 2>conftest.er1
24404   ac_status=$?
24405   grep -v '^ *+' conftest.er1 >conftest.err
24406   rm -f conftest.er1
24407   cat conftest.err >&5
24408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409   (exit $ac_status); } &&
24410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24411   { (case "(($ac_try" in
24412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413   *) ac_try_echo=$ac_try;;
24414 esac
24415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24416   (eval "$ac_try") 2>&5
24417   ac_status=$?
24418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419   (exit $ac_status); }; } &&
24420          { ac_try='test -s conftest.$ac_objext'
24421   { (case "(($ac_try" in
24422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423   *) ac_try_echo=$ac_try;;
24424 esac
24425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426   (eval "$ac_try") 2>&5
24427   ac_status=$?
24428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429   (exit $ac_status); }; }; then
24430   SNMP_INCLUDE="-I$try";ucdsnmp=yes
24431 else
24432   echo "$as_me: failed program was:" >&5
24433 sed 's/^/| /' conftest.$ac_ext >&5
24434
24435         ucdsnmp=
24436 fi
24437
24438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24439     if test "x$ucdsnmp" != "x"; then
24440       break;
24441     fi
24442   done
24443   CFLAGS="$old_CFLAGS"
24444 fi
24445
24446 if test "x$ucdsnmp" = "x"; then
24447   old_CFLAGS="$CFLAGS"
24448   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
24449     CFLAGS="$old_CFLAGS -I$try"
24450 cat >conftest.$ac_ext <<_ACEOF
24451 /* confdefs.h.  */
24452 _ACEOF
24453 cat confdefs.h >>conftest.$ac_ext
24454 cat >>conftest.$ac_ext <<_ACEOF
24455 /* end confdefs.h.  */
24456
24457 #ifdef HAVE_SYS_TYPES_H
24458 #include <sys/types.h>
24459 #endif
24460 #ifdef HAVE_STDINT_H
24461 #include <stdint.h>
24462 #endif
24463 #ifdef HAVE_STDIO_H
24464 #include <stdio.h>
24465 #endif
24466 #ifdef HAVE_NETDB_H
24467 #include <netdb.h>
24468 #endif
24469 #ifdef HAVE_UNISTD_H
24470 #include <unistd.h>
24471 #endif
24472 #include <asn1.h>
24473 #include <snmp.h>
24474 #include <snmp_impl.h>
24475 int
24476 main ()
24477 {
24478  int a = 1;
24479   ;
24480   return 0;
24481 }
24482 _ACEOF
24483 rm -f conftest.$ac_objext
24484 if { (ac_try="$ac_compile"
24485 case "(($ac_try" in
24486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24487   *) ac_try_echo=$ac_try;;
24488 esac
24489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24490   (eval "$ac_compile") 2>conftest.er1
24491   ac_status=$?
24492   grep -v '^ *+' conftest.er1 >conftest.err
24493   rm -f conftest.er1
24494   cat conftest.err >&5
24495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496   (exit $ac_status); } &&
24497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24498   { (case "(($ac_try" in
24499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500   *) ac_try_echo=$ac_try;;
24501 esac
24502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24503   (eval "$ac_try") 2>&5
24504   ac_status=$?
24505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506   (exit $ac_status); }; } &&
24507          { ac_try='test -s conftest.$ac_objext'
24508   { (case "(($ac_try" in
24509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24510   *) ac_try_echo=$ac_try;;
24511 esac
24512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24513   (eval "$ac_try") 2>&5
24514   ac_status=$?
24515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516   (exit $ac_status); }; }; then
24517   SNMP_INCLUDE="";ucdsnmp=no
24518 else
24519   echo "$as_me: failed program was:" >&5
24520 sed 's/^/| /' conftest.$ac_ext >&5
24521
24522         ucdsnmp=
24523 fi
24524
24525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24526     if test "x$ucdsnmp" != "x"; then
24527       break;
24528     fi
24529   done
24530   CFLAGS="$old_CFLAGS"
24531 fi
24532
24533 if test "x$ucdsnmp" = "x"; then
24534   old_CFLAGS="$CFLAGS"
24535   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
24536     CFLAGS="$old_CFLAGS -I$try"
24537     cat >conftest.$ac_ext <<_ACEOF
24538 /* confdefs.h.  */
24539 _ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h.  */
24543
24544 #ifdef HAVE_SYS_TYPES_H
24545 #include <sys/types.h>
24546 #endif
24547 #ifdef HAVE_STDINT_H
24548 #include <stdint.h>
24549 #endif
24550 #ifdef HAVE_STDIO_H
24551 #include <stdio.h>
24552 #endif
24553 #ifdef HAVE_NETDB_H
24554 #include <netdb.h>
24555 #endif
24556 #ifdef HAVE_UNISTD_H
24557 #include <unistd.h>
24558 #endif
24559 #include <asn1.h>
24560 #include <snmp.h>
24561 #include <snmp_impl.h>
24562 int
24563 main ()
24564 {
24565  int a = 1;
24566   ;
24567   return 0;
24568 }
24569 _ACEOF
24570 rm -f conftest.$ac_objext
24571 if { (ac_try="$ac_compile"
24572 case "(($ac_try" in
24573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24574   *) ac_try_echo=$ac_try;;
24575 esac
24576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24577   (eval "$ac_compile") 2>conftest.er1
24578   ac_status=$?
24579   grep -v '^ *+' conftest.er1 >conftest.err
24580   rm -f conftest.er1
24581   cat conftest.err >&5
24582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583   (exit $ac_status); } &&
24584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24585   { (case "(($ac_try" in
24586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24587   *) ac_try_echo=$ac_try;;
24588 esac
24589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24590   (eval "$ac_try") 2>&5
24591   ac_status=$?
24592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593   (exit $ac_status); }; } &&
24594          { ac_try='test -s conftest.$ac_objext'
24595   { (case "(($ac_try" in
24596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597   *) ac_try_echo=$ac_try;;
24598 esac
24599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600   (eval "$ac_try") 2>&5
24601   ac_status=$?
24602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603   (exit $ac_status); }; }; then
24604   SNMP_INCLUDE="-I$try";ucdsnmp=no
24605 else
24606   echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24608
24609         ucdsnmp=
24610 fi
24611
24612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24613     if test "x$ucdsnmp" != "x"; then
24614       break;
24615     fi
24616   done
24617   CFLAGS="$old_CFLAGS"
24618 fi
24619
24620 if test "x$ucdsnmp" = "x"; then
24621   { echo "$as_me:$LINENO: result: no" >&5
24622 echo "${ECHO_T}no" >&6; }
24623 else
24624   if test "x$ucdsnmp" = "xyes"; then
24625     { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24626 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
24627     cat >>confdefs.h <<\_ACEOF
24628 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
24629 _ACEOF
24630
24631   else
24632     { echo "$as_me:$LINENO: result: yes" >&5
24633 echo "${ECHO_T}yes" >&6; }
24634     cat >>confdefs.h <<\_ACEOF
24635 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
24636 _ACEOF
24637
24638   fi
24639   { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24640 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
24641
24642   old_LIBS="$LIBS"
24643   LIBS="$old_LIBS -lsnmp"
24644   cat >conftest.$ac_ext <<_ACEOF
24645 /* confdefs.h.  */
24646 _ACEOF
24647 cat confdefs.h >>conftest.$ac_ext
24648 cat >>conftest.$ac_ext <<_ACEOF
24649 /* end confdefs.h.  */
24650 extern char snmp_build_var_op();
24651 int
24652 main ()
24653 {
24654  snmp_build_var_op()
24655   ;
24656   return 0;
24657 }
24658 _ACEOF
24659 rm -f conftest.$ac_objext conftest$ac_exeext
24660 if { (ac_try="$ac_link"
24661 case "(($ac_try" in
24662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663   *) ac_try_echo=$ac_try;;
24664 esac
24665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24666   (eval "$ac_link") 2>conftest.er1
24667   ac_status=$?
24668   grep -v '^ *+' conftest.er1 >conftest.err
24669   rm -f conftest.er1
24670   cat conftest.err >&5
24671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672   (exit $ac_status); } &&
24673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24674   { (case "(($ac_try" in
24675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676   *) ac_try_echo=$ac_try;;
24677 esac
24678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679   (eval "$ac_try") 2>&5
24680   ac_status=$?
24681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682   (exit $ac_status); }; } &&
24683          { ac_try='test -s conftest$ac_exeext'
24684   { (case "(($ac_try" in
24685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24686   *) ac_try_echo=$ac_try;;
24687 esac
24688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24689   (eval "$ac_try") 2>&5
24690   ac_status=$?
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); }; }; then
24693   SNMP_LIBS="-lsnmp"
24694 else
24695   echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24697
24698         SNMP_LIBS=
24699 fi
24700
24701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24702       conftest$ac_exeext conftest.$ac_ext
24703
24704   if test "x$SNMP_LIBS" = "x"; then
24705     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24706       LIBS="$old_LIBS -L$try -lsnmp"
24707       cat >conftest.$ac_ext <<_ACEOF
24708 /* confdefs.h.  */
24709 _ACEOF
24710 cat confdefs.h >>conftest.$ac_ext
24711 cat >>conftest.$ac_ext <<_ACEOF
24712 /* end confdefs.h.  */
24713 extern char snmp_build_var_op();
24714 int
24715 main ()
24716 {
24717  snmp_build_var_op()
24718   ;
24719   return 0;
24720 }
24721 _ACEOF
24722 rm -f conftest.$ac_objext conftest$ac_exeext
24723 if { (ac_try="$ac_link"
24724 case "(($ac_try" in
24725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726   *) ac_try_echo=$ac_try;;
24727 esac
24728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729   (eval "$ac_link") 2>conftest.er1
24730   ac_status=$?
24731   grep -v '^ *+' conftest.er1 >conftest.err
24732   rm -f conftest.er1
24733   cat conftest.err >&5
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); } &&
24736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24737   { (case "(($ac_try" in
24738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24739   *) ac_try_echo=$ac_try;;
24740 esac
24741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24742   (eval "$ac_try") 2>&5
24743   ac_status=$?
24744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745   (exit $ac_status); }; } &&
24746          { ac_try='test -s conftest$ac_exeext'
24747   { (case "(($ac_try" in
24748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24749   *) ac_try_echo=$ac_try;;
24750 esac
24751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24752   (eval "$ac_try") 2>&5
24753   ac_status=$?
24754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755   (exit $ac_status); }; }; then
24756   SNMP_LIBS="-L$try -lsnmp"
24757 else
24758   echo "$as_me: failed program was:" >&5
24759 sed 's/^/| /' conftest.$ac_ext >&5
24760
24761         SNMP_LIBS=
24762 fi
24763
24764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24765       conftest$ac_exeext conftest.$ac_ext
24766       if test "x$SNMP_LIBS" != "x"; then
24767         break;
24768       fi
24769       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24770       cat >conftest.$ac_ext <<_ACEOF
24771 /* confdefs.h.  */
24772 _ACEOF
24773 cat confdefs.h >>conftest.$ac_ext
24774 cat >>conftest.$ac_ext <<_ACEOF
24775 /* end confdefs.h.  */
24776 extern char snmp_build_var_op();
24777 int
24778 main ()
24779 {
24780  snmp_build_var_op()
24781   ;
24782   return 0;
24783 }
24784 _ACEOF
24785 rm -f conftest.$ac_objext conftest$ac_exeext
24786 if { (ac_try="$ac_link"
24787 case "(($ac_try" in
24788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24789   *) ac_try_echo=$ac_try;;
24790 esac
24791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24792   (eval "$ac_link") 2>conftest.er1
24793   ac_status=$?
24794   grep -v '^ *+' conftest.er1 >conftest.err
24795   rm -f conftest.er1
24796   cat conftest.err >&5
24797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798   (exit $ac_status); } &&
24799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24800   { (case "(($ac_try" in
24801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24802   *) ac_try_echo=$ac_try;;
24803 esac
24804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24805   (eval "$ac_try") 2>&5
24806   ac_status=$?
24807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808   (exit $ac_status); }; } &&
24809          { ac_try='test -s conftest$ac_exeext'
24810   { (case "(($ac_try" in
24811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24812   *) ac_try_echo=$ac_try;;
24813 esac
24814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24815   (eval "$ac_try") 2>&5
24816   ac_status=$?
24817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818   (exit $ac_status); }; }; then
24819   SNMP_LIBS="-L$try -lsnmp -lcrypto"
24820 else
24821   echo "$as_me: failed program was:" >&5
24822 sed 's/^/| /' conftest.$ac_ext >&5
24823
24824         SNMP_LIBS=
24825 fi
24826
24827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24828       conftest$ac_exeext conftest.$ac_ext
24829       if test "x$SNMP_LIBS" != "x"; then
24830         break;
24831       fi
24832       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24833       cat >conftest.$ac_ext <<_ACEOF
24834 /* confdefs.h.  */
24835 _ACEOF
24836 cat confdefs.h >>conftest.$ac_ext
24837 cat >>conftest.$ac_ext <<_ACEOF
24838 /* end confdefs.h.  */
24839 extern char snmp_build_var_op();
24840 int
24841 main ()
24842 {
24843  snmp_build_var_op()
24844   ;
24845   return 0;
24846 }
24847 _ACEOF
24848 rm -f conftest.$ac_objext conftest$ac_exeext
24849 if { (ac_try="$ac_link"
24850 case "(($ac_try" in
24851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852   *) ac_try_echo=$ac_try;;
24853 esac
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855   (eval "$ac_link") 2>conftest.er1
24856   ac_status=$?
24857   grep -v '^ *+' conftest.er1 >conftest.err
24858   rm -f conftest.er1
24859   cat conftest.err >&5
24860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861   (exit $ac_status); } &&
24862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24863   { (case "(($ac_try" in
24864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24865   *) ac_try_echo=$ac_try;;
24866 esac
24867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24868   (eval "$ac_try") 2>&5
24869   ac_status=$?
24870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871   (exit $ac_status); }; } &&
24872          { ac_try='test -s conftest$ac_exeext'
24873   { (case "(($ac_try" in
24874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875   *) ac_try_echo=$ac_try;;
24876 esac
24877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24878   (eval "$ac_try") 2>&5
24879   ac_status=$?
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); }; }; then
24882   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24883 else
24884   echo "$as_me: failed program was:" >&5
24885 sed 's/^/| /' conftest.$ac_ext >&5
24886
24887         SNMP_LIBS=
24888 fi
24889
24890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24891       conftest$ac_exeext conftest.$ac_ext
24892       if test "x$SNMP_LIBS" != "x"; then
24893         break;
24894       fi
24895     done
24896   fi
24897   LIBS="$old_LIBS"
24898
24899           CFLAGS="$old_CFLAGS"
24900   if test "x$SNMP_LIBS" = "x"; then
24901     { echo "$as_me:$LINENO: result: no" >&5
24902 echo "${ECHO_T}no" >&6; }
24903     SNMP_INCLUDE=
24904   else
24905     { echo "$as_me:$LINENO: result: yes" >&5
24906 echo "${ECHO_T}yes" >&6; }
24907     cat >>confdefs.h <<\_ACEOF
24908 #define WITH_SNMP 1
24909 _ACEOF
24910
24911     cat >>confdefs.h <<\_ACEOF
24912 #define HAVE_LIBSNMP 1
24913 _ACEOF
24914
24915   fi
24916 fi
24917
24918 fi
24919
24920 gethostbyaddrrstyle=""
24921 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24922 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24923 case "$host" in
24924 *-freebsd*)
24925         cat >>confdefs.h <<\_ACEOF
24926 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24927 _ACEOF
24928
24929         gethostbyaddrrstyle=BSD
24930         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24931 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24932         ;;
24933 esac
24934 if test "x$gethostbyaddrrstyle" = "x"; then
24935         cat >conftest.$ac_ext <<_ACEOF
24936 /* confdefs.h.  */
24937 _ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h.  */
24941
24942 #include <stdio.h>
24943 #include <netdb.h>
24944
24945 int
24946 main ()
24947 {
24948  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24949   ;
24950   return 0;
24951 }
24952 _ACEOF
24953 rm -f conftest.$ac_objext conftest$ac_exeext
24954 if { (ac_try="$ac_link"
24955 case "(($ac_try" in
24956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24957   *) ac_try_echo=$ac_try;;
24958 esac
24959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24960   (eval "$ac_link") 2>conftest.er1
24961   ac_status=$?
24962   grep -v '^ *+' conftest.er1 >conftest.err
24963   rm -f conftest.er1
24964   cat conftest.err >&5
24965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966   (exit $ac_status); } &&
24967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24968   { (case "(($ac_try" in
24969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24970   *) ac_try_echo=$ac_try;;
24971 esac
24972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24973   (eval "$ac_try") 2>&5
24974   ac_status=$?
24975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976   (exit $ac_status); }; } &&
24977          { ac_try='test -s conftest$ac_exeext'
24978   { (case "(($ac_try" in
24979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24980   *) ac_try_echo=$ac_try;;
24981 esac
24982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24983   (eval "$ac_try") 2>&5
24984   ac_status=$?
24985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986   (exit $ac_status); }; }; then
24987
24988         cat >>confdefs.h <<\_ACEOF
24989 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24990 _ACEOF
24991
24992         gethostbyaddrrstyle=GNU
24993
24994 else
24995   echo "$as_me: failed program was:" >&5
24996 sed 's/^/| /' conftest.$ac_ext >&5
24997
24998
24999 fi
25000
25001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25002       conftest$ac_exeext conftest.$ac_ext
25003 fi
25004 if test "x$gethostbyaddrrstyle" = "x"; then
25005         cat >conftest.$ac_ext <<_ACEOF
25006 /* confdefs.h.  */
25007 _ACEOF
25008 cat confdefs.h >>conftest.$ac_ext
25009 cat >>conftest.$ac_ext <<_ACEOF
25010 /* end confdefs.h.  */
25011
25012 #include <stdio.h>
25013 #include <netdb.h>
25014
25015 int
25016 main ()
25017 {
25018  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
25019   ;
25020   return 0;
25021 }
25022 _ACEOF
25023 rm -f conftest.$ac_objext conftest$ac_exeext
25024 if { (ac_try="$ac_link"
25025 case "(($ac_try" in
25026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027   *) ac_try_echo=$ac_try;;
25028 esac
25029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25030   (eval "$ac_link") 2>conftest.er1
25031   ac_status=$?
25032   grep -v '^ *+' conftest.er1 >conftest.err
25033   rm -f conftest.er1
25034   cat conftest.err >&5
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); } &&
25037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25038   { (case "(($ac_try" in
25039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040   *) ac_try_echo=$ac_try;;
25041 esac
25042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043   (eval "$ac_try") 2>&5
25044   ac_status=$?
25045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046   (exit $ac_status); }; } &&
25047          { ac_try='test -s conftest$ac_exeext'
25048   { (case "(($ac_try" in
25049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25050   *) ac_try_echo=$ac_try;;
25051 esac
25052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25053   (eval "$ac_try") 2>&5
25054   ac_status=$?
25055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056   (exit $ac_status); }; }; then
25057
25058                 cat >>confdefs.h <<\_ACEOF
25059 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25060 _ACEOF
25061
25062                 gethostbyaddrrstyle=SYSV
25063
25064 else
25065   echo "$as_me: failed program was:" >&5
25066 sed 's/^/| /' conftest.$ac_ext >&5
25067
25068
25069 fi
25070
25071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25072       conftest$ac_exeext conftest.$ac_ext
25073 fi
25074 if test "x$gethostbyaddrrstyle" = "x"; then
25075         cat >conftest.$ac_ext <<_ACEOF
25076 /* confdefs.h.  */
25077 _ACEOF
25078 cat confdefs.h >>conftest.$ac_ext
25079 cat >>conftest.$ac_ext <<_ACEOF
25080 /* end confdefs.h.  */
25081
25082 #include <stdio.h>
25083 #include <netdb.h>
25084
25085 int
25086 main ()
25087 {
25088  gethostbyaddr(NULL, 0, 0)
25089   ;
25090   return 0;
25091 }
25092 _ACEOF
25093 rm -f conftest.$ac_objext conftest$ac_exeext
25094 if { (ac_try="$ac_link"
25095 case "(($ac_try" in
25096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25097   *) ac_try_echo=$ac_try;;
25098 esac
25099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25100   (eval "$ac_link") 2>conftest.er1
25101   ac_status=$?
25102   grep -v '^ *+' conftest.er1 >conftest.err
25103   rm -f conftest.er1
25104   cat conftest.err >&5
25105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106   (exit $ac_status); } &&
25107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25108   { (case "(($ac_try" in
25109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25110   *) ac_try_echo=$ac_try;;
25111 esac
25112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25113   (eval "$ac_try") 2>&5
25114   ac_status=$?
25115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116   (exit $ac_status); }; } &&
25117          { ac_try='test -s conftest$ac_exeext'
25118   { (case "(($ac_try" in
25119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25120   *) ac_try_echo=$ac_try;;
25121 esac
25122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25123   (eval "$ac_try") 2>&5
25124   ac_status=$?
25125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126   (exit $ac_status); }; }; then
25127
25128                 cat >>confdefs.h <<\_ACEOF
25129 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25130 _ACEOF
25131
25132                 gethostbyaddrrstyle=BSD
25133
25134 else
25135   echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.$ac_ext >&5
25137
25138
25139 fi
25140
25141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25142       conftest$ac_exeext conftest.$ac_ext
25143 fi
25144
25145 if test "x$gethostbyaddrrstyle" = "x"; then
25146         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25147 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25148 else
25149         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25150 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
25151 fi
25152
25153 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25154         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25155 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25156 fi
25157
25158 gethostbynamerstyle=""
25159 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25160 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
25161 cat >conftest.$ac_ext <<_ACEOF
25162 /* confdefs.h.  */
25163 _ACEOF
25164 cat confdefs.h >>conftest.$ac_ext
25165 cat >>conftest.$ac_ext <<_ACEOF
25166 /* end confdefs.h.  */
25167
25168 #include <stdio.h>
25169 #include <netdb.h>
25170
25171 int
25172 main ()
25173 {
25174  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25175   ;
25176   return 0;
25177 }
25178 _ACEOF
25179 rm -f conftest.$ac_objext conftest$ac_exeext
25180 if { (ac_try="$ac_link"
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_link") 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_exeext'
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
25214         cat >>confdefs.h <<\_ACEOF
25215 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25216 _ACEOF
25217
25218         gethostbynamerstyle=GNU
25219
25220 else
25221   echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25223
25224
25225 fi
25226
25227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25228       conftest$ac_exeext conftest.$ac_ext
25229 if test "x$gethostbynamerstyle" = "x"; then
25230         cat >conftest.$ac_ext <<_ACEOF
25231 /* confdefs.h.  */
25232 _ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h.  */
25236
25237 #include <stdio.h>
25238 #include <netdb.h>
25239
25240 int
25241 main ()
25242 {
25243  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25244   ;
25245   return 0;
25246 }
25247 _ACEOF
25248 rm -f conftest.$ac_objext conftest$ac_exeext
25249 if { (ac_try="$ac_link"
25250 case "(($ac_try" in
25251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25252   *) ac_try_echo=$ac_try;;
25253 esac
25254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25255   (eval "$ac_link") 2>conftest.er1
25256   ac_status=$?
25257   grep -v '^ *+' conftest.er1 >conftest.err
25258   rm -f conftest.er1
25259   cat conftest.err >&5
25260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261   (exit $ac_status); } &&
25262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25263   { (case "(($ac_try" in
25264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25265   *) ac_try_echo=$ac_try;;
25266 esac
25267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25268   (eval "$ac_try") 2>&5
25269   ac_status=$?
25270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271   (exit $ac_status); }; } &&
25272          { ac_try='test -s conftest$ac_exeext'
25273   { (case "(($ac_try" in
25274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275   *) ac_try_echo=$ac_try;;
25276 esac
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278   (eval "$ac_try") 2>&5
25279   ac_status=$?
25280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281   (exit $ac_status); }; }; then
25282
25283                 cat >>confdefs.h <<\_ACEOF
25284 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25285 _ACEOF
25286
25287                 gethostbynamerstyle=SYSV
25288
25289 else
25290   echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25292
25293
25294 fi
25295
25296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25297       conftest$ac_exeext conftest.$ac_ext
25298 fi
25299 if test "x$gethostbynamerstyle" = "x"; then
25300         cat >conftest.$ac_ext <<_ACEOF
25301 /* confdefs.h.  */
25302 _ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h.  */
25306
25307 #include <stdio.h>
25308 #include <netdb.h>
25309
25310 int
25311 main ()
25312 {
25313  gethostbyname(NULL)
25314   ;
25315   return 0;
25316 }
25317 _ACEOF
25318 rm -f conftest.$ac_objext conftest$ac_exeext
25319 if { (ac_try="$ac_link"
25320 case "(($ac_try" in
25321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25322   *) ac_try_echo=$ac_try;;
25323 esac
25324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25325   (eval "$ac_link") 2>conftest.er1
25326   ac_status=$?
25327   grep -v '^ *+' conftest.er1 >conftest.err
25328   rm -f conftest.er1
25329   cat conftest.err >&5
25330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331   (exit $ac_status); } &&
25332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25333   { (case "(($ac_try" in
25334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25335   *) ac_try_echo=$ac_try;;
25336 esac
25337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25338   (eval "$ac_try") 2>&5
25339   ac_status=$?
25340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); }; } &&
25342          { ac_try='test -s conftest$ac_exeext'
25343   { (case "(($ac_try" in
25344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25345   *) ac_try_echo=$ac_try;;
25346 esac
25347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25348   (eval "$ac_try") 2>&5
25349   ac_status=$?
25350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351   (exit $ac_status); }; }; then
25352
25353                 cat >>confdefs.h <<\_ACEOF
25354 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25355 _ACEOF
25356
25357                 gethostbynamerstyle=BSD
25358
25359 else
25360   echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25362
25363
25364 fi
25365
25366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25367       conftest$ac_exeext conftest.$ac_ext
25368 fi
25369
25370 if test "x$gethostbynamerstyle" = "x"; then
25371         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25372 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25373 else
25374         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25375 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25376 fi
25377
25378 if test "x$gethostbynamerstyle" = "xBSD"; then
25379         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25380 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25381 fi
25382
25383 ctimerstyle=""
25384 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25385 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25386 cat >conftest.$ac_ext <<_ACEOF
25387 /* confdefs.h.  */
25388 _ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h.  */
25392
25393 #include <time.h>
25394
25395 int
25396 main ()
25397 {
25398  ctime_r(NULL, NULL, 0)
25399   ;
25400   return 0;
25401 }
25402 _ACEOF
25403 rm -f conftest.$ac_objext conftest$ac_exeext
25404 if { (ac_try="$ac_link"
25405 case "(($ac_try" in
25406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25407   *) ac_try_echo=$ac_try;;
25408 esac
25409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25410   (eval "$ac_link") 2>conftest.er1
25411   ac_status=$?
25412   grep -v '^ *+' conftest.er1 >conftest.err
25413   rm -f conftest.er1
25414   cat conftest.err >&5
25415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416   (exit $ac_status); } &&
25417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25418   { (case "(($ac_try" in
25419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25420   *) ac_try_echo=$ac_try;;
25421 esac
25422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25423   (eval "$ac_try") 2>&5
25424   ac_status=$?
25425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426   (exit $ac_status); }; } &&
25427          { ac_try='test -s conftest$ac_exeext'
25428   { (case "(($ac_try" in
25429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25430   *) ac_try_echo=$ac_try;;
25431 esac
25432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25433   (eval "$ac_try") 2>&5
25434   ac_status=$?
25435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436   (exit $ac_status); }; }; then
25437
25438         cat >>confdefs.h <<\_ACEOF
25439 #define CTIMERSTYLE SOLARISSTYLE
25440 _ACEOF
25441
25442         ctimerstyle="SOLARIS"
25443
25444 else
25445   echo "$as_me: failed program was:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25447
25448
25449 fi
25450
25451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25452       conftest$ac_exeext conftest.$ac_ext
25453 if test "x$ctimerstyle" = "x"; then
25454         cat >conftest.$ac_ext <<_ACEOF
25455 /* confdefs.h.  */
25456 _ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h.  */
25460
25461 #include <time.h>
25462
25463 int
25464 main ()
25465 {
25466  ctime_r(NULL, NULL)
25467   ;
25468   return 0;
25469 }
25470 _ACEOF
25471 rm -f conftest.$ac_objext conftest$ac_exeext
25472 if { (ac_try="$ac_link"
25473 case "(($ac_try" in
25474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25475   *) ac_try_echo=$ac_try;;
25476 esac
25477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25478   (eval "$ac_link") 2>conftest.er1
25479   ac_status=$?
25480   grep -v '^ *+' conftest.er1 >conftest.err
25481   rm -f conftest.er1
25482   cat conftest.err >&5
25483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484   (exit $ac_status); } &&
25485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25486   { (case "(($ac_try" in
25487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25488   *) ac_try_echo=$ac_try;;
25489 esac
25490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25491   (eval "$ac_try") 2>&5
25492   ac_status=$?
25493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494   (exit $ac_status); }; } &&
25495          { ac_try='test -s conftest$ac_exeext'
25496   { (case "(($ac_try" in
25497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25498   *) ac_try_echo=$ac_try;;
25499 esac
25500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25501   (eval "$ac_try") 2>&5
25502   ac_status=$?
25503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504   (exit $ac_status); }; }; then
25505
25506                 cat >>confdefs.h <<\_ACEOF
25507 #define CTIMERSTYLE POSIXSTYLE
25508 _ACEOF
25509
25510                 ctimerstyle="POSIX"
25511
25512 else
25513   echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25515
25516
25517 fi
25518
25519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25520       conftest$ac_exeext conftest.$ac_ext
25521 fi
25522
25523 if test "x$ctimerstyle" = "x"; then
25524         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25525 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25526 else
25527         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25528 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25529 fi
25530
25531
25532 if test x"$rad_enable_largefiles" = xyes ; then
25533     { echo "$as_me:$LINENO: checking for largefile linkage" >&5
25534 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6; }
25535     case "$host" in
25536     *-aix4.01*)
25537         { echo "$as_me:$LINENO: result: no" >&5
25538 echo "${ECHO_T}no" >&6; }
25539         { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
25540 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
25541    { (exit 1); exit 1; }; }
25542         ;;
25543     *-aix4*)
25544         { echo "$as_me:$LINENO: result: ok" >&5
25545 echo "${ECHO_T}ok" >&6; }
25546         LFS_CFLAGS="-D_LARGE_FILES"
25547         LFS_LDFLAGS=""
25548         LFS_LIBS=""
25549         ;;
25550     *-hpux*)
25551         { echo "$as_me:$LINENO: result: ok" >&5
25552 echo "${ECHO_T}ok" >&6; }
25553         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
25554         LFS_LDFLAGS=""
25555         LFS_LIBS=""
25556         ;;
25557     *-irix*)
25558         { echo "$as_me:$LINENO: result: no" >&5
25559 echo "${ECHO_T}no" >&6; }
25560         { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
25561 echo "$as_me: error: Large files not supported on this platform" >&2;}
25562    { (exit 1); exit 1; }; }
25563         ;;
25564     *-linux*)
25565         { echo "$as_me:$LINENO: result: maybe" >&5
25566 echo "${ECHO_T}maybe" >&6; }
25567         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
25568         LFS_LDFLAGS=""
25569         LFS_LIBS=""
25570
25571 cat >>confdefs.h <<\_ACEOF
25572 #define _GNU_SOURCE 1
25573 _ACEOF
25574
25575         ;;
25576     *-solaris*)
25577         { echo "$as_me:$LINENO: result: ok" >&5
25578 echo "${ECHO_T}ok" >&6; }
25579         # Extract the first word of "getconf", so it can be a program name with args.
25580 set dummy getconf; ac_word=$2
25581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25583 if test "${ac_cv_path_GETCONF+set}" = set; then
25584   echo $ECHO_N "(cached) $ECHO_C" >&6
25585 else
25586   case $GETCONF in
25587   [\\/]* | ?:[\\/]*)
25588   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
25589   ;;
25590   *)
25591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25592 for as_dir in $PATH
25593 do
25594   IFS=$as_save_IFS
25595   test -z "$as_dir" && as_dir=.
25596   for ac_exec_ext in '' $ac_executable_extensions; do
25597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25598     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
25599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25600     break 2
25601   fi
25602 done
25603 done
25604 IFS=$as_save_IFS
25605
25606   ;;
25607 esac
25608 fi
25609 GETCONF=$ac_cv_path_GETCONF
25610 if test -n "$GETCONF"; then
25611   { echo "$as_me:$LINENO: result: $GETCONF" >&5
25612 echo "${ECHO_T}$GETCONF" >&6; }
25613 else
25614   { echo "$as_me:$LINENO: result: no" >&5
25615 echo "${ECHO_T}no" >&6; }
25616 fi
25617
25618
25619         if test -z "$GETCONF" ; then
25620             { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
25621 echo "$as_me: error: getconf required to configure large file support" >&2;}
25622    { (exit 1); exit 1; }; }
25623         fi
25624         LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
25625         LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
25626         LFS_LIBS=`$GETCONF LFS_LIBS`
25627         ;;
25628     *)
25629         { echo "$as_me:$LINENO: result: maybe" >&5
25630 echo "${ECHO_T}maybe" >&6; }
25631         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
25632         LFS_LDFLAGS=""
25633         LFS_LIBS=""
25634         ;;
25635     esac
25636
25637
25638
25639 fi
25640
25641 HOSTINFO=$host
25642
25643
25644
25645 top_builddir=`pwd`
25646 export top_builddir
25647 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25648 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25649
25650
25651
25652
25653
25654 mysubdirs=
25655 if test "x$EXPERIMENTAL" = "xyes"; then
25656   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
25657     mysubdirs=`echo $bar`
25658 else
25659         for bar in `cat src/modules/stable`; do
25660     if test -f src/modules/$bar/configure; then
25661       mysubdirs="$mysubdirs src/modules/$bar"
25662     fi
25663   done
25664 fi
25665
25666 if test "x$EXPERIMENTAL" = "xyes"; then
25667   for foo in `ls -1 src/modules | grep rlm_`; do
25668     MODULES="$MODULES $foo"
25669   done
25670 else
25671             for foo in `cat src/modules/stable`; do
25672     MODULES="$MODULES $foo"
25673    done
25674 fi
25675
25676 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25677
25678
25679
25680
25681
25682
25683
25684 USE_SHARED_LIBS=$enable_shared
25685
25686 USE_STATIC_LIBS=$enable_static
25687
25688
25689
25690
25691
25692 export CFLAGS LIBS
25693
25694 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"
25695
25696 cat >confcache <<\_ACEOF
25697 # This file is a shell script that caches the results of configure
25698 # tests run on this system so they can be shared between configure
25699 # scripts and configure runs, see configure's option --config-cache.
25700 # It is not useful on other systems.  If it contains results you don't
25701 # want to keep, you may remove or edit it.
25702 #
25703 # config.status only pays attention to the cache file if you give it
25704 # the --recheck option to rerun configure.
25705 #
25706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25708 # following values.
25709
25710 _ACEOF
25711
25712 # The following way of writing the cache mishandles newlines in values,
25713 # but we know of no workaround that is simple, portable, and efficient.
25714 # So, we kill variables containing newlines.
25715 # Ultrix sh set writes to stderr and can't be redirected directly,
25716 # and sets the high bit in the cache file unless we assign to the vars.
25717 (
25718   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25719     eval ac_val=\$$ac_var
25720     case $ac_val in #(
25721     *${as_nl}*)
25722       case $ac_var in #(
25723       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25724 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25725       esac
25726       case $ac_var in #(
25727       _ | IFS | as_nl) ;; #(
25728       *) $as_unset $ac_var ;;
25729       esac ;;
25730     esac
25731   done
25732
25733   (set) 2>&1 |
25734     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25735     *${as_nl}ac_space=\ *)
25736       # `set' does not quote correctly, so add quotes (double-quote
25737       # substitution turns \\\\ into \\, and sed turns \\ into \).
25738       sed -n \
25739         "s/'/'\\\\''/g;
25740           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25741       ;; #(
25742     *)
25743       # `set' quotes correctly as required by POSIX, so do not add quotes.
25744       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25745       ;;
25746     esac |
25747     sort
25748 ) |
25749   sed '
25750      /^ac_cv_env_/b end
25751      t clear
25752      :clear
25753      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25754      t end
25755      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25756      :end' >>confcache
25757 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25758   if test -w "$cache_file"; then
25759     test "x$cache_file" != "x/dev/null" &&
25760       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25761 echo "$as_me: updating cache $cache_file" >&6;}
25762     cat confcache >$cache_file
25763   else
25764     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25765 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25766   fi
25767 fi
25768 rm -f confcache
25769
25770 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25771 # Let make expand exec_prefix.
25772 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25773
25774 DEFS=-DHAVE_CONFIG_H
25775
25776 ac_libobjs=
25777 ac_ltlibobjs=
25778 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25779   # 1. Remove the extension, and $U if already installed.
25780   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25781   ac_i=`echo "$ac_i" | sed "$ac_script"`
25782   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25783   #    will be set to the directory where LIBOBJS objects are built.
25784   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25785   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25786 done
25787 LIBOBJS=$ac_libobjs
25788
25789 LTLIBOBJS=$ac_ltlibobjs
25790
25791
25792
25793 : ${CONFIG_STATUS=./config.status}
25794 ac_clean_files_save=$ac_clean_files
25795 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25796 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25797 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25798 cat >$CONFIG_STATUS <<_ACEOF
25799 #! $SHELL
25800 # Generated by $as_me.
25801 # Run this file to recreate the current configuration.
25802 # Compiler output produced by configure, useful for debugging
25803 # configure, is in config.log if it exists.
25804
25805 debug=false
25806 ac_cs_recheck=false
25807 ac_cs_silent=false
25808 SHELL=\${CONFIG_SHELL-$SHELL}
25809 _ACEOF
25810
25811 cat >>$CONFIG_STATUS <<\_ACEOF
25812 ## --------------------- ##
25813 ## M4sh Initialization.  ##
25814 ## --------------------- ##
25815
25816 # Be Bourne compatible
25817 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25818   emulate sh
25819   NULLCMD=:
25820   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25821   # is contrary to our usage.  Disable this feature.
25822   alias -g '${1+"$@"}'='"$@"'
25823   setopt NO_GLOB_SUBST
25824 else
25825   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25826 fi
25827 BIN_SH=xpg4; export BIN_SH # for Tru64
25828 DUALCASE=1; export DUALCASE # for MKS sh
25829
25830
25831 # PATH needs CR
25832 # Avoid depending upon Character Ranges.
25833 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25834 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25835 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25836 as_cr_digits='0123456789'
25837 as_cr_alnum=$as_cr_Letters$as_cr_digits
25838
25839 # The user is always right.
25840 if test "${PATH_SEPARATOR+set}" != set; then
25841   echo "#! /bin/sh" >conf$$.sh
25842   echo  "exit 0"   >>conf$$.sh
25843   chmod +x conf$$.sh
25844   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25845     PATH_SEPARATOR=';'
25846   else
25847     PATH_SEPARATOR=:
25848   fi
25849   rm -f conf$$.sh
25850 fi
25851
25852 # Support unset when possible.
25853 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25854   as_unset=unset
25855 else
25856   as_unset=false
25857 fi
25858
25859
25860 # IFS
25861 # We need space, tab and new line, in precisely that order.  Quoting is
25862 # there to prevent editors from complaining about space-tab.
25863 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25864 # splitting by setting IFS to empty value.)
25865 as_nl='
25866 '
25867 IFS=" ""        $as_nl"
25868
25869 # Find who we are.  Look in the path if we contain no directory separator.
25870 case $0 in
25871   *[\\/]* ) as_myself=$0 ;;
25872   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25873 for as_dir in $PATH
25874 do
25875   IFS=$as_save_IFS
25876   test -z "$as_dir" && as_dir=.
25877   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25878 done
25879 IFS=$as_save_IFS
25880
25881      ;;
25882 esac
25883 # We did not find ourselves, most probably we were run as `sh COMMAND'
25884 # in which case we are not to be found in the path.
25885 if test "x$as_myself" = x; then
25886   as_myself=$0
25887 fi
25888 if test ! -f "$as_myself"; then
25889   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25890   { (exit 1); exit 1; }
25891 fi
25892
25893 # Work around bugs in pre-3.0 UWIN ksh.
25894 for as_var in ENV MAIL MAILPATH
25895 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25896 done
25897 PS1='$ '
25898 PS2='> '
25899 PS4='+ '
25900
25901 # NLS nuisances.
25902 for as_var in \
25903   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25904   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25905   LC_TELEPHONE LC_TIME
25906 do
25907   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25908     eval $as_var=C; export $as_var
25909   else
25910     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25911   fi
25912 done
25913
25914 # Required to use basename.
25915 if expr a : '\(a\)' >/dev/null 2>&1 &&
25916    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25917   as_expr=expr
25918 else
25919   as_expr=false
25920 fi
25921
25922 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25923   as_basename=basename
25924 else
25925   as_basename=false
25926 fi
25927
25928
25929 # Name of the executable.
25930 as_me=`$as_basename -- "$0" ||
25931 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25932          X"$0" : 'X\(//\)$' \| \
25933          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25934 echo X/"$0" |
25935     sed '/^.*\/\([^/][^/]*\)\/*$/{
25936             s//\1/
25937             q
25938           }
25939           /^X\/\(\/\/\)$/{
25940             s//\1/
25941             q
25942           }
25943           /^X\/\(\/\).*/{
25944             s//\1/
25945             q
25946           }
25947           s/.*/./; q'`
25948
25949 # CDPATH.
25950 $as_unset CDPATH
25951
25952
25953
25954   as_lineno_1=$LINENO
25955   as_lineno_2=$LINENO
25956   test "x$as_lineno_1" != "x$as_lineno_2" &&
25957   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25958
25959   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25960   # uniformly replaced by the line number.  The first 'sed' inserts a
25961   # line-number line after each line using $LINENO; the second 'sed'
25962   # does the real work.  The second script uses 'N' to pair each
25963   # line-number line with the line containing $LINENO, and appends
25964   # trailing '-' during substitution so that $LINENO is not a special
25965   # case at line end.
25966   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25967   # scripts with optimization help from Paolo Bonzini.  Blame Lee
25968   # E. McMahon (1931-1989) for sed's syntax.  :-)
25969   sed -n '
25970     p
25971     /[$]LINENO/=
25972   ' <$as_myself |
25973     sed '
25974       s/[$]LINENO.*/&-/
25975       t lineno
25976       b
25977       :lineno
25978       N
25979       :loop
25980       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25981       t loop
25982       s/-\n.*//
25983     ' >$as_me.lineno &&
25984   chmod +x "$as_me.lineno" ||
25985     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25986    { (exit 1); exit 1; }; }
25987
25988   # Don't try to exec as it changes $[0], causing all sort of problems
25989   # (the dirname of $[0] is not the place where we might find the
25990   # original and so on.  Autoconf is especially sensitive to this).
25991   . "./$as_me.lineno"
25992   # Exit status is that of the last command.
25993   exit
25994 }
25995
25996
25997 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25998   as_dirname=dirname
25999 else
26000   as_dirname=false
26001 fi
26002
26003 ECHO_C= ECHO_N= ECHO_T=
26004 case `echo -n x` in
26005 -n*)
26006   case `echo 'x\c'` in
26007   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26008   *)   ECHO_C='\c';;
26009   esac;;
26010 *)
26011   ECHO_N='-n';;
26012 esac
26013
26014 if expr a : '\(a\)' >/dev/null 2>&1 &&
26015    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26016   as_expr=expr
26017 else
26018   as_expr=false
26019 fi
26020
26021 rm -f conf$$ conf$$.exe conf$$.file
26022 if test -d conf$$.dir; then
26023   rm -f conf$$.dir/conf$$.file
26024 else
26025   rm -f conf$$.dir
26026   mkdir conf$$.dir
26027 fi
26028 echo >conf$$.file
26029 if ln -s conf$$.file conf$$ 2>/dev/null; then
26030   as_ln_s='ln -s'
26031   # ... but there are two gotchas:
26032   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26033   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26034   # In both cases, we have to default to `cp -p'.
26035   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26036     as_ln_s='cp -p'
26037 elif ln conf$$.file conf$$ 2>/dev/null; then
26038   as_ln_s=ln
26039 else
26040   as_ln_s='cp -p'
26041 fi
26042 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26043 rmdir conf$$.dir 2>/dev/null
26044
26045 if mkdir -p . 2>/dev/null; then
26046   as_mkdir_p=:
26047 else
26048   test -d ./-p && rmdir ./-p
26049   as_mkdir_p=false
26050 fi
26051
26052 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
26053 # systems may use methods other than mode bits to determine executability.
26054 cat >conf$$.file <<_ASEOF
26055 #! /bin/sh
26056 exit 0
26057 _ASEOF
26058 chmod +x conf$$.file
26059 if test -x conf$$.file >/dev/null 2>&1; then
26060   as_executable_p="test -x"
26061 else
26062   as_executable_p=:
26063 fi
26064 rm -f conf$$.file
26065
26066 # Sed expression to map a string onto a valid CPP name.
26067 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26068
26069 # Sed expression to map a string onto a valid variable name.
26070 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26071
26072
26073 exec 6>&1
26074
26075 # Save the log message, to keep $[0] and so on meaningful, and to
26076 # report actual input values of CONFIG_FILES etc. instead of their
26077 # values after options handling.
26078 ac_log="
26079 This file was extended by $as_me, which was
26080 generated by GNU Autoconf 2.60a.  Invocation command line was
26081
26082   CONFIG_FILES    = $CONFIG_FILES
26083   CONFIG_HEADERS  = $CONFIG_HEADERS
26084   CONFIG_LINKS    = $CONFIG_LINKS
26085   CONFIG_COMMANDS = $CONFIG_COMMANDS
26086   $ $0 $@
26087
26088 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26089 "
26090
26091 _ACEOF
26092
26093 cat >>$CONFIG_STATUS <<_ACEOF
26094 # Files that config.status was made for.
26095 config_files="$ac_config_files"
26096 config_headers="$ac_config_headers"
26097
26098 _ACEOF
26099
26100 cat >>$CONFIG_STATUS <<\_ACEOF
26101 ac_cs_usage="\
26102 \`$as_me' instantiates files from templates according to the
26103 current configuration.
26104
26105 Usage: $0 [OPTIONS] [FILE]...
26106
26107   -h, --help       print this help, then exit
26108   -V, --version    print version number and configuration settings, then exit
26109   -q, --quiet      do not print progress messages
26110   -d, --debug      don't remove temporary files
26111       --recheck    update $as_me by reconfiguring in the same conditions
26112   --file=FILE[:TEMPLATE]
26113                    instantiate the configuration file FILE
26114   --header=FILE[:TEMPLATE]
26115                    instantiate the configuration header FILE
26116
26117 Configuration files:
26118 $config_files
26119
26120 Configuration headers:
26121 $config_headers
26122
26123 Report bugs to <bug-autoconf@gnu.org>."
26124
26125 _ACEOF
26126 cat >>$CONFIG_STATUS <<_ACEOF
26127 ac_cs_version="\\
26128 config.status
26129 configured by $0, generated by GNU Autoconf 2.60a,
26130   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26131
26132 Copyright (C) 2006 Free Software Foundation, Inc.
26133 This config.status script is free software; the Free Software Foundation
26134 gives unlimited permission to copy, distribute and modify it."
26135
26136 ac_pwd='$ac_pwd'
26137 srcdir='$srcdir'
26138 _ACEOF
26139
26140 cat >>$CONFIG_STATUS <<\_ACEOF
26141 # If no file are specified by the user, then we need to provide default
26142 # value.  By we need to know if files were specified by the user.
26143 ac_need_defaults=:
26144 while test $# != 0
26145 do
26146   case $1 in
26147   --*=*)
26148     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26149     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26150     ac_shift=:
26151     ;;
26152   *)
26153     ac_option=$1
26154     ac_optarg=$2
26155     ac_shift=shift
26156     ;;
26157   esac
26158
26159   case $ac_option in
26160   # Handling of the options.
26161   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26162     ac_cs_recheck=: ;;
26163   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26164     echo "$ac_cs_version"; exit ;;
26165   --debug | --debu | --deb | --de | --d | -d )
26166     debug=: ;;
26167   --file | --fil | --fi | --f )
26168     $ac_shift
26169     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26170     ac_need_defaults=false;;
26171   --header | --heade | --head | --hea )
26172     $ac_shift
26173     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26174     ac_need_defaults=false;;
26175   --he | --h)
26176     # Conflict between --help and --header
26177     { echo "$as_me: error: ambiguous option: $1
26178 Try \`$0 --help' for more information." >&2
26179    { (exit 1); exit 1; }; };;
26180   --help | --hel | -h )
26181     echo "$ac_cs_usage"; exit ;;
26182   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26183   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26184     ac_cs_silent=: ;;
26185
26186   # This is an error.
26187   -*) { echo "$as_me: error: unrecognized option: $1
26188 Try \`$0 --help' for more information." >&2
26189    { (exit 1); exit 1; }; } ;;
26190
26191   *) ac_config_targets="$ac_config_targets $1"
26192      ac_need_defaults=false ;;
26193
26194   esac
26195   shift
26196 done
26197
26198 ac_configure_extra_args=
26199
26200 if $ac_cs_silent; then
26201   exec 6>/dev/null
26202   ac_configure_extra_args="$ac_configure_extra_args --silent"
26203 fi
26204
26205 _ACEOF
26206 cat >>$CONFIG_STATUS <<_ACEOF
26207 if \$ac_cs_recheck; then
26208   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26209   CONFIG_SHELL=$SHELL
26210   export CONFIG_SHELL
26211   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26212 fi
26213
26214 _ACEOF
26215 cat >>$CONFIG_STATUS <<\_ACEOF
26216 exec 5>>config.log
26217 {
26218   echo
26219   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26220 ## Running $as_me. ##
26221 _ASBOX
26222   echo "$ac_log"
26223 } >&5
26224
26225 _ACEOF
26226 cat >>$CONFIG_STATUS <<_ACEOF
26227 _ACEOF
26228
26229 cat >>$CONFIG_STATUS <<\_ACEOF
26230
26231 # Handling of arguments.
26232 for ac_config_target in $ac_config_targets
26233 do
26234   case $ac_config_target in
26235     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26236     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26237     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26238     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26239     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26240     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26241     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26242     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26243     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26244     "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
26245     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26246     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26247     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26248     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26249     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26250
26251   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26252 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26253    { (exit 1); exit 1; }; };;
26254   esac
26255 done
26256
26257
26258 # If the user did not use the arguments to specify the items to instantiate,
26259 # then the envvar interface is used.  Set only those that are not.
26260 # We use the long form for the default assignment because of an extremely
26261 # bizarre bug on SunOS 4.1.3.
26262 if $ac_need_defaults; then
26263   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26264   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26265 fi
26266
26267 # Have a temporary directory for convenience.  Make it in the build tree
26268 # simply because there is no reason against having it here, and in addition,
26269 # creating and moving files from /tmp can sometimes cause problems.
26270 # Hook for its removal unless debugging.
26271 # Note that there is a small window in which the directory will not be cleaned:
26272 # after its creation but before its name has been assigned to `$tmp'.
26273 $debug ||
26274 {
26275   tmp=
26276   trap 'exit_status=$?
26277   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26278 ' 0
26279   trap '{ (exit 1); exit 1; }' 1 2 13 15
26280 }
26281 # Create a (secure) tmp directory for tmp files.
26282
26283 {
26284   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26285   test -n "$tmp" && test -d "$tmp"
26286 }  ||
26287 {
26288   tmp=./conf$$-$RANDOM
26289   (umask 077 && mkdir "$tmp")
26290 } ||
26291 {
26292    echo "$me: cannot create a temporary directory in ." >&2
26293    { (exit 1); exit 1; }
26294 }
26295
26296 #
26297 # Set up the sed scripts for CONFIG_FILES section.
26298 #
26299
26300 # No need to generate the scripts if there are no CONFIG_FILES.
26301 # This happens for instance when ./config.status config.h
26302 if test -n "$CONFIG_FILES"; then
26303
26304 _ACEOF
26305
26306
26307
26308 ac_delim='%!_!# '
26309 for ac_last_try in false false false false false :; do
26310   cat >conf$$subs.sed <<_ACEOF
26311 SHELL!$SHELL$ac_delim
26312 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26313 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26314 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26315 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26316 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26317 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26318 exec_prefix!$exec_prefix$ac_delim
26319 prefix!$prefix$ac_delim
26320 program_transform_name!$program_transform_name$ac_delim
26321 bindir!$bindir$ac_delim
26322 sbindir!$sbindir$ac_delim
26323 libexecdir!$libexecdir$ac_delim
26324 datarootdir!$datarootdir$ac_delim
26325 datadir!$datadir$ac_delim
26326 sysconfdir!$sysconfdir$ac_delim
26327 sharedstatedir!$sharedstatedir$ac_delim
26328 localstatedir!$localstatedir$ac_delim
26329 includedir!$includedir$ac_delim
26330 oldincludedir!$oldincludedir$ac_delim
26331 docdir!$docdir$ac_delim
26332 infodir!$infodir$ac_delim
26333 htmldir!$htmldir$ac_delim
26334 dvidir!$dvidir$ac_delim
26335 pdfdir!$pdfdir$ac_delim
26336 psdir!$psdir$ac_delim
26337 libdir!$libdir$ac_delim
26338 localedir!$localedir$ac_delim
26339 mandir!$mandir$ac_delim
26340 DEFS!$DEFS$ac_delim
26341 ECHO_C!$ECHO_C$ac_delim
26342 ECHO_N!$ECHO_N$ac_delim
26343 ECHO_T!$ECHO_T$ac_delim
26344 LIBS!$LIBS$ac_delim
26345 build_alias!$build_alias$ac_delim
26346 host_alias!$host_alias$ac_delim
26347 target_alias!$target_alias$ac_delim
26348 CC!$CC$ac_delim
26349 CFLAGS!$CFLAGS$ac_delim
26350 LDFLAGS!$LDFLAGS$ac_delim
26351 CPPFLAGS!$CPPFLAGS$ac_delim
26352 ac_ct_CC!$ac_ct_CC$ac_delim
26353 EXEEXT!$EXEEXT$ac_delim
26354 OBJEXT!$OBJEXT$ac_delim
26355 CPP!$CPP$ac_delim
26356 GREP!$GREP$ac_delim
26357 EGREP!$EGREP$ac_delim
26358 RANLIB!$RANLIB$ac_delim
26359 abs_top_builddir!$abs_top_builddir$ac_delim
26360 GMAKE!$GMAKE$ac_delim
26361 MAKE!$MAKE$ac_delim
26362 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26363 LIBTOOL!$LIBTOOL$ac_delim
26364 build!$build$ac_delim
26365 build_cpu!$build_cpu$ac_delim
26366 build_vendor!$build_vendor$ac_delim
26367 build_os!$build_os$ac_delim
26368 host!$host$ac_delim
26369 host_cpu!$host_cpu$ac_delim
26370 host_vendor!$host_vendor$ac_delim
26371 host_os!$host_os$ac_delim
26372 LN_S!$LN_S$ac_delim
26373 ECHO!$ECHO$ac_delim
26374 AR!$AR$ac_delim
26375 STRIP!$STRIP$ac_delim
26376 CXX!$CXX$ac_delim
26377 CXXFLAGS!$CXXFLAGS$ac_delim
26378 ac_ct_CXX!$ac_ct_CXX$ac_delim
26379 CXXCPP!$CXXCPP$ac_delim
26380 F77!$F77$ac_delim
26381 FFLAGS!$FFLAGS$ac_delim
26382 ac_ct_F77!$ac_ct_F77$ac_delim
26383 logdir!$logdir$ac_delim
26384 radacctdir!$radacctdir$ac_delim
26385 raddbdir!$raddbdir$ac_delim
26386 PERL!$PERL$ac_delim
26387 SNMPGET!$SNMPGET$ac_delim
26388 SNMPWALK!$SNMPWALK$ac_delim
26389 RUSERS!$RUSERS$ac_delim
26390 ACLOCAL!$ACLOCAL$ac_delim
26391 AUTOCONF!$AUTOCONF$ac_delim
26392 AUTOHEADER!$AUTOHEADER$ac_delim
26393 LOCATE!$LOCATE$ac_delim
26394 DIRNAME!$DIRNAME$ac_delim
26395 REGEX!$REGEX$ac_delim
26396 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26397 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26398 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26399 LIBPREFIX!$LIBPREFIX$ac_delim
26400 CRYPTLIB!$CRYPTLIB$ac_delim
26401 SNMP_LIBS!$SNMP_LIBS$ac_delim
26402 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
26403 GETCONF!$GETCONF$ac_delim
26404 LFS_CFLAGS!$LFS_CFLAGS$ac_delim
26405 LFS_LDFLAGS!$LFS_LDFLAGS$ac_delim
26406 LFS_LIBS!$LFS_LIBS$ac_delim
26407 HOSTINFO!$HOSTINFO$ac_delim
26408 _ACEOF
26409
26410   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26411     break
26412   elif $ac_last_try; then
26413     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26414 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26415    { (exit 1); exit 1; }; }
26416   else
26417     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26418   fi
26419 done
26420
26421 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26422 if test -n "$ac_eof"; then
26423   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26424   ac_eof=`expr $ac_eof + 1`
26425 fi
26426
26427 cat >>$CONFIG_STATUS <<_ACEOF
26428 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26430 _ACEOF
26431 sed '
26432 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26433 s/^/s,@/; s/!/@,|#_!!_#|/
26434 :n
26435 t n
26436 s/'"$ac_delim"'$/,g/; t
26437 s/$/\\/; p
26438 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26439 ' >>$CONFIG_STATUS <conf$$subs.sed
26440 rm -f conf$$subs.sed
26441 cat >>$CONFIG_STATUS <<_ACEOF
26442 CEOF$ac_eof
26443 _ACEOF
26444
26445
26446 ac_delim='%!_!# '
26447 for ac_last_try in false false false false false :; do
26448   cat >conf$$subs.sed <<_ACEOF
26449 LIBLTDL!$LIBLTDL$ac_delim
26450 INCLTDL!$INCLTDL$ac_delim
26451 subdirs!$subdirs$ac_delim
26452 MODULES!$MODULES$ac_delim
26453 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26454 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26455 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26456 STATIC_MODULES!$STATIC_MODULES$ac_delim
26457 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26458 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26459 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26460 LIBOBJS!$LIBOBJS$ac_delim
26461 LTLIBOBJS!$LTLIBOBJS$ac_delim
26462 _ACEOF
26463
26464   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
26465     break
26466   elif $ac_last_try; then
26467     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26468 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26469    { (exit 1); exit 1; }; }
26470   else
26471     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26472   fi
26473 done
26474
26475 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26476 if test -n "$ac_eof"; then
26477   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26478   ac_eof=`expr $ac_eof + 1`
26479 fi
26480
26481 cat >>$CONFIG_STATUS <<_ACEOF
26482 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26484 _ACEOF
26485 sed '
26486 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26487 s/^/s,@/; s/!/@,|#_!!_#|/
26488 :n
26489 t n
26490 s/'"$ac_delim"'$/,g/; t
26491 s/$/\\/; p
26492 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26493 ' >>$CONFIG_STATUS <conf$$subs.sed
26494 rm -f conf$$subs.sed
26495 cat >>$CONFIG_STATUS <<_ACEOF
26496 :end
26497 s/|#_!!_#|//g
26498 CEOF$ac_eof
26499 _ACEOF
26500
26501
26502 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26503 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26504 # trailing colons and then remove the whole line if VPATH becomes empty
26505 # (actually we leave an empty line to preserve line numbers).
26506 if test "x$srcdir" = x.; then
26507   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26508 s/:*\$(srcdir):*/:/
26509 s/:*\${srcdir}:*/:/
26510 s/:*@srcdir@:*/:/
26511 s/^\([^=]*=[     ]*\):*/\1/
26512 s/:*$//
26513 s/^[^=]*=[       ]*$//
26514 }'
26515 fi
26516
26517 cat >>$CONFIG_STATUS <<\_ACEOF
26518 fi # test -n "$CONFIG_FILES"
26519
26520
26521 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
26522 do
26523   case $ac_tag in
26524   :[FHLC]) ac_mode=$ac_tag; continue;;
26525   esac
26526   case $ac_mode$ac_tag in
26527   :[FHL]*:*);;
26528   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26529 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26530    { (exit 1); exit 1; }; };;
26531   :[FH]-) ac_tag=-:-;;
26532   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26533   esac
26534   ac_save_IFS=$IFS
26535   IFS=:
26536   set x $ac_tag
26537   IFS=$ac_save_IFS
26538   shift
26539   ac_file=$1
26540   shift
26541
26542   case $ac_mode in
26543   :L) ac_source=$1;;
26544   :[FH])
26545     ac_file_inputs=
26546     for ac_f
26547     do
26548       case $ac_f in
26549       -) ac_f="$tmp/stdin";;
26550       *) # Look for the file first in the build tree, then in the source tree
26551          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26552          # because $ac_f cannot contain `:'.
26553          test -f "$ac_f" ||
26554            case $ac_f in
26555            [\\/$]*) false;;
26556            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26557            esac ||
26558            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26559 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26560    { (exit 1); exit 1; }; };;
26561       esac
26562       ac_file_inputs="$ac_file_inputs $ac_f"
26563     done
26564
26565     # Let's still pretend it is `configure' which instantiates (i.e., don't
26566     # use $as_me), people would be surprised to read:
26567     #    /* config.h.  Generated by config.status.  */
26568     configure_input="Generated from "`IFS=:
26569           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26570     if test x"$ac_file" != x-; then
26571       configure_input="$ac_file.  $configure_input"
26572       { echo "$as_me:$LINENO: creating $ac_file" >&5
26573 echo "$as_me: creating $ac_file" >&6;}
26574     fi
26575
26576     case $ac_tag in
26577     *:-:* | *:-) cat >"$tmp/stdin";;
26578     esac
26579     ;;
26580   esac
26581
26582   ac_dir=`$as_dirname -- "$ac_file" ||
26583 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26584          X"$ac_file" : 'X\(//\)[^/]' \| \
26585          X"$ac_file" : 'X\(//\)$' \| \
26586          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26587 echo X"$ac_file" |
26588     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26589             s//\1/
26590             q
26591           }
26592           /^X\(\/\/\)[^/].*/{
26593             s//\1/
26594             q
26595           }
26596           /^X\(\/\/\)$/{
26597             s//\1/
26598             q
26599           }
26600           /^X\(\/\).*/{
26601             s//\1/
26602             q
26603           }
26604           s/.*/./; q'`
26605   { as_dir="$ac_dir"
26606   case $as_dir in #(
26607   -*) as_dir=./$as_dir;;
26608   esac
26609   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26610     as_dirs=
26611     while :; do
26612       case $as_dir in #(
26613       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26614       *) as_qdir=$as_dir;;
26615       esac
26616       as_dirs="'$as_qdir' $as_dirs"
26617       as_dir=`$as_dirname -- "$as_dir" ||
26618 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26619          X"$as_dir" : 'X\(//\)[^/]' \| \
26620          X"$as_dir" : 'X\(//\)$' \| \
26621          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26622 echo X"$as_dir" |
26623     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26624             s//\1/
26625             q
26626           }
26627           /^X\(\/\/\)[^/].*/{
26628             s//\1/
26629             q
26630           }
26631           /^X\(\/\/\)$/{
26632             s//\1/
26633             q
26634           }
26635           /^X\(\/\).*/{
26636             s//\1/
26637             q
26638           }
26639           s/.*/./; q'`
26640       test -d "$as_dir" && break
26641     done
26642     test -z "$as_dirs" || eval "mkdir $as_dirs"
26643   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26644 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26645    { (exit 1); exit 1; }; }; }
26646   ac_builddir=.
26647
26648 case "$ac_dir" in
26649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26650 *)
26651   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26652   # A ".." for each directory in $ac_dir_suffix.
26653   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26654   case $ac_top_builddir_sub in
26655   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26656   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26657   esac ;;
26658 esac
26659 ac_abs_top_builddir=$ac_pwd
26660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26661 # for backward compatibility:
26662 ac_top_builddir=$ac_top_build_prefix
26663
26664 case $srcdir in
26665   .)  # We are building in place.
26666     ac_srcdir=.
26667     ac_top_srcdir=$ac_top_builddir_sub
26668     ac_abs_top_srcdir=$ac_pwd ;;
26669   [\\/]* | ?:[\\/]* )  # Absolute name.
26670     ac_srcdir=$srcdir$ac_dir_suffix;
26671     ac_top_srcdir=$srcdir
26672     ac_abs_top_srcdir=$srcdir ;;
26673   *) # Relative name.
26674     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26675     ac_top_srcdir=$ac_top_build_prefix$srcdir
26676     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26677 esac
26678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26679
26680
26681   case $ac_mode in
26682   :F)
26683   #
26684   # CONFIG_FILE
26685   #
26686
26687 _ACEOF
26688
26689 cat >>$CONFIG_STATUS <<\_ACEOF
26690 # If the template does not know about datarootdir, expand it.
26691 # FIXME: This hack should be removed a few years after 2.60.
26692 ac_datarootdir_hack=; ac_datarootdir_seen=
26693
26694 case `sed -n '/datarootdir/ {
26695   p
26696   q
26697 }
26698 /@datadir@/p
26699 /@docdir@/p
26700 /@infodir@/p
26701 /@localedir@/p
26702 /@mandir@/p
26703 ' $ac_file_inputs` in
26704 *datarootdir*) ac_datarootdir_seen=yes;;
26705 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26706   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26707 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26708 _ACEOF
26709 cat >>$CONFIG_STATUS <<_ACEOF
26710   ac_datarootdir_hack='
26711   s&@datadir@&$datadir&g
26712   s&@docdir@&$docdir&g
26713   s&@infodir@&$infodir&g
26714   s&@localedir@&$localedir&g
26715   s&@mandir@&$mandir&g
26716     s&\\\${datarootdir}&$datarootdir&g' ;;
26717 esac
26718 _ACEOF
26719
26720 # Neutralize VPATH when `$srcdir' = `.'.
26721 # Shell code in configure.ac might set extrasub.
26722 # FIXME: do we really want to maintain this feature?
26723 cat >>$CONFIG_STATUS <<_ACEOF
26724   sed "$ac_vpsub
26725 $extrasub
26726 _ACEOF
26727 cat >>$CONFIG_STATUS <<\_ACEOF
26728 :t
26729 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26730 s&@configure_input@&$configure_input&;t t
26731 s&@top_builddir@&$ac_top_builddir_sub&;t t
26732 s&@srcdir@&$ac_srcdir&;t t
26733 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26734 s&@top_srcdir@&$ac_top_srcdir&;t t
26735 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26736 s&@builddir@&$ac_builddir&;t t
26737 s&@abs_builddir@&$ac_abs_builddir&;t t
26738 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26739 $ac_datarootdir_hack
26740 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26741
26742 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26743   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26744   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26745   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26746 which seems to be undefined.  Please make sure it is defined." >&5
26747 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26748 which seems to be undefined.  Please make sure it is defined." >&2;}
26749
26750   rm -f "$tmp/stdin"
26751   case $ac_file in
26752   -) cat "$tmp/out"; rm -f "$tmp/out";;
26753   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26754   esac
26755  ;;
26756   :H)
26757   #
26758   # CONFIG_HEADER
26759   #
26760 _ACEOF
26761
26762 # Transform confdefs.h into a sed script `conftest.defines', that
26763 # substitutes the proper values into config.h.in to produce config.h.
26764 rm -f conftest.defines conftest.tail
26765 # First, append a space to every undef/define line, to ease matching.
26766 echo 's/$/ /' >conftest.defines
26767 # Then, protect against being on the right side of a sed subst, or in
26768 # an unquoted here document, in config.status.  If some macros were
26769 # called several times there might be several #defines for the same
26770 # symbol, which is useless.  But do not sort them, since the last
26771 # AC_DEFINE must be honored.
26772 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26773 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26774 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26775 # PARAMS is the parameter list in the macro definition--in most cases, it's
26776 # just an empty string.
26777 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
26778 ac_dB='\\)[      (].*,\\1define\\2'
26779 ac_dC=' '
26780 ac_dD=' ,'
26781
26782 uniq confdefs.h |
26783   sed -n '
26784         t rset
26785         :rset
26786         s/^[     ]*#[    ]*define[       ][      ]*//
26787         t ok
26788         d
26789         :ok
26790         s/[\\&,]/\\&/g
26791         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26792         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26793   ' >>conftest.defines
26794
26795 # Remove the space that was appended to ease matching.
26796 # Then replace #undef with comments.  This is necessary, for
26797 # example, in the case of _POSIX_SOURCE, which is predefined and required
26798 # on some systems where configure will not decide to define it.
26799 # (The regexp can be short, since the line contains either #define or #undef.)
26800 echo 's/ $//
26801 s,^[     #]*u.*,/* & */,' >>conftest.defines
26802
26803 # Break up conftest.defines:
26804 ac_max_sed_lines=50
26805
26806 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26807 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26808 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26809 # et cetera.
26810 ac_in='$ac_file_inputs'
26811 ac_out='"$tmp/out1"'
26812 ac_nxt='"$tmp/out2"'
26813
26814 while :
26815 do
26816   # Write a here document:
26817     cat >>$CONFIG_STATUS <<_ACEOF
26818     # First, check the format of the line:
26819     cat >"\$tmp/defines.sed" <<\\CEOF
26820 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
26821 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
26822 b
26823 :def
26824 _ACEOF
26825   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26826   echo 'CEOF
26827     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26828   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26829   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26830   grep . conftest.tail >/dev/null || break
26831   rm -f conftest.defines
26832   mv conftest.tail conftest.defines
26833 done
26834 rm -f conftest.defines conftest.tail
26835
26836 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26837 cat >>$CONFIG_STATUS <<\_ACEOF
26838   if test x"$ac_file" != x-; then
26839     echo "/* $configure_input  */" >"$tmp/config.h"
26840     cat "$ac_result" >>"$tmp/config.h"
26841     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26842       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26843 echo "$as_me: $ac_file is unchanged" >&6;}
26844     else
26845       rm -f $ac_file
26846       mv "$tmp/config.h" $ac_file
26847     fi
26848   else
26849     echo "/* $configure_input  */"
26850     cat "$ac_result"
26851   fi
26852   rm -f "$tmp/out12"
26853  ;;
26854
26855
26856   esac
26857
26858 done # for ac_tag
26859
26860
26861 { (exit 0); exit 0; }
26862 _ACEOF
26863 chmod +x $CONFIG_STATUS
26864 ac_clean_files=$ac_clean_files_save
26865
26866
26867 # configure is writing to config.log, and then calls config.status.
26868 # config.status does its own redirection, appending to config.log.
26869 # Unfortunately, on DOS this fails, as config.log is still kept open
26870 # by configure, so config.status won't be able to write to it; its
26871 # output is simply discarded.  So we exec the FD to /dev/null,
26872 # effectively closing config.log, so it can be properly (re)opened and
26873 # appended to by config.status.  When coming back to configure, we
26874 # need to make the FD available again.
26875 if test "$no_create" != yes; then
26876   ac_cs_success=:
26877   ac_config_status_args=
26878   test "$silent" = yes &&
26879     ac_config_status_args="$ac_config_status_args --quiet"
26880   exec 5>/dev/null
26881   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26882   exec 5>>config.log
26883   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26884   # would make configure fail if this is the last instruction.
26885   $ac_cs_success || { (exit 1); exit 1; }
26886 fi
26887
26888 #
26889 # CONFIG_SUBDIRS section.
26890 #
26891 if test "$no_recursion" != yes; then
26892
26893   # Remove --cache-file and --srcdir arguments so they do not pile up.
26894   ac_sub_configure_args=
26895   ac_prev=
26896   eval "set x $ac_configure_args"
26897   shift
26898   for ac_arg
26899   do
26900     if test -n "$ac_prev"; then
26901       ac_prev=
26902       continue
26903     fi
26904     case $ac_arg in
26905     -cache-file | --cache-file | --cache-fil | --cache-fi \
26906     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26907       ac_prev=cache_file ;;
26908     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26909     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26910     | --c=*)
26911       ;;
26912     --config-cache | -C)
26913       ;;
26914     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26915       ac_prev=srcdir ;;
26916     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26917       ;;
26918     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26919       ac_prev=prefix ;;
26920     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26921       ;;
26922     *)
26923       case $ac_arg in
26924       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26925       esac
26926       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26927     esac
26928   done
26929
26930   # Always prepend --prefix to ensure using the same prefix
26931   # in subdir configurations.
26932   ac_arg="--prefix=$prefix"
26933   case $ac_arg in
26934   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26935   esac
26936   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
26937
26938   ac_popdir=`pwd`
26939   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26940
26941     # Do not complain, so a configure script can configure whichever
26942     # parts of a large source tree are present.
26943     test -d "$srcdir/$ac_dir" || continue
26944
26945     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26946     echo "$as_me:$LINENO: $ac_msg" >&5
26947     echo "$ac_msg" >&6
26948     { as_dir="$ac_dir"
26949   case $as_dir in #(
26950   -*) as_dir=./$as_dir;;
26951   esac
26952   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26953     as_dirs=
26954     while :; do
26955       case $as_dir in #(
26956       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26957       *) as_qdir=$as_dir;;
26958       esac
26959       as_dirs="'$as_qdir' $as_dirs"
26960       as_dir=`$as_dirname -- "$as_dir" ||
26961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26962          X"$as_dir" : 'X\(//\)[^/]' \| \
26963          X"$as_dir" : 'X\(//\)$' \| \
26964          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26965 echo X"$as_dir" |
26966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26967             s//\1/
26968             q
26969           }
26970           /^X\(\/\/\)[^/].*/{
26971             s//\1/
26972             q
26973           }
26974           /^X\(\/\/\)$/{
26975             s//\1/
26976             q
26977           }
26978           /^X\(\/\).*/{
26979             s//\1/
26980             q
26981           }
26982           s/.*/./; q'`
26983       test -d "$as_dir" && break
26984     done
26985     test -z "$as_dirs" || eval "mkdir $as_dirs"
26986   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26987 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26988    { (exit 1); exit 1; }; }; }
26989     ac_builddir=.
26990
26991 case "$ac_dir" in
26992 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26993 *)
26994   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26995   # A ".." for each directory in $ac_dir_suffix.
26996   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26997   case $ac_top_builddir_sub in
26998   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26999   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27000   esac ;;
27001 esac
27002 ac_abs_top_builddir=$ac_pwd
27003 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27004 # for backward compatibility:
27005 ac_top_builddir=$ac_top_build_prefix
27006
27007 case $srcdir in
27008   .)  # We are building in place.
27009     ac_srcdir=.
27010     ac_top_srcdir=$ac_top_builddir_sub
27011     ac_abs_top_srcdir=$ac_pwd ;;
27012   [\\/]* | ?:[\\/]* )  # Absolute name.
27013     ac_srcdir=$srcdir$ac_dir_suffix;
27014     ac_top_srcdir=$srcdir
27015     ac_abs_top_srcdir=$srcdir ;;
27016   *) # Relative name.
27017     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27018     ac_top_srcdir=$ac_top_build_prefix$srcdir
27019     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27020 esac
27021 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27022
27023
27024     cd "$ac_dir"
27025
27026     # Check for guested configure; otherwise get Cygnus style configure.
27027     if test -f "$ac_srcdir/configure.gnu"; then
27028       ac_sub_configure=$ac_srcdir/configure.gnu
27029     elif test -f "$ac_srcdir/configure"; then
27030       ac_sub_configure=$ac_srcdir/configure
27031     elif test -f "$ac_srcdir/configure.in"; then
27032       # This should be Cygnus configure.
27033       ac_sub_configure=$ac_aux_dir/configure
27034     else
27035       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27036 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27037       ac_sub_configure=
27038     fi
27039
27040     # The recursion is here.
27041     if test -n "$ac_sub_configure"; then
27042       # Make the cache file name correct relative to the subdirectory.
27043       case $cache_file in
27044       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27045       *) # Relative name.
27046         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27047       esac
27048
27049       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27050 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27051       # The eval makes quoting arguments work.
27052       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27053            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27054         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27055 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27056    { (exit 1); exit 1; }; }
27057     fi
27058
27059     cd "$ac_popdir"
27060   done
27061 fi
27062
27063
27064 ac_config_commands="$ac_config_commands default-1"
27065
27066 ac_config_commands="$ac_config_commands default-2"
27067
27068 ac_config_commands="$ac_config_commands default-3"
27069
27070 ac_config_commands="$ac_config_commands default-4"
27071