Regenerate from aclocal.m4
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.198.2.15.2.18 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in
25   *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43   echo "#! /bin/sh" >conf$$.sh
44   echo  "exit 0"   >>conf$$.sh
45   chmod +x conf$$.sh
46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47     PATH_SEPARATOR=';'
48   else
49     PATH_SEPARATOR=:
50   fi
51   rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56   as_unset=unset
57 else
58   as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order.  Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" ""        $as_nl"
70
71 # Find who we are.  Look in the path if we contain no directory separator.
72 case $0 in
73   *[\\/]* ) as_myself=$0 ;;
74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77   IFS=$as_save_IFS
78   test -z "$as_dir" && as_dir=.
79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83      ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88   as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92   { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107   LC_TELEPHONE LC_TIME
108 do
109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110     eval $as_var=C; export $as_var
111   else
112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113   fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
119   as_expr=expr
120 else
121   as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125   as_basename=basename
126 else
127   as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134          X"$0" : 'X\(//\)$' \| \
135          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137     sed '/^.*\/\([^/][^/]*\)\/*$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\/\)$/{
142             s//\1/
143             q
144           }
145           /^X\/\(\/\).*/{
146             s//\1/
147             q
148           }
149           s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156   if (eval ":") 2>/dev/null; then
157   as_have_required=yes
158 else
159   as_have_required=no
160 fi
161
162   if test $as_have_required = yes &&     (eval ":
163 (as_func_return () {
164   (exit \$1)
165 }
166 as_func_success () {
167   as_func_return 0
168 }
169 as_func_failure () {
170   as_func_return 1
171 }
172 as_func_ret_success () {
173   return 0
174 }
175 as_func_ret_failure () {
176   return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181   :
182 else
183   exitcode=1
184   echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188   exitcode=1
189   echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193   :
194 else
195   exitcode=1
196   echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200   exitcode=1
201   echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205   :
206 else
207   exitcode=1
208   echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214   as_lineno_1=\$LINENO
215   as_lineno_2=\$LINENO
216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219   :
220 else
221   as_candidate_shells=
222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225   IFS=$as_save_IFS
226   test -z "$as_dir" && as_dir=.
227   case $as_dir in
228          /*)
229            for as_base in sh bash ksh sh5; do
230              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231            done;;
232        esac
233 done
234 IFS=$as_save_IFS
235
236
237       for as_shell in $as_candidate_shells $SHELL; do
238          # Try only shells that exist, to save several forks.
239          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240                 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in
250   *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259   CONFIG_SHELL=$as_shell
260                as_have_required=yes
261                if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279   (exit $1)
280 }
281 as_func_success () {
282   as_func_return 0
283 }
284 as_func_failure () {
285   as_func_return 1
286 }
287 as_func_ret_success () {
288   return 0
289 }
290 as_func_ret_failure () {
291   return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296   :
297 else
298   exitcode=1
299   echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303   exitcode=1
304   echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308   :
309 else
310   exitcode=1
311   echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315   exitcode=1
316   echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320   :
321 else
322   exitcode=1
323   echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329   as_lineno_1=$LINENO
330   as_lineno_2=$LINENO
331   test "x$as_lineno_1" != "x$as_lineno_2" &&
332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336   break
337 fi
338
339 fi
340
341       done
342
343       if test "x$CONFIG_SHELL" != x; then
344   for as_var in BASH_ENV ENV
345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346         done
347         export CONFIG_SHELL
348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352     if test $as_have_required = no; then
353   echo This script requires a shell more modern than all the
354       echo shells that I found on your system.  Please install a
355       echo modern shell, or manually run the script under such a
356       echo shell if you do have one.
357       { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368   (exit \$1)
369 }
370 as_func_success () {
371   as_func_return 0
372 }
373 as_func_failure () {
374   as_func_return 1
375 }
376 as_func_ret_success () {
377   return 0
378 }
379 as_func_ret_failure () {
380   return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385   :
386 else
387   exitcode=1
388   echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392   exitcode=1
393   echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397   :
398 else
399   exitcode=1
400   echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404   exitcode=1
405   echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409   :
410 else
411   exitcode=1
412   echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416   echo No shell found that supports shell functions.
417   echo Please tell autoconf@gnu.org about your system,
418   echo including any error possibly output before this
419   echo message
420 }
421
422
423
424   as_lineno_1=$LINENO
425   as_lineno_2=$LINENO
426   test "x$as_lineno_1" != "x$as_lineno_2" &&
427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430   # uniformly replaced by the line number.  The first 'sed' inserts a
431   # line-number line after each line using $LINENO; the second 'sed'
432   # does the real work.  The second script uses 'N' to pair each
433   # line-number line with the line containing $LINENO, and appends
434   # trailing '-' during substitution so that $LINENO is not a special
435   # case at line end.
436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
438   # E. McMahon (1931-1989) for sed's syntax.  :-)
439   sed -n '
440     p
441     /[$]LINENO/=
442   ' <$as_myself |
443     sed '
444       s/[$]LINENO.*/&-/
445       t lineno
446       b
447       :lineno
448       N
449       :loop
450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451       t loop
452       s/-\n.*//
453     ' >$as_me.lineno &&
454   chmod +x "$as_me.lineno" ||
455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456    { (exit 1); exit 1; }; }
457
458   # Don't try to exec as it changes $[0], causing all sort of problems
459   # (the dirname of $[0] is not the place where we might find the
460   # original and so on.  Autoconf is especially sensitive to this).
461   . "./$as_me.lineno"
462   # Exit status is that of the last command.
463   exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468   as_dirname=dirname
469 else
470   as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476   case `echo 'x\c'` in
477   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
478   *)   ECHO_C='\c';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
486   as_expr=expr
487 else
488   as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493   rm -f conf$$.dir/conf$$.file
494 else
495   rm -f conf$$.dir
496   mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500   as_ln_s='ln -s'
501   # ... but there are two gotchas:
502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504   # In both cases, we have to default to `cp -p'.
505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506     as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508   as_ln_s=ln
509 else
510   as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516   as_mkdir_p=:
517 else
518   test -d ./-p && rmdir ./-p
519   as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523   as_test_x='test -x'
524 else
525   if ls -dL / >/dev/null 2>&1; then
526     as_ls_L_option=L
527   else
528     as_ls_L_option=
529   fi
530   as_test_x='
531     eval sh -c '\''
532       if test -d "$1"; then
533         test -d "$1/.";
534       else
535         case $1 in
536         -*)set "./$1";;
537         esac;
538         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539         ???[sx]*):;;*)false;;esac;fi
540     '\'' sh
541   '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553
554 # Check that we are running under the correct shell.
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 case X$ECHO in
558 X*--fallback-echo)
559   # Remove one level of quotation (which was required for Make).
560   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561   ;;
562 esac
563
564 echo=${ECHO-echo}
565 if test "X$1" = X--no-reexec; then
566   # Discard the --no-reexec flag, and continue.
567   shift
568 elif test "X$1" = X--fallback-echo; then
569   # Avoid inline document here, it may be left over
570   :
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572   # Yippee, $echo works!
573   :
574 else
575   # Restart under the correct shell.
576   exec $SHELL "$0" --no-reexec ${1+"$@"}
577 fi
578
579 if test "X$1" = X--fallback-echo; then
580   # used as fallback echo
581   shift
582   cat <<EOF
583 $*
584 EOF
585   exit 0
586 fi
587
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 # if CDPATH is set.
590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598        echo_test_string=`eval $cmd` &&
599        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
600     then
601       break
602     fi
603   done
604 fi
605
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608    test "X$echo_testing_string" = "X$echo_test_string"; then
609   :
610 else
611   # The Solaris, AIX, and Digital Unix default echo programs unquote
612   # backslashes.  This makes it impossible to quote backslashes using
613   #   echo "$something" | sed 's/\\/\\\\/g'
614   #
615   # So, first we look for a working echo in the user's PATH.
616
617   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618   for dir in $PATH /usr/ucb; do
619     IFS="$lt_save_ifs"
620     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623        test "X$echo_testing_string" = "X$echo_test_string"; then
624       echo="$dir/echo"
625       break
626     fi
627   done
628   IFS="$lt_save_ifs"
629
630   if test "X$echo" = Xecho; then
631     # We didn't find a better echo, so look for alternatives.
632     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634        test "X$echo_testing_string" = "X$echo_test_string"; then
635       # This shell has a builtin print -r that does the trick.
636       echo='print -r'
637     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638          test "X$CONFIG_SHELL" != X/bin/ksh; then
639       # If we have ksh, try running configure again with it.
640       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641       export ORIGINAL_CONFIG_SHELL
642       CONFIG_SHELL=/bin/ksh
643       export CONFIG_SHELL
644       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645     else
646       # Try using printf.
647       echo='printf %s\n'
648       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650          test "X$echo_testing_string" = "X$echo_test_string"; then
651         # Cool, printf works
652         :
653       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654            test "X$echo_testing_string" = 'X\t' &&
655            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656            test "X$echo_testing_string" = "X$echo_test_string"; then
657         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658         export CONFIG_SHELL
659         SHELL="$CONFIG_SHELL"
660         export SHELL
661         echo="$CONFIG_SHELL $0 --fallback-echo"
662       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663            test "X$echo_testing_string" = 'X\t' &&
664            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665            test "X$echo_testing_string" = "X$echo_test_string"; then
666         echo="$CONFIG_SHELL $0 --fallback-echo"
667       else
668         # maybe with a smaller string...
669         prev=:
670
671         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
673           then
674             break
675           fi
676           prev="$cmd"
677         done
678
679         if test "$prev" != 'sed 50q "$0"'; then
680           echo_test_string=`eval $prev`
681           export echo_test_string
682           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683         else
684           # Oops.  We lost completely, so just stick with echo.
685           echo=echo
686         fi
687       fi
688     fi
689   fi
690 fi
691 fi
692
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 ECHO=$echo
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 tagnames=${tagnames+${tagnames},}CXX
704
705 tagnames=${tagnames+${tagnames},}F77
706
707 exec 7<&0 </dev/null 6>&1
708
709 # Name of the host.
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
714 #
715 # Initializations.
716 #
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIBOBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
725 SHELL=${CONFIG_SHELL-/bin/sh}
726
727 # Identity of this package.
728 PACKAGE_NAME=
729 PACKAGE_TARNAME=
730 PACKAGE_VERSION=
731 PACKAGE_STRING=
732 PACKAGE_BUGREPORT=
733
734 ac_unique_file="src/main/radiusd.c"
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 ac_ct_CC
813 EXEEXT
814 OBJEXT
815 CPP
816 GREP
817 EGREP
818 RANLIB
819 abs_top_builddir
820 GMAKE
821 MAKE
822 LTDL_SUBDIRS
823 LIBTOOL
824 build
825 build_cpu
826 build_vendor
827 build_os
828 host
829 host_cpu
830 host_vendor
831 host_os
832 LN_S
833 ECHO
834 AR
835 STRIP
836 CXX
837 CXXFLAGS
838 ac_ct_CXX
839 CXXCPP
840 F77
841 FFLAGS
842 ac_ct_F77
843 logdir
844 radacctdir
845 raddbdir
846 PERL
847 SNMPGET
848 SNMPWALK
849 RUSERS
850 ACLOCAL
851 AUTOCONF
852 AUTOHEADER
853 LOCATE
854 DIRNAME
855 REGEX
856 REGEX_EXTENDED
857 OPENSSL_INCLUDE
858 OPENSSL_LIBS
859 LIBPREFIX
860 CRYPTLIB
861 SNMP_LIBS
862 SNMP_INCLUDE
863 GETCONF
864 LFS_CFLAGS
865 LFS_LDFLAGS
866 LFS_LIBS
867 HOSTINFO
868 LIBLTDL
869 INCLTDL
870 subdirs
871 MODULES
872 INSTALLSTRIP
873 USE_SHARED_LIBS
874 USE_STATIC_LIBS
875 STATIC_MODULES
876 RADIUSD_MAJOR_VERSION
877 RADIUSD_MINOR_VERSION
878 RADIUSD_VERSION
879 LIBOBJS
880 LTLIBOBJS'
881 ac_subst_files=''
882       ac_precious_vars='build_alias
883 host_alias
884 target_alias
885 CC
886 CFLAGS
887 LDFLAGS
888 LIBS
889 CPPFLAGS
890 CPP
891 CXX
892 CXXFLAGS
893 CCC
894 CXXCPP
895 F77
896 FFLAGS'
897 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
898
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
904 cache_file=/dev/null
905 exec_prefix=NONE
906 no_create=
907 no_recursion=
908 prefix=NONE
909 program_prefix=NONE
910 program_suffix=NONE
911 program_transform_name=s,x,x,
912 silent=
913 site=
914 srcdir=
915 verbose=
916 x_includes=NONE
917 x_libraries=NONE
918
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE}'
936 infodir='${datarootdir}/info'
937 htmldir='${docdir}'
938 dvidir='${docdir}'
939 pdfdir='${docdir}'
940 psdir='${docdir}'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
944
945 ac_prev=
946 ac_dashdash=
947 for ac_option
948 do
949   # If the previous option needs an argument, assign it.
950   if test -n "$ac_prev"; then
951     eval $ac_prev=\$ac_option
952     ac_prev=
953     continue
954   fi
955
956   case $ac_option in
957   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958   *)    ac_optarg=yes ;;
959   esac
960
961   # Accept the important Cygnus configure options, so we can diagnose typos.
962
963   case $ac_dashdash$ac_option in
964   --)
965     ac_dashdash=yes ;;
966
967   -bindir | --bindir | --bindi | --bind | --bin | --bi)
968     ac_prev=bindir ;;
969   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970     bindir=$ac_optarg ;;
971
972   -build | --build | --buil | --bui | --bu)
973     ac_prev=build_alias ;;
974   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975     build_alias=$ac_optarg ;;
976
977   -cache-file | --cache-file | --cache-fil | --cache-fi \
978   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979     ac_prev=cache_file ;;
980   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982     cache_file=$ac_optarg ;;
983
984   --config-cache | -C)
985     cache_file=config.cache ;;
986
987   -datadir | --datadir | --datadi | --datad)
988     ac_prev=datadir ;;
989   -datadir=* | --datadir=* | --datadi=* | --datad=*)
990     datadir=$ac_optarg ;;
991
992   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993   | --dataroo | --dataro | --datar)
994     ac_prev=datarootdir ;;
995   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997     datarootdir=$ac_optarg ;;
998
999   -disable-* | --disable-*)
1000     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001     # Reject names that are not valid shell variable names.
1002     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004    { (exit 1); exit 1; }; }
1005     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006     eval enable_$ac_feature=no ;;
1007
1008   -docdir | --docdir | --docdi | --doc | --do)
1009     ac_prev=docdir ;;
1010   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011     docdir=$ac_optarg ;;
1012
1013   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014     ac_prev=dvidir ;;
1015   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016     dvidir=$ac_optarg ;;
1017
1018   -enable-* | --enable-*)
1019     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020     # Reject names that are not valid shell variable names.
1021     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023    { (exit 1); exit 1; }; }
1024     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025     eval enable_$ac_feature=\$ac_optarg ;;
1026
1027   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029   | --exec | --exe | --ex)
1030     ac_prev=exec_prefix ;;
1031   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033   | --exec=* | --exe=* | --ex=*)
1034     exec_prefix=$ac_optarg ;;
1035
1036   -gas | --gas | --ga | --g)
1037     # Obsolete; use --with-gas.
1038     with_gas=yes ;;
1039
1040   -help | --help | --hel | --he | -h)
1041     ac_init_help=long ;;
1042   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043     ac_init_help=recursive ;;
1044   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045     ac_init_help=short ;;
1046
1047   -host | --host | --hos | --ho)
1048     ac_prev=host_alias ;;
1049   -host=* | --host=* | --hos=* | --ho=*)
1050     host_alias=$ac_optarg ;;
1051
1052   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053     ac_prev=htmldir ;;
1054   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055   | --ht=*)
1056     htmldir=$ac_optarg ;;
1057
1058   -includedir | --includedir | --includedi | --included | --include \
1059   | --includ | --inclu | --incl | --inc)
1060     ac_prev=includedir ;;
1061   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062   | --includ=* | --inclu=* | --incl=* | --inc=*)
1063     includedir=$ac_optarg ;;
1064
1065   -infodir | --infodir | --infodi | --infod | --info | --inf)
1066     ac_prev=infodir ;;
1067   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068     infodir=$ac_optarg ;;
1069
1070   -libdir | --libdir | --libdi | --libd)
1071     ac_prev=libdir ;;
1072   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073     libdir=$ac_optarg ;;
1074
1075   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076   | --libexe | --libex | --libe)
1077     ac_prev=libexecdir ;;
1078   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079   | --libexe=* | --libex=* | --libe=*)
1080     libexecdir=$ac_optarg ;;
1081
1082   -localedir | --localedir | --localedi | --localed | --locale)
1083     ac_prev=localedir ;;
1084   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085     localedir=$ac_optarg ;;
1086
1087   -localstatedir | --localstatedir | --localstatedi | --localstated \
1088   | --localstate | --localstat | --localsta | --localst | --locals)
1089     ac_prev=localstatedir ;;
1090   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092     localstatedir=$ac_optarg ;;
1093
1094   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095     ac_prev=mandir ;;
1096   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097     mandir=$ac_optarg ;;
1098
1099   -nfp | --nfp | --nf)
1100     # Obsolete; use --without-fp.
1101     with_fp=no ;;
1102
1103   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104   | --no-cr | --no-c | -n)
1105     no_create=yes ;;
1106
1107   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109     no_recursion=yes ;;
1110
1111   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113   | --oldin | --oldi | --old | --ol | --o)
1114     ac_prev=oldincludedir ;;
1115   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118     oldincludedir=$ac_optarg ;;
1119
1120   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121     ac_prev=prefix ;;
1122   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123     prefix=$ac_optarg ;;
1124
1125   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126   | --program-pre | --program-pr | --program-p)
1127     ac_prev=program_prefix ;;
1128   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130     program_prefix=$ac_optarg ;;
1131
1132   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133   | --program-suf | --program-su | --program-s)
1134     ac_prev=program_suffix ;;
1135   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137     program_suffix=$ac_optarg ;;
1138
1139   -program-transform-name | --program-transform-name \
1140   | --program-transform-nam | --program-transform-na \
1141   | --program-transform-n | --program-transform- \
1142   | --program-transform | --program-transfor \
1143   | --program-transfo | --program-transf \
1144   | --program-trans | --program-tran \
1145   | --progr-tra | --program-tr | --program-t)
1146     ac_prev=program_transform_name ;;
1147   -program-transform-name=* | --program-transform-name=* \
1148   | --program-transform-nam=* | --program-transform-na=* \
1149   | --program-transform-n=* | --program-transform-=* \
1150   | --program-transform=* | --program-transfor=* \
1151   | --program-transfo=* | --program-transf=* \
1152   | --program-trans=* | --program-tran=* \
1153   | --progr-tra=* | --program-tr=* | --program-t=*)
1154     program_transform_name=$ac_optarg ;;
1155
1156   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157     ac_prev=pdfdir ;;
1158   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159     pdfdir=$ac_optarg ;;
1160
1161   -psdir | --psdir | --psdi | --psd | --ps)
1162     ac_prev=psdir ;;
1163   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164     psdir=$ac_optarg ;;
1165
1166   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167   | -silent | --silent | --silen | --sile | --sil)
1168     silent=yes ;;
1169
1170   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171     ac_prev=sbindir ;;
1172   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173   | --sbi=* | --sb=*)
1174     sbindir=$ac_optarg ;;
1175
1176   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178   | --sharedst | --shareds | --shared | --share | --shar \
1179   | --sha | --sh)
1180     ac_prev=sharedstatedir ;;
1181   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184   | --sha=* | --sh=*)
1185     sharedstatedir=$ac_optarg ;;
1186
1187   -site | --site | --sit)
1188     ac_prev=site ;;
1189   -site=* | --site=* | --sit=*)
1190     site=$ac_optarg ;;
1191
1192   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193     ac_prev=srcdir ;;
1194   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195     srcdir=$ac_optarg ;;
1196
1197   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198   | --syscon | --sysco | --sysc | --sys | --sy)
1199     ac_prev=sysconfdir ;;
1200   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202     sysconfdir=$ac_optarg ;;
1203
1204   -target | --target | --targe | --targ | --tar | --ta | --t)
1205     ac_prev=target_alias ;;
1206   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207     target_alias=$ac_optarg ;;
1208
1209   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210     verbose=yes ;;
1211
1212   -version | --version | --versio | --versi | --vers | -V)
1213     ac_init_version=: ;;
1214
1215   -with-* | --with-*)
1216     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217     # Reject names that are not valid shell variable names.
1218     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219       { echo "$as_me: error: invalid package name: $ac_package" >&2
1220    { (exit 1); exit 1; }; }
1221     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222     eval with_$ac_package=\$ac_optarg ;;
1223
1224   -without-* | --without-*)
1225     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226     # Reject names that are not valid shell variable names.
1227     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228       { echo "$as_me: error: invalid package name: $ac_package" >&2
1229    { (exit 1); exit 1; }; }
1230     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231     eval with_$ac_package=no ;;
1232
1233   --x)
1234     # Obsolete; use --with-x.
1235     with_x=yes ;;
1236
1237   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238   | --x-incl | --x-inc | --x-in | --x-i)
1239     ac_prev=x_includes ;;
1240   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242     x_includes=$ac_optarg ;;
1243
1244   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246     ac_prev=x_libraries ;;
1247   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249     x_libraries=$ac_optarg ;;
1250
1251   -*) { echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253    { (exit 1); exit 1; }; }
1254     ;;
1255
1256   *=*)
1257     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258     # Reject names that are not valid shell variable names.
1259     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261    { (exit 1); exit 1; }; }
1262     eval $ac_envvar=\$ac_optarg
1263     export $ac_envvar ;;
1264
1265   *)
1266     # FIXME: should be removed in autoconf 3.0.
1267     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271     ;;
1272
1273   esac
1274 done
1275
1276 if test -n "$ac_prev"; then
1277   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278   { echo "$as_me: error: missing argument to $ac_option" >&2
1279    { (exit 1); exit 1; }; }
1280 fi
1281
1282 # Be sure to have absolute directory names.
1283 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284                 datadir sysconfdir sharedstatedir localstatedir includedir \
1285                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286                 libdir localedir mandir
1287 do
1288   eval ac_val=\$$ac_var
1289   case $ac_val in
1290     [\\/$]* | ?:[\\/]* )  continue;;
1291     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292   esac
1293   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294    { (exit 1); exit 1; }; }
1295 done
1296
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1303
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306   if test "x$build_alias" = x; then
1307     cross_compiling=maybe
1308     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309     If a cross compiler is detected then cross compile mode will be used." >&2
1310   elif test "x$build_alias" != "x$host_alias"; then
1311     cross_compiling=yes
1312   fi
1313 fi
1314
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318 test "$silent" = yes && exec 6>/dev/null
1319
1320
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324   { echo "$as_me: error: Working directory cannot be determined" >&2
1325    { (exit 1); exit 1; }; }
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327   { echo "$as_me: error: pwd does not report name of working directory" >&2
1328    { (exit 1); exit 1; }; }
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333   ac_srcdir_defaulted=yes
1334   # Try the directory containing this script, then the parent directory.
1335   ac_confdir=`$as_dirname -- "$0" ||
1336 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337          X"$0" : 'X\(//\)[^/]' \| \
1338          X"$0" : 'X\(//\)$' \| \
1339          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1340 echo X"$0" |
1341     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\/\)[^/].*/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\/\)$/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\).*/{
1354             s//\1/
1355             q
1356           }
1357           s/.*/./; q'`
1358   srcdir=$ac_confdir
1359   if test ! -r "$srcdir/$ac_unique_file"; then
1360     srcdir=..
1361   fi
1362 else
1363   ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368    { (exit 1); exit 1; }; }
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1373    { (exit 1); exit 1; }; }
1374         pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377   srcdir=.
1378 fi
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_env_${ac_var}_value=\$${ac_var}
1388   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1391
1392 #
1393 # Report the --help message.
1394 #
1395 if test "$ac_init_help" = "long"; then
1396   # Omit some internal or obsolete options to make the list less imposing.
1397   # This message is too long to be a string in the A/UX 3.1 sh.
1398   cat <<_ACEOF
1399 \`configure' configures this package to adapt to many kinds of systems.
1400
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE.  See below for descriptions of some of the useful variables.
1405
1406 Defaults for the options are specified in brackets.
1407
1408 Configuration:
1409   -h, --help              display this help and exit
1410       --help=short        display options specific to this package
1411       --help=recursive    display the short help of all the included packages
1412   -V, --version           display version information and exit
1413   -q, --quiet, --silent   do not print \`checking...' messages
1414       --cache-file=FILE   cache test results in FILE [disabled]
1415   -C, --config-cache      alias for \`--cache-file=config.cache'
1416   -n, --no-create         do not create output files
1417       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1418
1419 Installation directories:
1420   --prefix=PREFIX         install architecture-independent files in PREFIX
1421                           [$ac_default_prefix]
1422   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1423                           [PREFIX]
1424
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1429
1430 For better control, use the options below.
1431
1432 Fine tuning of the installation directories:
1433   --bindir=DIR           user executables [EPREFIX/bin]
1434   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1435   --libexecdir=DIR       program executables [EPREFIX/libexec]
1436   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1437   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1438   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1439   --libdir=DIR           object code libraries [EPREFIX/lib]
1440   --includedir=DIR       C header files [PREFIX/include]
1441   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1442   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1443   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1444   --infodir=DIR          info documentation [DATAROOTDIR/info]
1445   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1446   --mandir=DIR           man documentation [DATAROOTDIR/man]
1447   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1448   --htmldir=DIR          html documentation [DOCDIR]
1449   --dvidir=DIR           dvi documentation [DOCDIR]
1450   --pdfdir=DIR           pdf documentation [DOCDIR]
1451   --psdir=DIR            ps documentation [DOCDIR]
1452 _ACEOF
1453
1454   cat <<\_ACEOF
1455
1456 System types:
1457   --build=BUILD     configure for building on BUILD [guessed]
1458   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463
1464   cat <<\_ACEOF
1465
1466 Optional Features:
1467   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469   --enable-shared[=PKGS]  build shared libraries [default=yes]
1470   --enable-static[=PKGS]  build static libraries [default=yes]
1471   --enable-fast-install[=PKGS]
1472                           optimize for fast installation [default=yes]
1473   --disable-libtool-lock  avoid locking (might break parallel builds)
1474   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1475   --enable-developer               Enables features of interest to developers.
1476
1477 Optional Packages:
1478   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480   --with-system-libtool              try to use libtool installed in your system default=use our own
1481   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1482   --with-pic              try to use only PIC/non-PIC objects [default=use
1483                           both]
1484   --with-tags[=TAGS]      include additional configurations [automatic]
1485   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1486   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1487   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1488   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1489   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1490   --with-threads          Use threads, if available.  (default=yes)
1491   --with-snmp             Compile in SNMP support. (default=yes)
1492   --with-snmp-include-dir=DIR  Directory to look for include files used by SNMP
1493   --with-large-files      Compile in large (2G+) file support. (default=no)
1494   --with-static-modules=QUOTED-MODULE-LIST
1495  --with-modules=QUOTED-MODULE-LIST
1496   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1497   --with-openssl                   Use OpenSSL. (default=yes)
1498   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1499   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1500   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1501   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1502   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1503   --with-edir             Enable Novell eDirectory integration.  (default=no)
1504
1505 Some influential environment variables:
1506   CC          C compiler command
1507   CFLAGS      C compiler flags
1508   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1509               nonstandard directory <lib dir>
1510   LIBS        libraries to pass to the linker, e.g. -l<library>
1511   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1512               you have headers in a nonstandard directory <include dir>
1513   CPP         C preprocessor
1514   CXX         C++ compiler command
1515   CXXFLAGS    C++ compiler flags
1516   CXXCPP      C++ preprocessor
1517   F77         Fortran 77 compiler command
1518   FFLAGS      Fortran 77 compiler flags
1519
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1522
1523 _ACEOF
1524 ac_status=$?
1525 fi
1526
1527 if test "$ac_init_help" = "recursive"; then
1528   # If there are subdirs, report their specific --help.
1529   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530     test -d "$ac_dir" || continue
1531     ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537   # A ".." for each directory in $ac_dir_suffix.
1538   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539   case $ac_top_builddir_sub in
1540   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542   esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550   .)  # We are building in place.
1551     ac_srcdir=.
1552     ac_top_srcdir=$ac_top_builddir_sub
1553     ac_abs_top_srcdir=$ac_pwd ;;
1554   [\\/]* | ?:[\\/]* )  # Absolute name.
1555     ac_srcdir=$srcdir$ac_dir_suffix;
1556     ac_top_srcdir=$srcdir
1557     ac_abs_top_srcdir=$srcdir ;;
1558   *) # Relative name.
1559     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560     ac_top_srcdir=$ac_top_build_prefix$srcdir
1561     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565     cd "$ac_dir" || { ac_status=$?; continue; }
1566     # Check for guested configure.
1567     if test -f "$ac_srcdir/configure.gnu"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570     elif test -f "$ac_srcdir/configure"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure" --help=recursive
1573     else
1574       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575     fi || ac_status=$?
1576     cd "$ac_pwd" || { ac_status=$?; break; }
1577   done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582   cat <<\_ACEOF
1583 configure
1584 generated by GNU Autoconf 2.61
1585
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591   exit
1592 fi
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1596
1597 It was created by $as_me, which was
1598 generated by GNU Autoconf 2.61.  Invocation command line was
1599
1600   $ $0 $@
1601
1602 _ACEOF
1603 exec 5>>config.log
1604 {
1605 cat <<_ASUNAME
1606 ## --------- ##
1607 ## Platform. ##
1608 ## --------- ##
1609
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1618
1619 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1620 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1623 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1624 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1625 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1626
1627 _ASUNAME
1628
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632   IFS=$as_save_IFS
1633   test -z "$as_dir" && as_dir=.
1634   echo "PATH: $as_dir"
1635 done
1636 IFS=$as_save_IFS
1637
1638 } >&5
1639
1640 cat >&5 <<_ACEOF
1641
1642
1643 ## ----------- ##
1644 ## Core tests. ##
1645 ## ----------- ##
1646
1647 _ACEOF
1648
1649
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1655 ac_configure_args=
1656 ac_configure_args0=
1657 ac_configure_args1=
1658 ac_must_keep_next=false
1659 for ac_pass in 1 2
1660 do
1661   for ac_arg
1662   do
1663     case $ac_arg in
1664     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666     | -silent | --silent | --silen | --sile | --sil)
1667       continue ;;
1668     *\'*)
1669       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1670     esac
1671     case $ac_pass in
1672     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1673     2)
1674       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675       if test $ac_must_keep_next = true; then
1676         ac_must_keep_next=false # Got value, back to normal.
1677       else
1678         case $ac_arg in
1679           *=* | --config-cache | -C | -disable-* | --disable-* \
1680           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682           | -with-* | --with-* | -without-* | --without-* | --x)
1683             case "$ac_configure_args0 " in
1684               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1685             esac
1686             ;;
1687           -* ) ac_must_keep_next=true ;;
1688         esac
1689       fi
1690       ac_configure_args="$ac_configure_args '$ac_arg'"
1691       ;;
1692     esac
1693   done
1694 done
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1697
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log.  We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704   # Save into config.log some information that might help in debugging.
1705   {
1706     echo
1707
1708     cat <<\_ASBOX
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1712 _ASBOX
1713     echo
1714     # The following way of writing the cache mishandles newlines in values,
1715 (
1716   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717     eval ac_val=\$$ac_var
1718     case $ac_val in #(
1719     *${as_nl}*)
1720       case $ac_var in #(
1721       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1723       esac
1724       case $ac_var in #(
1725       _ | IFS | as_nl) ;; #(
1726       *) $as_unset $ac_var ;;
1727       esac ;;
1728     esac
1729   done
1730   (set) 2>&1 |
1731     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732     *${as_nl}ac_space=\ *)
1733       sed -n \
1734         "s/'\''/'\''\\\\'\'''\''/g;
1735           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736       ;; #(
1737     *)
1738       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739       ;;
1740     esac |
1741     sort
1742 )
1743     echo
1744
1745     cat <<\_ASBOX
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1749 _ASBOX
1750     echo
1751     for ac_var in $ac_subst_vars
1752     do
1753       eval ac_val=\$$ac_var
1754       case $ac_val in
1755       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756       esac
1757       echo "$ac_var='\''$ac_val'\''"
1758     done | sort
1759     echo
1760
1761     if test -n "$ac_subst_files"; then
1762       cat <<\_ASBOX
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1766 _ASBOX
1767       echo
1768       for ac_var in $ac_subst_files
1769       do
1770         eval ac_val=\$$ac_var
1771         case $ac_val in
1772         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773         esac
1774         echo "$ac_var='\''$ac_val'\''"
1775       done | sort
1776       echo
1777     fi
1778
1779     if test -s confdefs.h; then
1780       cat <<\_ASBOX
1781 ## ----------- ##
1782 ## confdefs.h. ##
1783 ## ----------- ##
1784 _ASBOX
1785       echo
1786       cat confdefs.h
1787       echo
1788     fi
1789     test "$ac_signal" != 0 &&
1790       echo "$as_me: caught signal $ac_signal"
1791     echo "$as_me: exit $exit_status"
1792   } >&5
1793   rm -f core *.core core.conftest.* &&
1794     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1795     exit $exit_status
1796 ' 0
1797 for ac_signal in 1 2 13 15; do
1798   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799 done
1800 ac_signal=0
1801
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1804
1805 # Predefined preprocessor variables.
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829 _ACEOF
1830
1831
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835   set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1838 else
1839   set x "$ac_default_prefix/share/config.site" \
1840         "$ac_default_prefix/etc/config.site"
1841 fi
1842 shift
1843 for ac_site_file
1844 do
1845   if test -r "$ac_site_file"; then
1846     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848     sed 's/^/| /' "$ac_site_file" >&5
1849     . "$ac_site_file"
1850   fi
1851 done
1852
1853 if test -r "$cache_file"; then
1854   # Some versions of bash will fail to source /dev/null (special
1855   # files actually), so we avoid doing that.
1856   if test -f "$cache_file"; then
1857     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1859     case $cache_file in
1860       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861       *)                      . "./$cache_file";;
1862     esac
1863   fi
1864 else
1865   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1867   >$cache_file
1868 fi
1869
1870 # Check that the precious variables saved in the cache have kept the same
1871 # value.
1872 ac_cache_corrupted=false
1873 for ac_var in $ac_precious_vars; do
1874   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1875   eval ac_new_set=\$ac_env_${ac_var}_set
1876   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1877   eval ac_new_val=\$ac_env_${ac_var}_value
1878   case $ac_old_set,$ac_new_set in
1879     set,)
1880       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1882       ac_cache_corrupted=: ;;
1883     ,set)
1884       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1886       ac_cache_corrupted=: ;;
1887     ,);;
1888     *)
1889       if test "x$ac_old_val" != "x$ac_new_val"; then
1890         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1893 echo "$as_me:   former value:  $ac_old_val" >&2;}
1894         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1895 echo "$as_me:   current value: $ac_new_val" >&2;}
1896         ac_cache_corrupted=:
1897       fi;;
1898   esac
1899   # Pass precious variables to config.status.
1900   if test "$ac_new_set" = set; then
1901     case $ac_new_val in
1902     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1903     *) ac_arg=$ac_var=$ac_new_val ;;
1904     esac
1905     case " $ac_configure_args " in
1906       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1907       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1908     esac
1909   fi
1910 done
1911 if $ac_cache_corrupted; then
1912   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1916    { (exit 1); exit 1; }; }
1917 fi
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935 ac_ext=c
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
1941
1942 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1943
1944
1945
1946 RADIUSD_MAJOR_VERSION=1
1947 RADIUSD_MINOR_VERSION=1.7
1948 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1949
1950
1951 ac_ext=c
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 if test -n "$ac_tool_prefix"; then
1957   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1958 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1961 if test "${ac_cv_prog_CC+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   if test -n "$CC"; then
1965   ac_cv_prog_CC="$CC" # Let the user override the test.
1966 else
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1969 do
1970   IFS=$as_save_IFS
1971   test -z "$as_dir" && as_dir=.
1972   for ac_exec_ext in '' $ac_executable_extensions; do
1973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1974     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976     break 2
1977   fi
1978 done
1979 done
1980 IFS=$as_save_IFS
1981
1982 fi
1983 fi
1984 CC=$ac_cv_prog_CC
1985 if test -n "$CC"; then
1986   { echo "$as_me:$LINENO: result: $CC" >&5
1987 echo "${ECHO_T}$CC" >&6; }
1988 else
1989   { echo "$as_me:$LINENO: result: no" >&5
1990 echo "${ECHO_T}no" >&6; }
1991 fi
1992
1993
1994 fi
1995 if test -z "$ac_cv_prog_CC"; then
1996   ac_ct_CC=$CC
1997   # Extract the first word of "gcc", so it can be a program name with args.
1998 set dummy gcc; ac_word=$2
1999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2001 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002   echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004   if test -n "$ac_ct_CC"; then
2005   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006 else
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010   IFS=$as_save_IFS
2011   test -z "$as_dir" && as_dir=.
2012   for ac_exec_ext in '' $ac_executable_extensions; do
2013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2014     ac_cv_prog_ac_ct_CC="gcc"
2015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016     break 2
2017   fi
2018 done
2019 done
2020 IFS=$as_save_IFS
2021
2022 fi
2023 fi
2024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2025 if test -n "$ac_ct_CC"; then
2026   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2027 echo "${ECHO_T}$ac_ct_CC" >&6; }
2028 else
2029   { echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6; }
2031 fi
2032
2033   if test "x$ac_ct_CC" = x; then
2034     CC=""
2035   else
2036     case $cross_compiling:$ac_tool_warned in
2037 yes:)
2038 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2039 whose name does not start with the host triplet.  If you think this
2040 configuration is useful to you, please write to autoconf@gnu.org." >&5
2041 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2042 whose name does not start with the host triplet.  If you think this
2043 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2044 ac_tool_warned=yes ;;
2045 esac
2046     CC=$ac_ct_CC
2047   fi
2048 else
2049   CC="$ac_cv_prog_CC"
2050 fi
2051
2052 if test -z "$CC"; then
2053           if test -n "$ac_tool_prefix"; then
2054     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2055 set dummy ${ac_tool_prefix}cc; ac_word=$2
2056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2058 if test "${ac_cv_prog_CC+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   if test -n "$CC"; then
2062   ac_cv_prog_CC="$CC" # Let the user override the test.
2063 else
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067   IFS=$as_save_IFS
2068   test -z "$as_dir" && as_dir=.
2069   for ac_exec_ext in '' $ac_executable_extensions; do
2070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2071     ac_cv_prog_CC="${ac_tool_prefix}cc"
2072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073     break 2
2074   fi
2075 done
2076 done
2077 IFS=$as_save_IFS
2078
2079 fi
2080 fi
2081 CC=$ac_cv_prog_CC
2082 if test -n "$CC"; then
2083   { echo "$as_me:$LINENO: result: $CC" >&5
2084 echo "${ECHO_T}$CC" >&6; }
2085 else
2086   { echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6; }
2088 fi
2089
2090
2091   fi
2092 fi
2093 if test -z "$CC"; then
2094   # Extract the first word of "cc", so it can be a program name with args.
2095 set dummy cc; ac_word=$2
2096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2098 if test "${ac_cv_prog_CC+set}" = set; then
2099   echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101   if test -n "$CC"; then
2102   ac_cv_prog_CC="$CC" # Let the user override the test.
2103 else
2104   ac_prog_rejected=no
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108   IFS=$as_save_IFS
2109   test -z "$as_dir" && as_dir=.
2110   for ac_exec_ext in '' $ac_executable_extensions; do
2111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2112     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2113        ac_prog_rejected=yes
2114        continue
2115      fi
2116     ac_cv_prog_CC="cc"
2117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118     break 2
2119   fi
2120 done
2121 done
2122 IFS=$as_save_IFS
2123
2124 if test $ac_prog_rejected = yes; then
2125   # We found a bogon in the path, so make sure we never use it.
2126   set dummy $ac_cv_prog_CC
2127   shift
2128   if test $# != 0; then
2129     # We chose a different compiler from the bogus one.
2130     # However, it has the same basename, so the bogon will be chosen
2131     # first if we set CC to just the basename; use the full file name.
2132     shift
2133     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2134   fi
2135 fi
2136 fi
2137 fi
2138 CC=$ac_cv_prog_CC
2139 if test -n "$CC"; then
2140   { echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6; }
2142 else
2143   { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2145 fi
2146
2147
2148 fi
2149 if test -z "$CC"; then
2150   if test -n "$ac_tool_prefix"; then
2151   for ac_prog in cl.exe
2152   do
2153     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157 if test "${ac_cv_prog_CC+set}" = set; then
2158   echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160   if test -n "$CC"; then
2161   ac_cv_prog_CC="$CC" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166   IFS=$as_save_IFS
2167   test -z "$as_dir" && as_dir=.
2168   for ac_exec_ext in '' $ac_executable_extensions; do
2169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172     break 2
2173   fi
2174 done
2175 done
2176 IFS=$as_save_IFS
2177
2178 fi
2179 fi
2180 CC=$ac_cv_prog_CC
2181 if test -n "$CC"; then
2182   { echo "$as_me:$LINENO: result: $CC" >&5
2183 echo "${ECHO_T}$CC" >&6; }
2184 else
2185   { echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6; }
2187 fi
2188
2189
2190     test -n "$CC" && break
2191   done
2192 fi
2193 if test -z "$CC"; then
2194   ac_ct_CC=$CC
2195   for ac_prog in cl.exe
2196 do
2197   # Extract the first word of "$ac_prog", so it can be a program name with args.
2198 set dummy $ac_prog; ac_word=$2
2199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   if test -n "$ac_ct_CC"; then
2205   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2206 else
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2209 do
2210   IFS=$as_save_IFS
2211   test -z "$as_dir" && as_dir=.
2212   for ac_exec_ext in '' $ac_executable_extensions; do
2213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2214     ac_cv_prog_ac_ct_CC="$ac_prog"
2215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216     break 2
2217   fi
2218 done
2219 done
2220 IFS=$as_save_IFS
2221
2222 fi
2223 fi
2224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225 if test -n "$ac_ct_CC"; then
2226   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227 echo "${ECHO_T}$ac_ct_CC" >&6; }
2228 else
2229   { echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6; }
2231 fi
2232
2233
2234   test -n "$ac_ct_CC" && break
2235 done
2236
2237   if test "x$ac_ct_CC" = x; then
2238     CC=""
2239   else
2240     case $cross_compiling:$ac_tool_warned in
2241 yes:)
2242 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2243 whose name does not start with the host triplet.  If you think this
2244 configuration is useful to you, please write to autoconf@gnu.org." >&5
2245 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2246 whose name does not start with the host triplet.  If you think this
2247 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2248 ac_tool_warned=yes ;;
2249 esac
2250     CC=$ac_ct_CC
2251   fi
2252 fi
2253
2254 fi
2255
2256
2257 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: no acceptable C compiler found in \$PATH
2260 See \`config.log' for more details." >&2;}
2261    { (exit 1); exit 1; }; }
2262
2263 # Provide some information about the compiler.
2264 echo "$as_me:$LINENO: checking for C compiler version" >&5
2265 ac_compiler=`set X $ac_compile; echo $2`
2266 { (ac_try="$ac_compiler --version >&5"
2267 case "(($ac_try" in
2268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269   *) ac_try_echo=$ac_try;;
2270 esac
2271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2272   (eval "$ac_compiler --version >&5") 2>&5
2273   ac_status=$?
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); }
2276 { (ac_try="$ac_compiler -v >&5"
2277 case "(($ac_try" in
2278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2279   *) ac_try_echo=$ac_try;;
2280 esac
2281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2282   (eval "$ac_compiler -v >&5") 2>&5
2283   ac_status=$?
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); }
2286 { (ac_try="$ac_compiler -V >&5"
2287 case "(($ac_try" in
2288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289   *) ac_try_echo=$ac_try;;
2290 esac
2291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2292   (eval "$ac_compiler -V >&5") 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); }
2296
2297 cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h.  */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h.  */
2303
2304 int
2305 main ()
2306 {
2307
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 ac_clean_files_save=$ac_clean_files
2313 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2314 # Try to create an executable without -o first, disregard a.out.
2315 # It will help us diagnose broken compilers, and finding out an intuition
2316 # of exeext.
2317 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2318 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2319 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2320 #
2321 # List of possible output files, starting from the most likely.
2322 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2323 # only as a last resort.  b.out is created by i960 compilers.
2324 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2325 #
2326 # The IRIX 6 linker writes into existing files which may not be
2327 # executable, retaining their permissions.  Remove them first so a
2328 # subsequent execution test works.
2329 ac_rmfiles=
2330 for ac_file in $ac_files
2331 do
2332   case $ac_file in
2333     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2334     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2335   esac
2336 done
2337 rm -f $ac_rmfiles
2338
2339 if { (ac_try="$ac_link_default"
2340 case "(($ac_try" in
2341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342   *) ac_try_echo=$ac_try;;
2343 esac
2344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2345   (eval "$ac_link_default") 2>&5
2346   ac_status=$?
2347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348   (exit $ac_status); }; then
2349   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2350 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2351 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2352 # so that the user can short-circuit this test for compilers unknown to
2353 # Autoconf.
2354 for ac_file in $ac_files ''
2355 do
2356   test -f "$ac_file" || continue
2357   case $ac_file in
2358     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2359         ;;
2360     [ab].out )
2361         # We found the default executable, but exeext='' is most
2362         # certainly right.
2363         break;;
2364     *.* )
2365         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2366         then :; else
2367            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2368         fi
2369         # We set ac_cv_exeext here because the later test for it is not
2370         # safe: cross compilers may not add the suffix if given an `-o'
2371         # argument, so we may need to know it at that point already.
2372         # Even if this section looks crufty: it has the advantage of
2373         # actually working.
2374         break;;
2375     * )
2376         break;;
2377   esac
2378 done
2379 test "$ac_cv_exeext" = no && ac_cv_exeext=
2380
2381 else
2382   ac_file=''
2383 fi
2384
2385 { echo "$as_me:$LINENO: result: $ac_file" >&5
2386 echo "${ECHO_T}$ac_file" >&6; }
2387 if test -z "$ac_file"; then
2388   echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&5
2393 echo "$as_me: error: C compiler cannot create executables
2394 See \`config.log' for more details." >&2;}
2395    { (exit 77); exit 77; }; }
2396 fi
2397
2398 ac_exeext=$ac_cv_exeext
2399
2400 # Check that the compiler produces executables we can run.  If not, either
2401 # the compiler is broken, or we cross compile.
2402 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2403 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2404 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2405 # If not cross compiling, check that we can run a simple program.
2406 if test "$cross_compiling" != yes; then
2407   if { ac_try='./$ac_file'
2408   { (case "(($ac_try" in
2409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410   *) ac_try_echo=$ac_try;;
2411 esac
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413   (eval "$ac_try") 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; }; then
2417     cross_compiling=no
2418   else
2419     if test "$cross_compiling" = maybe; then
2420         cross_compiling=yes
2421     else
2422         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2423 If you meant to cross compile, use \`--host'.
2424 See \`config.log' for more details." >&5
2425 echo "$as_me: error: cannot run C compiled programs.
2426 If you meant to cross compile, use \`--host'.
2427 See \`config.log' for more details." >&2;}
2428    { (exit 1); exit 1; }; }
2429     fi
2430   fi
2431 fi
2432 { echo "$as_me:$LINENO: result: yes" >&5
2433 echo "${ECHO_T}yes" >&6; }
2434
2435 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2436 ac_clean_files=$ac_clean_files_save
2437 # Check that the compiler produces executables we can run.  If not, either
2438 # the compiler is broken, or we cross compile.
2439 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2440 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2441 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2442 echo "${ECHO_T}$cross_compiling" >&6; }
2443
2444 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2445 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2446 if { (ac_try="$ac_link"
2447 case "(($ac_try" in
2448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449   *) ac_try_echo=$ac_try;;
2450 esac
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452   (eval "$ac_link") 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; then
2456   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2457 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2458 # work properly (i.e., refer to `conftest.exe'), while it won't with
2459 # `rm'.
2460 for ac_file in conftest.exe conftest conftest.*; do
2461   test -f "$ac_file" || continue
2462   case $ac_file in
2463     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2464     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2465           break;;
2466     * ) break;;
2467   esac
2468 done
2469 else
2470   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2473 See \`config.log' for more details." >&2;}
2474    { (exit 1); exit 1; }; }
2475 fi
2476
2477 rm -f conftest$ac_cv_exeext
2478 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2479 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2480
2481 rm -f conftest.$ac_ext
2482 EXEEXT=$ac_cv_exeext
2483 ac_exeext=$EXEEXT
2484 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2485 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2486 if test "${ac_cv_objext+set}" = set; then
2487   echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489   cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h.  */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h.  */
2495
2496 int
2497 main ()
2498 {
2499
2500   ;
2501   return 0;
2502 }
2503 _ACEOF
2504 rm -f conftest.o conftest.obj
2505 if { (ac_try="$ac_compile"
2506 case "(($ac_try" in
2507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508   *) ac_try_echo=$ac_try;;
2509 esac
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511   (eval "$ac_compile") 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; then
2515   for ac_file in conftest.o conftest.obj conftest.*; do
2516   test -f "$ac_file" || continue;
2517   case $ac_file in
2518     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2519     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2520        break;;
2521   esac
2522 done
2523 else
2524   echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2526
2527 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&5
2529 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2530 See \`config.log' for more details." >&2;}
2531    { (exit 1); exit 1; }; }
2532 fi
2533
2534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2535 fi
2536 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2537 echo "${ECHO_T}$ac_cv_objext" >&6; }
2538 OBJEXT=$ac_cv_objext
2539 ac_objext=$OBJEXT
2540 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2541 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2542 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2543   echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545   cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h.  */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h.  */
2551
2552 int
2553 main ()
2554 {
2555 #ifndef __GNUC__
2556        choke me
2557 #endif
2558
2559   ;
2560   return 0;
2561 }
2562 _ACEOF
2563 rm -f conftest.$ac_objext
2564 if { (ac_try="$ac_compile"
2565 case "(($ac_try" in
2566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567   *) ac_try_echo=$ac_try;;
2568 esac
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570   (eval "$ac_compile") 2>conftest.er1
2571   ac_status=$?
2572   grep -v '^ *+' conftest.er1 >conftest.err
2573   rm -f conftest.er1
2574   cat conftest.err >&5
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); } && {
2577          test -z "$ac_c_werror_flag" ||
2578          test ! -s conftest.err
2579        } && test -s conftest.$ac_objext; then
2580   ac_compiler_gnu=yes
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585         ac_compiler_gnu=no
2586 fi
2587
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2590
2591 fi
2592 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2593 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2594 GCC=`test $ac_compiler_gnu = yes && echo yes`
2595 ac_test_CFLAGS=${CFLAGS+set}
2596 ac_save_CFLAGS=$CFLAGS
2597 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2598 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_cc_g+set}" = set; then
2600   echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602   ac_save_c_werror_flag=$ac_c_werror_flag
2603    ac_c_werror_flag=yes
2604    ac_cv_prog_cc_g=no
2605    CFLAGS="-g"
2606    cat >conftest.$ac_ext <<_ACEOF
2607 /* confdefs.h.  */
2608 _ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h.  */
2612
2613 int
2614 main ()
2615 {
2616
2617   ;
2618   return 0;
2619 }
2620 _ACEOF
2621 rm -f conftest.$ac_objext
2622 if { (ac_try="$ac_compile"
2623 case "(($ac_try" in
2624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625   *) ac_try_echo=$ac_try;;
2626 esac
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628   (eval "$ac_compile") 2>conftest.er1
2629   ac_status=$?
2630   grep -v '^ *+' conftest.er1 >conftest.err
2631   rm -f conftest.er1
2632   cat conftest.err >&5
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); } && {
2635          test -z "$ac_c_werror_flag" ||
2636          test ! -s conftest.err
2637        } && test -s conftest.$ac_objext; then
2638   ac_cv_prog_cc_g=yes
2639 else
2640   echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643         CFLAGS=""
2644       cat >conftest.$ac_ext <<_ACEOF
2645 /* confdefs.h.  */
2646 _ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h.  */
2650
2651 int
2652 main ()
2653 {
2654
2655   ;
2656   return 0;
2657 }
2658 _ACEOF
2659 rm -f conftest.$ac_objext
2660 if { (ac_try="$ac_compile"
2661 case "(($ac_try" in
2662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663   *) ac_try_echo=$ac_try;;
2664 esac
2665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2666   (eval "$ac_compile") 2>conftest.er1
2667   ac_status=$?
2668   grep -v '^ *+' conftest.er1 >conftest.err
2669   rm -f conftest.er1
2670   cat conftest.err >&5
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); } && {
2673          test -z "$ac_c_werror_flag" ||
2674          test ! -s conftest.err
2675        } && test -s conftest.$ac_objext; then
2676   :
2677 else
2678   echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2680
2681         ac_c_werror_flag=$ac_save_c_werror_flag
2682          CFLAGS="-g"
2683          cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h.  */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h.  */
2689
2690 int
2691 main ()
2692 {
2693
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 rm -f conftest.$ac_objext
2699 if { (ac_try="$ac_compile"
2700 case "(($ac_try" in
2701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702   *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705   (eval "$ac_compile") 2>conftest.er1
2706   ac_status=$?
2707   grep -v '^ *+' conftest.er1 >conftest.err
2708   rm -f conftest.er1
2709   cat conftest.err >&5
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); } && {
2712          test -z "$ac_c_werror_flag" ||
2713          test ! -s conftest.err
2714        } && test -s conftest.$ac_objext; then
2715   ac_cv_prog_cc_g=yes
2716 else
2717   echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720
2721 fi
2722
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 fi
2725
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 fi
2728
2729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730    ac_c_werror_flag=$ac_save_c_werror_flag
2731 fi
2732 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2733 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2734 if test "$ac_test_CFLAGS" = set; then
2735   CFLAGS=$ac_save_CFLAGS
2736 elif test $ac_cv_prog_cc_g = yes; then
2737   if test "$GCC" = yes; then
2738     CFLAGS="-g -O2"
2739   else
2740     CFLAGS="-g"
2741   fi
2742 else
2743   if test "$GCC" = yes; then
2744     CFLAGS="-O2"
2745   else
2746     CFLAGS=
2747   fi
2748 fi
2749 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2750 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2751 if test "${ac_cv_prog_cc_c89+set}" = set; then
2752   echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754   ac_cv_prog_cc_c89=no
2755 ac_save_CC=$CC
2756 cat >conftest.$ac_ext <<_ACEOF
2757 /* confdefs.h.  */
2758 _ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h.  */
2762 #include <stdarg.h>
2763 #include <stdio.h>
2764 #include <sys/types.h>
2765 #include <sys/stat.h>
2766 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2767 struct buf { int x; };
2768 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2769 static char *e (p, i)
2770      char **p;
2771      int i;
2772 {
2773   return p[i];
2774 }
2775 static char *f (char * (*g) (char **, int), char **p, ...)
2776 {
2777   char *s;
2778   va_list v;
2779   va_start (v,p);
2780   s = g (p, va_arg (v,int));
2781   va_end (v);
2782   return s;
2783 }
2784
2785 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2786    function prototypes and stuff, but not '\xHH' hex character constants.
2787    These don't provoke an error unfortunately, instead are silently treated
2788    as 'x'.  The following induces an error, until -std is added to get
2789    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2790    array size at least.  It's necessary to write '\x00'==0 to get something
2791    that's true only with -std.  */
2792 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2793
2794 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2795    inside strings and character constants.  */
2796 #define FOO(x) 'x'
2797 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2798
2799 int test (int i, double x);
2800 struct s1 {int (*f) (int a);};
2801 struct s2 {int (*f) (double a);};
2802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2803 int argc;
2804 char **argv;
2805 int
2806 main ()
2807 {
2808 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2809   ;
2810   return 0;
2811 }
2812 _ACEOF
2813 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2814         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2815 do
2816   CC="$ac_save_CC $ac_arg"
2817   rm -f conftest.$ac_objext
2818 if { (ac_try="$ac_compile"
2819 case "(($ac_try" in
2820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821   *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824   (eval "$ac_compile") 2>conftest.er1
2825   ac_status=$?
2826   grep -v '^ *+' conftest.er1 >conftest.err
2827   rm -f conftest.er1
2828   cat conftest.err >&5
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); } && {
2831          test -z "$ac_c_werror_flag" ||
2832          test ! -s conftest.err
2833        } && test -s conftest.$ac_objext; then
2834   ac_cv_prog_cc_c89=$ac_arg
2835 else
2836   echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839
2840 fi
2841
2842 rm -f core conftest.err conftest.$ac_objext
2843   test "x$ac_cv_prog_cc_c89" != "xno" && break
2844 done
2845 rm -f conftest.$ac_ext
2846 CC=$ac_save_CC
2847
2848 fi
2849 # AC_CACHE_VAL
2850 case "x$ac_cv_prog_cc_c89" in
2851   x)
2852     { echo "$as_me:$LINENO: result: none needed" >&5
2853 echo "${ECHO_T}none needed" >&6; } ;;
2854   xno)
2855     { echo "$as_me:$LINENO: result: unsupported" >&5
2856 echo "${ECHO_T}unsupported" >&6; } ;;
2857   *)
2858     CC="$CC $ac_cv_prog_cc_c89"
2859     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2860 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2861 esac
2862
2863
2864 ac_ext=c
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869
2870
2871
2872 ac_ext=c
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2878 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2879 # On Suns, sometimes $CPP names a directory.
2880 if test -n "$CPP" && test -d "$CPP"; then
2881   CPP=
2882 fi
2883 if test -z "$CPP"; then
2884   if test "${ac_cv_prog_CPP+set}" = set; then
2885   echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887       # Double quotes because CPP needs to be expanded
2888     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2889     do
2890       ac_preproc_ok=false
2891 for ac_c_preproc_warn_flag in '' yes
2892 do
2893   # Use a header file that comes with gcc, so configuring glibc
2894   # with a fresh cross-compiler works.
2895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2896   # <limits.h> exists even on freestanding compilers.
2897   # On the NeXT, cc -E runs the code through the compiler's parser,
2898   # not just through cpp. "Syntax error" is here to catch this case.
2899   cat >conftest.$ac_ext <<_ACEOF
2900 /* confdefs.h.  */
2901 _ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h.  */
2905 #ifdef __STDC__
2906 # include <limits.h>
2907 #else
2908 # include <assert.h>
2909 #endif
2910                      Syntax error
2911 _ACEOF
2912 if { (ac_try="$ac_cpp conftest.$ac_ext"
2913 case "(($ac_try" in
2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915   *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2919   ac_status=$?
2920   grep -v '^ *+' conftest.er1 >conftest.err
2921   rm -f conftest.er1
2922   cat conftest.err >&5
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } >/dev/null && {
2925          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2926          test ! -s conftest.err
2927        }; then
2928   :
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933   # Broken: fails on valid input.
2934 continue
2935 fi
2936
2937 rm -f conftest.err conftest.$ac_ext
2938
2939   # OK, works on sane cases.  Now check whether nonexistent headers
2940   # can be detected and how.
2941   cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h.  */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h.  */
2947 #include <ac_nonexistent.h>
2948 _ACEOF
2949 if { (ac_try="$ac_cpp conftest.$ac_ext"
2950 case "(($ac_try" in
2951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952   *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } >/dev/null && {
2962          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2963          test ! -s conftest.err
2964        }; then
2965   # Broken: success on invalid input.
2966 continue
2967 else
2968   echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971   # Passes both tests.
2972 ac_preproc_ok=:
2973 break
2974 fi
2975
2976 rm -f conftest.err conftest.$ac_ext
2977
2978 done
2979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980 rm -f conftest.err conftest.$ac_ext
2981 if $ac_preproc_ok; then
2982   break
2983 fi
2984
2985     done
2986     ac_cv_prog_CPP=$CPP
2987
2988 fi
2989   CPP=$ac_cv_prog_CPP
2990 else
2991   ac_cv_prog_CPP=$CPP
2992 fi
2993 { echo "$as_me:$LINENO: result: $CPP" >&5
2994 echo "${ECHO_T}$CPP" >&6; }
2995 ac_preproc_ok=false
2996 for ac_c_preproc_warn_flag in '' yes
2997 do
2998   # Use a header file that comes with gcc, so configuring glibc
2999   # with a fresh cross-compiler works.
3000   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001   # <limits.h> exists even on freestanding compilers.
3002   # On the NeXT, cc -E runs the code through the compiler's parser,
3003   # not just through cpp. "Syntax error" is here to catch this case.
3004   cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h.  */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h.  */
3010 #ifdef __STDC__
3011 # include <limits.h>
3012 #else
3013 # include <assert.h>
3014 #endif
3015                      Syntax error
3016 _ACEOF
3017 if { (ac_try="$ac_cpp conftest.$ac_ext"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } >/dev/null && {
3030          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3031          test ! -s conftest.err
3032        }; then
3033   :
3034 else
3035   echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038   # Broken: fails on valid input.
3039 continue
3040 fi
3041
3042 rm -f conftest.err conftest.$ac_ext
3043
3044   # OK, works on sane cases.  Now check whether nonexistent headers
3045   # can be detected and how.
3046   cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h.  */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h.  */
3052 #include <ac_nonexistent.h>
3053 _ACEOF
3054 if { (ac_try="$ac_cpp conftest.$ac_ext"
3055 case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3061   ac_status=$?
3062   grep -v '^ *+' conftest.er1 >conftest.err
3063   rm -f conftest.er1
3064   cat conftest.err >&5
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); } >/dev/null && {
3067          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3068          test ! -s conftest.err
3069        }; then
3070   # Broken: success on invalid input.
3071 continue
3072 else
3073   echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076   # Passes both tests.
3077 ac_preproc_ok=:
3078 break
3079 fi
3080
3081 rm -f conftest.err conftest.$ac_ext
3082
3083 done
3084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3085 rm -f conftest.err conftest.$ac_ext
3086 if $ac_preproc_ok; then
3087   :
3088 else
3089   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." >&5
3091 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&2;}
3093    { (exit 1); exit 1; }; }
3094 fi
3095
3096 ac_ext=c
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101
3102
3103 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3104 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3105 if test "${ac_cv_path_GREP+set}" = set; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108   # Extract the first word of "grep ggrep" to use in msg output
3109 if test -z "$GREP"; then
3110 set dummy grep ggrep; ac_prog_name=$2
3111 if test "${ac_cv_path_GREP+set}" = set; then
3112   echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114   ac_path_GREP_found=false
3115 # Loop through the user's path and test for each of PROGNAME-LIST
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3118 do
3119   IFS=$as_save_IFS
3120   test -z "$as_dir" && as_dir=.
3121   for ac_prog in grep ggrep; do
3122   for ac_exec_ext in '' $ac_executable_extensions; do
3123     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3124     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3125     # Check for GNU ac_path_GREP and select it if it is found.
3126   # Check for GNU $ac_path_GREP
3127 case `"$ac_path_GREP" --version 2>&1` in
3128 *GNU*)
3129   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3130 *)
3131   ac_count=0
3132   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3133   while :
3134   do
3135     cat "conftest.in" "conftest.in" >"conftest.tmp"
3136     mv "conftest.tmp" "conftest.in"
3137     cp "conftest.in" "conftest.nl"
3138     echo 'GREP' >> "conftest.nl"
3139     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3140     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3141     ac_count=`expr $ac_count + 1`
3142     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3143       # Best one so far, save it but keep looking for a better one
3144       ac_cv_path_GREP="$ac_path_GREP"
3145       ac_path_GREP_max=$ac_count
3146     fi
3147     # 10*(2^10) chars as input seems more than enough
3148     test $ac_count -gt 10 && break
3149   done
3150   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3151 esac
3152
3153
3154     $ac_path_GREP_found && break 3
3155   done
3156 done
3157
3158 done
3159 IFS=$as_save_IFS
3160
3161
3162 fi
3163
3164 GREP="$ac_cv_path_GREP"
3165 if test -z "$GREP"; then
3166   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3167 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3168    { (exit 1); exit 1; }; }
3169 fi
3170
3171 else
3172   ac_cv_path_GREP=$GREP
3173 fi
3174
3175
3176 fi
3177 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3178 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3179  GREP="$ac_cv_path_GREP"
3180
3181
3182 { echo "$as_me:$LINENO: checking for egrep" >&5
3183 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3184 if test "${ac_cv_path_EGREP+set}" = set; then
3185   echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3188    then ac_cv_path_EGREP="$GREP -E"
3189    else
3190      # Extract the first word of "egrep" to use in msg output
3191 if test -z "$EGREP"; then
3192 set dummy egrep; ac_prog_name=$2
3193 if test "${ac_cv_path_EGREP+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   ac_path_EGREP_found=false
3197 # Loop through the user's path and test for each of PROGNAME-LIST
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3200 do
3201   IFS=$as_save_IFS
3202   test -z "$as_dir" && as_dir=.
3203   for ac_prog in egrep; do
3204   for ac_exec_ext in '' $ac_executable_extensions; do
3205     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3206     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3207     # Check for GNU ac_path_EGREP and select it if it is found.
3208   # Check for GNU $ac_path_EGREP
3209 case `"$ac_path_EGREP" --version 2>&1` in
3210 *GNU*)
3211   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3212 *)
3213   ac_count=0
3214   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3215   while :
3216   do
3217     cat "conftest.in" "conftest.in" >"conftest.tmp"
3218     mv "conftest.tmp" "conftest.in"
3219     cp "conftest.in" "conftest.nl"
3220     echo 'EGREP' >> "conftest.nl"
3221     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3222     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3223     ac_count=`expr $ac_count + 1`
3224     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3225       # Best one so far, save it but keep looking for a better one
3226       ac_cv_path_EGREP="$ac_path_EGREP"
3227       ac_path_EGREP_max=$ac_count
3228     fi
3229     # 10*(2^10) chars as input seems more than enough
3230     test $ac_count -gt 10 && break
3231   done
3232   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3233 esac
3234
3235
3236     $ac_path_EGREP_found && break 3
3237   done
3238 done
3239
3240 done
3241 IFS=$as_save_IFS
3242
3243
3244 fi
3245
3246 EGREP="$ac_cv_path_EGREP"
3247 if test -z "$EGREP"; then
3248   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3249 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3250    { (exit 1); exit 1; }; }
3251 fi
3252
3253 else
3254   ac_cv_path_EGREP=$EGREP
3255 fi
3256
3257
3258    fi
3259 fi
3260 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3261 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3262  EGREP="$ac_cv_path_EGREP"
3263
3264
3265
3266 { echo "$as_me:$LINENO: checking for AIX" >&5
3267 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3268 cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h.  */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h.  */
3274 #ifdef _AIX
3275   yes
3276 #endif
3277
3278 _ACEOF
3279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3280   $EGREP "yes" >/dev/null 2>&1; then
3281   { echo "$as_me:$LINENO: result: yes" >&5
3282 echo "${ECHO_T}yes" >&6; }
3283 cat >>confdefs.h <<\_ACEOF
3284 #define _ALL_SOURCE 1
3285 _ACEOF
3286
3287 else
3288   { echo "$as_me:$LINENO: result: no" >&5
3289 echo "${ECHO_T}no" >&6; }
3290 fi
3291 rm -f conftest*
3292
3293
3294
3295 if test $ac_cv_c_compiler_gnu = yes; then
3296     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3297 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3298 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301     ac_pattern="Autoconf.*'x'"
3302   cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h.  */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h.  */
3308 #include <sgtty.h>
3309 Autoconf TIOCGETP
3310 _ACEOF
3311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3312   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3313   ac_cv_prog_gcc_traditional=yes
3314 else
3315   ac_cv_prog_gcc_traditional=no
3316 fi
3317 rm -f conftest*
3318
3319
3320   if test $ac_cv_prog_gcc_traditional = no; then
3321     cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h.  */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h.  */
3327 #include <termio.h>
3328 Autoconf TCGETA
3329 _ACEOF
3330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3331   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3332   ac_cv_prog_gcc_traditional=yes
3333 fi
3334 rm -f conftest*
3335
3336   fi
3337 fi
3338 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3339 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3340   if test $ac_cv_prog_gcc_traditional = yes; then
3341     CC="$CC -traditional"
3342   fi
3343 fi
3344
3345 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3346 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3347 if test "${ac_cv_prog_suncc+set}" = set; then
3348   echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350   cat > conftest.c <<EOF
3351 #ifdef __SUNPRO_C
3352   yes;
3353 #endif
3354 EOF
3355 if { ac_try='${CC-cc} -E conftest.c'
3356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357   (eval $ac_try) 2>&5
3358   ac_status=$?
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3361   ac_cv_prog_suncc=yes
3362 else
3363   ac_cv_prog_suncc=no
3364 fi
3365 fi
3366 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3367 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3368 if test -n "$ac_tool_prefix"; then
3369   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3370 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3373 if test "${ac_cv_prog_RANLIB+set}" = set; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376   if test -n "$RANLIB"; then
3377   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382   IFS=$as_save_IFS
3383   test -z "$as_dir" && as_dir=.
3384   for ac_exec_ext in '' $ac_executable_extensions; do
3385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388     break 2
3389   fi
3390 done
3391 done
3392 IFS=$as_save_IFS
3393
3394 fi
3395 fi
3396 RANLIB=$ac_cv_prog_RANLIB
3397 if test -n "$RANLIB"; then
3398   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3399 echo "${ECHO_T}$RANLIB" >&6; }
3400 else
3401   { echo "$as_me:$LINENO: result: no" >&5
3402 echo "${ECHO_T}no" >&6; }
3403 fi
3404
3405
3406 fi
3407 if test -z "$ac_cv_prog_RANLIB"; then
3408   ac_ct_RANLIB=$RANLIB
3409   # Extract the first word of "ranlib", so it can be a program name with args.
3410 set dummy ranlib; ac_word=$2
3411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3413 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3414   echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416   if test -n "$ac_ct_RANLIB"; then
3417   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3421 do
3422   IFS=$as_save_IFS
3423   test -z "$as_dir" && as_dir=.
3424   for ac_exec_ext in '' $ac_executable_extensions; do
3425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426     ac_cv_prog_ac_ct_RANLIB="ranlib"
3427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428     break 2
3429   fi
3430 done
3431 done
3432 IFS=$as_save_IFS
3433
3434 fi
3435 fi
3436 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3437 if test -n "$ac_ct_RANLIB"; then
3438   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3439 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3440 else
3441   { echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6; }
3443 fi
3444
3445   if test "x$ac_ct_RANLIB" = x; then
3446     RANLIB=":"
3447   else
3448     case $cross_compiling:$ac_tool_warned in
3449 yes:)
3450 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3451 whose name does not start with the host triplet.  If you think this
3452 configuration is useful to you, please write to autoconf@gnu.org." >&5
3453 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3454 whose name does not start with the host triplet.  If you think this
3455 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3456 ac_tool_warned=yes ;;
3457 esac
3458     RANLIB=$ac_ct_RANLIB
3459   fi
3460 else
3461   RANLIB="$ac_cv_prog_RANLIB"
3462 fi
3463
3464
3465 abs_top_builddir=`pwd`
3466
3467
3468
3469 PACKAGE=freeradius
3470
3471 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3472 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3473 if test "${ac_cv_header_stdc+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h.  */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h.  */
3482 #include <stdlib.h>
3483 #include <stdarg.h>
3484 #include <string.h>
3485 #include <float.h>
3486
3487 int
3488 main ()
3489 {
3490
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502   (eval "$ac_compile") 2>conftest.er1
3503   ac_status=$?
3504   grep -v '^ *+' conftest.er1 >conftest.err
3505   rm -f conftest.er1
3506   cat conftest.err >&5
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } && {
3509          test -z "$ac_c_werror_flag" ||
3510          test ! -s conftest.err
3511        } && test -s conftest.$ac_objext; then
3512   ac_cv_header_stdc=yes
3513 else
3514   echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517         ac_cv_header_stdc=no
3518 fi
3519
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521
3522 if test $ac_cv_header_stdc = yes; then
3523   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3524   cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h.  */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h.  */
3530 #include <string.h>
3531
3532 _ACEOF
3533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3534   $EGREP "memchr" >/dev/null 2>&1; then
3535   :
3536 else
3537   ac_cv_header_stdc=no
3538 fi
3539 rm -f conftest*
3540
3541 fi
3542
3543 if test $ac_cv_header_stdc = yes; then
3544   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3545   cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h.  */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h.  */
3551 #include <stdlib.h>
3552
3553 _ACEOF
3554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3555   $EGREP "free" >/dev/null 2>&1; then
3556   :
3557 else
3558   ac_cv_header_stdc=no
3559 fi
3560 rm -f conftest*
3561
3562 fi
3563
3564 if test $ac_cv_header_stdc = yes; then
3565   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3566   if test "$cross_compiling" = yes; then
3567   :
3568 else
3569   cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h.  */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h.  */
3575 #include <ctype.h>
3576 #include <stdlib.h>
3577 #if ((' ' & 0x0FF) == 0x020)
3578 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3579 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3580 #else
3581 # define ISLOWER(c) \
3582                    (('a' <= (c) && (c) <= 'i') \
3583                      || ('j' <= (c) && (c) <= 'r') \
3584                      || ('s' <= (c) && (c) <= 'z'))
3585 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3586 #endif
3587
3588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3589 int
3590 main ()
3591 {
3592   int i;
3593   for (i = 0; i < 256; i++)
3594     if (XOR (islower (i), ISLOWER (i))
3595         || toupper (i) != TOUPPER (i))
3596       return 2;
3597   return 0;
3598 }
3599 _ACEOF
3600 rm -f conftest$ac_exeext
3601 if { (ac_try="$ac_link"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_link") 2>&5
3608   ac_status=$?
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3611   { (case "(($ac_try" in
3612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613   *) ac_try_echo=$ac_try;;
3614 esac
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616   (eval "$ac_try") 2>&5
3617   ac_status=$?
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); }; }; then
3620   :
3621 else
3622   echo "$as_me: program exited with status $ac_status" >&5
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626 ( exit $ac_status )
3627 ac_cv_header_stdc=no
3628 fi
3629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3630 fi
3631
3632
3633 fi
3634 fi
3635 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3636 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3637 if test $ac_cv_header_stdc = yes; then
3638
3639 cat >>confdefs.h <<\_ACEOF
3640 #define STDC_HEADERS 1
3641 _ACEOF
3642
3643 fi
3644
3645 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3656                   inttypes.h stdint.h unistd.h
3657 do
3658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3662   echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664   cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h.  */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h.  */
3670 $ac_includes_default
3671
3672 #include <$ac_header>
3673 _ACEOF
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3676 case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681   (eval "$ac_compile") 2>conftest.er1
3682   ac_status=$?
3683   grep -v '^ *+' conftest.er1 >conftest.err
3684   rm -f conftest.er1
3685   cat conftest.err >&5
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); } && {
3688          test -z "$ac_c_werror_flag" ||
3689          test ! -s conftest.err
3690        } && test -s conftest.$ac_objext; then
3691   eval "$as_ac_Header=yes"
3692 else
3693   echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3695
3696         eval "$as_ac_Header=no"
3697 fi
3698
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 fi
3701 ac_res=`eval echo '${'$as_ac_Header'}'`
3702                { echo "$as_me:$LINENO: result: $ac_res" >&5
3703 echo "${ECHO_T}$ac_res" >&6; }
3704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3705   cat >>confdefs.h <<_ACEOF
3706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3707 _ACEOF
3708
3709 fi
3710
3711 done
3712
3713
3714 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3715 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3716 if test "${ac_cv_c_bigendian+set}" = set; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719   # See if sys/param.h defines the BYTE_ORDER macro.
3720 cat >conftest.$ac_ext <<_ACEOF
3721 /* confdefs.h.  */
3722 _ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h.  */
3726 #include <sys/types.h>
3727 #include <sys/param.h>
3728
3729 int
3730 main ()
3731 {
3732 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3733         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3734  bogus endian macros
3735 #endif
3736
3737   ;
3738   return 0;
3739 }
3740 _ACEOF
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3743 case "(($ac_try" in
3744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745   *) ac_try_echo=$ac_try;;
3746 esac
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748   (eval "$ac_compile") 2>conftest.er1
3749   ac_status=$?
3750   grep -v '^ *+' conftest.er1 >conftest.err
3751   rm -f conftest.er1
3752   cat conftest.err >&5
3753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754   (exit $ac_status); } && {
3755          test -z "$ac_c_werror_flag" ||
3756          test ! -s conftest.err
3757        } && test -s conftest.$ac_objext; then
3758   # It does; now see whether it defined to BIG_ENDIAN or not.
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h.  */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h.  */
3765 #include <sys/types.h>
3766 #include <sys/param.h>
3767
3768 int
3769 main ()
3770 {
3771 #if BYTE_ORDER != BIG_ENDIAN
3772  not big endian
3773 #endif
3774
3775   ;
3776   return 0;
3777 }
3778 _ACEOF
3779 rm -f conftest.$ac_objext
3780 if { (ac_try="$ac_compile"
3781 case "(($ac_try" in
3782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783   *) ac_try_echo=$ac_try;;
3784 esac
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786   (eval "$ac_compile") 2>conftest.er1
3787   ac_status=$?
3788   grep -v '^ *+' conftest.er1 >conftest.err
3789   rm -f conftest.er1
3790   cat conftest.err >&5
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); } && {
3793          test -z "$ac_c_werror_flag" ||
3794          test ! -s conftest.err
3795        } && test -s conftest.$ac_objext; then
3796   ac_cv_c_bigendian=yes
3797 else
3798   echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3800
3801         ac_cv_c_bigendian=no
3802 fi
3803
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 else
3806   echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809         # It does not; compile a test program.
3810 if test "$cross_compiling" = yes; then
3811   # try to guess the endianness by grepping values into an object file
3812   ac_cv_c_bigendian=unknown
3813   cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h.  */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h.  */
3819 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3820 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3821 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3822 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3823 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3824 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3825 int
3826 main ()
3827 {
3828  _ascii (); _ebcdic ();
3829   ;
3830   return 0;
3831 }
3832 _ACEOF
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3835 case "(($ac_try" in
3836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837   *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840   (eval "$ac_compile") 2>conftest.er1
3841   ac_status=$?
3842   grep -v '^ *+' conftest.er1 >conftest.err
3843   rm -f conftest.er1
3844   cat conftest.err >&5
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); } && {
3847          test -z "$ac_c_werror_flag" ||
3848          test ! -s conftest.err
3849        } && test -s conftest.$ac_objext; then
3850   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3851   ac_cv_c_bigendian=yes
3852 fi
3853 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3854   if test "$ac_cv_c_bigendian" = unknown; then
3855     ac_cv_c_bigendian=no
3856   else
3857     # finding both strings is unlikely to happen, but who knows?
3858     ac_cv_c_bigendian=unknown
3859   fi
3860 fi
3861 else
3862   echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865
3866 fi
3867
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 else
3870   cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h.  */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h.  */
3876 $ac_includes_default
3877 int
3878 main ()
3879 {
3880
3881   /* Are we little or big endian?  From Harbison&Steele.  */
3882   union
3883   {
3884     long int l;
3885     char c[sizeof (long int)];
3886   } u;
3887   u.l = 1;
3888   return u.c[sizeof (long int) - 1] == 1;
3889
3890   ;
3891   return 0;
3892 }
3893 _ACEOF
3894 rm -f conftest$ac_exeext
3895 if { (ac_try="$ac_link"
3896 case "(($ac_try" in
3897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898   *) ac_try_echo=$ac_try;;
3899 esac
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901   (eval "$ac_link") 2>&5
3902   ac_status=$?
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3905   { (case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910   (eval "$ac_try") 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); }; }; then
3914   ac_cv_c_bigendian=no
3915 else
3916   echo "$as_me: program exited with status $ac_status" >&5
3917 echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3919
3920 ( exit $ac_status )
3921 ac_cv_c_bigendian=yes
3922 fi
3923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3924 fi
3925
3926
3927 fi
3928
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 fi
3931 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3932 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3933 case $ac_cv_c_bigendian in
3934   yes)
3935
3936 cat >>confdefs.h <<\_ACEOF
3937 #define WORDS_BIGENDIAN 1
3938 _ACEOF
3939  ;;
3940   no)
3941      ;;
3942   *)
3943     { { echo "$as_me:$LINENO: error: unknown endianness
3944 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3945 echo "$as_me: error: unknown endianness
3946 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3947    { (exit 1); exit 1; }; } ;;
3948 esac
3949
3950
3951 # Extract the first word of "gmake", so it can be a program name with args.
3952 set dummy gmake; ac_word=$2
3953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3955 if test "${ac_cv_prog_GMAKE+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   if test -n "$GMAKE"; then
3959   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for ac_exec_ext in '' $ac_executable_extensions; do
3967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968     ac_cv_prog_GMAKE="yes"
3969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973 done
3974 IFS=$as_save_IFS
3975
3976   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3977 fi
3978 fi
3979 GMAKE=$ac_cv_prog_GMAKE
3980 if test -n "$GMAKE"; then
3981   { echo "$as_me:$LINENO: result: $GMAKE" >&5
3982 echo "${ECHO_T}$GMAKE" >&6; }
3983 else
3984   { echo "$as_me:$LINENO: result: no" >&5
3985 echo "${ECHO_T}no" >&6; }
3986 fi
3987
3988
3989 if test $GMAKE = no; then
3990   # Extract the first word of "make", so it can be a program name with args.
3991 set dummy make; ac_word=$2
3992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3994 if test "${ac_cv_path_MAKE+set}" = set; then
3995   echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997   case $MAKE in
3998   [\\/]* | ?:[\\/]*)
3999   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4000   ;;
4001   *)
4002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005   IFS=$as_save_IFS
4006   test -z "$as_dir" && as_dir=.
4007   for ac_exec_ext in '' $ac_executable_extensions; do
4008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011     break 2
4012   fi
4013 done
4014 done
4015 IFS=$as_save_IFS
4016
4017   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4018   ;;
4019 esac
4020 fi
4021 MAKE=$ac_cv_path_MAKE
4022 if test -n "$MAKE"; then
4023   { echo "$as_me:$LINENO: result: $MAKE" >&5
4024 echo "${ECHO_T}$MAKE" >&6; }
4025 else
4026   { echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6; }
4028 fi
4029
4030
4031 else
4032   # Extract the first word of "gmake", so it can be a program name with args.
4033 set dummy gmake; ac_word=$2
4034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4036 if test "${ac_cv_path_MAKE+set}" = set; then
4037   echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039   case $MAKE in
4040   [\\/]* | ?:[\\/]*)
4041   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4042   ;;
4043   *)
4044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047   IFS=$as_save_IFS
4048   test -z "$as_dir" && as_dir=.
4049   for ac_exec_ext in '' $ac_executable_extensions; do
4050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4053     break 2
4054   fi
4055 done
4056 done
4057 IFS=$as_save_IFS
4058
4059   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4060   ;;
4061 esac
4062 fi
4063 MAKE=$ac_cv_path_MAKE
4064 if test -n "$MAKE"; then
4065   { echo "$as_me:$LINENO: result: $MAKE" >&5
4066 echo "${ECHO_T}$MAKE" >&6; }
4067 else
4068   { echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6; }
4070 fi
4071
4072
4073 fi
4074 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4075 if test -z "$makever"; then
4076   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4077                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4078 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4079                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4080    { (exit 1); exit 1; }; }
4081 fi
4082
4083   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4084 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4085 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   ac_check_lib_save_LIBS=$LIBS
4089 LIBS="-lltdl  $LIBS"
4090 cat >conftest.$ac_ext <<_ACEOF
4091 /* confdefs.h.  */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h.  */
4096
4097 /* Override any GCC internal prototype to avoid an error.
4098    Use char because int might match the return type of a GCC
4099    builtin and then its argument prototype would still apply.  */
4100 #ifdef __cplusplus
4101 extern "C"
4102 #endif
4103 char lt_dlinit ();
4104 int
4105 main ()
4106 {
4107 return lt_dlinit ();
4108   ;
4109   return 0;
4110 }
4111 _ACEOF
4112 rm -f conftest.$ac_objext conftest$ac_exeext
4113 if { (ac_try="$ac_link"
4114 case "(($ac_try" in
4115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116   *) ac_try_echo=$ac_try;;
4117 esac
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119   (eval "$ac_link") 2>conftest.er1
4120   ac_status=$?
4121   grep -v '^ *+' conftest.er1 >conftest.err
4122   rm -f conftest.er1
4123   cat conftest.err >&5
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); } && {
4126          test -z "$ac_c_werror_flag" ||
4127          test ! -s conftest.err
4128        } && test -s conftest$ac_exeext &&
4129        $as_test_x conftest$ac_exeext; then
4130   ac_cv_lib_ltdl_lt_dlinit=yes
4131 else
4132   echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135         ac_cv_lib_ltdl_lt_dlinit=no
4136 fi
4137
4138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4139       conftest$ac_exeext conftest.$ac_ext
4140 LIBS=$ac_check_lib_save_LIBS
4141 fi
4142 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4143 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4144 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4145   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4146 else
4147   if test x"$enable_ltdl_install" = xno; then
4148      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4149 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4150    else
4151      enable_ltdl_install=yes
4152    fi
4153
4154 fi
4155
4156   if test x"$enable_ltdl_install" = x"yes"; then
4157     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4158     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4159     LTDLINCL='-I${top_srcdir}/''libltdl'
4160   else
4161     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4162     LIBLTDL="-lltdl"
4163     LTDLINCL=
4164   fi
4165   # For backwards non-gettext consistent compatibility...
4166   INCLTDL="$LTDLINCL"
4167
4168
4169 if test x"$enable_ltdl_install" = x"yes"; then
4170   LTDL_SUBDIRS=libltdl
4171 fi
4172
4173
4174 # Check whether --enable-shared was given.
4175 if test "${enable_shared+set}" = set; then
4176   enableval=$enable_shared; p=${PACKAGE-default}
4177     case $enableval in
4178     yes) enable_shared=yes ;;
4179     no) enable_shared=no ;;
4180     *)
4181       enable_shared=no
4182       # Look at the argument we got.  We use all the common list separators.
4183       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4184       for pkg in $enableval; do
4185         IFS="$lt_save_ifs"
4186         if test "X$pkg" = "X$p"; then
4187           enable_shared=yes
4188         fi
4189       done
4190       IFS="$lt_save_ifs"
4191       ;;
4192     esac
4193 else
4194   enable_shared=yes
4195 fi
4196
4197
4198 # Check whether --enable-static was given.
4199 if test "${enable_static+set}" = set; then
4200   enableval=$enable_static; p=${PACKAGE-default}
4201     case $enableval in
4202     yes) enable_static=yes ;;
4203     no) enable_static=no ;;
4204     *)
4205      enable_static=no
4206       # Look at the argument we got.  We use all the common list separators.
4207       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4208       for pkg in $enableval; do
4209         IFS="$lt_save_ifs"
4210         if test "X$pkg" = "X$p"; then
4211           enable_static=yes
4212         fi
4213       done
4214       IFS="$lt_save_ifs"
4215       ;;
4216     esac
4217 else
4218   enable_static=yes
4219 fi
4220
4221
4222 # Check whether --enable-fast-install was given.
4223 if test "${enable_fast_install+set}" = set; then
4224   enableval=$enable_fast_install; p=${PACKAGE-default}
4225     case $enableval in
4226     yes) enable_fast_install=yes ;;
4227     no) enable_fast_install=no ;;
4228     *)
4229       enable_fast_install=no
4230       # Look at the argument we got.  We use all the common list separators.
4231       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4232       for pkg in $enableval; do
4233         IFS="$lt_save_ifs"
4234         if test "X$pkg" = "X$p"; then
4235           enable_fast_install=yes
4236         fi
4237       done
4238       IFS="$lt_save_ifs"
4239       ;;
4240     esac
4241 else
4242   enable_fast_install=yes
4243 fi
4244
4245
4246 ac_aux_dir=
4247 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4248   if test -f "$ac_dir/install-sh"; then
4249     ac_aux_dir=$ac_dir
4250     ac_install_sh="$ac_aux_dir/install-sh -c"
4251     break
4252   elif test -f "$ac_dir/install.sh"; then
4253     ac_aux_dir=$ac_dir
4254     ac_install_sh="$ac_aux_dir/install.sh -c"
4255     break
4256   elif test -f "$ac_dir/shtool"; then
4257     ac_aux_dir=$ac_dir
4258     ac_install_sh="$ac_aux_dir/shtool install -c"
4259     break
4260   fi
4261 done
4262 if test -z "$ac_aux_dir"; then
4263   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4264 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4265    { (exit 1); exit 1; }; }
4266 fi
4267
4268 # These three variables are undocumented and unsupported,
4269 # and are intended to be withdrawn in a future Autoconf release.
4270 # They can cause serious problems if a builder's source tree is in a directory
4271 # whose full name contains unusual characters.
4272 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4273 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4274 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4275
4276
4277 # Make sure we can run config.sub.
4278 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4279   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4280 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4281    { (exit 1); exit 1; }; }
4282
4283 { echo "$as_me:$LINENO: checking build system type" >&5
4284 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4285 if test "${ac_cv_build+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   ac_build_alias=$build_alias
4289 test "x$ac_build_alias" = x &&
4290   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4291 test "x$ac_build_alias" = x &&
4292   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4293 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4294    { (exit 1); exit 1; }; }
4295 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4296   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4298    { (exit 1); exit 1; }; }
4299
4300 fi
4301 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4302 echo "${ECHO_T}$ac_cv_build" >&6; }
4303 case $ac_cv_build in
4304 *-*-*) ;;
4305 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4306 echo "$as_me: error: invalid value of canonical build" >&2;}
4307    { (exit 1); exit 1; }; };;
4308 esac
4309 build=$ac_cv_build
4310 ac_save_IFS=$IFS; IFS='-'
4311 set x $ac_cv_build
4312 shift
4313 build_cpu=$1
4314 build_vendor=$2
4315 shift; shift
4316 # Remember, the first character of IFS is used to create $*,
4317 # except with old shells:
4318 build_os=$*
4319 IFS=$ac_save_IFS
4320 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4321
4322
4323 { echo "$as_me:$LINENO: checking host system type" >&5
4324 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4325 if test "${ac_cv_host+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   if test "x$host_alias" = x; then
4329   ac_cv_host=$ac_cv_build
4330 else
4331   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4332     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4333 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4334    { (exit 1); exit 1; }; }
4335 fi
4336
4337 fi
4338 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4339 echo "${ECHO_T}$ac_cv_host" >&6; }
4340 case $ac_cv_host in
4341 *-*-*) ;;
4342 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4343 echo "$as_me: error: invalid value of canonical host" >&2;}
4344    { (exit 1); exit 1; }; };;
4345 esac
4346 host=$ac_cv_host
4347 ac_save_IFS=$IFS; IFS='-'
4348 set x $ac_cv_host
4349 shift
4350 host_cpu=$1
4351 host_vendor=$2
4352 shift; shift
4353 # Remember, the first character of IFS is used to create $*,
4354 # except with old shells:
4355 host_os=$*
4356 IFS=$ac_save_IFS
4357 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4358
4359
4360 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4361 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4362 if test "${lt_cv_path_SED+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   # Loop through the user's path and test for sed and gsed.
4366 # Then use that list of sed's as ones to test for truncation.
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370   IFS=$as_save_IFS
4371   test -z "$as_dir" && as_dir=.
4372   for lt_ac_prog in sed gsed; do
4373     for ac_exec_ext in '' $ac_executable_extensions; do
4374       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4375         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4376       fi
4377     done
4378   done
4379 done
4380 lt_ac_max=0
4381 lt_ac_count=0
4382 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4383 # along with /bin/sed that truncates output.
4384 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4385   test ! -f $lt_ac_sed && continue
4386   cat /dev/null > conftest.in
4387   lt_ac_count=0
4388   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4389   # Check for GNU sed and select it if it is found.
4390   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4391     lt_cv_path_SED=$lt_ac_sed
4392     break
4393   fi
4394   while true; do
4395     cat conftest.in conftest.in >conftest.tmp
4396     mv conftest.tmp conftest.in
4397     cp conftest.in conftest.nl
4398     echo >>conftest.nl
4399     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4400     cmp -s conftest.out conftest.nl || break
4401     # 10000 chars as input seems more than enough
4402     test $lt_ac_count -gt 10 && break
4403     lt_ac_count=`expr $lt_ac_count + 1`
4404     if test $lt_ac_count -gt $lt_ac_max; then
4405       lt_ac_max=$lt_ac_count
4406       lt_cv_path_SED=$lt_ac_sed
4407     fi
4408   done
4409 done
4410
4411 fi
4412
4413 SED=$lt_cv_path_SED
4414 { echo "$as_me:$LINENO: result: $SED" >&5
4415 echo "${ECHO_T}$SED" >&6; }
4416
4417
4418 # Check whether --with-gnu-ld was given.
4419 if test "${with_gnu_ld+set}" = set; then
4420   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4421 else
4422   with_gnu_ld=no
4423 fi
4424
4425 ac_prog=ld
4426 if test "$GCC" = yes; then
4427   # Check if gcc -print-prog-name=ld gives a path.
4428   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4429 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4430   case $host in
4431   *-*-mingw*)
4432     # gcc leaves a trailing carriage return which upsets mingw
4433     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4434   *)
4435     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4436   esac
4437   case $ac_prog in
4438     # Accept absolute paths.
4439     [\\/]* | ?:[\\/]*)
4440       re_direlt='/[^/][^/]*/\.\./'
4441       # Canonicalize the pathname of ld
4442       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4443       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4444         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4445       done
4446       test -z "$LD" && LD="$ac_prog"
4447       ;;
4448   "")
4449     # If it fails, then pretend we aren't using GCC.
4450     ac_prog=ld
4451     ;;
4452   *)
4453     # If it is relative, then search for the first ld in PATH.
4454     with_gnu_ld=unknown
4455     ;;
4456   esac
4457 elif test "$with_gnu_ld" = yes; then
4458   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4459 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4460 else
4461   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4462 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4463 fi
4464 if test "${lt_cv_path_LD+set}" = set; then
4465   echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467   if test -z "$LD"; then
4468   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4469   for ac_dir in $PATH; do
4470     IFS="$lt_save_ifs"
4471     test -z "$ac_dir" && ac_dir=.
4472     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4473       lt_cv_path_LD="$ac_dir/$ac_prog"
4474       # Check to see if the program is GNU ld.  I'd rather use --version,
4475       # but apparently some variants of GNU ld only accept -v.
4476       # Break only if it was the GNU/non-GNU ld that we prefer.
4477       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4478       *GNU* | *'with BFD'*)
4479         test "$with_gnu_ld" != no && break
4480         ;;
4481       *)
4482         test "$with_gnu_ld" != yes && break
4483         ;;
4484       esac
4485     fi
4486   done
4487   IFS="$lt_save_ifs"
4488 else
4489   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4490 fi
4491 fi
4492
4493 LD="$lt_cv_path_LD"
4494 if test -n "$LD"; then
4495   { echo "$as_me:$LINENO: result: $LD" >&5
4496 echo "${ECHO_T}$LD" >&6; }
4497 else
4498   { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4500 fi
4501 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4502 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4503    { (exit 1); exit 1; }; }
4504 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4505 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4506 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4507   echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4510 case `$LD -v 2>&1 </dev/null` in
4511 *GNU* | *'with BFD'*)
4512   lt_cv_prog_gnu_ld=yes
4513   ;;
4514 *)
4515   lt_cv_prog_gnu_ld=no
4516   ;;
4517 esac
4518 fi
4519 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4520 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4521 with_gnu_ld=$lt_cv_prog_gnu_ld
4522
4523
4524 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4525 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4526 if test "${lt_cv_ld_reload_flag+set}" = set; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   lt_cv_ld_reload_flag='-r'
4530 fi
4531 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4532 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4533 reload_flag=$lt_cv_ld_reload_flag
4534 case $reload_flag in
4535 "" | " "*) ;;
4536 *) reload_flag=" $reload_flag" ;;
4537 esac
4538 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4539 case $host_os in
4540   darwin*)
4541     if test "$GCC" = yes; then
4542       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4543     else
4544       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4545     fi
4546     ;;
4547 esac
4548
4549 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4550 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4551 if test "${lt_cv_path_NM+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   if test -n "$NM"; then
4555   # Let the user override the test.
4556   lt_cv_path_NM="$NM"
4557 else
4558   lt_nm_to_check="${ac_tool_prefix}nm"
4559   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4560     lt_nm_to_check="$lt_nm_to_check nm"
4561   fi
4562   for lt_tmp_nm in $lt_nm_to_check; do
4563     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4564     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4565       IFS="$lt_save_ifs"
4566       test -z "$ac_dir" && ac_dir=.
4567       tmp_nm="$ac_dir/$lt_tmp_nm"
4568       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4569         # Check to see if the nm accepts a BSD-compat flag.
4570         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4571         #   nm: unknown option "B" ignored
4572         # Tru64's nm complains that /dev/null is an invalid object file
4573         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4574         */dev/null* | *'Invalid file or object type'*)
4575           lt_cv_path_NM="$tmp_nm -B"
4576           break
4577           ;;
4578         *)
4579           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4580           */dev/null*)
4581             lt_cv_path_NM="$tmp_nm -p"
4582             break
4583             ;;
4584           *)
4585             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4586             continue # so that we can try to find one that supports BSD flags
4587             ;;
4588           esac
4589           ;;
4590         esac
4591       fi
4592     done
4593     IFS="$lt_save_ifs"
4594   done
4595   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4596 fi
4597 fi
4598 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4599 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4600 NM="$lt_cv_path_NM"
4601
4602 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4603 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4604 LN_S=$as_ln_s
4605 if test "$LN_S" = "ln -s"; then
4606   { echo "$as_me:$LINENO: result: yes" >&5
4607 echo "${ECHO_T}yes" >&6; }
4608 else
4609   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4610 echo "${ECHO_T}no, using $LN_S" >&6; }
4611 fi
4612
4613 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4614 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4615 if test "${lt_cv_deplibs_check_method+set}" = set; then
4616   echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618   lt_cv_file_magic_cmd='$MAGIC_CMD'
4619 lt_cv_file_magic_test_file=
4620 lt_cv_deplibs_check_method='unknown'
4621 # Need to set the preceding variable on all platforms that support
4622 # interlibrary dependencies.
4623 # 'none' -- dependencies not supported.
4624 # `unknown' -- same as none, but documents that we really don't know.
4625 # 'pass_all' -- all dependencies passed with no checks.
4626 # 'test_compile' -- check by making test program.
4627 # 'file_magic [[regex]]' -- check by looking for files in library path
4628 # which responds to the $file_magic_cmd with a given extended regex.
4629 # If you have `file' or equivalent on your system and you're not sure
4630 # whether `pass_all' will *always* work, you probably want this one.
4631
4632 case $host_os in
4633 aix4* | aix5*)
4634   lt_cv_deplibs_check_method=pass_all
4635   ;;
4636
4637 beos*)
4638   lt_cv_deplibs_check_method=pass_all
4639   ;;
4640
4641 bsdi[45]*)
4642   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4643   lt_cv_file_magic_cmd='/usr/bin/file -L'
4644   lt_cv_file_magic_test_file=/shlib/libc.so
4645   ;;
4646
4647 cygwin*)
4648   # func_win32_libid is a shell function defined in ltmain.sh
4649   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4650   lt_cv_file_magic_cmd='func_win32_libid'
4651   ;;
4652
4653 mingw* | pw32*)
4654   # Base MSYS/MinGW do not provide the 'file' command needed by
4655   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4656   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4657   lt_cv_file_magic_cmd='$OBJDUMP -f'
4658   ;;
4659
4660 darwin* | rhapsody*)
4661   lt_cv_deplibs_check_method=pass_all
4662   ;;
4663
4664 freebsd* | kfreebsd*-gnu | dragonfly*)
4665   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4666     case $host_cpu in
4667     i*86 )
4668       # Not sure whether the presence of OpenBSD here was a mistake.
4669       # Let's accept both of them until this is cleared up.
4670       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4671       lt_cv_file_magic_cmd=/usr/bin/file
4672       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4673       ;;
4674     esac
4675   else
4676     lt_cv_deplibs_check_method=pass_all
4677   fi
4678   ;;
4679
4680 gnu*)
4681   lt_cv_deplibs_check_method=pass_all
4682   ;;
4683
4684 hpux10.20* | hpux11*)
4685   lt_cv_file_magic_cmd=/usr/bin/file
4686   case $host_cpu in
4687   ia64*)
4688     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4689     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4690     ;;
4691   hppa*64*)
4692     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]'
4693     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4694     ;;
4695   *)
4696     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4697     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4698     ;;
4699   esac
4700   ;;
4701
4702 interix3*)
4703   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4704   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4705   ;;
4706
4707 irix5* | irix6* | nonstopux*)
4708   case $LD in
4709   *-32|*"-32 ") libmagic=32-bit;;
4710   *-n32|*"-n32 ") libmagic=N32;;
4711   *-64|*"-64 ") libmagic=64-bit;;
4712   *) libmagic=never-match;;
4713   esac
4714   lt_cv_deplibs_check_method=pass_all
4715   ;;
4716
4717 # This must be Linux ELF.
4718 linux*)
4719   lt_cv_deplibs_check_method=pass_all
4720   ;;
4721
4722 netbsd*)
4723   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4724     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4725   else
4726     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4727   fi
4728   ;;
4729
4730 newos6*)
4731   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4732   lt_cv_file_magic_cmd=/usr/bin/file
4733   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4734   ;;
4735
4736 nto-qnx*)
4737   lt_cv_deplibs_check_method=unknown
4738   ;;
4739
4740 openbsd*)
4741   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4742     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4743   else
4744     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4745   fi
4746   ;;
4747
4748 osf3* | osf4* | osf5*)
4749   lt_cv_deplibs_check_method=pass_all
4750   ;;
4751
4752 solaris*)
4753   lt_cv_deplibs_check_method=pass_all
4754   ;;
4755
4756 sysv4 | sysv4.3*)
4757   case $host_vendor in
4758   motorola)
4759     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]'
4760     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4761     ;;
4762   ncr)
4763     lt_cv_deplibs_check_method=pass_all
4764     ;;
4765   sequent)
4766     lt_cv_file_magic_cmd='/bin/file'
4767     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4768     ;;
4769   sni)
4770     lt_cv_file_magic_cmd='/bin/file'
4771     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4772     lt_cv_file_magic_test_file=/lib/libc.so
4773     ;;
4774   siemens)
4775     lt_cv_deplibs_check_method=pass_all
4776     ;;
4777   pc)
4778     lt_cv_deplibs_check_method=pass_all
4779     ;;
4780   esac
4781   ;;
4782
4783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4784   lt_cv_deplibs_check_method=pass_all
4785   ;;
4786 esac
4787
4788 fi
4789 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4790 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4791 file_magic_cmd=$lt_cv_file_magic_cmd
4792 deplibs_check_method=$lt_cv_deplibs_check_method
4793 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4794
4795
4796
4797
4798 # If no C compiler was specified, use CC.
4799 LTCC=${LTCC-"$CC"}
4800
4801 # If no C compiler flags were specified, use CFLAGS.
4802 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4803
4804 # Allow CC to be a program name with arguments.
4805 compiler=$CC
4806
4807 # Check whether --enable-libtool-lock was given.
4808 if test "${enable_libtool_lock+set}" = set; then
4809   enableval=$enable_libtool_lock;
4810 fi
4811
4812 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4813
4814 # Some flags need to be propagated to the compiler or linker for good
4815 # libtool support.
4816 case $host in
4817 ia64-*-hpux*)
4818   # Find out which ABI we are using.
4819   echo 'int i;' > conftest.$ac_ext
4820   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821   (eval $ac_compile) 2>&5
4822   ac_status=$?
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); }; then
4825     case `/usr/bin/file conftest.$ac_objext` in
4826     *ELF-32*)
4827       HPUX_IA64_MODE="32"
4828       ;;
4829     *ELF-64*)
4830       HPUX_IA64_MODE="64"
4831       ;;
4832     esac
4833   fi
4834   rm -rf conftest*
4835   ;;
4836 *-*-irix6*)
4837   # Find out which ABI we are using.
4838   echo '#line 4838 "configure"' > conftest.$ac_ext
4839   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4840   (eval $ac_compile) 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); }; then
4844    if test "$lt_cv_prog_gnu_ld" = yes; then
4845     case `/usr/bin/file conftest.$ac_objext` in
4846     *32-bit*)
4847       LD="${LD-ld} -melf32bsmip"
4848       ;;
4849     *N32*)
4850       LD="${LD-ld} -melf32bmipn32"
4851       ;;
4852     *64-bit*)
4853       LD="${LD-ld} -melf64bmip"
4854       ;;
4855     esac
4856    else
4857     case `/usr/bin/file conftest.$ac_objext` in
4858     *32-bit*)
4859       LD="${LD-ld} -32"
4860       ;;
4861     *N32*)
4862       LD="${LD-ld} -n32"
4863       ;;
4864     *64-bit*)
4865       LD="${LD-ld} -64"
4866       ;;
4867     esac
4868    fi
4869   fi
4870   rm -rf conftest*
4871   ;;
4872
4873 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4874   # Find out which ABI we are using.
4875   echo 'int i;' > conftest.$ac_ext
4876   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877   (eval $ac_compile) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; then
4881     case `/usr/bin/file conftest.o` in
4882     *32-bit*)
4883       case $host in
4884         x86_64-*linux*)
4885           LD="${LD-ld} -m elf_i386"
4886           ;;
4887         ppc64-*linux*|powerpc64-*linux*)
4888           LD="${LD-ld} -m elf32ppclinux"
4889           ;;
4890         s390x-*linux*)
4891           LD="${LD-ld} -m elf_s390"
4892           ;;
4893         sparc64-*linux*)
4894           LD="${LD-ld} -m elf32_sparc"
4895           ;;
4896       esac
4897       ;;
4898     *64-bit*)
4899       case $host in
4900         x86_64-*linux*)
4901           LD="${LD-ld} -m elf_x86_64"
4902           ;;
4903         ppc*-*linux*|powerpc*-*linux*)
4904           LD="${LD-ld} -m elf64ppc"
4905           ;;
4906         s390*-*linux*)
4907           LD="${LD-ld} -m elf64_s390"
4908           ;;
4909         sparc*-*linux*)
4910           LD="${LD-ld} -m elf64_sparc"
4911           ;;
4912       esac
4913       ;;
4914     esac
4915   fi
4916   rm -rf conftest*
4917   ;;
4918
4919 *-*-sco3.2v5*)
4920   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4921   SAVE_CFLAGS="$CFLAGS"
4922   CFLAGS="$CFLAGS -belf"
4923   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4924 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4925 if test "${lt_cv_cc_needs_belf+set}" = set; then
4926   echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928   ac_ext=c
4929 ac_cpp='$CPP $CPPFLAGS'
4930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933
4934      cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h.  */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h.  */
4940
4941 int
4942 main ()
4943 {
4944
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 rm -f conftest.$ac_objext conftest$ac_exeext
4950 if { (ac_try="$ac_link"
4951 case "(($ac_try" in
4952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953   *) ac_try_echo=$ac_try;;
4954 esac
4955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4956   (eval "$ac_link") 2>conftest.er1
4957   ac_status=$?
4958   grep -v '^ *+' conftest.er1 >conftest.err
4959   rm -f conftest.er1
4960   cat conftest.err >&5
4961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962   (exit $ac_status); } && {
4963          test -z "$ac_c_werror_flag" ||
4964          test ! -s conftest.err
4965        } && test -s conftest$ac_exeext &&
4966        $as_test_x conftest$ac_exeext; then
4967   lt_cv_cc_needs_belf=yes
4968 else
4969   echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4971
4972         lt_cv_cc_needs_belf=no
4973 fi
4974
4975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4976       conftest$ac_exeext conftest.$ac_ext
4977      ac_ext=c
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982
4983 fi
4984 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4985 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4986   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4987     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4988     CFLAGS="$SAVE_CFLAGS"
4989   fi
4990   ;;
4991 sparc*-*solaris*)
4992   # Find out which ABI we are using.
4993   echo 'int i;' > conftest.$ac_ext
4994   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995   (eval $ac_compile) 2>&5
4996   ac_status=$?
4997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); }; then
4999     case `/usr/bin/file conftest.o` in
5000     *64-bit*)
5001       case $lt_cv_prog_gnu_ld in
5002       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5003       *)    LD="${LD-ld} -64" ;;
5004       esac
5005       ;;
5006     esac
5007   fi
5008   rm -rf conftest*
5009   ;;
5010
5011
5012 esac
5013
5014 need_locks="$enable_libtool_lock"
5015
5016
5017
5018 for ac_header in dlfcn.h
5019 do
5020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5022   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 fi
5027 ac_res=`eval echo '${'$as_ac_Header'}'`
5028                { echo "$as_me:$LINENO: result: $ac_res" >&5
5029 echo "${ECHO_T}$ac_res" >&6; }
5030 else
5031   # Is the header compilable?
5032 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h.  */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h.  */
5040 $ac_includes_default
5041 #include <$ac_header>
5042 _ACEOF
5043 rm -f conftest.$ac_objext
5044 if { (ac_try="$ac_compile"
5045 case "(($ac_try" in
5046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047   *) ac_try_echo=$ac_try;;
5048 esac
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050   (eval "$ac_compile") 2>conftest.er1
5051   ac_status=$?
5052   grep -v '^ *+' conftest.er1 >conftest.err
5053   rm -f conftest.er1
5054   cat conftest.err >&5
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); } && {
5057          test -z "$ac_c_werror_flag" ||
5058          test ! -s conftest.err
5059        } && test -s conftest.$ac_objext; then
5060   ac_header_compiler=yes
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065         ac_header_compiler=no
5066 fi
5067
5068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5070 echo "${ECHO_T}$ac_header_compiler" >&6; }
5071
5072 # Is the header present?
5073 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5075 cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h.  */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h.  */
5081 #include <$ac_header>
5082 _ACEOF
5083 if { (ac_try="$ac_cpp conftest.$ac_ext"
5084 case "(($ac_try" in
5085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086   *) ac_try_echo=$ac_try;;
5087 esac
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5090   ac_status=$?
5091   grep -v '^ *+' conftest.er1 >conftest.err
5092   rm -f conftest.er1
5093   cat conftest.err >&5
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); } >/dev/null && {
5096          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5097          test ! -s conftest.err
5098        }; then
5099   ac_header_preproc=yes
5100 else
5101   echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104   ac_header_preproc=no
5105 fi
5106
5107 rm -f conftest.err conftest.$ac_ext
5108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5109 echo "${ECHO_T}$ac_header_preproc" >&6; }
5110
5111 # So?  What about this header?
5112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5113   yes:no: )
5114     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5116     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5118     ac_header_preproc=yes
5119     ;;
5120   no:yes:* )
5121     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5123     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5124 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5125     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5127     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5128 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5131     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5133
5134     ;;
5135 esac
5136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5139   echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141   eval "$as_ac_Header=\$ac_header_preproc"
5142 fi
5143 ac_res=`eval echo '${'$as_ac_Header'}'`
5144                { echo "$as_me:$LINENO: result: $ac_res" >&5
5145 echo "${ECHO_T}$ac_res" >&6; }
5146
5147 fi
5148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5149   cat >>confdefs.h <<_ACEOF
5150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5151 _ACEOF
5152
5153 fi
5154
5155 done
5156
5157 ac_ext=cpp
5158 ac_cpp='$CXXCPP $CPPFLAGS'
5159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5162 if test -z "$CXX"; then
5163   if test -n "$CCC"; then
5164     CXX=$CCC
5165   else
5166     if test -n "$ac_tool_prefix"; then
5167   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5168   do
5169     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5173 if test "${ac_cv_prog_CXX+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   if test -n "$CXX"; then
5177   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182   IFS=$as_save_IFS
5183   test -z "$as_dir" && as_dir=.
5184   for ac_exec_ext in '' $ac_executable_extensions; do
5185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188     break 2
5189   fi
5190 done
5191 done
5192 IFS=$as_save_IFS
5193
5194 fi
5195 fi
5196 CXX=$ac_cv_prog_CXX
5197 if test -n "$CXX"; then
5198   { echo "$as_me:$LINENO: result: $CXX" >&5
5199 echo "${ECHO_T}$CXX" >&6; }
5200 else
5201   { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5203 fi
5204
5205
5206     test -n "$CXX" && break
5207   done
5208 fi
5209 if test -z "$CXX"; then
5210   ac_ct_CXX=$CXX
5211   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5212 do
5213   # Extract the first word of "$ac_prog", so it can be a program name with args.
5214 set dummy $ac_prog; ac_word=$2
5215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5217 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5218   echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220   if test -n "$ac_ct_CXX"; then
5221   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5222 else
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226   IFS=$as_save_IFS
5227   test -z "$as_dir" && as_dir=.
5228   for ac_exec_ext in '' $ac_executable_extensions; do
5229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230     ac_cv_prog_ac_ct_CXX="$ac_prog"
5231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232     break 2
5233   fi
5234 done
5235 done
5236 IFS=$as_save_IFS
5237
5238 fi
5239 fi
5240 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5241 if test -n "$ac_ct_CXX"; then
5242   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5243 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5244 else
5245   { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }
5247 fi
5248
5249
5250   test -n "$ac_ct_CXX" && break
5251 done
5252
5253   if test "x$ac_ct_CXX" = x; then
5254     CXX="g++"
5255   else
5256     case $cross_compiling:$ac_tool_warned in
5257 yes:)
5258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5259 whose name does not start with the host triplet.  If you think this
5260 configuration is useful to you, please write to autoconf@gnu.org." >&5
5261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5262 whose name does not start with the host triplet.  If you think this
5263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5264 ac_tool_warned=yes ;;
5265 esac
5266     CXX=$ac_ct_CXX
5267   fi
5268 fi
5269
5270   fi
5271 fi
5272 # Provide some information about the compiler.
5273 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5274 ac_compiler=`set X $ac_compile; echo $2`
5275 { (ac_try="$ac_compiler --version >&5"
5276 case "(($ac_try" in
5277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278   *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281   (eval "$ac_compiler --version >&5") 2>&5
5282   ac_status=$?
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); }
5285 { (ac_try="$ac_compiler -v >&5"
5286 case "(($ac_try" in
5287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288   *) ac_try_echo=$ac_try;;
5289 esac
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291   (eval "$ac_compiler -v >&5") 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); }
5295 { (ac_try="$ac_compiler -V >&5"
5296 case "(($ac_try" in
5297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298   *) ac_try_echo=$ac_try;;
5299 esac
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301   (eval "$ac_compiler -V >&5") 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }
5305
5306 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5307 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5308 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5309   echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311   cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h.  */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h.  */
5317
5318 int
5319 main ()
5320 {
5321 #ifndef __GNUC__
5322        choke me
5323 #endif
5324
5325   ;
5326   return 0;
5327 }
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (ac_try="$ac_compile"
5331 case "(($ac_try" in
5332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333   *) ac_try_echo=$ac_try;;
5334 esac
5335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336   (eval "$ac_compile") 2>conftest.er1
5337   ac_status=$?
5338   grep -v '^ *+' conftest.er1 >conftest.err
5339   rm -f conftest.er1
5340   cat conftest.err >&5
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); } && {
5343          test -z "$ac_cxx_werror_flag" ||
5344          test ! -s conftest.err
5345        } && test -s conftest.$ac_objext; then
5346   ac_compiler_gnu=yes
5347 else
5348   echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351         ac_compiler_gnu=no
5352 fi
5353
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5356
5357 fi
5358 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5359 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5360 GXX=`test $ac_compiler_gnu = yes && echo yes`
5361 ac_test_CXXFLAGS=${CXXFLAGS+set}
5362 ac_save_CXXFLAGS=$CXXFLAGS
5363 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5364 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5365 if test "${ac_cv_prog_cxx_g+set}" = set; then
5366   echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5369    ac_cxx_werror_flag=yes
5370    ac_cv_prog_cxx_g=no
5371    CXXFLAGS="-g"
5372    cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h.  */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h.  */
5378
5379 int
5380 main ()
5381 {
5382
5383   ;
5384   return 0;
5385 }
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (ac_try="$ac_compile"
5389 case "(($ac_try" in
5390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391   *) ac_try_echo=$ac_try;;
5392 esac
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394   (eval "$ac_compile") 2>conftest.er1
5395   ac_status=$?
5396   grep -v '^ *+' conftest.er1 >conftest.err
5397   rm -f conftest.er1
5398   cat conftest.err >&5
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); } && {
5401          test -z "$ac_cxx_werror_flag" ||
5402          test ! -s conftest.err
5403        } && test -s conftest.$ac_objext; then
5404   ac_cv_prog_cxx_g=yes
5405 else
5406   echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5408
5409         CXXFLAGS=""
5410       cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h.  */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h.  */
5416
5417 int
5418 main ()
5419 {
5420
5421   ;
5422   return 0;
5423 }
5424 _ACEOF
5425 rm -f conftest.$ac_objext
5426 if { (ac_try="$ac_compile"
5427 case "(($ac_try" in
5428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429   *) ac_try_echo=$ac_try;;
5430 esac
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432   (eval "$ac_compile") 2>conftest.er1
5433   ac_status=$?
5434   grep -v '^ *+' conftest.er1 >conftest.err
5435   rm -f conftest.er1
5436   cat conftest.err >&5
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } && {
5439          test -z "$ac_cxx_werror_flag" ||
5440          test ! -s conftest.err
5441        } && test -s conftest.$ac_objext; then
5442   :
5443 else
5444   echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5446
5447         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5448          CXXFLAGS="-g"
5449          cat >conftest.$ac_ext <<_ACEOF
5450 /* confdefs.h.  */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h.  */
5455
5456 int
5457 main ()
5458 {
5459
5460   ;
5461   return 0;
5462 }
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (ac_try="$ac_compile"
5466 case "(($ac_try" in
5467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468   *) ac_try_echo=$ac_try;;
5469 esac
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471   (eval "$ac_compile") 2>conftest.er1
5472   ac_status=$?
5473   grep -v '^ *+' conftest.er1 >conftest.err
5474   rm -f conftest.er1
5475   cat conftest.err >&5
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); } && {
5478          test -z "$ac_cxx_werror_flag" ||
5479          test ! -s conftest.err
5480        } && test -s conftest.$ac_objext; then
5481   ac_cv_prog_cxx_g=yes
5482 else
5483   echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5485
5486
5487 fi
5488
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 fi
5491
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 fi
5494
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5497 fi
5498 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5499 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5500 if test "$ac_test_CXXFLAGS" = set; then
5501   CXXFLAGS=$ac_save_CXXFLAGS
5502 elif test $ac_cv_prog_cxx_g = yes; then
5503   if test "$GXX" = yes; then
5504     CXXFLAGS="-g -O2"
5505   else
5506     CXXFLAGS="-g"
5507   fi
5508 else
5509   if test "$GXX" = yes; then
5510     CXXFLAGS="-O2"
5511   else
5512     CXXFLAGS=
5513   fi
5514 fi
5515 ac_ext=cpp
5516 ac_cpp='$CXXCPP $CPPFLAGS'
5517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5520
5521
5522
5523 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5524     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5525     (test "X$CXX" != "Xg++"))) ; then
5526   ac_ext=cpp
5527 ac_cpp='$CXXCPP $CPPFLAGS'
5528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5531 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5532 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5533 if test -z "$CXXCPP"; then
5534   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5535   echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537       # Double quotes because CXXCPP needs to be expanded
5538     for CXXCPP in "$CXX -E" "/lib/cpp"
5539     do
5540       ac_preproc_ok=false
5541 for ac_cxx_preproc_warn_flag in '' yes
5542 do
5543   # Use a header file that comes with gcc, so configuring glibc
5544   # with a fresh cross-compiler works.
5545   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5546   # <limits.h> exists even on freestanding compilers.
5547   # On the NeXT, cc -E runs the code through the compiler's parser,
5548   # not just through cpp. "Syntax error" is here to catch this case.
5549   cat >conftest.$ac_ext <<_ACEOF
5550 /* confdefs.h.  */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h.  */
5555 #ifdef __STDC__
5556 # include <limits.h>
5557 #else
5558 # include <assert.h>
5559 #endif
5560                      Syntax error
5561 _ACEOF
5562 if { (ac_try="$ac_cpp conftest.$ac_ext"
5563 case "(($ac_try" in
5564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565   *) ac_try_echo=$ac_try;;
5566 esac
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5569   ac_status=$?
5570   grep -v '^ *+' conftest.er1 >conftest.err
5571   rm -f conftest.er1
5572   cat conftest.err >&5
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); } >/dev/null && {
5575          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5576          test ! -s conftest.err
5577        }; then
5578   :
5579 else
5580   echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583   # Broken: fails on valid input.
5584 continue
5585 fi
5586
5587 rm -f conftest.err conftest.$ac_ext
5588
5589   # OK, works on sane cases.  Now check whether nonexistent headers
5590   # can be detected and how.
5591   cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h.  */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h.  */
5597 #include <ac_nonexistent.h>
5598 _ACEOF
5599 if { (ac_try="$ac_cpp conftest.$ac_ext"
5600 case "(($ac_try" in
5601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602   *) ac_try_echo=$ac_try;;
5603 esac
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5606   ac_status=$?
5607   grep -v '^ *+' conftest.er1 >conftest.err
5608   rm -f conftest.er1
5609   cat conftest.err >&5
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); } >/dev/null && {
5612          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5613          test ! -s conftest.err
5614        }; then
5615   # Broken: success on invalid input.
5616 continue
5617 else
5618   echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621   # Passes both tests.
5622 ac_preproc_ok=:
5623 break
5624 fi
5625
5626 rm -f conftest.err conftest.$ac_ext
5627
5628 done
5629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5630 rm -f conftest.err conftest.$ac_ext
5631 if $ac_preproc_ok; then
5632   break
5633 fi
5634
5635     done
5636     ac_cv_prog_CXXCPP=$CXXCPP
5637
5638 fi
5639   CXXCPP=$ac_cv_prog_CXXCPP
5640 else
5641   ac_cv_prog_CXXCPP=$CXXCPP
5642 fi
5643 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5644 echo "${ECHO_T}$CXXCPP" >&6; }
5645 ac_preproc_ok=false
5646 for ac_cxx_preproc_warn_flag in '' yes
5647 do
5648   # Use a header file that comes with gcc, so configuring glibc
5649   # with a fresh cross-compiler works.
5650   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651   # <limits.h> exists even on freestanding compilers.
5652   # On the NeXT, cc -E runs the code through the compiler's parser,
5653   # not just through cpp. "Syntax error" is here to catch this case.
5654   cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h.  */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h.  */
5660 #ifdef __STDC__
5661 # include <limits.h>
5662 #else
5663 # include <assert.h>
5664 #endif
5665                      Syntax error
5666 _ACEOF
5667 if { (ac_try="$ac_cpp conftest.$ac_ext"
5668 case "(($ac_try" in
5669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670   *) ac_try_echo=$ac_try;;
5671 esac
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5674   ac_status=$?
5675   grep -v '^ *+' conftest.er1 >conftest.err
5676   rm -f conftest.er1
5677   cat conftest.err >&5
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); } >/dev/null && {
5680          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5681          test ! -s conftest.err
5682        }; then
5683   :
5684 else
5685   echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688   # Broken: fails on valid input.
5689 continue
5690 fi
5691
5692 rm -f conftest.err conftest.$ac_ext
5693
5694   # OK, works on sane cases.  Now check whether nonexistent headers
5695   # can be detected and how.
5696   cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h.  */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h.  */
5702 #include <ac_nonexistent.h>
5703 _ACEOF
5704 if { (ac_try="$ac_cpp conftest.$ac_ext"
5705 case "(($ac_try" in
5706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707   *) ac_try_echo=$ac_try;;
5708 esac
5709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5711   ac_status=$?
5712   grep -v '^ *+' conftest.er1 >conftest.err
5713   rm -f conftest.er1
5714   cat conftest.err >&5
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); } >/dev/null && {
5717          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5718          test ! -s conftest.err
5719        }; then
5720   # Broken: success on invalid input.
5721 continue
5722 else
5723   echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5725
5726   # Passes both tests.
5727 ac_preproc_ok=:
5728 break
5729 fi
5730
5731 rm -f conftest.err conftest.$ac_ext
5732
5733 done
5734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5735 rm -f conftest.err conftest.$ac_ext
5736 if $ac_preproc_ok; then
5737   :
5738 else
5739   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5740 See \`config.log' for more details." >&5
5741 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5742 See \`config.log' for more details." >&2;}
5743    { (exit 1); exit 1; }; }
5744 fi
5745
5746 ac_ext=cpp
5747 ac_cpp='$CXXCPP $CPPFLAGS'
5748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5751
5752 fi
5753
5754
5755 ac_ext=f
5756 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5757 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5759 if test -n "$ac_tool_prefix"; then
5760   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5761   do
5762     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5766 if test "${ac_cv_prog_F77+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   if test -n "$F77"; then
5770   ac_cv_prog_F77="$F77" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777   for ac_exec_ext in '' $ac_executable_extensions; do
5778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5779     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781     break 2
5782   fi
5783 done
5784 done
5785 IFS=$as_save_IFS
5786
5787 fi
5788 fi
5789 F77=$ac_cv_prog_F77
5790 if test -n "$F77"; then
5791   { echo "$as_me:$LINENO: result: $F77" >&5
5792 echo "${ECHO_T}$F77" >&6; }
5793 else
5794   { echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6; }
5796 fi
5797
5798
5799     test -n "$F77" && break
5800   done
5801 fi
5802 if test -z "$F77"; then
5803   ac_ct_F77=$F77
5804   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5805 do
5806   # Extract the first word of "$ac_prog", so it can be a program name with args.
5807 set dummy $ac_prog; ac_word=$2
5808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5810 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   if test -n "$ac_ct_F77"; then
5814   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819   IFS=$as_save_IFS
5820   test -z "$as_dir" && as_dir=.
5821   for ac_exec_ext in '' $ac_executable_extensions; do
5822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823     ac_cv_prog_ac_ct_F77="$ac_prog"
5824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825     break 2
5826   fi
5827 done
5828 done
5829 IFS=$as_save_IFS
5830
5831 fi
5832 fi
5833 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5834 if test -n "$ac_ct_F77"; then
5835   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5836 echo "${ECHO_T}$ac_ct_F77" >&6; }
5837 else
5838   { echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6; }
5840 fi
5841
5842
5843   test -n "$ac_ct_F77" && break
5844 done
5845
5846   if test "x$ac_ct_F77" = x; then
5847     F77=""
5848   else
5849     case $cross_compiling:$ac_tool_warned in
5850 yes:)
5851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5852 whose name does not start with the host triplet.  If you think this
5853 configuration is useful to you, please write to autoconf@gnu.org." >&5
5854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5855 whose name does not start with the host triplet.  If you think this
5856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5857 ac_tool_warned=yes ;;
5858 esac
5859     F77=$ac_ct_F77
5860   fi
5861 fi
5862
5863
5864 # Provide some information about the compiler.
5865 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5866 ac_compiler=`set X $ac_compile; echo $2`
5867 { (ac_try="$ac_compiler --version >&5"
5868 case "(($ac_try" in
5869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870   *) ac_try_echo=$ac_try;;
5871 esac
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873   (eval "$ac_compiler --version >&5") 2>&5
5874   ac_status=$?
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); }
5877 { (ac_try="$ac_compiler -v >&5"
5878 case "(($ac_try" in
5879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880   *) ac_try_echo=$ac_try;;
5881 esac
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883   (eval "$ac_compiler -v >&5") 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); }
5887 { (ac_try="$ac_compiler -V >&5"
5888 case "(($ac_try" in
5889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890   *) ac_try_echo=$ac_try;;
5891 esac
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893   (eval "$ac_compiler -V >&5") 2>&5
5894   ac_status=$?
5895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896   (exit $ac_status); }
5897 rm -f a.out
5898
5899 # If we don't use `.F' as extension, the preprocessor is not run on the
5900 # input file.  (Note that this only needs to work for GNU compilers.)
5901 ac_save_ext=$ac_ext
5902 ac_ext=F
5903 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5904 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5905 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   cat >conftest.$ac_ext <<_ACEOF
5909       program main
5910 #ifndef __GNUC__
5911        choke me
5912 #endif
5913
5914       end
5915 _ACEOF
5916 rm -f conftest.$ac_objext
5917 if { (ac_try="$ac_compile"
5918 case "(($ac_try" in
5919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920   *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923   (eval "$ac_compile") 2>conftest.er1
5924   ac_status=$?
5925   grep -v '^ *+' conftest.er1 >conftest.err
5926   rm -f conftest.er1
5927   cat conftest.err >&5
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } && {
5930          test -z "$ac_f77_werror_flag" ||
5931          test ! -s conftest.err
5932        } && test -s conftest.$ac_objext; then
5933   ac_compiler_gnu=yes
5934 else
5935   echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938         ac_compiler_gnu=no
5939 fi
5940
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5943
5944 fi
5945 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5946 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5947 ac_ext=$ac_save_ext
5948 ac_test_FFLAGS=${FFLAGS+set}
5949 ac_save_FFLAGS=$FFLAGS
5950 FFLAGS=
5951 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5952 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5953 if test "${ac_cv_prog_f77_g+set}" = set; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   FFLAGS=-g
5957 cat >conftest.$ac_ext <<_ACEOF
5958       program main
5959
5960       end
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (ac_try="$ac_compile"
5964 case "(($ac_try" in
5965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966   *) ac_try_echo=$ac_try;;
5967 esac
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969   (eval "$ac_compile") 2>conftest.er1
5970   ac_status=$?
5971   grep -v '^ *+' conftest.er1 >conftest.err
5972   rm -f conftest.er1
5973   cat conftest.err >&5
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); } && {
5976          test -z "$ac_f77_werror_flag" ||
5977          test ! -s conftest.err
5978        } && test -s conftest.$ac_objext; then
5979   ac_cv_prog_f77_g=yes
5980 else
5981   echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5983
5984         ac_cv_prog_f77_g=no
5985 fi
5986
5987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988
5989 fi
5990 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5991 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5992 if test "$ac_test_FFLAGS" = set; then
5993   FFLAGS=$ac_save_FFLAGS
5994 elif test $ac_cv_prog_f77_g = yes; then
5995   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5996     FFLAGS="-g -O2"
5997   else
5998     FFLAGS="-g"
5999   fi
6000 else
6001   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6002     FFLAGS="-O2"
6003   else
6004     FFLAGS=
6005   fi
6006 fi
6007
6008 G77=`test $ac_compiler_gnu = yes && echo yes`
6009 ac_ext=c
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6014
6015
6016
6017 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6018
6019 # find the maximum length of command line arguments
6020 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6021 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6022 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025     i=0
6026   teststring="ABCD"
6027
6028   case $build_os in
6029   msdosdjgpp*)
6030     # On DJGPP, this test can blow up pretty badly due to problems in libc
6031     # (any single argument exceeding 2000 bytes causes a buffer overrun
6032     # during glob expansion).  Even if it were fixed, the result of this
6033     # check would be larger than it should be.
6034     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6035     ;;
6036
6037   gnu*)
6038     # Under GNU Hurd, this test is not required because there is
6039     # no limit to the length of command line arguments.
6040     # Libtool will interpret -1 as no limit whatsoever
6041     lt_cv_sys_max_cmd_len=-1;
6042     ;;
6043
6044   cygwin* | mingw*)
6045     # On Win9x/ME, this test blows up -- it succeeds, but takes
6046     # about 5 minutes as the teststring grows exponentially.
6047     # Worse, since 9x/ME are not pre-emptively multitasking,
6048     # you end up with a "frozen" computer, even though with patience
6049     # the test eventually succeeds (with a max line length of 256k).
6050     # Instead, let's just punt: use the minimum linelength reported by
6051     # all of the supported platforms: 8192 (on NT/2K/XP).
6052     lt_cv_sys_max_cmd_len=8192;
6053     ;;
6054
6055   amigaos*)
6056     # On AmigaOS with pdksh, this test takes hours, literally.
6057     # So we just punt and use a minimum line length of 8192.
6058     lt_cv_sys_max_cmd_len=8192;
6059     ;;
6060
6061   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6062     # This has been around since 386BSD, at least.  Likely further.
6063     if test -x /sbin/sysctl; then
6064       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6065     elif test -x /usr/sbin/sysctl; then
6066       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6067     else
6068       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6069     fi
6070     # And add a safety zone
6071     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6072     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6073     ;;
6074
6075   interix*)
6076     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6077     lt_cv_sys_max_cmd_len=196608
6078     ;;
6079
6080   osf*)
6081     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6082     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6083     # nice to cause kernel panics so lets avoid the loop below.
6084     # First set a reasonable default.
6085     lt_cv_sys_max_cmd_len=16384
6086     #
6087     if test -x /sbin/sysconfig; then
6088       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6089         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6090       esac
6091     fi
6092     ;;
6093   sco3.2v5*)
6094     lt_cv_sys_max_cmd_len=102400
6095     ;;
6096   sysv5* | sco5v6* | sysv4.2uw2*)
6097     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6098     if test -n "$kargmax"; then
6099       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6100     else
6101       lt_cv_sys_max_cmd_len=32768
6102     fi
6103     ;;
6104   *)
6105     # If test is not a shell built-in, we'll probably end up computing a
6106     # maximum length that is only half of the actual maximum length, but
6107     # we can't tell.
6108     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6109     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6110                = "XX$teststring") >/dev/null 2>&1 &&
6111             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6112             lt_cv_sys_max_cmd_len=$new_result &&
6113             test $i != 17 # 1/2 MB should be enough
6114     do
6115       i=`expr $i + 1`
6116       teststring=$teststring$teststring
6117     done
6118     teststring=
6119     # Add a significant safety factor because C++ compilers can tack on massive
6120     # amounts of additional arguments before passing them to the linker.
6121     # It appears as though 1/2 is a usable value.
6122     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6123     ;;
6124   esac
6125
6126 fi
6127
6128 if test -n $lt_cv_sys_max_cmd_len ; then
6129   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6130 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6131 else
6132   { echo "$as_me:$LINENO: result: none" >&5
6133 echo "${ECHO_T}none" >&6; }
6134 fi
6135
6136
6137
6138
6139 # Check for command to grab the raw symbol name followed by C symbol from nm.
6140 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6141 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6142 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145
6146 # These are sane defaults that work on at least a few old systems.
6147 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6148
6149 # Character class describing NM global symbol codes.
6150 symcode='[BCDEGRST]'
6151
6152 # Regexp to match symbols that can be accessed directly from C.
6153 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6154
6155 # Transform an extracted symbol line into a proper C declaration
6156 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6157
6158 # Transform an extracted symbol line into symbol name and symbol address
6159 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'"
6160
6161 # Define system-specific variables.
6162 case $host_os in
6163 aix*)
6164   symcode='[BCDT]'
6165   ;;
6166 cygwin* | mingw* | pw32*)
6167   symcode='[ABCDGISTW]'
6168   ;;
6169 hpux*) # Its linker distinguishes data from code symbols
6170   if test "$host_cpu" = ia64; then
6171     symcode='[ABCDEGRST]'
6172   fi
6173   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6174   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'"
6175   ;;
6176 linux*)
6177   if test "$host_cpu" = ia64; then
6178     symcode='[ABCDGIRSTW]'
6179     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6180     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'"
6181   fi
6182   ;;
6183 irix* | nonstopux*)
6184   symcode='[BCDEGRST]'
6185   ;;
6186 osf*)
6187   symcode='[BCDEGQRST]'
6188   ;;
6189 solaris*)
6190   symcode='[BDRT]'
6191   ;;
6192 sco3.2v5*)
6193   symcode='[DT]'
6194   ;;
6195 sysv4.2uw2*)
6196   symcode='[DT]'
6197   ;;
6198 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6199   symcode='[ABDT]'
6200   ;;
6201 sysv4)
6202   symcode='[DFNSTU]'
6203   ;;
6204 esac
6205
6206 # Handle CRLF in mingw tool chain
6207 opt_cr=
6208 case $build_os in
6209 mingw*)
6210   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6211   ;;
6212 esac
6213
6214 # If we're using GNU nm, then use its standard symbol codes.
6215 case `$NM -V 2>&1` in
6216 *GNU* | *'with BFD'*)
6217   symcode='[ABCDGIRSTW]' ;;
6218 esac
6219
6220 # Try without a prefix undercore, then with it.
6221 for ac_symprfx in "" "_"; do
6222
6223   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6224   symxfrm="\\1 $ac_symprfx\\2 \\2"
6225
6226   # Write the raw and C identifiers.
6227   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6228
6229   # Check to see that the pipe works correctly.
6230   pipe_works=no
6231
6232   rm -f conftest*
6233   cat > conftest.$ac_ext <<EOF
6234 #ifdef __cplusplus
6235 extern "C" {
6236 #endif
6237 char nm_test_var;
6238 void nm_test_func(){}
6239 #ifdef __cplusplus
6240 }
6241 #endif
6242 int main(){nm_test_var='a';nm_test_func();return(0);}
6243 EOF
6244
6245   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246   (eval $ac_compile) 2>&5
6247   ac_status=$?
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); }; then
6250     # Now try to grab the symbols.
6251     nlist=conftest.nm
6252     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6253   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6254   ac_status=$?
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); } && test -s "$nlist"; then
6257       # Try sorting and uniquifying the output.
6258       if sort "$nlist" | uniq > "$nlist"T; then
6259         mv -f "$nlist"T "$nlist"
6260       else
6261         rm -f "$nlist"T
6262       fi
6263
6264       # Make sure that we snagged all the symbols we need.
6265       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6266         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6267           cat <<EOF > conftest.$ac_ext
6268 #ifdef __cplusplus
6269 extern "C" {
6270 #endif
6271
6272 EOF
6273           # Now generate the symbol file.
6274           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6275
6276           cat <<EOF >> conftest.$ac_ext
6277 #if defined (__STDC__) && __STDC__
6278 # define lt_ptr_t void *
6279 #else
6280 # define lt_ptr_t char *
6281 # define const
6282 #endif
6283
6284 /* The mapping between symbol names and symbols. */
6285 const struct {
6286   const char *name;
6287   lt_ptr_t address;
6288 }
6289 lt_preloaded_symbols[] =
6290 {
6291 EOF
6292           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6293           cat <<\EOF >> conftest.$ac_ext
6294   {0, (lt_ptr_t) 0}
6295 };
6296
6297 #ifdef __cplusplus
6298 }
6299 #endif
6300 EOF
6301           # Now try linking the two files.
6302           mv conftest.$ac_objext conftstm.$ac_objext
6303           lt_save_LIBS="$LIBS"
6304           lt_save_CFLAGS="$CFLAGS"
6305           LIBS="conftstm.$ac_objext"
6306           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6307           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6308   (eval $ac_link) 2>&5
6309   ac_status=$?
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6312             pipe_works=yes
6313           fi
6314           LIBS="$lt_save_LIBS"
6315           CFLAGS="$lt_save_CFLAGS"
6316         else
6317           echo "cannot find nm_test_func in $nlist" >&5
6318         fi
6319       else
6320         echo "cannot find nm_test_var in $nlist" >&5
6321       fi
6322     else
6323       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6324     fi
6325   else
6326     echo "$progname: failed program was:" >&5
6327     cat conftest.$ac_ext >&5
6328   fi
6329   rm -f conftest* conftst*
6330
6331   # Do not use the global_symbol_pipe unless it works.
6332   if test "$pipe_works" = yes; then
6333     break
6334   else
6335     lt_cv_sys_global_symbol_pipe=
6336   fi
6337 done
6338
6339 fi
6340
6341 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6342   lt_cv_sys_global_symbol_to_cdecl=
6343 fi
6344 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6345   { echo "$as_me:$LINENO: result: failed" >&5
6346 echo "${ECHO_T}failed" >&6; }
6347 else
6348   { echo "$as_me:$LINENO: result: ok" >&5
6349 echo "${ECHO_T}ok" >&6; }
6350 fi
6351
6352 { echo "$as_me:$LINENO: checking for objdir" >&5
6353 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6354 if test "${lt_cv_objdir+set}" = set; then
6355   echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357   rm -f .libs 2>/dev/null
6358 mkdir .libs 2>/dev/null
6359 if test -d .libs; then
6360   lt_cv_objdir=.libs
6361 else
6362   # MS-DOS does not allow filenames that begin with a dot.
6363   lt_cv_objdir=_libs
6364 fi
6365 rmdir .libs 2>/dev/null
6366 fi
6367 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6368 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6369 objdir=$lt_cv_objdir
6370
6371
6372
6373
6374
6375 case $host_os in
6376 aix3*)
6377   # AIX sometimes has problems with the GCC collect2 program.  For some
6378   # reason, if we set the COLLECT_NAMES environment variable, the problems
6379   # vanish in a puff of smoke.
6380   if test "X${COLLECT_NAMES+set}" != Xset; then
6381     COLLECT_NAMES=
6382     export COLLECT_NAMES
6383   fi
6384   ;;
6385 esac
6386
6387 # Sed substitution that helps us do robust quoting.  It backslashifies
6388 # metacharacters that are still active within double-quoted strings.
6389 Xsed='sed -e 1s/^X//'
6390 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6391
6392 # Same as above, but do not quote variable references.
6393 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6394
6395 # Sed substitution to delay expansion of an escaped shell variable in a
6396 # double_quote_subst'ed string.
6397 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6398
6399 # Sed substitution to avoid accidental globbing in evaled expressions
6400 no_glob_subst='s/\*/\\\*/g'
6401
6402 # Constants:
6403 rm="rm -f"
6404
6405 # Global variables:
6406 default_ofile=libtool
6407 can_build_shared=yes
6408
6409 # All known linkers require a `.a' archive for static linking (except MSVC,
6410 # which needs '.lib').
6411 libext=a
6412 ltmain="$ac_aux_dir/ltmain.sh"
6413 ofile="$default_ofile"
6414 with_gnu_ld="$lt_cv_prog_gnu_ld"
6415
6416 if test -n "$ac_tool_prefix"; then
6417   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6418 set dummy ${ac_tool_prefix}ar; ac_word=$2
6419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6421 if test "${ac_cv_prog_AR+set}" = set; then
6422   echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424   if test -n "$AR"; then
6425   ac_cv_prog_AR="$AR" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430   IFS=$as_save_IFS
6431   test -z "$as_dir" && as_dir=.
6432   for ac_exec_ext in '' $ac_executable_extensions; do
6433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434     ac_cv_prog_AR="${ac_tool_prefix}ar"
6435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436     break 2
6437   fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442 fi
6443 fi
6444 AR=$ac_cv_prog_AR
6445 if test -n "$AR"; then
6446   { echo "$as_me:$LINENO: result: $AR" >&5
6447 echo "${ECHO_T}$AR" >&6; }
6448 else
6449   { echo "$as_me:$LINENO: result: no" >&5
6450 echo "${ECHO_T}no" >&6; }
6451 fi
6452
6453
6454 fi
6455 if test -z "$ac_cv_prog_AR"; then
6456   ac_ct_AR=$AR
6457   # Extract the first word of "ar", so it can be a program name with args.
6458 set dummy ar; ac_word=$2
6459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6461 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   if test -n "$ac_ct_AR"; then
6465   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470   IFS=$as_save_IFS
6471   test -z "$as_dir" && as_dir=.
6472   for ac_exec_ext in '' $ac_executable_extensions; do
6473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474     ac_cv_prog_ac_ct_AR="ar"
6475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476     break 2
6477   fi
6478 done
6479 done
6480 IFS=$as_save_IFS
6481
6482 fi
6483 fi
6484 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6485 if test -n "$ac_ct_AR"; then
6486   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6487 echo "${ECHO_T}$ac_ct_AR" >&6; }
6488 else
6489   { echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6; }
6491 fi
6492
6493   if test "x$ac_ct_AR" = x; then
6494     AR="false"
6495   else
6496     case $cross_compiling:$ac_tool_warned in
6497 yes:)
6498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6499 whose name does not start with the host triplet.  If you think this
6500 configuration is useful to you, please write to autoconf@gnu.org." >&5
6501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6502 whose name does not start with the host triplet.  If you think this
6503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6504 ac_tool_warned=yes ;;
6505 esac
6506     AR=$ac_ct_AR
6507   fi
6508 else
6509   AR="$ac_cv_prog_AR"
6510 fi
6511
6512 if test -n "$ac_tool_prefix"; then
6513   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6514 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517 if test "${ac_cv_prog_RANLIB+set}" = set; then
6518   echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520   if test -n "$RANLIB"; then
6521   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6522 else
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 for as_dir in $PATH
6525 do
6526   IFS=$as_save_IFS
6527   test -z "$as_dir" && as_dir=.
6528   for ac_exec_ext in '' $ac_executable_extensions; do
6529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6530     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532     break 2
6533   fi
6534 done
6535 done
6536 IFS=$as_save_IFS
6537
6538 fi
6539 fi
6540 RANLIB=$ac_cv_prog_RANLIB
6541 if test -n "$RANLIB"; then
6542   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6543 echo "${ECHO_T}$RANLIB" >&6; }
6544 else
6545   { echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6; }
6547 fi
6548
6549
6550 fi
6551 if test -z "$ac_cv_prog_RANLIB"; then
6552   ac_ct_RANLIB=$RANLIB
6553   # Extract the first word of "ranlib", so it can be a program name with args.
6554 set dummy ranlib; ac_word=$2
6555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6557 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6558   echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560   if test -n "$ac_ct_RANLIB"; then
6561   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566   IFS=$as_save_IFS
6567   test -z "$as_dir" && as_dir=.
6568   for ac_exec_ext in '' $ac_executable_extensions; do
6569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570     ac_cv_prog_ac_ct_RANLIB="ranlib"
6571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6572     break 2
6573   fi
6574 done
6575 done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6581 if test -n "$ac_ct_RANLIB"; then
6582   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6583 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6584 else
6585   { echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6; }
6587 fi
6588
6589   if test "x$ac_ct_RANLIB" = x; then
6590     RANLIB=":"
6591   else
6592     case $cross_compiling:$ac_tool_warned in
6593 yes:)
6594 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6595 whose name does not start with the host triplet.  If you think this
6596 configuration is useful to you, please write to autoconf@gnu.org." >&5
6597 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6598 whose name does not start with the host triplet.  If you think this
6599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6600 ac_tool_warned=yes ;;
6601 esac
6602     RANLIB=$ac_ct_RANLIB
6603   fi
6604 else
6605   RANLIB="$ac_cv_prog_RANLIB"
6606 fi
6607
6608 if test -n "$ac_tool_prefix"; then
6609   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6610 set dummy ${ac_tool_prefix}strip; ac_word=$2
6611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6613 if test "${ac_cv_prog_STRIP+set}" = set; then
6614   echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616   if test -n "$STRIP"; then
6617   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624   for ac_exec_ext in '' $ac_executable_extensions; do
6625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631 done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 STRIP=$ac_cv_prog_STRIP
6637 if test -n "$STRIP"; then
6638   { echo "$as_me:$LINENO: result: $STRIP" >&5
6639 echo "${ECHO_T}$STRIP" >&6; }
6640 else
6641   { echo "$as_me:$LINENO: result: no" >&5
6642 echo "${ECHO_T}no" >&6; }
6643 fi
6644
6645
6646 fi
6647 if test -z "$ac_cv_prog_STRIP"; then
6648   ac_ct_STRIP=$STRIP
6649   # Extract the first word of "strip", so it can be a program name with args.
6650 set dummy strip; ac_word=$2
6651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6653 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   if test -n "$ac_ct_STRIP"; then
6657   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662   IFS=$as_save_IFS
6663   test -z "$as_dir" && as_dir=.
6664   for ac_exec_ext in '' $ac_executable_extensions; do
6665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666     ac_cv_prog_ac_ct_STRIP="strip"
6667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668     break 2
6669   fi
6670 done
6671 done
6672 IFS=$as_save_IFS
6673
6674 fi
6675 fi
6676 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6677 if test -n "$ac_ct_STRIP"; then
6678   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6679 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6680 else
6681   { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6683 fi
6684
6685   if test "x$ac_ct_STRIP" = x; then
6686     STRIP=":"
6687   else
6688     case $cross_compiling:$ac_tool_warned in
6689 yes:)
6690 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6691 whose name does not start with the host triplet.  If you think this
6692 configuration is useful to you, please write to autoconf@gnu.org." >&5
6693 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6694 whose name does not start with the host triplet.  If you think this
6695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6696 ac_tool_warned=yes ;;
6697 esac
6698     STRIP=$ac_ct_STRIP
6699   fi
6700 else
6701   STRIP="$ac_cv_prog_STRIP"
6702 fi
6703
6704
6705 old_CC="$CC"
6706 old_CFLAGS="$CFLAGS"
6707
6708 # Set sane defaults for various variables
6709 test -z "$AR" && AR=ar
6710 test -z "$AR_FLAGS" && AR_FLAGS=cru
6711 test -z "$AS" && AS=as
6712 test -z "$CC" && CC=cc
6713 test -z "$LTCC" && LTCC=$CC
6714 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6715 test -z "$DLLTOOL" && DLLTOOL=dlltool
6716 test -z "$LD" && LD=ld
6717 test -z "$LN_S" && LN_S="ln -s"
6718 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6719 test -z "$NM" && NM=nm
6720 test -z "$SED" && SED=sed
6721 test -z "$OBJDUMP" && OBJDUMP=objdump
6722 test -z "$RANLIB" && RANLIB=:
6723 test -z "$STRIP" && STRIP=:
6724 test -z "$ac_objext" && ac_objext=o
6725
6726 # Determine commands to create old-style static archives.
6727 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6728 old_postinstall_cmds='chmod 644 $oldlib'
6729 old_postuninstall_cmds=
6730
6731 if test -n "$RANLIB"; then
6732   case $host_os in
6733   openbsd*)
6734     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6735     ;;
6736   *)
6737     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6738     ;;
6739   esac
6740   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6741 fi
6742
6743 for cc_temp in $compiler""; do
6744   case $cc_temp in
6745     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6746     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6747     \-*) ;;
6748     *) break;;
6749   esac
6750 done
6751 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6752
6753
6754 # Only perform the check for file, if the check method requires it
6755 case $deplibs_check_method in
6756 file_magic*)
6757   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6758     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6759 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6760 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6761   echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763   case $MAGIC_CMD in
6764 [\\/*] |  ?:[\\/]*)
6765   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6766   ;;
6767 *)
6768   lt_save_MAGIC_CMD="$MAGIC_CMD"
6769   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6770   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6771   for ac_dir in $ac_dummy; do
6772     IFS="$lt_save_ifs"
6773     test -z "$ac_dir" && ac_dir=.
6774     if test -f $ac_dir/${ac_tool_prefix}file; then
6775       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6776       if test -n "$file_magic_test_file"; then
6777         case $deplibs_check_method in
6778         "file_magic "*)
6779           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6780           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6781           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6782             $EGREP "$file_magic_regex" > /dev/null; then
6783             :
6784           else
6785             cat <<EOF 1>&2
6786
6787 *** Warning: the command libtool uses to detect shared libraries,
6788 *** $file_magic_cmd, produces output that libtool cannot recognize.
6789 *** The result is that libtool may fail to recognize shared libraries
6790 *** as such.  This will affect the creation of libtool libraries that
6791 *** depend on shared libraries, but programs linked with such libtool
6792 *** libraries will work regardless of this problem.  Nevertheless, you
6793 *** may want to report the problem to your system manager and/or to
6794 *** bug-libtool@gnu.org
6795
6796 EOF
6797           fi ;;
6798         esac
6799       fi
6800       break
6801     fi
6802   done
6803   IFS="$lt_save_ifs"
6804   MAGIC_CMD="$lt_save_MAGIC_CMD"
6805   ;;
6806 esac
6807 fi
6808
6809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6810 if test -n "$MAGIC_CMD"; then
6811   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6812 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6813 else
6814   { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6816 fi
6817
6818 if test -z "$lt_cv_path_MAGIC_CMD"; then
6819   if test -n "$ac_tool_prefix"; then
6820     { echo "$as_me:$LINENO: checking for file" >&5
6821 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6822 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6823   echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825   case $MAGIC_CMD in
6826 [\\/*] |  ?:[\\/]*)
6827   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6828   ;;
6829 *)
6830   lt_save_MAGIC_CMD="$MAGIC_CMD"
6831   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6832   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6833   for ac_dir in $ac_dummy; do
6834     IFS="$lt_save_ifs"
6835     test -z "$ac_dir" && ac_dir=.
6836     if test -f $ac_dir/file; then
6837       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6838       if test -n "$file_magic_test_file"; then
6839         case $deplibs_check_method in
6840         "file_magic "*)
6841           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6842           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6843           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6844             $EGREP "$file_magic_regex" > /dev/null; then
6845             :
6846           else
6847             cat <<EOF 1>&2
6848
6849 *** Warning: the command libtool uses to detect shared libraries,
6850 *** $file_magic_cmd, produces output that libtool cannot recognize.
6851 *** The result is that libtool may fail to recognize shared libraries
6852 *** as such.  This will affect the creation of libtool libraries that
6853 *** depend on shared libraries, but programs linked with such libtool
6854 *** libraries will work regardless of this problem.  Nevertheless, you
6855 *** may want to report the problem to your system manager and/or to
6856 *** bug-libtool@gnu.org
6857
6858 EOF
6859           fi ;;
6860         esac
6861       fi
6862       break
6863     fi
6864   done
6865   IFS="$lt_save_ifs"
6866   MAGIC_CMD="$lt_save_MAGIC_CMD"
6867   ;;
6868 esac
6869 fi
6870
6871 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6872 if test -n "$MAGIC_CMD"; then
6873   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6874 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6875 else
6876   { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6878 fi
6879
6880   else
6881     MAGIC_CMD=:
6882   fi
6883 fi
6884
6885   fi
6886   ;;
6887 esac
6888
6889 enable_dlopen=yes
6890 enable_win32_dll=no
6891
6892 # Check whether --enable-libtool-lock was given.
6893 if test "${enable_libtool_lock+set}" = set; then
6894   enableval=$enable_libtool_lock;
6895 fi
6896
6897 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6898
6899
6900 # Check whether --with-pic was given.
6901 if test "${with_pic+set}" = set; then
6902   withval=$with_pic; pic_mode="$withval"
6903 else
6904   pic_mode=default
6905 fi
6906
6907 test -z "$pic_mode" && pic_mode=default
6908
6909 # Use C for the default configuration in the libtool script
6910 tagname=
6911 lt_save_CC="$CC"
6912 ac_ext=c
6913 ac_cpp='$CPP $CPPFLAGS'
6914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6917
6918
6919 # Source file extension for C test sources.
6920 ac_ext=c
6921
6922 # Object file extension for compiled C test sources.
6923 objext=o
6924 objext=$objext
6925
6926 # Code to be used in simple compile tests
6927 lt_simple_compile_test_code="int some_variable = 0;\n"
6928
6929 # Code to be used in simple link tests
6930 lt_simple_link_test_code='int main(){return(0);}\n'
6931
6932
6933 # If no C compiler was specified, use CC.
6934 LTCC=${LTCC-"$CC"}
6935
6936 # If no C compiler flags were specified, use CFLAGS.
6937 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6938
6939 # Allow CC to be a program name with arguments.
6940 compiler=$CC
6941
6942
6943 # save warnings/boilerplate of simple test code
6944 ac_outfile=conftest.$ac_objext
6945 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6946 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6947 _lt_compiler_boilerplate=`cat conftest.err`
6948 $rm conftest*
6949
6950 ac_outfile=conftest.$ac_objext
6951 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6952 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6953 _lt_linker_boilerplate=`cat conftest.err`
6954 $rm conftest*
6955
6956
6957 ## CAVEAT EMPTOR:
6958 ## There is no encapsulation within the following macros, do not change
6959 ## the running order or otherwise move them around unless you know exactly
6960 ## what you are doing...
6961
6962 lt_prog_compiler_no_builtin_flag=
6963
6964 if test "$GCC" = yes; then
6965   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6966
6967
6968 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6969 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6970 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6971   echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973   lt_cv_prog_compiler_rtti_exceptions=no
6974   ac_outfile=conftest.$ac_objext
6975    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6976    lt_compiler_flag="-fno-rtti -fno-exceptions"
6977    # Insert the option either (1) after the last *FLAGS variable, or
6978    # (2) before a word containing "conftest.", or (3) at the end.
6979    # Note that $ac_compile itself does not contain backslashes and begins
6980    # with a dollar sign (not a hyphen), so the echo should work correctly.
6981    # The option is referenced via a variable to avoid confusing sed.
6982    lt_compile=`echo "$ac_compile" | $SED \
6983    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6984    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6985    -e 's:$: $lt_compiler_flag:'`
6986    (eval echo "\"\$as_me:6986: $lt_compile\"" >&5)
6987    (eval "$lt_compile" 2>conftest.err)
6988    ac_status=$?
6989    cat conftest.err >&5
6990    echo "$as_me:6990: \$? = $ac_status" >&5
6991    if (exit $ac_status) && test -s "$ac_outfile"; then
6992      # The compiler can only warn and ignore the option if not recognized
6993      # So say no if there are warnings other than the usual output.
6994      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6995      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6996      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6997        lt_cv_prog_compiler_rtti_exceptions=yes
6998      fi
6999    fi
7000    $rm conftest*
7001
7002 fi
7003 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7004 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7005
7006 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7007     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7008 else
7009     :
7010 fi
7011
7012 fi
7013
7014 lt_prog_compiler_wl=
7015 lt_prog_compiler_pic=
7016 lt_prog_compiler_static=
7017
7018 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7019 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7020
7021   if test "$GCC" = yes; then
7022     lt_prog_compiler_wl='-Wl,'
7023     lt_prog_compiler_static='-static'
7024
7025     case $host_os in
7026       aix*)
7027       # All AIX code is PIC.
7028       if test "$host_cpu" = ia64; then
7029         # AIX 5 now supports IA64 processor
7030         lt_prog_compiler_static='-Bstatic'
7031       fi
7032       ;;
7033
7034     amigaos*)
7035       # FIXME: we need at least 68020 code to build shared libraries, but
7036       # adding the `-m68020' flag to GCC prevents building anything better,
7037       # like `-m68040'.
7038       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7039       ;;
7040
7041     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7042       # PIC is the default for these OSes.
7043       ;;
7044
7045     mingw* | pw32* | os2*)
7046       # This hack is so that the source file can tell whether it is being
7047       # built for inclusion in a dll (and should export symbols for example).
7048       lt_prog_compiler_pic='-DDLL_EXPORT'
7049       ;;
7050
7051     darwin* | rhapsody*)
7052       # PIC is the default on this platform
7053       # Common symbols not allowed in MH_DYLIB files
7054       lt_prog_compiler_pic='-fno-common'
7055       ;;
7056
7057     interix3*)
7058       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7059       # Instead, we relocate shared libraries at runtime.
7060       ;;
7061
7062     msdosdjgpp*)
7063       # Just because we use GCC doesn't mean we suddenly get shared libraries
7064       # on systems that don't support them.
7065       lt_prog_compiler_can_build_shared=no
7066       enable_shared=no
7067       ;;
7068
7069     sysv4*MP*)
7070       if test -d /usr/nec; then
7071         lt_prog_compiler_pic=-Kconform_pic
7072       fi
7073       ;;
7074
7075     hpux*)
7076       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7077       # not for PA HP-UX.
7078       case $host_cpu in
7079       hppa*64*|ia64*)
7080         # +Z the default
7081         ;;
7082       *)
7083         lt_prog_compiler_pic='-fPIC'
7084         ;;
7085       esac
7086       ;;
7087
7088     *)
7089       lt_prog_compiler_pic='-fPIC'
7090       ;;
7091     esac
7092   else
7093     # PORTME Check for flag to pass linker flags through the system compiler.
7094     case $host_os in
7095     aix*)
7096       lt_prog_compiler_wl='-Wl,'
7097       if test "$host_cpu" = ia64; then
7098         # AIX 5 now supports IA64 processor
7099         lt_prog_compiler_static='-Bstatic'
7100       else
7101         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7102       fi
7103       ;;
7104       darwin*)
7105         # PIC is the default on this platform
7106         # Common symbols not allowed in MH_DYLIB files
7107        case $cc_basename in
7108          xlc*)
7109          lt_prog_compiler_pic='-qnocommon'
7110          lt_prog_compiler_wl='-Wl,'
7111          ;;
7112        esac
7113        ;;
7114
7115     mingw* | pw32* | os2*)
7116       # This hack is so that the source file can tell whether it is being
7117       # built for inclusion in a dll (and should export symbols for example).
7118       lt_prog_compiler_pic='-DDLL_EXPORT'
7119       ;;
7120
7121     hpux9* | hpux10* | hpux11*)
7122       lt_prog_compiler_wl='-Wl,'
7123       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7124       # not for PA HP-UX.
7125       case $host_cpu in
7126       hppa*64*|ia64*)
7127         # +Z the default
7128         ;;
7129       *)
7130         lt_prog_compiler_pic='+Z'
7131         ;;
7132       esac
7133       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7134       lt_prog_compiler_static='${wl}-a ${wl}archive'
7135       ;;
7136
7137     irix5* | irix6* | nonstopux*)
7138       lt_prog_compiler_wl='-Wl,'
7139       # PIC (with -KPIC) is the default.
7140       lt_prog_compiler_static='-non_shared'
7141       ;;
7142
7143     newsos6)
7144       lt_prog_compiler_pic='-KPIC'
7145       lt_prog_compiler_static='-Bstatic'
7146       ;;
7147
7148     linux*)
7149       case $cc_basename in
7150       icc* | ecc*)
7151         lt_prog_compiler_wl='-Wl,'
7152         lt_prog_compiler_pic='-KPIC'
7153         lt_prog_compiler_static='-static'
7154         ;;
7155       pgcc* | pgf77* | pgf90* | pgf95*)
7156         # Portland Group compilers (*not* the Pentium gcc compiler,
7157         # which looks to be a dead project)
7158         lt_prog_compiler_wl='-Wl,'
7159         lt_prog_compiler_pic='-fpic'
7160         lt_prog_compiler_static='-Bstatic'
7161         ;;
7162       ccc*)
7163         lt_prog_compiler_wl='-Wl,'
7164         # All Alpha code is PIC.
7165         lt_prog_compiler_static='-non_shared'
7166         ;;
7167       esac
7168       ;;
7169
7170     osf3* | osf4* | osf5*)
7171       lt_prog_compiler_wl='-Wl,'
7172       # All OSF/1 code is PIC.
7173       lt_prog_compiler_static='-non_shared'
7174       ;;
7175
7176     solaris*)
7177       lt_prog_compiler_pic='-KPIC'
7178       lt_prog_compiler_static='-Bstatic'
7179       case $cc_basename in
7180       f77* | f90* | f95*)
7181         lt_prog_compiler_wl='-Qoption ld ';;
7182       *)
7183         lt_prog_compiler_wl='-Wl,';;
7184       esac
7185       ;;
7186
7187     sunos4*)
7188       lt_prog_compiler_wl='-Qoption ld '
7189       lt_prog_compiler_pic='-PIC'
7190       lt_prog_compiler_static='-Bstatic'
7191       ;;
7192
7193     sysv4 | sysv4.2uw2* | sysv4.3*)
7194       lt_prog_compiler_wl='-Wl,'
7195       lt_prog_compiler_pic='-KPIC'
7196       lt_prog_compiler_static='-Bstatic'
7197       ;;
7198
7199     sysv4*MP*)
7200       if test -d /usr/nec ;then
7201         lt_prog_compiler_pic='-Kconform_pic'
7202         lt_prog_compiler_static='-Bstatic'
7203       fi
7204       ;;
7205
7206     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7207       lt_prog_compiler_wl='-Wl,'
7208       lt_prog_compiler_pic='-KPIC'
7209       lt_prog_compiler_static='-Bstatic'
7210       ;;
7211
7212     unicos*)
7213       lt_prog_compiler_wl='-Wl,'
7214       lt_prog_compiler_can_build_shared=no
7215       ;;
7216
7217     uts4*)
7218       lt_prog_compiler_pic='-pic'
7219       lt_prog_compiler_static='-Bstatic'
7220       ;;
7221
7222     *)
7223       lt_prog_compiler_can_build_shared=no
7224       ;;
7225     esac
7226   fi
7227
7228 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7229 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7230
7231 #
7232 # Check to make sure the PIC flag actually works.
7233 #
7234 if test -n "$lt_prog_compiler_pic"; then
7235
7236 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7237 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7238 if test "${lt_prog_compiler_pic_works+set}" = set; then
7239   echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241   lt_prog_compiler_pic_works=no
7242   ac_outfile=conftest.$ac_objext
7243    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7244    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7245    # Insert the option either (1) after the last *FLAGS variable, or
7246    # (2) before a word containing "conftest.", or (3) at the end.
7247    # Note that $ac_compile itself does not contain backslashes and begins
7248    # with a dollar sign (not a hyphen), so the echo should work correctly.
7249    # The option is referenced via a variable to avoid confusing sed.
7250    lt_compile=`echo "$ac_compile" | $SED \
7251    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7252    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7253    -e 's:$: $lt_compiler_flag:'`
7254    (eval echo "\"\$as_me:7254: $lt_compile\"" >&5)
7255    (eval "$lt_compile" 2>conftest.err)
7256    ac_status=$?
7257    cat conftest.err >&5
7258    echo "$as_me:7258: \$? = $ac_status" >&5
7259    if (exit $ac_status) && test -s "$ac_outfile"; then
7260      # The compiler can only warn and ignore the option if not recognized
7261      # So say no if there are warnings other than the usual output.
7262      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7263      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7264      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7265        lt_prog_compiler_pic_works=yes
7266      fi
7267    fi
7268    $rm conftest*
7269
7270 fi
7271 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7272 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7273
7274 if test x"$lt_prog_compiler_pic_works" = xyes; then
7275     case $lt_prog_compiler_pic in
7276      "" | " "*) ;;
7277      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7278      esac
7279 else
7280     lt_prog_compiler_pic=
7281      lt_prog_compiler_can_build_shared=no
7282 fi
7283
7284 fi
7285 case $host_os in
7286   # For platforms which do not support PIC, -DPIC is meaningless:
7287   *djgpp*)
7288     lt_prog_compiler_pic=
7289     ;;
7290   *)
7291     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7292     ;;
7293 esac
7294
7295 #
7296 # Check to make sure the static flag actually works.
7297 #
7298 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7299 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7300 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7301 if test "${lt_prog_compiler_static_works+set}" = set; then
7302   echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304   lt_prog_compiler_static_works=no
7305    save_LDFLAGS="$LDFLAGS"
7306    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7307    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7308    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7309      # The linker can only warn and ignore the option if not recognized
7310      # So say no if there are warnings
7311      if test -s conftest.err; then
7312        # Append any errors to the config.log.
7313        cat conftest.err 1>&5
7314        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7315        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7316        if diff conftest.exp conftest.er2 >/dev/null; then
7317          lt_prog_compiler_static_works=yes
7318        fi
7319      else
7320        lt_prog_compiler_static_works=yes
7321      fi
7322    fi
7323    $rm conftest*
7324    LDFLAGS="$save_LDFLAGS"
7325
7326 fi
7327 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7328 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7329
7330 if test x"$lt_prog_compiler_static_works" = xyes; then
7331     :
7332 else
7333     lt_prog_compiler_static=
7334 fi
7335
7336
7337 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7338 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7339 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   lt_cv_prog_compiler_c_o=no
7343    $rm -r conftest 2>/dev/null
7344    mkdir conftest
7345    cd conftest
7346    mkdir out
7347    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7348
7349    lt_compiler_flag="-o out/conftest2.$ac_objext"
7350    # Insert the option either (1) after the last *FLAGS variable, or
7351    # (2) before a word containing "conftest.", or (3) at the end.
7352    # Note that $ac_compile itself does not contain backslashes and begins
7353    # with a dollar sign (not a hyphen), so the echo should work correctly.
7354    lt_compile=`echo "$ac_compile" | $SED \
7355    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7356    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7357    -e 's:$: $lt_compiler_flag:'`
7358    (eval echo "\"\$as_me:7358: $lt_compile\"" >&5)
7359    (eval "$lt_compile" 2>out/conftest.err)
7360    ac_status=$?
7361    cat out/conftest.err >&5
7362    echo "$as_me:7362: \$? = $ac_status" >&5
7363    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7364    then
7365      # The compiler can only warn and ignore the option if not recognized
7366      # So say no if there are warnings
7367      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7368      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7369      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7370        lt_cv_prog_compiler_c_o=yes
7371      fi
7372    fi
7373    chmod u+w . 2>&5
7374    $rm conftest*
7375    # SGI C++ compiler will create directory out/ii_files/ for
7376    # template instantiation
7377    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7378    $rm out/* && rmdir out
7379    cd ..
7380    rmdir conftest
7381    $rm conftest*
7382
7383 fi
7384 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7385 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7386
7387
7388 hard_links="nottested"
7389 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7390   # do not overwrite the value of need_locks provided by the user
7391   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7392 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7393   hard_links=yes
7394   $rm conftest*
7395   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7396   touch conftest.a
7397   ln conftest.a conftest.b 2>&5 || hard_links=no
7398   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7399   { echo "$as_me:$LINENO: result: $hard_links" >&5
7400 echo "${ECHO_T}$hard_links" >&6; }
7401   if test "$hard_links" = no; then
7402     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7403 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7404     need_locks=warn
7405   fi
7406 else
7407   need_locks=no
7408 fi
7409
7410 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7411 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7412
7413   runpath_var=
7414   allow_undefined_flag=
7415   enable_shared_with_static_runtimes=no
7416   archive_cmds=
7417   archive_expsym_cmds=
7418   old_archive_From_new_cmds=
7419   old_archive_from_expsyms_cmds=
7420   export_dynamic_flag_spec=
7421   whole_archive_flag_spec=
7422   thread_safe_flag_spec=
7423   hardcode_libdir_flag_spec=
7424   hardcode_libdir_flag_spec_ld=
7425   hardcode_libdir_separator=
7426   hardcode_direct=no
7427   hardcode_minus_L=no
7428   hardcode_shlibpath_var=unsupported
7429   link_all_deplibs=unknown
7430   hardcode_automatic=no
7431   module_cmds=
7432   module_expsym_cmds=
7433   always_export_symbols=no
7434   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7435   # include_expsyms should be a list of space-separated symbols to be *always*
7436   # included in the symbol list
7437   include_expsyms=
7438   # exclude_expsyms can be an extended regexp of symbols to exclude
7439   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7440   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7441   # as well as any symbol that contains `d'.
7442   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7443   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7444   # platforms (ab)use it in PIC code, but their linkers get confused if
7445   # the symbol is explicitly referenced.  Since portable code cannot
7446   # rely on this symbol name, it's probably fine to never include it in
7447   # preloaded symbol tables.
7448   extract_expsyms_cmds=
7449   # Just being paranoid about ensuring that cc_basename is set.
7450   for cc_temp in $compiler""; do
7451   case $cc_temp in
7452     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7453     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7454     \-*) ;;
7455     *) break;;
7456   esac
7457 done
7458 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7459
7460   case $host_os in
7461   cygwin* | mingw* | pw32*)
7462     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7463     # When not using gcc, we currently assume that we are using
7464     # Microsoft Visual C++.
7465     if test "$GCC" != yes; then
7466       with_gnu_ld=no
7467     fi
7468     ;;
7469   interix*)
7470     # we just hope/assume this is gcc and not c89 (= MSVC++)
7471     with_gnu_ld=yes
7472     ;;
7473   openbsd*)
7474     with_gnu_ld=no
7475     ;;
7476   esac
7477
7478   ld_shlibs=yes
7479   if test "$with_gnu_ld" = yes; then
7480     # If archive_cmds runs LD, not CC, wlarc should be empty
7481     wlarc='${wl}'
7482
7483     # Set some defaults for GNU ld with shared library support. These
7484     # are reset later if shared libraries are not supported. Putting them
7485     # here allows them to be overridden if necessary.
7486     runpath_var=LD_RUN_PATH
7487     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7488     export_dynamic_flag_spec='${wl}--export-dynamic'
7489     # ancient GNU ld didn't support --whole-archive et. al.
7490     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7491         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7492       else
7493         whole_archive_flag_spec=
7494     fi
7495     supports_anon_versioning=no
7496     case `$LD -v 2>/dev/null` in
7497       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7498       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7499       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7500       *\ 2.11.*) ;; # other 2.11 versions
7501       *) supports_anon_versioning=yes ;;
7502     esac
7503
7504     # See if GNU ld supports shared libraries.
7505     case $host_os in
7506     aix3* | aix4* | aix5*)
7507       # On AIX/PPC, the GNU linker is very broken
7508       if test "$host_cpu" != ia64; then
7509         ld_shlibs=no
7510         cat <<EOF 1>&2
7511
7512 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7513 *** to be unable to reliably create shared libraries on AIX.
7514 *** Therefore, libtool is disabling shared libraries support.  If you
7515 *** really care for shared libraries, you may want to modify your PATH
7516 *** so that a non-GNU linker is found, and then restart.
7517
7518 EOF
7519       fi
7520       ;;
7521
7522     amigaos*)
7523       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)'
7524       hardcode_libdir_flag_spec='-L$libdir'
7525       hardcode_minus_L=yes
7526
7527       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7528       # that the semantics of dynamic libraries on AmigaOS, at least up
7529       # to version 4, is to share data among multiple programs linked
7530       # with the same dynamic library.  Since this doesn't match the
7531       # behavior of shared libraries on other platforms, we can't use
7532       # them.
7533       ld_shlibs=no
7534       ;;
7535
7536     beos*)
7537       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7538         allow_undefined_flag=unsupported
7539         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7540         # support --undefined.  This deserves some investigation.  FIXME
7541         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7542       else
7543         ld_shlibs=no
7544       fi
7545       ;;
7546
7547     cygwin* | mingw* | pw32*)
7548       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7549       # as there is no search path for DLLs.
7550       hardcode_libdir_flag_spec='-L$libdir'
7551       allow_undefined_flag=unsupported
7552       always_export_symbols=no
7553       enable_shared_with_static_runtimes=yes
7554       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7555
7556       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7557         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7558         # If the export-symbols file already is a .def file (1st line
7559         # is EXPORTS), use it as is; otherwise, prepend...
7560         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7561           cp $export_symbols $output_objdir/$soname.def;
7562         else
7563           echo EXPORTS > $output_objdir/$soname.def;
7564           cat $export_symbols >> $output_objdir/$soname.def;
7565         fi~
7566         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7567       else
7568         ld_shlibs=no
7569       fi
7570       ;;
7571
7572     interix3*)
7573       hardcode_direct=no
7574       hardcode_shlibpath_var=no
7575       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7576       export_dynamic_flag_spec='${wl}-E'
7577       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7578       # Instead, shared libraries are loaded at an image base (0x10000000 by
7579       # default) and relocated if they conflict, which is a slow very memory
7580       # consuming and fragmenting process.  To avoid this, we pick a random,
7581       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7582       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7583       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7584       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'
7585       ;;
7586
7587     linux*)
7588       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7589         tmp_addflag=
7590         case $cc_basename,$host_cpu in
7591         pgcc*)                          # Portland Group C compiler
7592           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'
7593           tmp_addflag=' $pic_flag'
7594           ;;
7595         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7596           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'
7597           tmp_addflag=' $pic_flag -Mnomain' ;;
7598         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7599           tmp_addflag=' -i_dynamic' ;;
7600         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7601           tmp_addflag=' -i_dynamic -nofor_main' ;;
7602         ifc* | ifort*)                  # Intel Fortran compiler
7603           tmp_addflag=' -nofor_main' ;;
7604         esac
7605         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7606
7607         if test $supports_anon_versioning = yes; then
7608           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7609   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7610   $echo "local: *; };" >> $output_objdir/$libname.ver~
7611           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7612         fi
7613       else
7614         ld_shlibs=no
7615       fi
7616       ;;
7617
7618     netbsd*)
7619       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7620         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7621         wlarc=
7622       else
7623         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7624         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7625       fi
7626       ;;
7627
7628     solaris*)
7629       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7630         ld_shlibs=no
7631         cat <<EOF 1>&2
7632
7633 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7634 *** create shared libraries on Solaris systems.  Therefore, libtool
7635 *** is disabling shared libraries support.  We urge you to upgrade GNU
7636 *** binutils to release 2.9.1 or newer.  Another option is to modify
7637 *** your PATH or compiler configuration so that the native linker is
7638 *** used, and then restart.
7639
7640 EOF
7641       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7642         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7643         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7644       else
7645         ld_shlibs=no
7646       fi
7647       ;;
7648
7649     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7650       case `$LD -v 2>&1` in
7651         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7652         ld_shlibs=no
7653         cat <<_LT_EOF 1>&2
7654
7655 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7656 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7657 *** is disabling shared libraries support.  We urge you to upgrade GNU
7658 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7659 *** your PATH or compiler configuration so that the native linker is
7660 *** used, and then restart.
7661
7662 _LT_EOF
7663         ;;
7664         *)
7665           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7666             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7667             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7668             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7669           else
7670             ld_shlibs=no
7671           fi
7672         ;;
7673       esac
7674       ;;
7675
7676     sunos4*)
7677       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7678       wlarc=
7679       hardcode_direct=yes
7680       hardcode_shlibpath_var=no
7681       ;;
7682
7683     *)
7684       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7685         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7686         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7687       else
7688         ld_shlibs=no
7689       fi
7690       ;;
7691     esac
7692
7693     if test "$ld_shlibs" = no; then
7694       runpath_var=
7695       hardcode_libdir_flag_spec=
7696       export_dynamic_flag_spec=
7697       whole_archive_flag_spec=
7698     fi
7699   else
7700     # PORTME fill in a description of your system's linker (not GNU ld)
7701     case $host_os in
7702     aix3*)
7703       allow_undefined_flag=unsupported
7704       always_export_symbols=yes
7705       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'
7706       # Note: this linker hardcodes the directories in LIBPATH if there
7707       # are no directories specified by -L.
7708       hardcode_minus_L=yes
7709       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7710         # Neither direct hardcoding nor static linking is supported with a
7711         # broken collect2.
7712         hardcode_direct=unsupported
7713       fi
7714       ;;
7715
7716     aix4* | aix5*)
7717       if test "$host_cpu" = ia64; then
7718         # On IA64, the linker does run time linking by default, so we don't
7719         # have to do anything special.
7720         aix_use_runtimelinking=no
7721         exp_sym_flag='-Bexport'
7722         no_entry_flag=""
7723       else
7724         # If we're using GNU nm, then we don't want the "-C" option.
7725         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7726         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7727           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'
7728         else
7729           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'
7730         fi
7731         aix_use_runtimelinking=no
7732
7733         # Test if we are trying to use run time linking or normal
7734         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7735         # need to do runtime linking.
7736         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7737           for ld_flag in $LDFLAGS; do
7738           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7739             aix_use_runtimelinking=yes
7740             break
7741           fi
7742           done
7743           ;;
7744         esac
7745
7746         exp_sym_flag='-bexport'
7747         no_entry_flag='-bnoentry'
7748       fi
7749
7750       # When large executables or shared objects are built, AIX ld can
7751       # have problems creating the table of contents.  If linking a library
7752       # or program results in "error TOC overflow" add -mminimal-toc to
7753       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7754       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7755
7756       archive_cmds=''
7757       hardcode_direct=yes
7758       hardcode_libdir_separator=':'
7759       link_all_deplibs=yes
7760
7761       if test "$GCC" = yes; then
7762         case $host_os in aix4.[012]|aix4.[012].*)
7763         # We only want to do this on AIX 4.2 and lower, the check
7764         # below for broken collect2 doesn't work under 4.3+
7765           collect2name=`${CC} -print-prog-name=collect2`
7766           if test -f "$collect2name" && \
7767            strings "$collect2name" | grep resolve_lib_name >/dev/null
7768           then
7769           # We have reworked collect2
7770           hardcode_direct=yes
7771           else
7772           # We have old collect2
7773           hardcode_direct=unsupported
7774           # It fails to find uninstalled libraries when the uninstalled
7775           # path is not listed in the libpath.  Setting hardcode_minus_L
7776           # to unsupported forces relinking
7777           hardcode_minus_L=yes
7778           hardcode_libdir_flag_spec='-L$libdir'
7779           hardcode_libdir_separator=
7780           fi
7781           ;;
7782         esac
7783         shared_flag='-shared'
7784         if test "$aix_use_runtimelinking" = yes; then
7785           shared_flag="$shared_flag "'${wl}-G'
7786         fi
7787       else
7788         # not using gcc
7789         if test "$host_cpu" = ia64; then
7790         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7791         # chokes on -Wl,-G. The following line is correct:
7792           shared_flag='-G'
7793         else
7794           if test "$aix_use_runtimelinking" = yes; then
7795             shared_flag='${wl}-G'
7796           else
7797             shared_flag='${wl}-bM:SRE'
7798           fi
7799         fi
7800       fi
7801
7802       # It seems that -bexpall does not export symbols beginning with
7803       # underscore (_), so it is better to generate a list of symbols to export.
7804       always_export_symbols=yes
7805       if test "$aix_use_runtimelinking" = yes; then
7806         # Warning - without using the other runtime loading flags (-brtl),
7807         # -berok will link without error, but may produce a broken library.
7808         allow_undefined_flag='-berok'
7809        # Determine the default libpath from the value encoded in an empty executable.
7810        cat >conftest.$ac_ext <<_ACEOF
7811 /* confdefs.h.  */
7812 _ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h.  */
7816
7817 int
7818 main ()
7819 {
7820
7821   ;
7822   return 0;
7823 }
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (ac_try="$ac_link"
7827 case "(($ac_try" in
7828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829   *) ac_try_echo=$ac_try;;
7830 esac
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832   (eval "$ac_link") 2>conftest.er1
7833   ac_status=$?
7834   grep -v '^ *+' conftest.er1 >conftest.err
7835   rm -f conftest.er1
7836   cat conftest.err >&5
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); } && {
7839          test -z "$ac_c_werror_flag" ||
7840          test ! -s conftest.err
7841        } && test -s conftest$ac_exeext &&
7842        $as_test_x conftest$ac_exeext; then
7843
7844 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7845 }'`
7846 # Check for a 64-bit object if we didn't find anything.
7847 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; }
7848 }'`; fi
7849 else
7850   echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853
7854 fi
7855
7856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7857       conftest$ac_exeext conftest.$ac_ext
7858 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7859
7860        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7861         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"
7862        else
7863         if test "$host_cpu" = ia64; then
7864           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7865           allow_undefined_flag="-z nodefs"
7866           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"
7867         else
7868          # Determine the default libpath from the value encoded in an empty executable.
7869          cat >conftest.$ac_ext <<_ACEOF
7870 /* confdefs.h.  */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h.  */
7875
7876 int
7877 main ()
7878 {
7879
7880   ;
7881   return 0;
7882 }
7883 _ACEOF
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (ac_try="$ac_link"
7886 case "(($ac_try" in
7887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888   *) ac_try_echo=$ac_try;;
7889 esac
7890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891   (eval "$ac_link") 2>conftest.er1
7892   ac_status=$?
7893   grep -v '^ *+' conftest.er1 >conftest.err
7894   rm -f conftest.er1
7895   cat conftest.err >&5
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); } && {
7898          test -z "$ac_c_werror_flag" ||
7899          test ! -s conftest.err
7900        } && test -s conftest$ac_exeext &&
7901        $as_test_x conftest$ac_exeext; then
7902
7903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7904 }'`
7905 # Check for a 64-bit object if we didn't find anything.
7906 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; }
7907 }'`; fi
7908 else
7909   echo "$as_me: failed program was:" >&5
7910 sed 's/^/| /' conftest.$ac_ext >&5
7911
7912
7913 fi
7914
7915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7916       conftest$ac_exeext conftest.$ac_ext
7917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7918
7919          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7920           # Warning - without using the other run time loading flags,
7921           # -berok will link without error, but may produce a broken library.
7922           no_undefined_flag=' ${wl}-bernotok'
7923           allow_undefined_flag=' ${wl}-berok'
7924           # Exported symbols can be pulled into shared objects from archives
7925           whole_archive_flag_spec='$convenience'
7926           archive_cmds_need_lc=yes
7927           # This is similar to how AIX traditionally builds its shared libraries.
7928           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'
7929         fi
7930       fi
7931       ;;
7932
7933     amigaos*)
7934       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)'
7935       hardcode_libdir_flag_spec='-L$libdir'
7936       hardcode_minus_L=yes
7937       # see comment about different semantics on the GNU ld section
7938       ld_shlibs=no
7939       ;;
7940
7941     bsdi[45]*)
7942       export_dynamic_flag_spec=-rdynamic
7943       ;;
7944
7945     cygwin* | mingw* | pw32*)
7946       # When not using gcc, we currently assume that we are using
7947       # Microsoft Visual C++.
7948       # hardcode_libdir_flag_spec is actually meaningless, as there is
7949       # no search path for DLLs.
7950       hardcode_libdir_flag_spec=' '
7951       allow_undefined_flag=unsupported
7952       # Tell ltmain to make .lib files, not .a files.
7953       libext=lib
7954       # Tell ltmain to make .dll files, not .so files.
7955       shrext_cmds=".dll"
7956       # FIXME: Setting linknames here is a bad hack.
7957       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7958       # The linker will automatically build a .lib file if we build a DLL.
7959       old_archive_From_new_cmds='true'
7960       # FIXME: Should let the user specify the lib program.
7961       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7962       fix_srcfile_path='`cygpath -w "$srcfile"`'
7963       enable_shared_with_static_runtimes=yes
7964       ;;
7965
7966     darwin* | rhapsody*)
7967       case $host_os in
7968         rhapsody* | darwin1.[012])
7969          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7970          ;;
7971        *) # Darwin 1.3 on
7972          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7973            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7974          else
7975            case ${MACOSX_DEPLOYMENT_TARGET} in
7976              10.[012])
7977                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7978                ;;
7979              10.*)
7980                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7981                ;;
7982            esac
7983          fi
7984          ;;
7985       esac
7986       archive_cmds_need_lc=no
7987       hardcode_direct=no
7988       hardcode_automatic=yes
7989       hardcode_shlibpath_var=unsupported
7990       whole_archive_flag_spec=''
7991       link_all_deplibs=yes
7992     if test "$GCC" = yes ; then
7993         output_verbose_link_cmd='echo'
7994         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7995       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7996       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7997       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}'
7998       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}'
7999     else
8000       case $cc_basename in
8001         xlc*)
8002          output_verbose_link_cmd='echo'
8003          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8004          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8005           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8006          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}'
8007           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}'
8008           ;;
8009        *)
8010          ld_shlibs=no
8011           ;;
8012       esac
8013     fi
8014       ;;
8015
8016     dgux*)
8017       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8018       hardcode_libdir_flag_spec='-L$libdir'
8019       hardcode_shlibpath_var=no
8020       ;;
8021
8022     freebsd1*)
8023       ld_shlibs=no
8024       ;;
8025
8026     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8027     # support.  Future versions do this automatically, but an explicit c++rt0.o
8028     # does not break anything, and helps significantly (at the cost of a little
8029     # extra space).
8030     freebsd2.2*)
8031       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8032       hardcode_libdir_flag_spec='-R$libdir'
8033       hardcode_direct=yes
8034       hardcode_shlibpath_var=no
8035       ;;
8036
8037     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8038     freebsd2*)
8039       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8040       hardcode_direct=yes
8041       hardcode_minus_L=yes
8042       hardcode_shlibpath_var=no
8043       ;;
8044
8045     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8046     freebsd* | kfreebsd*-gnu | dragonfly*)
8047       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8048       hardcode_libdir_flag_spec='-R$libdir'
8049       hardcode_direct=yes
8050       hardcode_shlibpath_var=no
8051       ;;
8052
8053     hpux9*)
8054       if test "$GCC" = yes; then
8055         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'
8056       else
8057         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'
8058       fi
8059       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8060       hardcode_libdir_separator=:
8061       hardcode_direct=yes
8062
8063       # hardcode_minus_L: Not really in the search PATH,
8064       # but as the default location of the library.
8065       hardcode_minus_L=yes
8066       export_dynamic_flag_spec='${wl}-E'
8067       ;;
8068
8069     hpux10*)
8070       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8071         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8072       else
8073         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8074       fi
8075       if test "$with_gnu_ld" = no; then
8076         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8077         hardcode_libdir_separator=:
8078
8079         hardcode_direct=yes
8080         export_dynamic_flag_spec='${wl}-E'
8081
8082         # hardcode_minus_L: Not really in the search PATH,
8083         # but as the default location of the library.
8084         hardcode_minus_L=yes
8085       fi
8086       ;;
8087
8088     hpux11*)
8089       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8090         case $host_cpu in
8091         hppa*64*)
8092           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8093           ;;
8094         ia64*)
8095           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8096           ;;
8097         *)
8098           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8099           ;;
8100         esac
8101       else
8102         case $host_cpu in
8103         hppa*64*)
8104           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8105           ;;
8106         ia64*)
8107           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8108           ;;
8109         *)
8110           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8111           ;;
8112         esac
8113       fi
8114       if test "$with_gnu_ld" = no; then
8115         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8116         hardcode_libdir_separator=:
8117
8118         case $host_cpu in
8119         hppa*64*|ia64*)
8120           hardcode_libdir_flag_spec_ld='+b $libdir'
8121           hardcode_direct=no
8122           hardcode_shlibpath_var=no
8123           ;;
8124         *)
8125           hardcode_direct=yes
8126           export_dynamic_flag_spec='${wl}-E'
8127
8128           # hardcode_minus_L: Not really in the search PATH,
8129           # but as the default location of the library.
8130           hardcode_minus_L=yes
8131           ;;
8132         esac
8133       fi
8134       ;;
8135
8136     irix5* | irix6* | nonstopux*)
8137       if test "$GCC" = yes; then
8138         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'
8139       else
8140         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'
8141         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8142       fi
8143       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8144       hardcode_libdir_separator=:
8145       link_all_deplibs=yes
8146       ;;
8147
8148     netbsd*)
8149       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8150         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8151       else
8152         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8153       fi
8154       hardcode_libdir_flag_spec='-R$libdir'
8155       hardcode_direct=yes
8156       hardcode_shlibpath_var=no
8157       ;;
8158
8159     newsos6)
8160       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8161       hardcode_direct=yes
8162       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8163       hardcode_libdir_separator=:
8164       hardcode_shlibpath_var=no
8165       ;;
8166
8167     openbsd*)
8168       hardcode_direct=yes
8169       hardcode_shlibpath_var=no
8170       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8171         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8172         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8173         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8174         export_dynamic_flag_spec='${wl}-E'
8175       else
8176        case $host_os in
8177          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8178            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8179            hardcode_libdir_flag_spec='-R$libdir'
8180            ;;
8181          *)
8182            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8183            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8184            ;;
8185        esac
8186       fi
8187       ;;
8188
8189     os2*)
8190       hardcode_libdir_flag_spec='-L$libdir'
8191       hardcode_minus_L=yes
8192       allow_undefined_flag=unsupported
8193       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'
8194       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8195       ;;
8196
8197     osf3*)
8198       if test "$GCC" = yes; then
8199         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8200         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'
8201       else
8202         allow_undefined_flag=' -expect_unresolved \*'
8203         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'
8204       fi
8205       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8206       hardcode_libdir_separator=:
8207       ;;
8208
8209     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8210       if test "$GCC" = yes; then
8211         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8212         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'
8213         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8214       else
8215         allow_undefined_flag=' -expect_unresolved \*'
8216         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'
8217         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8218         $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'
8219
8220         # Both c and cxx compiler support -rpath directly
8221         hardcode_libdir_flag_spec='-rpath $libdir'
8222       fi
8223       hardcode_libdir_separator=:
8224       ;;
8225
8226     solaris*)
8227       no_undefined_flag=' -z text'
8228       if test "$GCC" = yes; then
8229         wlarc='${wl}'
8230         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8231         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8232           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8233       else
8234         wlarc=''
8235         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8236         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8237         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8238       fi
8239       hardcode_libdir_flag_spec='-R$libdir'
8240       hardcode_shlibpath_var=no
8241       case $host_os in
8242       solaris2.[0-5] | solaris2.[0-5].*) ;;
8243       *)
8244         # The compiler driver will combine linker options so we
8245         # cannot just pass the convience library names through
8246         # without $wl, iff we do not link with $LD.
8247         # Luckily, gcc supports the same syntax we need for Sun Studio.
8248         # Supported since Solaris 2.6 (maybe 2.5.1?)
8249         case $wlarc in
8250         '')
8251           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8252         *)
8253           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' ;;
8254         esac ;;
8255       esac
8256       link_all_deplibs=yes
8257       ;;
8258
8259     sunos4*)
8260       if test "x$host_vendor" = xsequent; then
8261         # Use $CC to link under sequent, because it throws in some extra .o
8262         # files that make .init and .fini sections work.
8263         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8264       else
8265         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8266       fi
8267       hardcode_libdir_flag_spec='-L$libdir'
8268       hardcode_direct=yes
8269       hardcode_minus_L=yes
8270       hardcode_shlibpath_var=no
8271       ;;
8272
8273     sysv4)
8274       case $host_vendor in
8275         sni)
8276           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8277           hardcode_direct=yes # is this really true???
8278         ;;
8279         siemens)
8280           ## LD is ld it makes a PLAMLIB
8281           ## CC just makes a GrossModule.
8282           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8283           reload_cmds='$CC -r -o $output$reload_objs'
8284           hardcode_direct=no
8285         ;;
8286         motorola)
8287           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8288           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8289         ;;
8290       esac
8291       runpath_var='LD_RUN_PATH'
8292       hardcode_shlibpath_var=no
8293       ;;
8294
8295     sysv4.3*)
8296       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8297       hardcode_shlibpath_var=no
8298       export_dynamic_flag_spec='-Bexport'
8299       ;;
8300
8301     sysv4*MP*)
8302       if test -d /usr/nec; then
8303         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8304         hardcode_shlibpath_var=no
8305         runpath_var=LD_RUN_PATH
8306         hardcode_runpath_var=yes
8307         ld_shlibs=yes
8308       fi
8309       ;;
8310
8311     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8312       no_undefined_flag='${wl}-z,text'
8313       archive_cmds_need_lc=no
8314       hardcode_shlibpath_var=no
8315       runpath_var='LD_RUN_PATH'
8316
8317       if test "$GCC" = yes; then
8318         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8319         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8320       else
8321         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8322         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8323       fi
8324       ;;
8325
8326     sysv5* | sco3.2v5* | sco5v6*)
8327       # Note: We can NOT use -z defs as we might desire, because we do not
8328       # link with -lc, and that would cause any symbols used from libc to
8329       # always be unresolved, which means just about no library would
8330       # ever link correctly.  If we're not using GNU ld we use -z text
8331       # though, which does catch some bad symbols but isn't as heavy-handed
8332       # as -z defs.
8333       no_undefined_flag='${wl}-z,text'
8334       allow_undefined_flag='${wl}-z,nodefs'
8335       archive_cmds_need_lc=no
8336       hardcode_shlibpath_var=no
8337       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8338       hardcode_libdir_separator=':'
8339       link_all_deplibs=yes
8340       export_dynamic_flag_spec='${wl}-Bexport'
8341       runpath_var='LD_RUN_PATH'
8342
8343       if test "$GCC" = yes; then
8344         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8345         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8346       else
8347         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8348         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8349       fi
8350       ;;
8351
8352     uts4*)
8353       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8354       hardcode_libdir_flag_spec='-L$libdir'
8355       hardcode_shlibpath_var=no
8356       ;;
8357
8358     *)
8359       ld_shlibs=no
8360       ;;
8361     esac
8362   fi
8363
8364 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8365 echo "${ECHO_T}$ld_shlibs" >&6; }
8366 test "$ld_shlibs" = no && can_build_shared=no
8367
8368 #
8369 # Do we need to explicitly link libc?
8370 #
8371 case "x$archive_cmds_need_lc" in
8372 x|xyes)
8373   # Assume -lc should be added
8374   archive_cmds_need_lc=yes
8375
8376   if test "$enable_shared" = yes && test "$GCC" = yes; then
8377     case $archive_cmds in
8378     *'~'*)
8379       # FIXME: we may have to deal with multi-command sequences.
8380       ;;
8381     '$CC '*)
8382       # Test whether the compiler implicitly links with -lc since on some
8383       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8384       # to ld, don't add -lc before -lgcc.
8385       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8386 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8387       $rm conftest*
8388       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8389
8390       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391   (eval $ac_compile) 2>&5
8392   ac_status=$?
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); } 2>conftest.err; then
8395         soname=conftest
8396         lib=conftest
8397         libobjs=conftest.$ac_objext
8398         deplibs=
8399         wl=$lt_prog_compiler_wl
8400         pic_flag=$lt_prog_compiler_pic
8401         compiler_flags=-v
8402         linker_flags=-v
8403         verstring=
8404         output_objdir=.
8405         libname=conftest
8406         lt_save_allow_undefined_flag=$allow_undefined_flag
8407         allow_undefined_flag=
8408         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8409   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }
8413         then
8414           archive_cmds_need_lc=no
8415         else
8416           archive_cmds_need_lc=yes
8417         fi
8418         allow_undefined_flag=$lt_save_allow_undefined_flag
8419       else
8420         cat conftest.err 1>&5
8421       fi
8422       $rm conftest*
8423       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8424 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8425       ;;
8426     esac
8427   fi
8428   ;;
8429 esac
8430
8431 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8432 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8433 library_names_spec=
8434 libname_spec='lib$name'
8435 soname_spec=
8436 shrext_cmds=".so"
8437 postinstall_cmds=
8438 postuninstall_cmds=
8439 finish_cmds=
8440 finish_eval=
8441 shlibpath_var=
8442 shlibpath_overrides_runpath=unknown
8443 version_type=none
8444 dynamic_linker="$host_os ld.so"
8445 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8446 if test "$GCC" = yes; then
8447   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8448   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8449     # if the path contains ";" then we assume it to be the separator
8450     # otherwise default to the standard path separator (i.e. ":") - it is
8451     # assumed that no part of a normal pathname contains ";" but that should
8452     # okay in the real world where ";" in dirpaths is itself problematic.
8453     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8454   else
8455     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8456   fi
8457 else
8458   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8459 fi
8460 need_lib_prefix=unknown
8461 hardcode_into_libs=no
8462
8463 # when you set need_version to no, make sure it does not cause -set_version
8464 # flags to be left without arguments
8465 need_version=unknown
8466
8467 case $host_os in
8468 aix3*)
8469   version_type=linux
8470   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8471   shlibpath_var=LIBPATH
8472
8473   # AIX 3 has no versioning support, so we append a major version to the name.
8474   soname_spec='${libname}${release}${shared_ext}$major'
8475   ;;
8476
8477 aix4* | aix5*)
8478   version_type=linux
8479   need_lib_prefix=no
8480   need_version=no
8481   hardcode_into_libs=yes
8482   if test "$host_cpu" = ia64; then
8483     # AIX 5 supports IA64
8484     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8485     shlibpath_var=LD_LIBRARY_PATH
8486   else
8487     # With GCC up to 2.95.x, collect2 would create an import file
8488     # for dependence libraries.  The import file would start with
8489     # the line `#! .'.  This would cause the generated library to
8490     # depend on `.', always an invalid library.  This was fixed in
8491     # development snapshots of GCC prior to 3.0.
8492     case $host_os in
8493       aix4 | aix4.[01] | aix4.[01].*)
8494       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8495            echo ' yes '
8496            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8497         :
8498       else
8499         can_build_shared=no
8500       fi
8501       ;;
8502     esac
8503     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8504     # soname into executable. Probably we can add versioning support to
8505     # collect2, so additional links can be useful in future.
8506     if test "$aix_use_runtimelinking" = yes; then
8507       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8508       # instead of lib<name>.a to let people know that these are not
8509       # typical AIX shared libraries.
8510       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8511     else
8512       # We preserve .a as extension for shared libraries through AIX4.2
8513       # and later when we are not doing run time linking.
8514       library_names_spec='${libname}${release}.a $libname.a'
8515       soname_spec='${libname}${release}${shared_ext}$major'
8516     fi
8517     shlibpath_var=LIBPATH
8518   fi
8519   ;;
8520
8521 amigaos*)
8522   library_names_spec='$libname.ixlibrary $libname.a'
8523   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8524   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'
8525   ;;
8526
8527 beos*)
8528   library_names_spec='${libname}${shared_ext}'
8529   dynamic_linker="$host_os ld.so"
8530   shlibpath_var=LIBRARY_PATH
8531   ;;
8532
8533 bsdi[45]*)
8534   version_type=linux
8535   need_version=no
8536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8537   soname_spec='${libname}${release}${shared_ext}$major'
8538   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8539   shlibpath_var=LD_LIBRARY_PATH
8540   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8541   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8542   # the default ld.so.conf also contains /usr/contrib/lib and
8543   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8544   # libtool to hard-code these into programs
8545   ;;
8546
8547 cygwin* | mingw* | pw32*)
8548   version_type=windows
8549   shrext_cmds=".dll"
8550   need_version=no
8551   need_lib_prefix=no
8552
8553   case $GCC,$host_os in
8554   yes,cygwin* | yes,mingw* | yes,pw32*)
8555     library_names_spec='$libname.dll.a'
8556     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8557     postinstall_cmds='base_file=`basename \${file}`~
8558       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8559       dldir=$destdir/`dirname \$dlpath`~
8560       test -d \$dldir || mkdir -p \$dldir~
8561       $install_prog $dir/$dlname \$dldir/$dlname~
8562       chmod a+x \$dldir/$dlname'
8563     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8564       dlpath=$dir/\$dldll~
8565        $rm \$dlpath'
8566     shlibpath_overrides_runpath=yes
8567
8568     case $host_os in
8569     cygwin*)
8570       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8571       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8572       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8573       ;;
8574     mingw*)
8575       # MinGW DLLs use traditional 'lib' prefix
8576       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8577       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8578       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8579         # It is most probably a Windows format PATH printed by
8580         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8581         # path with ; separators, and with drive letters. We can handle the
8582         # drive letters (cygwin fileutils understands them), so leave them,
8583         # especially as we might pass files found there to a mingw objdump,
8584         # which wouldn't understand a cygwinified path. Ahh.
8585         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8586       else
8587         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8588       fi
8589       ;;
8590     pw32*)
8591       # pw32 DLLs use 'pw' prefix rather than 'lib'
8592       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8593       ;;
8594     esac
8595     ;;
8596
8597   *)
8598     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8599     ;;
8600   esac
8601   dynamic_linker='Win32 ld.exe'
8602   # FIXME: first we should search . and the directory the executable is in
8603   shlibpath_var=PATH
8604   ;;
8605
8606 darwin* | rhapsody*)
8607   dynamic_linker="$host_os dyld"
8608   version_type=darwin
8609   need_lib_prefix=no
8610   need_version=no
8611   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8612   soname_spec='${libname}${release}${major}$shared_ext'
8613   shlibpath_overrides_runpath=yes
8614   shlibpath_var=DYLD_LIBRARY_PATH
8615   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8616   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8617   if test "$GCC" = yes; then
8618     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"`
8619   else
8620     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8621   fi
8622   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8623   ;;
8624
8625 dgux*)
8626   version_type=linux
8627   need_lib_prefix=no
8628   need_version=no
8629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8630   soname_spec='${libname}${release}${shared_ext}$major'
8631   shlibpath_var=LD_LIBRARY_PATH
8632   ;;
8633
8634 freebsd1*)
8635   dynamic_linker=no
8636   ;;
8637
8638 kfreebsd*-gnu)
8639   version_type=linux
8640   need_lib_prefix=no
8641   need_version=no
8642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8643   soname_spec='${libname}${release}${shared_ext}$major'
8644   shlibpath_var=LD_LIBRARY_PATH
8645   shlibpath_overrides_runpath=no
8646   hardcode_into_libs=yes
8647   dynamic_linker='GNU ld.so'
8648   ;;
8649
8650 freebsd* | dragonfly*)
8651   # DragonFly does not have aout.  When/if they implement a new
8652   # versioning mechanism, adjust this.
8653   if test -x /usr/bin/objformat; then
8654     objformat=`/usr/bin/objformat`
8655   else
8656     case $host_os in
8657     freebsd[123]*) objformat=aout ;;
8658     *) objformat=elf ;;
8659     esac
8660   fi
8661   version_type=freebsd-$objformat
8662   case $version_type in
8663     freebsd-elf*)
8664       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8665       need_version=no
8666       need_lib_prefix=no
8667       ;;
8668     freebsd-*)
8669       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8670       need_version=yes
8671       ;;
8672   esac
8673   shlibpath_var=LD_LIBRARY_PATH
8674   case $host_os in
8675   freebsd2*)
8676     shlibpath_overrides_runpath=yes
8677     ;;
8678   freebsd3.[01]* | freebsdelf3.[01]*)
8679     shlibpath_overrides_runpath=yes
8680     hardcode_into_libs=yes
8681     ;;
8682   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8683   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8684     shlibpath_overrides_runpath=no
8685     hardcode_into_libs=yes
8686     ;;
8687   freebsd*) # from 4.6 on
8688     shlibpath_overrides_runpath=yes
8689     hardcode_into_libs=yes
8690     ;;
8691   esac
8692   ;;
8693
8694 gnu*)
8695   version_type=linux
8696   need_lib_prefix=no
8697   need_version=no
8698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8699   soname_spec='${libname}${release}${shared_ext}$major'
8700   shlibpath_var=LD_LIBRARY_PATH
8701   hardcode_into_libs=yes
8702   ;;
8703
8704 hpux9* | hpux10* | hpux11*)
8705   # Give a soname corresponding to the major version so that dld.sl refuses to
8706   # link against other versions.
8707   version_type=sunos
8708   need_lib_prefix=no
8709   need_version=no
8710   case $host_cpu in
8711   ia64*)
8712     shrext_cmds='.so'
8713     hardcode_into_libs=yes
8714     dynamic_linker="$host_os dld.so"
8715     shlibpath_var=LD_LIBRARY_PATH
8716     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8718     soname_spec='${libname}${release}${shared_ext}$major'
8719     if test "X$HPUX_IA64_MODE" = X32; then
8720       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8721     else
8722       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8723     fi
8724     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8725     ;;
8726    hppa*64*)
8727      shrext_cmds='.sl'
8728      hardcode_into_libs=yes
8729      dynamic_linker="$host_os dld.sl"
8730      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8731      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8732      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8733      soname_spec='${libname}${release}${shared_ext}$major'
8734      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8735      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8736      ;;
8737    *)
8738     shrext_cmds='.sl'
8739     dynamic_linker="$host_os dld.sl"
8740     shlibpath_var=SHLIB_PATH
8741     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8743     soname_spec='${libname}${release}${shared_ext}$major'
8744     ;;
8745   esac
8746   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8747   postinstall_cmds='chmod 555 $lib'
8748   ;;
8749
8750 interix3*)
8751   version_type=linux
8752   need_lib_prefix=no
8753   need_version=no
8754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8755   soname_spec='${libname}${release}${shared_ext}$major'
8756   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8757   shlibpath_var=LD_LIBRARY_PATH
8758   shlibpath_overrides_runpath=no
8759   hardcode_into_libs=yes
8760   ;;
8761
8762 irix5* | irix6* | nonstopux*)
8763   case $host_os in
8764     nonstopux*) version_type=nonstopux ;;
8765     *)
8766         if test "$lt_cv_prog_gnu_ld" = yes; then
8767                 version_type=linux
8768         else
8769                 version_type=irix
8770         fi ;;
8771   esac
8772   need_lib_prefix=no
8773   need_version=no
8774   soname_spec='${libname}${release}${shared_ext}$major'
8775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8776   case $host_os in
8777   irix5* | nonstopux*)
8778     libsuff= shlibsuff=
8779     ;;
8780   *)
8781     case $LD in # libtool.m4 will add one of these switches to LD
8782     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8783       libsuff= shlibsuff= libmagic=32-bit;;
8784     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8785       libsuff=32 shlibsuff=N32 libmagic=N32;;
8786     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8787       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8788     *) libsuff= shlibsuff= libmagic=never-match;;
8789     esac
8790     ;;
8791   esac
8792   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8793   shlibpath_overrides_runpath=no
8794   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8795   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8796   hardcode_into_libs=yes
8797   ;;
8798
8799 # No shared lib support for Linux oldld, aout, or coff.
8800 linux*oldld* | linux*aout* | linux*coff*)
8801   dynamic_linker=no
8802   ;;
8803
8804 # This must be Linux ELF.
8805 linux*)
8806   version_type=linux
8807   need_lib_prefix=no
8808   need_version=no
8809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8810   soname_spec='${libname}${release}${shared_ext}$major'
8811   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8812   shlibpath_var=LD_LIBRARY_PATH
8813   shlibpath_overrides_runpath=no
8814   # This implies no fast_install, which is unacceptable.
8815   # Some rework will be needed to allow for fast_install
8816   # before this can be enabled.
8817   hardcode_into_libs=yes
8818
8819   # Append ld.so.conf contents to the search path
8820   if test -f /etc/ld.so.conf; then
8821     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' ' '`
8822     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8823   fi
8824
8825   # We used to test for /lib/ld.so.1 and disable shared libraries on
8826   # powerpc, because MkLinux only supported shared libraries with the
8827   # GNU dynamic linker.  Since this was broken with cross compilers,
8828   # most powerpc-linux boxes support dynamic linking these days and
8829   # people can always --disable-shared, the test was removed, and we
8830   # assume the GNU/Linux dynamic linker is in use.
8831   dynamic_linker='GNU/Linux ld.so'
8832   ;;
8833
8834 knetbsd*-gnu)
8835   version_type=linux
8836   need_lib_prefix=no
8837   need_version=no
8838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8839   soname_spec='${libname}${release}${shared_ext}$major'
8840   shlibpath_var=LD_LIBRARY_PATH
8841   shlibpath_overrides_runpath=no
8842   hardcode_into_libs=yes
8843   dynamic_linker='GNU ld.so'
8844   ;;
8845
8846 netbsd*)
8847   version_type=sunos
8848   need_lib_prefix=no
8849   need_version=no
8850   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8851     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8852     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8853     dynamic_linker='NetBSD (a.out) ld.so'
8854   else
8855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8856     soname_spec='${libname}${release}${shared_ext}$major'
8857     dynamic_linker='NetBSD ld.elf_so'
8858   fi
8859   shlibpath_var=LD_LIBRARY_PATH
8860   shlibpath_overrides_runpath=yes
8861   hardcode_into_libs=yes
8862   ;;
8863
8864 newsos6)
8865   version_type=linux
8866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8867   shlibpath_var=LD_LIBRARY_PATH
8868   shlibpath_overrides_runpath=yes
8869   ;;
8870
8871 nto-qnx*)
8872   version_type=linux
8873   need_lib_prefix=no
8874   need_version=no
8875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8876   soname_spec='${libname}${release}${shared_ext}$major'
8877   shlibpath_var=LD_LIBRARY_PATH
8878   shlibpath_overrides_runpath=yes
8879   ;;
8880
8881 openbsd*)
8882   version_type=sunos
8883   sys_lib_dlsearch_path_spec="/usr/lib"
8884   need_lib_prefix=no
8885   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8886   case $host_os in
8887     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8888     *)                         need_version=no  ;;
8889   esac
8890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8891   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8892   shlibpath_var=LD_LIBRARY_PATH
8893   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8894     case $host_os in
8895       openbsd2.[89] | openbsd2.[89].*)
8896         shlibpath_overrides_runpath=no
8897         ;;
8898       *)
8899         shlibpath_overrides_runpath=yes
8900         ;;
8901       esac
8902   else
8903     shlibpath_overrides_runpath=yes
8904   fi
8905   ;;
8906
8907 os2*)
8908   libname_spec='$name'
8909   shrext_cmds=".dll"
8910   need_lib_prefix=no
8911   library_names_spec='$libname${shared_ext} $libname.a'
8912   dynamic_linker='OS/2 ld.exe'
8913   shlibpath_var=LIBPATH
8914   ;;
8915
8916 osf3* | osf4* | osf5*)
8917   version_type=osf
8918   need_lib_prefix=no
8919   need_version=no
8920   soname_spec='${libname}${release}${shared_ext}$major'
8921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922   shlibpath_var=LD_LIBRARY_PATH
8923   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8924   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8925   ;;
8926
8927 solaris*)
8928   version_type=linux
8929   need_lib_prefix=no
8930   need_version=no
8931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8932   soname_spec='${libname}${release}${shared_ext}$major'
8933   shlibpath_var=LD_LIBRARY_PATH
8934   shlibpath_overrides_runpath=yes
8935   hardcode_into_libs=yes
8936   # ldd complains unless libraries are executable
8937   postinstall_cmds='chmod +x $lib'
8938   ;;
8939
8940 sunos4*)
8941   version_type=sunos
8942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8943   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8944   shlibpath_var=LD_LIBRARY_PATH
8945   shlibpath_overrides_runpath=yes
8946   if test "$with_gnu_ld" = yes; then
8947     need_lib_prefix=no
8948   fi
8949   need_version=yes
8950   ;;
8951
8952 sysv4 | sysv4.3*)
8953   version_type=linux
8954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955   soname_spec='${libname}${release}${shared_ext}$major'
8956   shlibpath_var=LD_LIBRARY_PATH
8957   case $host_vendor in
8958     sni)
8959       shlibpath_overrides_runpath=no
8960       need_lib_prefix=no
8961       export_dynamic_flag_spec='${wl}-Blargedynsym'
8962       runpath_var=LD_RUN_PATH
8963       ;;
8964     siemens)
8965       need_lib_prefix=no
8966       ;;
8967     motorola)
8968       need_lib_prefix=no
8969       need_version=no
8970       shlibpath_overrides_runpath=no
8971       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8972       ;;
8973   esac
8974   ;;
8975
8976 sysv4*MP*)
8977   if test -d /usr/nec ;then
8978     version_type=linux
8979     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8980     soname_spec='$libname${shared_ext}.$major'
8981     shlibpath_var=LD_LIBRARY_PATH
8982   fi
8983   ;;
8984
8985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8986   version_type=freebsd-elf
8987   need_lib_prefix=no
8988   need_version=no
8989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8990   soname_spec='${libname}${release}${shared_ext}$major'
8991   shlibpath_var=LD_LIBRARY_PATH
8992   hardcode_into_libs=yes
8993   if test "$with_gnu_ld" = yes; then
8994     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8995     shlibpath_overrides_runpath=no
8996   else
8997     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8998     shlibpath_overrides_runpath=yes
8999     case $host_os in
9000       sco3.2v5*)
9001         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9002         ;;
9003     esac
9004   fi
9005   sys_lib_dlsearch_path_spec='/usr/lib'
9006   ;;
9007
9008 uts4*)
9009   version_type=linux
9010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011   soname_spec='${libname}${release}${shared_ext}$major'
9012   shlibpath_var=LD_LIBRARY_PATH
9013   ;;
9014
9015 *)
9016   dynamic_linker=no
9017   ;;
9018 esac
9019 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9020 echo "${ECHO_T}$dynamic_linker" >&6; }
9021 test "$dynamic_linker" = no && can_build_shared=no
9022
9023 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9024 if test "$GCC" = yes; then
9025   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9026 fi
9027
9028 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9029 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9030 hardcode_action=
9031 if test -n "$hardcode_libdir_flag_spec" || \
9032    test -n "$runpath_var" || \
9033    test "X$hardcode_automatic" = "Xyes" ; then
9034
9035   # We can hardcode non-existant directories.
9036   if test "$hardcode_direct" != no &&
9037      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9038      # have to relink, otherwise we might link with an installed library
9039      # when we should be linking with a yet-to-be-installed one
9040      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9041      test "$hardcode_minus_L" != no; then
9042     # Linking always hardcodes the temporary library directory.
9043     hardcode_action=relink
9044   else
9045     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9046     hardcode_action=immediate
9047   fi
9048 else
9049   # We cannot hardcode anything, or else we can only hardcode existing
9050   # directories.
9051   hardcode_action=unsupported
9052 fi
9053 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9054 echo "${ECHO_T}$hardcode_action" >&6; }
9055
9056 if test "$hardcode_action" = relink; then
9057   # Fast installation is not supported
9058   enable_fast_install=no
9059 elif test "$shlibpath_overrides_runpath" = yes ||
9060      test "$enable_shared" = no; then
9061   # Fast installation is not necessary
9062   enable_fast_install=needless
9063 fi
9064
9065 striplib=
9066 old_striplib=
9067 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9068 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9069 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9070   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9071   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9072   { echo "$as_me:$LINENO: result: yes" >&5
9073 echo "${ECHO_T}yes" >&6; }
9074 else
9075 # FIXME - insert some real tests, host_os isn't really good enough
9076   case $host_os in
9077    darwin*)
9078        if test -n "$STRIP" ; then
9079          striplib="$STRIP -x"
9080          { echo "$as_me:$LINENO: result: yes" >&5
9081 echo "${ECHO_T}yes" >&6; }
9082        else
9083   { echo "$as_me:$LINENO: result: no" >&5
9084 echo "${ECHO_T}no" >&6; }
9085 fi
9086        ;;
9087    *)
9088   { echo "$as_me:$LINENO: result: no" >&5
9089 echo "${ECHO_T}no" >&6; }
9090     ;;
9091   esac
9092 fi
9093
9094 if test "x$enable_dlopen" != xyes; then
9095   enable_dlopen=unknown
9096   enable_dlopen_self=unknown
9097   enable_dlopen_self_static=unknown
9098 else
9099   lt_cv_dlopen=no
9100   lt_cv_dlopen_libs=
9101
9102   case $host_os in
9103   beos*)
9104     lt_cv_dlopen="load_add_on"
9105     lt_cv_dlopen_libs=
9106     lt_cv_dlopen_self=yes
9107     ;;
9108
9109   mingw* | pw32*)
9110     lt_cv_dlopen="LoadLibrary"
9111     lt_cv_dlopen_libs=
9112    ;;
9113
9114   cygwin*)
9115     lt_cv_dlopen="dlopen"
9116     lt_cv_dlopen_libs=
9117    ;;
9118
9119   darwin*)
9120   # if libdl is installed we need to link against it
9121     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9122 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9123 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9124   echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126   ac_check_lib_save_LIBS=$LIBS
9127 LIBS="-ldl  $LIBS"
9128 cat >conftest.$ac_ext <<_ACEOF
9129 /* confdefs.h.  */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h.  */
9134
9135 /* Override any GCC internal prototype to avoid an error.
9136    Use char because int might match the return type of a GCC
9137    builtin and then its argument prototype would still apply.  */
9138 #ifdef __cplusplus
9139 extern "C"
9140 #endif
9141 char dlopen ();
9142 int
9143 main ()
9144 {
9145 return dlopen ();
9146   ;
9147   return 0;
9148 }
9149 _ACEOF
9150 rm -f conftest.$ac_objext conftest$ac_exeext
9151 if { (ac_try="$ac_link"
9152 case "(($ac_try" in
9153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154   *) ac_try_echo=$ac_try;;
9155 esac
9156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157   (eval "$ac_link") 2>conftest.er1
9158   ac_status=$?
9159   grep -v '^ *+' conftest.er1 >conftest.err
9160   rm -f conftest.er1
9161   cat conftest.err >&5
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); } && {
9164          test -z "$ac_c_werror_flag" ||
9165          test ! -s conftest.err
9166        } && test -s conftest$ac_exeext &&
9167        $as_test_x conftest$ac_exeext; then
9168   ac_cv_lib_dl_dlopen=yes
9169 else
9170   echo "$as_me: failed program was:" >&5
9171 sed 's/^/| /' conftest.$ac_ext >&5
9172
9173         ac_cv_lib_dl_dlopen=no
9174 fi
9175
9176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9177       conftest$ac_exeext conftest.$ac_ext
9178 LIBS=$ac_check_lib_save_LIBS
9179 fi
9180 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9181 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9182 if test $ac_cv_lib_dl_dlopen = yes; then
9183   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9184 else
9185
9186     lt_cv_dlopen="dyld"
9187     lt_cv_dlopen_libs=
9188     lt_cv_dlopen_self=yes
9189
9190 fi
9191
9192    ;;
9193
9194   *)
9195     { echo "$as_me:$LINENO: checking for shl_load" >&5
9196 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9197 if test "${ac_cv_func_shl_load+set}" = set; then
9198   echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200   cat >conftest.$ac_ext <<_ACEOF
9201 /* confdefs.h.  */
9202 _ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h.  */
9206 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9208 #define shl_load innocuous_shl_load
9209
9210 /* System header to define __stub macros and hopefully few prototypes,
9211     which can conflict with char shl_load (); below.
9212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9213     <limits.h> exists even on freestanding compilers.  */
9214
9215 #ifdef __STDC__
9216 # include <limits.h>
9217 #else
9218 # include <assert.h>
9219 #endif
9220
9221 #undef shl_load
9222
9223 /* Override any GCC internal prototype to avoid an error.
9224    Use char because int might match the return type of a GCC
9225    builtin and then its argument prototype would still apply.  */
9226 #ifdef __cplusplus
9227 extern "C"
9228 #endif
9229 char shl_load ();
9230 /* The GNU C library defines this for functions which it implements
9231     to always fail with ENOSYS.  Some functions are actually named
9232     something starting with __ and the normal name is an alias.  */
9233 #if defined __stub_shl_load || defined __stub___shl_load
9234 choke me
9235 #endif
9236
9237 int
9238 main ()
9239 {
9240 return shl_load ();
9241   ;
9242   return 0;
9243 }
9244 _ACEOF
9245 rm -f conftest.$ac_objext conftest$ac_exeext
9246 if { (ac_try="$ac_link"
9247 case "(($ac_try" in
9248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249   *) ac_try_echo=$ac_try;;
9250 esac
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252   (eval "$ac_link") 2>conftest.er1
9253   ac_status=$?
9254   grep -v '^ *+' conftest.er1 >conftest.err
9255   rm -f conftest.er1
9256   cat conftest.err >&5
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); } && {
9259          test -z "$ac_c_werror_flag" ||
9260          test ! -s conftest.err
9261        } && test -s conftest$ac_exeext &&
9262        $as_test_x conftest$ac_exeext; then
9263   ac_cv_func_shl_load=yes
9264 else
9265   echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9267
9268         ac_cv_func_shl_load=no
9269 fi
9270
9271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9272       conftest$ac_exeext conftest.$ac_ext
9273 fi
9274 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9275 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9276 if test $ac_cv_func_shl_load = yes; then
9277   lt_cv_dlopen="shl_load"
9278 else
9279   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9280 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9281 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9282   echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284   ac_check_lib_save_LIBS=$LIBS
9285 LIBS="-ldld  $LIBS"
9286 cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h.  */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h.  */
9292
9293 /* Override any GCC internal prototype to avoid an error.
9294    Use char because int might match the return type of a GCC
9295    builtin and then its argument prototype would still apply.  */
9296 #ifdef __cplusplus
9297 extern "C"
9298 #endif
9299 char shl_load ();
9300 int
9301 main ()
9302 {
9303 return shl_load ();
9304   ;
9305   return 0;
9306 }
9307 _ACEOF
9308 rm -f conftest.$ac_objext conftest$ac_exeext
9309 if { (ac_try="$ac_link"
9310 case "(($ac_try" in
9311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9312   *) ac_try_echo=$ac_try;;
9313 esac
9314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315   (eval "$ac_link") 2>conftest.er1
9316   ac_status=$?
9317   grep -v '^ *+' conftest.er1 >conftest.err
9318   rm -f conftest.er1
9319   cat conftest.err >&5
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); } && {
9322          test -z "$ac_c_werror_flag" ||
9323          test ! -s conftest.err
9324        } && test -s conftest$ac_exeext &&
9325        $as_test_x conftest$ac_exeext; then
9326   ac_cv_lib_dld_shl_load=yes
9327 else
9328   echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9330
9331         ac_cv_lib_dld_shl_load=no
9332 fi
9333
9334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9335       conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9337 fi
9338 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9339 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9340 if test $ac_cv_lib_dld_shl_load = yes; then
9341   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9342 else
9343   { echo "$as_me:$LINENO: checking for dlopen" >&5
9344 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9345 if test "${ac_cv_func_dlopen+set}" = set; then
9346   echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348   cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9356 #define dlopen innocuous_dlopen
9357
9358 /* System header to define __stub macros and hopefully few prototypes,
9359     which can conflict with char dlopen (); below.
9360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9361     <limits.h> exists even on freestanding compilers.  */
9362
9363 #ifdef __STDC__
9364 # include <limits.h>
9365 #else
9366 # include <assert.h>
9367 #endif
9368
9369 #undef dlopen
9370
9371 /* Override any GCC internal prototype to avoid an error.
9372    Use char because int might match the return type of a GCC
9373    builtin and then its argument prototype would still apply.  */
9374 #ifdef __cplusplus
9375 extern "C"
9376 #endif
9377 char dlopen ();
9378 /* The GNU C library defines this for functions which it implements
9379     to always fail with ENOSYS.  Some functions are actually named
9380     something starting with __ and the normal name is an alias.  */
9381 #if defined __stub_dlopen || defined __stub___dlopen
9382 choke me
9383 #endif
9384
9385 int
9386 main ()
9387 {
9388 return dlopen ();
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (ac_try="$ac_link"
9395 case "(($ac_try" in
9396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397   *) ac_try_echo=$ac_try;;
9398 esac
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400   (eval "$ac_link") 2>conftest.er1
9401   ac_status=$?
9402   grep -v '^ *+' conftest.er1 >conftest.err
9403   rm -f conftest.er1
9404   cat conftest.err >&5
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); } && {
9407          test -z "$ac_c_werror_flag" ||
9408          test ! -s conftest.err
9409        } && test -s conftest$ac_exeext &&
9410        $as_test_x conftest$ac_exeext; then
9411   ac_cv_func_dlopen=yes
9412 else
9413   echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9415
9416         ac_cv_func_dlopen=no
9417 fi
9418
9419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9420       conftest$ac_exeext conftest.$ac_ext
9421 fi
9422 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9423 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9424 if test $ac_cv_func_dlopen = yes; then
9425   lt_cv_dlopen="dlopen"
9426 else
9427   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9428 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9429 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432   ac_check_lib_save_LIBS=$LIBS
9433 LIBS="-ldl  $LIBS"
9434 cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h.  */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h.  */
9440
9441 /* Override any GCC internal prototype to avoid an error.
9442    Use char because int might match the return type of a GCC
9443    builtin and then its argument prototype would still apply.  */
9444 #ifdef __cplusplus
9445 extern "C"
9446 #endif
9447 char dlopen ();
9448 int
9449 main ()
9450 {
9451 return dlopen ();
9452   ;
9453   return 0;
9454 }
9455 _ACEOF
9456 rm -f conftest.$ac_objext conftest$ac_exeext
9457 if { (ac_try="$ac_link"
9458 case "(($ac_try" in
9459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460   *) ac_try_echo=$ac_try;;
9461 esac
9462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463   (eval "$ac_link") 2>conftest.er1
9464   ac_status=$?
9465   grep -v '^ *+' conftest.er1 >conftest.err
9466   rm -f conftest.er1
9467   cat conftest.err >&5
9468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); } && {
9470          test -z "$ac_c_werror_flag" ||
9471          test ! -s conftest.err
9472        } && test -s conftest$ac_exeext &&
9473        $as_test_x conftest$ac_exeext; then
9474   ac_cv_lib_dl_dlopen=yes
9475 else
9476   echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9478
9479         ac_cv_lib_dl_dlopen=no
9480 fi
9481
9482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9483       conftest$ac_exeext conftest.$ac_ext
9484 LIBS=$ac_check_lib_save_LIBS
9485 fi
9486 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9487 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9488 if test $ac_cv_lib_dl_dlopen = yes; then
9489   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9490 else
9491   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9492 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9493 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9494   echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496   ac_check_lib_save_LIBS=$LIBS
9497 LIBS="-lsvld  $LIBS"
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h.  */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h.  */
9504
9505 /* Override any GCC internal prototype to avoid an error.
9506    Use char because int might match the return type of a GCC
9507    builtin and then its argument prototype would still apply.  */
9508 #ifdef __cplusplus
9509 extern "C"
9510 #endif
9511 char dlopen ();
9512 int
9513 main ()
9514 {
9515 return dlopen ();
9516   ;
9517   return 0;
9518 }
9519 _ACEOF
9520 rm -f conftest.$ac_objext conftest$ac_exeext
9521 if { (ac_try="$ac_link"
9522 case "(($ac_try" in
9523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524   *) ac_try_echo=$ac_try;;
9525 esac
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527   (eval "$ac_link") 2>conftest.er1
9528   ac_status=$?
9529   grep -v '^ *+' conftest.er1 >conftest.err
9530   rm -f conftest.er1
9531   cat conftest.err >&5
9532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533   (exit $ac_status); } && {
9534          test -z "$ac_c_werror_flag" ||
9535          test ! -s conftest.err
9536        } && test -s conftest$ac_exeext &&
9537        $as_test_x conftest$ac_exeext; then
9538   ac_cv_lib_svld_dlopen=yes
9539 else
9540   echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9542
9543         ac_cv_lib_svld_dlopen=no
9544 fi
9545
9546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9547       conftest$ac_exeext conftest.$ac_ext
9548 LIBS=$ac_check_lib_save_LIBS
9549 fi
9550 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9551 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9552 if test $ac_cv_lib_svld_dlopen = yes; then
9553   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9554 else
9555   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9556 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9557 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9558   echo $ECHO_N "(cached) $ECHO_C" >&6
9559 else
9560   ac_check_lib_save_LIBS=$LIBS
9561 LIBS="-ldld  $LIBS"
9562 cat >conftest.$ac_ext <<_ACEOF
9563 /* confdefs.h.  */
9564 _ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h.  */
9568
9569 /* Override any GCC internal prototype to avoid an error.
9570    Use char because int might match the return type of a GCC
9571    builtin and then its argument prototype would still apply.  */
9572 #ifdef __cplusplus
9573 extern "C"
9574 #endif
9575 char dld_link ();
9576 int
9577 main ()
9578 {
9579 return dld_link ();
9580   ;
9581   return 0;
9582 }
9583 _ACEOF
9584 rm -f conftest.$ac_objext conftest$ac_exeext
9585 if { (ac_try="$ac_link"
9586 case "(($ac_try" in
9587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588   *) ac_try_echo=$ac_try;;
9589 esac
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591   (eval "$ac_link") 2>conftest.er1
9592   ac_status=$?
9593   grep -v '^ *+' conftest.er1 >conftest.err
9594   rm -f conftest.er1
9595   cat conftest.err >&5
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); } && {
9598          test -z "$ac_c_werror_flag" ||
9599          test ! -s conftest.err
9600        } && test -s conftest$ac_exeext &&
9601        $as_test_x conftest$ac_exeext; then
9602   ac_cv_lib_dld_dld_link=yes
9603 else
9604   echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9606
9607         ac_cv_lib_dld_dld_link=no
9608 fi
9609
9610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9611       conftest$ac_exeext conftest.$ac_ext
9612 LIBS=$ac_check_lib_save_LIBS
9613 fi
9614 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9615 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9616 if test $ac_cv_lib_dld_dld_link = yes; then
9617   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9618 fi
9619
9620
9621 fi
9622
9623
9624 fi
9625
9626
9627 fi
9628
9629
9630 fi
9631
9632
9633 fi
9634
9635     ;;
9636   esac
9637
9638   if test "x$lt_cv_dlopen" != xno; then
9639     enable_dlopen=yes
9640   else
9641     enable_dlopen=no
9642   fi
9643
9644   case $lt_cv_dlopen in
9645   dlopen)
9646     save_CPPFLAGS="$CPPFLAGS"
9647     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9648
9649     save_LDFLAGS="$LDFLAGS"
9650     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9651
9652     save_LIBS="$LIBS"
9653     LIBS="$lt_cv_dlopen_libs $LIBS"
9654
9655     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9656 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9657 if test "${lt_cv_dlopen_self+set}" = set; then
9658   echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660           if test "$cross_compiling" = yes; then :
9661   lt_cv_dlopen_self=cross
9662 else
9663   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9664   lt_status=$lt_dlunknown
9665   cat > conftest.$ac_ext <<EOF
9666 #line 9666 "configure"
9667 #include "confdefs.h"
9668
9669 #if HAVE_DLFCN_H
9670 #include <dlfcn.h>
9671 #endif
9672
9673 #include <stdio.h>
9674
9675 #ifdef RTLD_GLOBAL
9676 #  define LT_DLGLOBAL           RTLD_GLOBAL
9677 #else
9678 #  ifdef DL_GLOBAL
9679 #    define LT_DLGLOBAL         DL_GLOBAL
9680 #  else
9681 #    define LT_DLGLOBAL         0
9682 #  endif
9683 #endif
9684
9685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9686    find out it does not work in some platform. */
9687 #ifndef LT_DLLAZY_OR_NOW
9688 #  ifdef RTLD_LAZY
9689 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9690 #  else
9691 #    ifdef DL_LAZY
9692 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9693 #    else
9694 #      ifdef RTLD_NOW
9695 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9696 #      else
9697 #        ifdef DL_NOW
9698 #          define LT_DLLAZY_OR_NOW      DL_NOW
9699 #        else
9700 #          define LT_DLLAZY_OR_NOW      0
9701 #        endif
9702 #      endif
9703 #    endif
9704 #  endif
9705 #endif
9706
9707 #ifdef __cplusplus
9708 extern "C" void exit (int);
9709 #endif
9710
9711 void fnord() { int i=42;}
9712 int main ()
9713 {
9714   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9715   int status = $lt_dlunknown;
9716
9717   if (self)
9718     {
9719       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9720       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9721       /* dlclose (self); */
9722     }
9723   else
9724     puts (dlerror ());
9725
9726     exit (status);
9727 }
9728 EOF
9729   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9730   (eval $ac_link) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9734     (./conftest; exit; ) >&5 2>/dev/null
9735     lt_status=$?
9736     case x$lt_status in
9737       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9738       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9739       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9740     esac
9741   else :
9742     # compilation failed
9743     lt_cv_dlopen_self=no
9744   fi
9745 fi
9746 rm -fr conftest*
9747
9748
9749 fi
9750 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9751 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9752
9753     if test "x$lt_cv_dlopen_self" = xyes; then
9754       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9755       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9756 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9757 if test "${lt_cv_dlopen_self_static+set}" = set; then
9758   echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760           if test "$cross_compiling" = yes; then :
9761   lt_cv_dlopen_self_static=cross
9762 else
9763   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9764   lt_status=$lt_dlunknown
9765   cat > conftest.$ac_ext <<EOF
9766 #line 9766 "configure"
9767 #include "confdefs.h"
9768
9769 #if HAVE_DLFCN_H
9770 #include <dlfcn.h>
9771 #endif
9772
9773 #include <stdio.h>
9774
9775 #ifdef RTLD_GLOBAL
9776 #  define LT_DLGLOBAL           RTLD_GLOBAL
9777 #else
9778 #  ifdef DL_GLOBAL
9779 #    define LT_DLGLOBAL         DL_GLOBAL
9780 #  else
9781 #    define LT_DLGLOBAL         0
9782 #  endif
9783 #endif
9784
9785 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9786    find out it does not work in some platform. */
9787 #ifndef LT_DLLAZY_OR_NOW
9788 #  ifdef RTLD_LAZY
9789 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9790 #  else
9791 #    ifdef DL_LAZY
9792 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9793 #    else
9794 #      ifdef RTLD_NOW
9795 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9796 #      else
9797 #        ifdef DL_NOW
9798 #          define LT_DLLAZY_OR_NOW      DL_NOW
9799 #        else
9800 #          define LT_DLLAZY_OR_NOW      0
9801 #        endif
9802 #      endif
9803 #    endif
9804 #  endif
9805 #endif
9806
9807 #ifdef __cplusplus
9808 extern "C" void exit (int);
9809 #endif
9810
9811 void fnord() { int i=42;}
9812 int main ()
9813 {
9814   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9815   int status = $lt_dlunknown;
9816
9817   if (self)
9818     {
9819       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9820       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9821       /* dlclose (self); */
9822     }
9823   else
9824     puts (dlerror ());
9825
9826     exit (status);
9827 }
9828 EOF
9829   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830   (eval $ac_link) 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9834     (./conftest; exit; ) >&5 2>/dev/null
9835     lt_status=$?
9836     case x$lt_status in
9837       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9838       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9839       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9840     esac
9841   else :
9842     # compilation failed
9843     lt_cv_dlopen_self_static=no
9844   fi
9845 fi
9846 rm -fr conftest*
9847
9848
9849 fi
9850 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9851 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9852     fi
9853
9854     CPPFLAGS="$save_CPPFLAGS"
9855     LDFLAGS="$save_LDFLAGS"
9856     LIBS="$save_LIBS"
9857     ;;
9858   esac
9859
9860   case $lt_cv_dlopen_self in
9861   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9862   *) enable_dlopen_self=unknown ;;
9863   esac
9864
9865   case $lt_cv_dlopen_self_static in
9866   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9867   *) enable_dlopen_self_static=unknown ;;
9868   esac
9869 fi
9870
9871
9872 # Report which library types will actually be built
9873 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9874 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9875 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9876 echo "${ECHO_T}$can_build_shared" >&6; }
9877
9878 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9879 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9880 test "$can_build_shared" = "no" && enable_shared=no
9881
9882 # On AIX, shared libraries and static libraries use the same namespace, and
9883 # are all built from PIC.
9884 case $host_os in
9885 aix3*)
9886   test "$enable_shared" = yes && enable_static=no
9887   if test -n "$RANLIB"; then
9888     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9889     postinstall_cmds='$RANLIB $lib'
9890   fi
9891   ;;
9892
9893 aix4* | aix5*)
9894   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9895     test "$enable_shared" = yes && enable_static=no
9896   fi
9897     ;;
9898 esac
9899 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9900 echo "${ECHO_T}$enable_shared" >&6; }
9901
9902 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9903 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9904 # Make sure either enable_shared or enable_static is yes.
9905 test "$enable_shared" = yes || enable_static=yes
9906 { echo "$as_me:$LINENO: result: $enable_static" >&5
9907 echo "${ECHO_T}$enable_static" >&6; }
9908
9909 # The else clause should only fire when bootstrapping the
9910 # libtool distribution, otherwise you forgot to ship ltmain.sh
9911 # with your package, and you will get complaints that there are
9912 # no rules to generate ltmain.sh.
9913 if test -f "$ltmain"; then
9914   # See if we are running on zsh, and set the options which allow our commands through
9915   # without removal of \ escapes.
9916   if test -n "${ZSH_VERSION+set}" ; then
9917     setopt NO_GLOB_SUBST
9918   fi
9919   # Now quote all the things that may contain metacharacters while being
9920   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9921   # variables and quote the copies for generation of the libtool script.
9922   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9923     SED SHELL STRIP \
9924     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9925     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9926     deplibs_check_method reload_flag reload_cmds need_locks \
9927     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9928     lt_cv_sys_global_symbol_to_c_name_address \
9929     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9930     old_postinstall_cmds old_postuninstall_cmds \
9931     compiler \
9932     CC \
9933     LD \
9934     lt_prog_compiler_wl \
9935     lt_prog_compiler_pic \
9936     lt_prog_compiler_static \
9937     lt_prog_compiler_no_builtin_flag \
9938     export_dynamic_flag_spec \
9939     thread_safe_flag_spec \
9940     whole_archive_flag_spec \
9941     enable_shared_with_static_runtimes \
9942     old_archive_cmds \
9943     old_archive_from_new_cmds \
9944     predep_objects \
9945     postdep_objects \
9946     predeps \
9947     postdeps \
9948     compiler_lib_search_path \
9949     archive_cmds \
9950     archive_expsym_cmds \
9951     postinstall_cmds \
9952     postuninstall_cmds \
9953     old_archive_from_expsyms_cmds \
9954     allow_undefined_flag \
9955     no_undefined_flag \
9956     export_symbols_cmds \
9957     hardcode_libdir_flag_spec \
9958     hardcode_libdir_flag_spec_ld \
9959     hardcode_libdir_separator \
9960     hardcode_automatic \
9961     module_cmds \
9962     module_expsym_cmds \
9963     lt_cv_prog_compiler_c_o \
9964     exclude_expsyms \
9965     include_expsyms; do
9966
9967     case $var in
9968     old_archive_cmds | \
9969     old_archive_from_new_cmds | \
9970     archive_cmds | \
9971     archive_expsym_cmds | \
9972     module_cmds | \
9973     module_expsym_cmds | \
9974     old_archive_from_expsyms_cmds | \
9975     export_symbols_cmds | \
9976     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9977     postinstall_cmds | postuninstall_cmds | \
9978     old_postinstall_cmds | old_postuninstall_cmds | \
9979     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9980       # Double-quote double-evaled strings.
9981       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9982       ;;
9983     *)
9984       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9985       ;;
9986     esac
9987   done
9988
9989   case $lt_echo in
9990   *'\$0 --fallback-echo"')
9991     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9992     ;;
9993   esac
9994
9995 cfgfile="${ofile}T"
9996   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9997   $rm -f "$cfgfile"
9998   { echo "$as_me:$LINENO: creating $ofile" >&5
9999 echo "$as_me: creating $ofile" >&6;}
10000
10001   cat <<__EOF__ >> "$cfgfile"
10002 #! $SHELL
10003
10004 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10005 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10006 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10007 #
10008 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10009 # Free Software Foundation, Inc.
10010 #
10011 # This file is part of GNU Libtool:
10012 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10013 #
10014 # This program is free software; you can redistribute it and/or modify
10015 # it under the terms of the GNU General Public License as published by
10016 # the Free Software Foundation; either version 2 of the License, or
10017 # (at your option) any later version.
10018 #
10019 # This program is distributed in the hope that it will be useful, but
10020 # WITHOUT ANY WARRANTY; without even the implied warranty of
10021 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10022 # General Public License for more details.
10023 #
10024 # You should have received a copy of the GNU General Public License
10025 # along with this program; if not, write to the Free Software
10026 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10027 #
10028 # As a special exception to the GNU General Public License, if you
10029 # distribute this file as part of a program that contains a
10030 # configuration script generated by Autoconf, you may include it under
10031 # the same distribution terms that you use for the rest of that program.
10032
10033 # A sed program that does not truncate output.
10034 SED=$lt_SED
10035
10036 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10037 Xsed="$SED -e 1s/^X//"
10038
10039 # The HP-UX ksh and POSIX shell print the target directory to stdout
10040 # if CDPATH is set.
10041 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10042
10043 # The names of the tagged configurations supported by this script.
10044 available_tags=
10045
10046 # ### BEGIN LIBTOOL CONFIG
10047
10048 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10049
10050 # Shell to use when invoking shell scripts.
10051 SHELL=$lt_SHELL
10052
10053 # Whether or not to build shared libraries.
10054 build_libtool_libs=$enable_shared
10055
10056 # Whether or not to build static libraries.
10057 build_old_libs=$enable_static
10058
10059 # Whether or not to add -lc for building shared libraries.
10060 build_libtool_need_lc=$archive_cmds_need_lc
10061
10062 # Whether or not to disallow shared libs when runtime libs are static
10063 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10064
10065 # Whether or not to optimize for fast installation.
10066 fast_install=$enable_fast_install
10067
10068 # The host system.
10069 host_alias=$host_alias
10070 host=$host
10071 host_os=$host_os
10072
10073 # The build system.
10074 build_alias=$build_alias
10075 build=$build
10076 build_os=$build_os
10077
10078 # An echo program that does not interpret backslashes.
10079 echo=$lt_echo
10080
10081 # The archiver.
10082 AR=$lt_AR
10083 AR_FLAGS=$lt_AR_FLAGS
10084
10085 # A C compiler.
10086 LTCC=$lt_LTCC
10087
10088 # LTCC compiler flags.
10089 LTCFLAGS=$lt_LTCFLAGS
10090
10091 # A language-specific compiler.
10092 CC=$lt_compiler
10093
10094 # Is the compiler the GNU C compiler?
10095 with_gcc=$GCC
10096
10097 # An ERE matcher.
10098 EGREP=$lt_EGREP
10099
10100 # The linker used to build libraries.
10101 LD=$lt_LD
10102
10103 # Whether we need hard or soft links.
10104 LN_S=$lt_LN_S
10105
10106 # A BSD-compatible nm program.
10107 NM=$lt_NM
10108
10109 # A symbol stripping program
10110 STRIP=$lt_STRIP
10111
10112 # Used to examine libraries when file_magic_cmd begins "file"
10113 MAGIC_CMD=$MAGIC_CMD
10114
10115 # Used on cygwin: DLL creation program.
10116 DLLTOOL="$DLLTOOL"
10117
10118 # Used on cygwin: object dumper.
10119 OBJDUMP="$OBJDUMP"
10120
10121 # Used on cygwin: assembler.
10122 AS="$AS"
10123
10124 # The name of the directory that contains temporary libtool files.
10125 objdir=$objdir
10126
10127 # How to create reloadable object files.
10128 reload_flag=$lt_reload_flag
10129 reload_cmds=$lt_reload_cmds
10130
10131 # How to pass a linker flag through the compiler.
10132 wl=$lt_lt_prog_compiler_wl
10133
10134 # Object file suffix (normally "o").
10135 objext="$ac_objext"
10136
10137 # Old archive suffix (normally "a").
10138 libext="$libext"
10139
10140 # Shared library suffix (normally ".so").
10141 shrext_cmds='$shrext_cmds'
10142
10143 # Executable file suffix (normally "").
10144 exeext="$exeext"
10145
10146 # Additional compiler flags for building library objects.
10147 pic_flag=$lt_lt_prog_compiler_pic
10148 pic_mode=$pic_mode
10149
10150 # What is the maximum length of a command?
10151 max_cmd_len=$lt_cv_sys_max_cmd_len
10152
10153 # Does compiler simultaneously support -c and -o options?
10154 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10155
10156 # Must we lock files when doing compilation?
10157 need_locks=$lt_need_locks
10158
10159 # Do we need the lib prefix for modules?
10160 need_lib_prefix=$need_lib_prefix
10161
10162 # Do we need a version for libraries?
10163 need_version=$need_version
10164
10165 # Whether dlopen is supported.
10166 dlopen_support=$enable_dlopen
10167
10168 # Whether dlopen of programs is supported.
10169 dlopen_self=$enable_dlopen_self
10170
10171 # Whether dlopen of statically linked programs is supported.
10172 dlopen_self_static=$enable_dlopen_self_static
10173
10174 # Compiler flag to prevent dynamic linking.
10175 link_static_flag=$lt_lt_prog_compiler_static
10176
10177 # Compiler flag to turn off builtin functions.
10178 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10179
10180 # Compiler flag to allow reflexive dlopens.
10181 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10182
10183 # Compiler flag to generate shared objects directly from archives.
10184 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10185
10186 # Compiler flag to generate thread-safe objects.
10187 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10188
10189 # Library versioning type.
10190 version_type=$version_type
10191
10192 # Format of library name prefix.
10193 libname_spec=$lt_libname_spec
10194
10195 # List of archive names.  First name is the real one, the rest are links.
10196 # The last name is the one that the linker finds with -lNAME.
10197 library_names_spec=$lt_library_names_spec
10198
10199 # The coded name of the library, if different from the real name.
10200 soname_spec=$lt_soname_spec
10201
10202 # Commands used to build and install an old-style archive.
10203 RANLIB=$lt_RANLIB
10204 old_archive_cmds=$lt_old_archive_cmds
10205 old_postinstall_cmds=$lt_old_postinstall_cmds
10206 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10207
10208 # Create an old-style archive from a shared archive.
10209 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10210
10211 # Create a temporary old-style archive to link instead of a shared archive.
10212 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10213
10214 # Commands used to build and install a shared archive.
10215 archive_cmds=$lt_archive_cmds
10216 archive_expsym_cmds=$lt_archive_expsym_cmds
10217 postinstall_cmds=$lt_postinstall_cmds
10218 postuninstall_cmds=$lt_postuninstall_cmds
10219
10220 # Commands used to build a loadable module (assumed same as above if empty)
10221 module_cmds=$lt_module_cmds
10222 module_expsym_cmds=$lt_module_expsym_cmds
10223
10224 # Commands to strip libraries.
10225 old_striplib=$lt_old_striplib
10226 striplib=$lt_striplib
10227
10228 # Dependencies to place before the objects being linked to create a
10229 # shared library.
10230 predep_objects=$lt_predep_objects
10231
10232 # Dependencies to place after the objects being linked to create a
10233 # shared library.
10234 postdep_objects=$lt_postdep_objects
10235
10236 # Dependencies to place before the objects being linked to create a
10237 # shared library.
10238 predeps=$lt_predeps
10239
10240 # Dependencies to place after the objects being linked to create a
10241 # shared library.
10242 postdeps=$lt_postdeps
10243
10244 # The library search path used internally by the compiler when linking
10245 # a shared library.
10246 compiler_lib_search_path=$lt_compiler_lib_search_path
10247
10248 # Method to check whether dependent libraries are shared objects.
10249 deplibs_check_method=$lt_deplibs_check_method
10250
10251 # Command to use when deplibs_check_method == file_magic.
10252 file_magic_cmd=$lt_file_magic_cmd
10253
10254 # Flag that allows shared libraries with undefined symbols to be built.
10255 allow_undefined_flag=$lt_allow_undefined_flag
10256
10257 # Flag that forces no undefined symbols.
10258 no_undefined_flag=$lt_no_undefined_flag
10259
10260 # Commands used to finish a libtool library installation in a directory.
10261 finish_cmds=$lt_finish_cmds
10262
10263 # Same as above, but a single script fragment to be evaled but not shown.
10264 finish_eval=$lt_finish_eval
10265
10266 # Take the output of nm and produce a listing of raw symbols and C names.
10267 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10268
10269 # Transform the output of nm in a proper C declaration
10270 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10271
10272 # Transform the output of nm in a C name address pair
10273 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10274
10275 # This is the shared library runtime path variable.
10276 runpath_var=$runpath_var
10277
10278 # This is the shared library path variable.
10279 shlibpath_var=$shlibpath_var
10280
10281 # Is shlibpath searched before the hard-coded library search path?
10282 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10283
10284 # How to hardcode a shared library path into an executable.
10285 hardcode_action=$hardcode_action
10286
10287 # Whether we should hardcode library paths into libraries.
10288 hardcode_into_libs=$hardcode_into_libs
10289
10290 # Flag to hardcode \$libdir into a binary during linking.
10291 # This must work even if \$libdir does not exist.
10292 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10293
10294 # If ld is used when linking, flag to hardcode \$libdir into
10295 # a binary during linking. This must work even if \$libdir does
10296 # not exist.
10297 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10298
10299 # Whether we need a single -rpath flag with a separated argument.
10300 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10301
10302 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10303 # resulting binary.
10304 hardcode_direct=$hardcode_direct
10305
10306 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10307 # resulting binary.
10308 hardcode_minus_L=$hardcode_minus_L
10309
10310 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10311 # the resulting binary.
10312 hardcode_shlibpath_var=$hardcode_shlibpath_var
10313
10314 # Set to yes if building a shared library automatically hardcodes DIR into the library
10315 # and all subsequent libraries and executables linked against it.
10316 hardcode_automatic=$hardcode_automatic
10317
10318 # Variables whose values should be saved in libtool wrapper scripts and
10319 # restored at relink time.
10320 variables_saved_for_relink="$variables_saved_for_relink"
10321
10322 # Whether libtool must link a program against all its dependency libraries.
10323 link_all_deplibs=$link_all_deplibs
10324
10325 # Compile-time system search path for libraries
10326 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10327
10328 # Run-time system search path for libraries
10329 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10330
10331 # Fix the shell variable \$srcfile for the compiler.
10332 fix_srcfile_path="$fix_srcfile_path"
10333
10334 # Set to yes if exported symbols are required.
10335 always_export_symbols=$always_export_symbols
10336
10337 # The commands to list exported symbols.
10338 export_symbols_cmds=$lt_export_symbols_cmds
10339
10340 # The commands to extract the exported symbol list from a shared archive.
10341 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10342
10343 # Symbols that should not be listed in the preloaded symbols.
10344 exclude_expsyms=$lt_exclude_expsyms
10345
10346 # Symbols that must always be exported.
10347 include_expsyms=$lt_include_expsyms
10348
10349 # ### END LIBTOOL CONFIG
10350
10351 __EOF__
10352
10353
10354   case $host_os in
10355   aix3*)
10356     cat <<\EOF >> "$cfgfile"
10357
10358 # AIX sometimes has problems with the GCC collect2 program.  For some
10359 # reason, if we set the COLLECT_NAMES environment variable, the problems
10360 # vanish in a puff of smoke.
10361 if test "X${COLLECT_NAMES+set}" != Xset; then
10362   COLLECT_NAMES=
10363   export COLLECT_NAMES
10364 fi
10365 EOF
10366     ;;
10367   esac
10368
10369   # We use sed instead of cat because bash on DJGPP gets confused if
10370   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10371   # text mode, it properly converts lines to CR/LF.  This bash problem
10372   # is reportedly fixed, but why not run on old versions too?
10373   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10374
10375   mv -f "$cfgfile" "$ofile" || \
10376     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10377   chmod +x "$ofile"
10378
10379 else
10380   # If there is no Makefile yet, we rely on a make rule to execute
10381   # `config.status --recheck' to rerun these tests and create the
10382   # libtool script then.
10383   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10384   if test -f "$ltmain_in"; then
10385     test -f Makefile && make "$ltmain"
10386   fi
10387 fi
10388
10389
10390 ac_ext=c
10391 ac_cpp='$CPP $CPPFLAGS'
10392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10395
10396 CC="$lt_save_CC"
10397
10398
10399 # Check whether --with-tags was given.
10400 if test "${with_tags+set}" = set; then
10401   withval=$with_tags; tagnames="$withval"
10402 fi
10403
10404
10405 if test -f "$ltmain" && test -n "$tagnames"; then
10406   if test ! -f "${ofile}"; then
10407     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10408 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10409   fi
10410
10411   if test -z "$LTCC"; then
10412     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10413     if test -z "$LTCC"; then
10414       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10415 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10416     else
10417       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10418 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10419     fi
10420   fi
10421   if test -z "$LTCFLAGS"; then
10422     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10423   fi
10424
10425   # Extract list of available tagged configurations in $ofile.
10426   # Note that this assumes the entire list is on one line.
10427   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10428
10429   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10430   for tagname in $tagnames; do
10431     IFS="$lt_save_ifs"
10432     # Check whether tagname contains only valid characters
10433     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10434     "") ;;
10435     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10436 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10437    { (exit 1); exit 1; }; }
10438         ;;
10439     esac
10440
10441     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10442     then
10443       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10444 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10445    { (exit 1); exit 1; }; }
10446     fi
10447
10448     # Update the list of available tags.
10449     if test -n "$tagname"; then
10450       echo appending configuration tag \"$tagname\" to $ofile
10451
10452       case $tagname in
10453       CXX)
10454         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10455             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10456             (test "X$CXX" != "Xg++"))) ; then
10457           ac_ext=cpp
10458 ac_cpp='$CXXCPP $CPPFLAGS'
10459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10462
10463
10464
10465
10466 archive_cmds_need_lc_CXX=no
10467 allow_undefined_flag_CXX=
10468 always_export_symbols_CXX=no
10469 archive_expsym_cmds_CXX=
10470 export_dynamic_flag_spec_CXX=
10471 hardcode_direct_CXX=no
10472 hardcode_libdir_flag_spec_CXX=
10473 hardcode_libdir_flag_spec_ld_CXX=
10474 hardcode_libdir_separator_CXX=
10475 hardcode_minus_L_CXX=no
10476 hardcode_shlibpath_var_CXX=unsupported
10477 hardcode_automatic_CXX=no
10478 module_cmds_CXX=
10479 module_expsym_cmds_CXX=
10480 link_all_deplibs_CXX=unknown
10481 old_archive_cmds_CXX=$old_archive_cmds
10482 no_undefined_flag_CXX=
10483 whole_archive_flag_spec_CXX=
10484 enable_shared_with_static_runtimes_CXX=no
10485
10486 # Dependencies to place before and after the object being linked:
10487 predep_objects_CXX=
10488 postdep_objects_CXX=
10489 predeps_CXX=
10490 postdeps_CXX=
10491 compiler_lib_search_path_CXX=
10492
10493 # Source file extension for C++ test sources.
10494 ac_ext=cpp
10495
10496 # Object file extension for compiled C++ test sources.
10497 objext=o
10498 objext_CXX=$objext
10499
10500 # Code to be used in simple compile tests
10501 lt_simple_compile_test_code="int some_variable = 0;\n"
10502
10503 # Code to be used in simple link tests
10504 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10505
10506 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10507
10508 # If no C compiler was specified, use CC.
10509 LTCC=${LTCC-"$CC"}
10510
10511 # If no C compiler flags were specified, use CFLAGS.
10512 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10513
10514 # Allow CC to be a program name with arguments.
10515 compiler=$CC
10516
10517
10518 # save warnings/boilerplate of simple test code
10519 ac_outfile=conftest.$ac_objext
10520 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10521 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10522 _lt_compiler_boilerplate=`cat conftest.err`
10523 $rm conftest*
10524
10525 ac_outfile=conftest.$ac_objext
10526 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10527 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10528 _lt_linker_boilerplate=`cat conftest.err`
10529 $rm conftest*
10530
10531
10532 # Allow CC to be a program name with arguments.
10533 lt_save_CC=$CC
10534 lt_save_LD=$LD
10535 lt_save_GCC=$GCC
10536 GCC=$GXX
10537 lt_save_with_gnu_ld=$with_gnu_ld
10538 lt_save_path_LD=$lt_cv_path_LD
10539 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10540   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10541 else
10542   $as_unset lt_cv_prog_gnu_ld
10543 fi
10544 if test -n "${lt_cv_path_LDCXX+set}"; then
10545   lt_cv_path_LD=$lt_cv_path_LDCXX
10546 else
10547   $as_unset lt_cv_path_LD
10548 fi
10549 test -z "${LDCXX+set}" || LD=$LDCXX
10550 CC=${CXX-"c++"}
10551 compiler=$CC
10552 compiler_CXX=$CC
10553 for cc_temp in $compiler""; do
10554   case $cc_temp in
10555     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10556     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10557     \-*) ;;
10558     *) break;;
10559   esac
10560 done
10561 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10562
10563
10564 # We don't want -fno-exception wen compiling C++ code, so set the
10565 # no_builtin_flag separately
10566 if test "$GXX" = yes; then
10567   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10568 else
10569   lt_prog_compiler_no_builtin_flag_CXX=
10570 fi
10571
10572 if test "$GXX" = yes; then
10573   # Set up default GNU C++ configuration
10574
10575
10576 # Check whether --with-gnu-ld was given.
10577 if test "${with_gnu_ld+set}" = set; then
10578   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10579 else
10580   with_gnu_ld=no
10581 fi
10582
10583 ac_prog=ld
10584 if test "$GCC" = yes; then
10585   # Check if gcc -print-prog-name=ld gives a path.
10586   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10587 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10588   case $host in
10589   *-*-mingw*)
10590     # gcc leaves a trailing carriage return which upsets mingw
10591     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10592   *)
10593     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10594   esac
10595   case $ac_prog in
10596     # Accept absolute paths.
10597     [\\/]* | ?:[\\/]*)
10598       re_direlt='/[^/][^/]*/\.\./'
10599       # Canonicalize the pathname of ld
10600       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10601       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10602         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10603       done
10604       test -z "$LD" && LD="$ac_prog"
10605       ;;
10606   "")
10607     # If it fails, then pretend we aren't using GCC.
10608     ac_prog=ld
10609     ;;
10610   *)
10611     # If it is relative, then search for the first ld in PATH.
10612     with_gnu_ld=unknown
10613     ;;
10614   esac
10615 elif test "$with_gnu_ld" = yes; then
10616   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10617 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10618 else
10619   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10620 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10621 fi
10622 if test "${lt_cv_path_LD+set}" = set; then
10623   echo $ECHO_N "(cached) $ECHO_C" >&6
10624 else
10625   if test -z "$LD"; then
10626   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10627   for ac_dir in $PATH; do
10628     IFS="$lt_save_ifs"
10629     test -z "$ac_dir" && ac_dir=.
10630     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10631       lt_cv_path_LD="$ac_dir/$ac_prog"
10632       # Check to see if the program is GNU ld.  I'd rather use --version,
10633       # but apparently some variants of GNU ld only accept -v.
10634       # Break only if it was the GNU/non-GNU ld that we prefer.
10635       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10636       *GNU* | *'with BFD'*)
10637         test "$with_gnu_ld" != no && break
10638         ;;
10639       *)
10640         test "$with_gnu_ld" != yes && break
10641         ;;
10642       esac
10643     fi
10644   done
10645   IFS="$lt_save_ifs"
10646 else
10647   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10648 fi
10649 fi
10650
10651 LD="$lt_cv_path_LD"
10652 if test -n "$LD"; then
10653   { echo "$as_me:$LINENO: result: $LD" >&5
10654 echo "${ECHO_T}$LD" >&6; }
10655 else
10656   { echo "$as_me:$LINENO: result: no" >&5
10657 echo "${ECHO_T}no" >&6; }
10658 fi
10659 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10660 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10661    { (exit 1); exit 1; }; }
10662 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10663 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10664 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10665   echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10668 case `$LD -v 2>&1 </dev/null` in
10669 *GNU* | *'with BFD'*)
10670   lt_cv_prog_gnu_ld=yes
10671   ;;
10672 *)
10673   lt_cv_prog_gnu_ld=no
10674   ;;
10675 esac
10676 fi
10677 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10678 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10679 with_gnu_ld=$lt_cv_prog_gnu_ld
10680
10681
10682
10683   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10684   # archiving commands below assume that GNU ld is being used.
10685   if test "$with_gnu_ld" = yes; then
10686     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10687     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'
10688
10689     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10690     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10691
10692     # If archive_cmds runs LD, not CC, wlarc should be empty
10693     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10694     #     investigate it a little bit more. (MM)
10695     wlarc='${wl}'
10696
10697     # ancient GNU ld didn't support --whole-archive et. al.
10698     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10699         grep 'no-whole-archive' > /dev/null; then
10700       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10701     else
10702       whole_archive_flag_spec_CXX=
10703     fi
10704   else
10705     with_gnu_ld=no
10706     wlarc=
10707
10708     # A generic and very simple default shared library creation
10709     # command for GNU C++ for the case where it uses the native
10710     # linker, instead of GNU ld.  If possible, this setting should
10711     # overridden to take advantage of the native linker features on
10712     # the platform it is being used on.
10713     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10714   fi
10715
10716   # Commands to make compiler produce verbose output that lists
10717   # what "hidden" libraries, object files and flags are used when
10718   # linking a shared library.
10719   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10720
10721 else
10722   GXX=no
10723   with_gnu_ld=no
10724   wlarc=
10725 fi
10726
10727 # PORTME: fill in a description of your system's C++ link characteristics
10728 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10729 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10730 ld_shlibs_CXX=yes
10731 case $host_os in
10732   aix3*)
10733     # FIXME: insert proper C++ library support
10734     ld_shlibs_CXX=no
10735     ;;
10736   aix4* | aix5*)
10737     if test "$host_cpu" = ia64; then
10738       # On IA64, the linker does run time linking by default, so we don't
10739       # have to do anything special.
10740       aix_use_runtimelinking=no
10741       exp_sym_flag='-Bexport'
10742       no_entry_flag=""
10743     else
10744       aix_use_runtimelinking=no
10745
10746       # Test if we are trying to use run time linking or normal
10747       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10748       # need to do runtime linking.
10749       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10750         for ld_flag in $LDFLAGS; do
10751           case $ld_flag in
10752           *-brtl*)
10753             aix_use_runtimelinking=yes
10754             break
10755             ;;
10756           esac
10757         done
10758         ;;
10759       esac
10760
10761       exp_sym_flag='-bexport'
10762       no_entry_flag='-bnoentry'
10763     fi
10764
10765     # When large executables or shared objects are built, AIX ld can
10766     # have problems creating the table of contents.  If linking a library
10767     # or program results in "error TOC overflow" add -mminimal-toc to
10768     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10769     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10770
10771     archive_cmds_CXX=''
10772     hardcode_direct_CXX=yes
10773     hardcode_libdir_separator_CXX=':'
10774     link_all_deplibs_CXX=yes
10775
10776     if test "$GXX" = yes; then
10777       case $host_os in aix4.[012]|aix4.[012].*)
10778       # We only want to do this on AIX 4.2 and lower, the check
10779       # below for broken collect2 doesn't work under 4.3+
10780         collect2name=`${CC} -print-prog-name=collect2`
10781         if test -f "$collect2name" && \
10782            strings "$collect2name" | grep resolve_lib_name >/dev/null
10783         then
10784           # We have reworked collect2
10785           hardcode_direct_CXX=yes
10786         else
10787           # We have old collect2
10788           hardcode_direct_CXX=unsupported
10789           # It fails to find uninstalled libraries when the uninstalled
10790           # path is not listed in the libpath.  Setting hardcode_minus_L
10791           # to unsupported forces relinking
10792           hardcode_minus_L_CXX=yes
10793           hardcode_libdir_flag_spec_CXX='-L$libdir'
10794           hardcode_libdir_separator_CXX=
10795         fi
10796         ;;
10797       esac
10798       shared_flag='-shared'
10799       if test "$aix_use_runtimelinking" = yes; then
10800         shared_flag="$shared_flag "'${wl}-G'
10801       fi
10802     else
10803       # not using gcc
10804       if test "$host_cpu" = ia64; then
10805         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10806         # chokes on -Wl,-G. The following line is correct:
10807         shared_flag='-G'
10808       else
10809         if test "$aix_use_runtimelinking" = yes; then
10810           shared_flag='${wl}-G'
10811         else
10812           shared_flag='${wl}-bM:SRE'
10813         fi
10814       fi
10815     fi
10816
10817     # It seems that -bexpall does not export symbols beginning with
10818     # underscore (_), so it is better to generate a list of symbols to export.
10819     always_export_symbols_CXX=yes
10820     if test "$aix_use_runtimelinking" = yes; then
10821       # Warning - without using the other runtime loading flags (-brtl),
10822       # -berok will link without error, but may produce a broken library.
10823       allow_undefined_flag_CXX='-berok'
10824       # Determine the default libpath from the value encoded in an empty executable.
10825       cat >conftest.$ac_ext <<_ACEOF
10826 /* confdefs.h.  */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h.  */
10831
10832 int
10833 main ()
10834 {
10835
10836   ;
10837   return 0;
10838 }
10839 _ACEOF
10840 rm -f conftest.$ac_objext conftest$ac_exeext
10841 if { (ac_try="$ac_link"
10842 case "(($ac_try" in
10843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844   *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847   (eval "$ac_link") 2>conftest.er1
10848   ac_status=$?
10849   grep -v '^ *+' conftest.er1 >conftest.err
10850   rm -f conftest.er1
10851   cat conftest.err >&5
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); } && {
10854          test -z "$ac_cxx_werror_flag" ||
10855          test ! -s conftest.err
10856        } && test -s conftest$ac_exeext &&
10857        $as_test_x conftest$ac_exeext; then
10858
10859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10860 }'`
10861 # Check for a 64-bit object if we didn't find anything.
10862 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; }
10863 }'`; fi
10864 else
10865   echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10867
10868
10869 fi
10870
10871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10872       conftest$ac_exeext conftest.$ac_ext
10873 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10874
10875       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10876
10877       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"
10878      else
10879       if test "$host_cpu" = ia64; then
10880         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10881         allow_undefined_flag_CXX="-z nodefs"
10882         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"
10883       else
10884         # Determine the default libpath from the value encoded in an empty executable.
10885         cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h.  */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h.  */
10891
10892 int
10893 main ()
10894 {
10895
10896   ;
10897   return 0;
10898 }
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (ac_try="$ac_link"
10902 case "(($ac_try" in
10903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904   *) ac_try_echo=$ac_try;;
10905 esac
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907   (eval "$ac_link") 2>conftest.er1
10908   ac_status=$?
10909   grep -v '^ *+' conftest.er1 >conftest.err
10910   rm -f conftest.er1
10911   cat conftest.err >&5
10912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913   (exit $ac_status); } && {
10914          test -z "$ac_cxx_werror_flag" ||
10915          test ! -s conftest.err
10916        } && test -s conftest$ac_exeext &&
10917        $as_test_x conftest$ac_exeext; then
10918
10919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10920 }'`
10921 # Check for a 64-bit object if we didn't find anything.
10922 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; }
10923 }'`; fi
10924 else
10925   echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10927
10928
10929 fi
10930
10931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10932       conftest$ac_exeext conftest.$ac_ext
10933 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10934
10935         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10936         # Warning - without using the other run time loading flags,
10937         # -berok will link without error, but may produce a broken library.
10938         no_undefined_flag_CXX=' ${wl}-bernotok'
10939         allow_undefined_flag_CXX=' ${wl}-berok'
10940         # Exported symbols can be pulled into shared objects from archives
10941         whole_archive_flag_spec_CXX='$convenience'
10942         archive_cmds_need_lc_CXX=yes
10943         # This is similar to how AIX traditionally builds its shared libraries.
10944         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'
10945       fi
10946     fi
10947     ;;
10948
10949   beos*)
10950     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10951       allow_undefined_flag_CXX=unsupported
10952       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10953       # support --undefined.  This deserves some investigation.  FIXME
10954       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10955     else
10956       ld_shlibs_CXX=no
10957     fi
10958     ;;
10959
10960   chorus*)
10961     case $cc_basename in
10962       *)
10963         # FIXME: insert proper C++ library support
10964         ld_shlibs_CXX=no
10965         ;;
10966     esac
10967     ;;
10968
10969   cygwin* | mingw* | pw32*)
10970     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10971     # as there is no search path for DLLs.
10972     hardcode_libdir_flag_spec_CXX='-L$libdir'
10973     allow_undefined_flag_CXX=unsupported
10974     always_export_symbols_CXX=no
10975     enable_shared_with_static_runtimes_CXX=yes
10976
10977     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10978       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'
10979       # If the export-symbols file already is a .def file (1st line
10980       # is EXPORTS), use it as is; otherwise, prepend...
10981       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10982         cp $export_symbols $output_objdir/$soname.def;
10983       else
10984         echo EXPORTS > $output_objdir/$soname.def;
10985         cat $export_symbols >> $output_objdir/$soname.def;
10986       fi~
10987       $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'
10988     else
10989       ld_shlibs_CXX=no
10990     fi
10991   ;;
10992       darwin* | rhapsody*)
10993         case $host_os in
10994         rhapsody* | darwin1.[012])
10995          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10996          ;;
10997        *) # Darwin 1.3 on
10998          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10999            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11000          else
11001            case ${MACOSX_DEPLOYMENT_TARGET} in
11002              10.[012])
11003                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11004                ;;
11005              10.*)
11006                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11007                ;;
11008            esac
11009          fi
11010          ;;
11011         esac
11012       archive_cmds_need_lc_CXX=no
11013       hardcode_direct_CXX=no
11014       hardcode_automatic_CXX=yes
11015       hardcode_shlibpath_var_CXX=unsupported
11016       whole_archive_flag_spec_CXX=''
11017       link_all_deplibs_CXX=yes
11018
11019     if test "$GXX" = yes ; then
11020       lt_int_apple_cc_single_mod=no
11021       output_verbose_link_cmd='echo'
11022       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11023        lt_int_apple_cc_single_mod=yes
11024       fi
11025       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11026        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11027       else
11028           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'
11029         fi
11030         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11031         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11032           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11033             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}'
11034           else
11035             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}'
11036           fi
11037             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}'
11038       else
11039       case $cc_basename in
11040         xlc*)
11041          output_verbose_link_cmd='echo'
11042           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'
11043           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11044           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11045           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}'
11046           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}'
11047           ;;
11048        *)
11049          ld_shlibs_CXX=no
11050           ;;
11051       esac
11052       fi
11053         ;;
11054
11055   dgux*)
11056     case $cc_basename in
11057       ec++*)
11058         # FIXME: insert proper C++ library support
11059         ld_shlibs_CXX=no
11060         ;;
11061       ghcx*)
11062         # Green Hills C++ Compiler
11063         # FIXME: insert proper C++ library support
11064         ld_shlibs_CXX=no
11065         ;;
11066       *)
11067         # FIXME: insert proper C++ library support
11068         ld_shlibs_CXX=no
11069         ;;
11070     esac
11071     ;;
11072   freebsd[12]*)
11073     # C++ shared libraries reported to be fairly broken before switch to ELF
11074     ld_shlibs_CXX=no
11075     ;;
11076   freebsd-elf*)
11077     archive_cmds_need_lc_CXX=no
11078     ;;
11079   freebsd* | kfreebsd*-gnu | dragonfly*)
11080     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11081     # conventions
11082     ld_shlibs_CXX=yes
11083     ;;
11084   gnu*)
11085     ;;
11086   hpux9*)
11087     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11088     hardcode_libdir_separator_CXX=:
11089     export_dynamic_flag_spec_CXX='${wl}-E'
11090     hardcode_direct_CXX=yes
11091     hardcode_minus_L_CXX=yes # Not in the search PATH,
11092                                 # but as the default
11093                                 # location of the library.
11094
11095     case $cc_basename in
11096     CC*)
11097       # FIXME: insert proper C++ library support
11098       ld_shlibs_CXX=no
11099       ;;
11100     aCC*)
11101       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'
11102       # Commands to make compiler produce verbose output that lists
11103       # what "hidden" libraries, object files and flags are used when
11104       # linking a shared library.
11105       #
11106       # There doesn't appear to be a way to prevent this compiler from
11107       # explicitly linking system object files so we need to strip them
11108       # from the output so that they don't get included in the library
11109       # dependencies.
11110       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'
11111       ;;
11112     *)
11113       if test "$GXX" = yes; then
11114         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'
11115       else
11116         # FIXME: insert proper C++ library support
11117         ld_shlibs_CXX=no
11118       fi
11119       ;;
11120     esac
11121     ;;
11122   hpux10*|hpux11*)
11123     if test $with_gnu_ld = no; then
11124       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11125       hardcode_libdir_separator_CXX=:
11126
11127       case $host_cpu in
11128       hppa*64*|ia64*)
11129         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11130         ;;
11131       *)
11132         export_dynamic_flag_spec_CXX='${wl}-E'
11133         ;;
11134       esac
11135     fi
11136     case $host_cpu in
11137     hppa*64*|ia64*)
11138       hardcode_direct_CXX=no
11139       hardcode_shlibpath_var_CXX=no
11140       ;;
11141     *)
11142       hardcode_direct_CXX=yes
11143       hardcode_minus_L_CXX=yes # Not in the search PATH,
11144                                               # but as the default
11145                                               # location of the library.
11146       ;;
11147     esac
11148
11149     case $cc_basename in
11150       CC*)
11151         # FIXME: insert proper C++ library support
11152         ld_shlibs_CXX=no
11153         ;;
11154       aCC*)
11155         case $host_cpu in
11156         hppa*64*)
11157           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11158           ;;
11159         ia64*)
11160           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11161           ;;
11162         *)
11163           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11164           ;;
11165         esac
11166         # Commands to make compiler produce verbose output that lists
11167         # what "hidden" libraries, object files and flags are used when
11168         # linking a shared library.
11169         #
11170         # There doesn't appear to be a way to prevent this compiler from
11171         # explicitly linking system object files so we need to strip them
11172         # from the output so that they don't get included in the library
11173         # dependencies.
11174         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'
11175         ;;
11176       *)
11177         if test "$GXX" = yes; then
11178           if test $with_gnu_ld = no; then
11179             case $host_cpu in
11180             hppa*64*)
11181               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11182               ;;
11183             ia64*)
11184               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11185               ;;
11186             *)
11187               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'
11188               ;;
11189             esac
11190           fi
11191         else
11192           # FIXME: insert proper C++ library support
11193           ld_shlibs_CXX=no
11194         fi
11195         ;;
11196     esac
11197     ;;
11198   interix3*)
11199     hardcode_direct_CXX=no
11200     hardcode_shlibpath_var_CXX=no
11201     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11202     export_dynamic_flag_spec_CXX='${wl}-E'
11203     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11204     # Instead, shared libraries are loaded at an image base (0x10000000 by
11205     # default) and relocated if they conflict, which is a slow very memory
11206     # consuming and fragmenting process.  To avoid this, we pick a random,
11207     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11208     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11209     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'
11210     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'
11211     ;;
11212   irix5* | irix6*)
11213     case $cc_basename in
11214       CC*)
11215         # SGI C++
11216         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'
11217
11218         # Archives containing C++ object files must be created using
11219         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11220         # necessary to make sure instantiated templates are included
11221         # in the archive.
11222         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11223         ;;
11224       *)
11225         if test "$GXX" = yes; then
11226           if test "$with_gnu_ld" = no; then
11227             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'
11228           else
11229             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'
11230           fi
11231         fi
11232         link_all_deplibs_CXX=yes
11233         ;;
11234     esac
11235     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11236     hardcode_libdir_separator_CXX=:
11237     ;;
11238   linux*)
11239     case $cc_basename in
11240       KCC*)
11241         # Kuck and Associates, Inc. (KAI) C++ Compiler
11242
11243         # KCC will only create a shared library if the output file
11244         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11245         # to its proper name (with version) after linking.
11246         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'
11247         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'
11248         # Commands to make compiler produce verbose output that lists
11249         # what "hidden" libraries, object files and flags are used when
11250         # linking a shared library.
11251         #
11252         # There doesn't appear to be a way to prevent this compiler from
11253         # explicitly linking system object files so we need to strip them
11254         # from the output so that they don't get included in the library
11255         # dependencies.
11256         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'
11257
11258         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11259         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11260
11261         # Archives containing C++ object files must be created using
11262         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11263         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11264         ;;
11265       icpc*)
11266         # Intel C++
11267         with_gnu_ld=yes
11268         # version 8.0 and above of icpc choke on multiply defined symbols
11269         # if we add $predep_objects and $postdep_objects, however 7.1 and
11270         # earlier do not add the objects themselves.
11271         case `$CC -V 2>&1` in
11272         *"Version 7."*)
11273           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11274           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'
11275           ;;
11276         *)  # Version 8.0 or newer
11277           tmp_idyn=
11278           case $host_cpu in
11279             ia64*) tmp_idyn=' -i_dynamic';;
11280           esac
11281           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11282           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'
11283           ;;
11284         esac
11285         archive_cmds_need_lc_CXX=no
11286         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11287         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11288         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11289         ;;
11290       pgCC*)
11291         # Portland Group C++ compiler
11292         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11293         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'
11294
11295         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11296         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11297         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'
11298         ;;
11299       cxx*)
11300         # Compaq C++
11301         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11302         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'
11303
11304         runpath_var=LD_RUN_PATH
11305         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11306         hardcode_libdir_separator_CXX=:
11307
11308         # Commands to make compiler produce verbose output that lists
11309         # what "hidden" libraries, object files and flags are used when
11310         # linking a shared library.
11311         #
11312         # There doesn't appear to be a way to prevent this compiler from
11313         # explicitly linking system object files so we need to strip them
11314         # from the output so that they don't get included in the library
11315         # dependencies.
11316         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'
11317         ;;
11318     esac
11319     ;;
11320   lynxos*)
11321     # FIXME: insert proper C++ library support
11322     ld_shlibs_CXX=no
11323     ;;
11324   m88k*)
11325     # FIXME: insert proper C++ library support
11326     ld_shlibs_CXX=no
11327     ;;
11328   mvs*)
11329     case $cc_basename in
11330       cxx*)
11331         # FIXME: insert proper C++ library support
11332         ld_shlibs_CXX=no
11333         ;;
11334       *)
11335         # FIXME: insert proper C++ library support
11336         ld_shlibs_CXX=no
11337         ;;
11338     esac
11339     ;;
11340   netbsd*)
11341     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11342       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11343       wlarc=
11344       hardcode_libdir_flag_spec_CXX='-R$libdir'
11345       hardcode_direct_CXX=yes
11346       hardcode_shlibpath_var_CXX=no
11347     fi
11348     # Workaround some broken pre-1.5 toolchains
11349     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11350     ;;
11351   openbsd2*)
11352     # C++ shared libraries are fairly broken
11353     ld_shlibs_CXX=no
11354     ;;
11355   openbsd*)
11356     hardcode_direct_CXX=yes
11357     hardcode_shlibpath_var_CXX=no
11358     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11359     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11360     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11361       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11362       export_dynamic_flag_spec_CXX='${wl}-E'
11363       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11364     fi
11365     output_verbose_link_cmd='echo'
11366     ;;
11367   osf3*)
11368     case $cc_basename in
11369       KCC*)
11370         # Kuck and Associates, Inc. (KAI) C++ Compiler
11371
11372         # KCC will only create a shared library if the output file
11373         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11374         # to its proper name (with version) after linking.
11375         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'
11376
11377         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11378         hardcode_libdir_separator_CXX=:
11379
11380         # Archives containing C++ object files must be created using
11381         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11382         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11383
11384         ;;
11385       RCC*)
11386         # Rational C++ 2.4.1
11387         # FIXME: insert proper C++ library support
11388         ld_shlibs_CXX=no
11389         ;;
11390       cxx*)
11391         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11392         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'
11393
11394         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11395         hardcode_libdir_separator_CXX=:
11396
11397         # Commands to make compiler produce verbose output that lists
11398         # what "hidden" libraries, object files and flags are used when
11399         # linking a shared library.
11400         #
11401         # There doesn't appear to be a way to prevent this compiler from
11402         # explicitly linking system object files so we need to strip them
11403         # from the output so that they don't get included in the library
11404         # dependencies.
11405         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'
11406         ;;
11407       *)
11408         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11409           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11410           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'
11411
11412           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11413           hardcode_libdir_separator_CXX=:
11414
11415           # Commands to make compiler produce verbose output that lists
11416           # what "hidden" libraries, object files and flags are used when
11417           # linking a shared library.
11418           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11419
11420         else
11421           # FIXME: insert proper C++ library support
11422           ld_shlibs_CXX=no
11423         fi
11424         ;;
11425     esac
11426     ;;
11427   osf4* | osf5*)
11428     case $cc_basename in
11429       KCC*)
11430         # Kuck and Associates, Inc. (KAI) C++ Compiler
11431
11432         # KCC will only create a shared library if the output file
11433         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11434         # to its proper name (with version) after linking.
11435         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'
11436
11437         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11438         hardcode_libdir_separator_CXX=:
11439
11440         # Archives containing C++ object files must be created using
11441         # the KAI C++ compiler.
11442         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11443         ;;
11444       RCC*)
11445         # Rational C++ 2.4.1
11446         # FIXME: insert proper C++ library support
11447         ld_shlibs_CXX=no
11448         ;;
11449       cxx*)
11450         allow_undefined_flag_CXX=' -expect_unresolved \*'
11451         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'
11452         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11453           echo "-hidden">> $lib.exp~
11454           $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~
11455           $rm $lib.exp'
11456
11457         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11458         hardcode_libdir_separator_CXX=:
11459
11460         # Commands to make compiler produce verbose output that lists
11461         # what "hidden" libraries, object files and flags are used when
11462         # linking a shared library.
11463         #
11464         # There doesn't appear to be a way to prevent this compiler from
11465         # explicitly linking system object files so we need to strip them
11466         # from the output so that they don't get included in the library
11467         # dependencies.
11468         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'
11469         ;;
11470       *)
11471         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11472           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11473          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'
11474
11475           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11476           hardcode_libdir_separator_CXX=:
11477
11478           # Commands to make compiler produce verbose output that lists
11479           # what "hidden" libraries, object files and flags are used when
11480           # linking a shared library.
11481           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11482
11483         else
11484           # FIXME: insert proper C++ library support
11485           ld_shlibs_CXX=no
11486         fi
11487         ;;
11488     esac
11489     ;;
11490   psos*)
11491     # FIXME: insert proper C++ library support
11492     ld_shlibs_CXX=no
11493     ;;
11494   sunos4*)
11495     case $cc_basename in
11496       CC*)
11497         # Sun C++ 4.x
11498         # FIXME: insert proper C++ library support
11499         ld_shlibs_CXX=no
11500         ;;
11501       lcc*)
11502         # Lucid
11503         # FIXME: insert proper C++ library support
11504         ld_shlibs_CXX=no
11505         ;;
11506       *)
11507         # FIXME: insert proper C++ library support
11508         ld_shlibs_CXX=no
11509         ;;
11510     esac
11511     ;;
11512   solaris*)
11513     case $cc_basename in
11514       CC*)
11515         # Sun C++ 4.2, 5.x and Centerline C++
11516         archive_cmds_need_lc_CXX=yes
11517         no_undefined_flag_CXX=' -zdefs'
11518         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11519         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11520         $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'
11521
11522         hardcode_libdir_flag_spec_CXX='-R$libdir'
11523         hardcode_shlibpath_var_CXX=no
11524         case $host_os in
11525           solaris2.[0-5] | solaris2.[0-5].*) ;;
11526           *)
11527             # The C++ compiler is used as linker so we must use $wl
11528             # flag to pass the commands to the underlying system
11529             # linker. We must also pass each convience library through
11530             # to the system linker between allextract/defaultextract.
11531             # The C++ compiler will combine linker options so we
11532             # cannot just pass the convience library names through
11533             # without $wl.
11534             # Supported since Solaris 2.6 (maybe 2.5.1?)
11535             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'
11536             ;;
11537         esac
11538         link_all_deplibs_CXX=yes
11539
11540         output_verbose_link_cmd='echo'
11541
11542         # Archives containing C++ object files must be created using
11543         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11544         # necessary to make sure instantiated templates are included
11545         # in the archive.
11546         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11547         ;;
11548       gcx*)
11549         # Green Hills C++ Compiler
11550         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11551
11552         # The C++ compiler must be used to create the archive.
11553         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11554         ;;
11555       *)
11556         # GNU C++ compiler with Solaris linker
11557         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11558           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11559           if $CC --version | grep -v '^2\.7' > /dev/null; then
11560             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11561             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11562                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11563
11564             # Commands to make compiler produce verbose output that lists
11565             # what "hidden" libraries, object files and flags are used when
11566             # linking a shared library.
11567             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11568           else
11569             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11570             # platform.
11571             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11572             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11573                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11574
11575             # Commands to make compiler produce verbose output that lists
11576             # what "hidden" libraries, object files and flags are used when
11577             # linking a shared library.
11578             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11579           fi
11580
11581           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11582         fi
11583         ;;
11584     esac
11585     ;;
11586   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11587     no_undefined_flag_CXX='${wl}-z,text'
11588     archive_cmds_need_lc_CXX=no
11589     hardcode_shlibpath_var_CXX=no
11590     runpath_var='LD_RUN_PATH'
11591
11592     case $cc_basename in
11593       CC*)
11594         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11595         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11596         ;;
11597       *)
11598         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11599         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11600         ;;
11601     esac
11602     ;;
11603   sysv5* | sco3.2v5* | sco5v6*)
11604     # Note: We can NOT use -z defs as we might desire, because we do not
11605     # link with -lc, and that would cause any symbols used from libc to
11606     # always be unresolved, which means just about no library would
11607     # ever link correctly.  If we're not using GNU ld we use -z text
11608     # though, which does catch some bad symbols but isn't as heavy-handed
11609     # as -z defs.
11610     # For security reasons, it is highly recommended that you always
11611     # use absolute paths for naming shared libraries, and exclude the
11612     # DT_RUNPATH tag from executables and libraries.  But doing so
11613     # requires that you compile everything twice, which is a pain.
11614     # So that behaviour is only enabled if SCOABSPATH is set to a
11615     # non-empty value in the environment.  Most likely only useful for
11616     # creating official distributions of packages.
11617     # This is a hack until libtool officially supports absolute path
11618     # names for shared libraries.
11619     no_undefined_flag_CXX='${wl}-z,text'
11620     allow_undefined_flag_CXX='${wl}-z,nodefs'
11621     archive_cmds_need_lc_CXX=no
11622     hardcode_shlibpath_var_CXX=no
11623     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11624     hardcode_libdir_separator_CXX=':'
11625     link_all_deplibs_CXX=yes
11626     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11627     runpath_var='LD_RUN_PATH'
11628
11629     case $cc_basename in
11630       CC*)
11631         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11632         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11633         ;;
11634       *)
11635         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11636         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11637         ;;
11638     esac
11639     ;;
11640   tandem*)
11641     case $cc_basename in
11642       NCC*)
11643         # NonStop-UX NCC 3.20
11644         # FIXME: insert proper C++ library support
11645         ld_shlibs_CXX=no
11646         ;;
11647       *)
11648         # FIXME: insert proper C++ library support
11649         ld_shlibs_CXX=no
11650         ;;
11651     esac
11652     ;;
11653   vxworks*)
11654     # FIXME: insert proper C++ library support
11655     ld_shlibs_CXX=no
11656     ;;
11657   *)
11658     # FIXME: insert proper C++ library support
11659     ld_shlibs_CXX=no
11660     ;;
11661 esac
11662 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11663 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11664 test "$ld_shlibs_CXX" = no && can_build_shared=no
11665
11666 GCC_CXX="$GXX"
11667 LD_CXX="$LD"
11668
11669 ## CAVEAT EMPTOR:
11670 ## There is no encapsulation within the following macros, do not change
11671 ## the running order or otherwise move them around unless you know exactly
11672 ## what you are doing...
11673
11674 cat > conftest.$ac_ext <<EOF
11675 class Foo
11676 {
11677 public:
11678   Foo (void) { a = 0; }
11679 private:
11680   int a;
11681 };
11682 EOF
11683
11684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11685   (eval $ac_compile) 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); }; then
11689   # Parse the compiler output and extract the necessary
11690   # objects, libraries and library flags.
11691
11692   # Sentinel used to keep track of whether or not we are before
11693   # the conftest object file.
11694   pre_test_object_deps_done=no
11695
11696   # The `*' in the case matches for architectures that use `case' in
11697   # $output_verbose_cmd can trigger glob expansion during the loop
11698   # eval without this substitution.
11699   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11700
11701   for p in `eval $output_verbose_link_cmd`; do
11702     case $p in
11703
11704     -L* | -R* | -l*)
11705        # Some compilers place space between "-{L,R}" and the path.
11706        # Remove the space.
11707        if test $p = "-L" \
11708           || test $p = "-R"; then
11709          prev=$p
11710          continue
11711        else
11712          prev=
11713        fi
11714
11715        if test "$pre_test_object_deps_done" = no; then
11716          case $p in
11717          -L* | -R*)
11718            # Internal compiler library paths should come after those
11719            # provided the user.  The postdeps already come after the
11720            # user supplied libs so there is no need to process them.
11721            if test -z "$compiler_lib_search_path_CXX"; then
11722              compiler_lib_search_path_CXX="${prev}${p}"
11723            else
11724              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11725            fi
11726            ;;
11727          # The "-l" case would never come before the object being
11728          # linked, so don't bother handling this case.
11729          esac
11730        else
11731          if test -z "$postdeps_CXX"; then
11732            postdeps_CXX="${prev}${p}"
11733          else
11734            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11735          fi
11736        fi
11737        ;;
11738
11739     *.$objext)
11740        # This assumes that the test object file only shows up
11741        # once in the compiler output.
11742        if test "$p" = "conftest.$objext"; then
11743          pre_test_object_deps_done=yes
11744          continue
11745        fi
11746
11747        if test "$pre_test_object_deps_done" = no; then
11748          if test -z "$predep_objects_CXX"; then
11749            predep_objects_CXX="$p"
11750          else
11751            predep_objects_CXX="$predep_objects_CXX $p"
11752          fi
11753        else
11754          if test -z "$postdep_objects_CXX"; then
11755            postdep_objects_CXX="$p"
11756          else
11757            postdep_objects_CXX="$postdep_objects_CXX $p"
11758          fi
11759        fi
11760        ;;
11761
11762     *) ;; # Ignore the rest.
11763
11764     esac
11765   done
11766
11767   # Clean up.
11768   rm -f a.out a.exe
11769 else
11770   echo "libtool.m4: error: problem compiling CXX test program"
11771 fi
11772
11773 $rm -f confest.$objext
11774
11775 # PORTME: override above test on systems where it is broken
11776 case $host_os in
11777 interix3*)
11778   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11779   # hack all around it, let's just trust "g++" to DTRT.
11780   predep_objects_CXX=
11781   postdep_objects_CXX=
11782   postdeps_CXX=
11783   ;;
11784
11785 solaris*)
11786   case $cc_basename in
11787   CC*)
11788     # Adding this requires a known-good setup of shared libraries for
11789     # Sun compiler versions before 5.6, else PIC objects from an old
11790     # archive will be linked into the output, leading to subtle bugs.
11791     postdeps_CXX='-lCstd -lCrun'
11792     ;;
11793   esac
11794   ;;
11795 esac
11796
11797
11798 case " $postdeps_CXX " in
11799 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11800 esac
11801
11802 lt_prog_compiler_wl_CXX=
11803 lt_prog_compiler_pic_CXX=
11804 lt_prog_compiler_static_CXX=
11805
11806 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11807 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11808
11809   # C++ specific cases for pic, static, wl, etc.
11810   if test "$GXX" = yes; then
11811     lt_prog_compiler_wl_CXX='-Wl,'
11812     lt_prog_compiler_static_CXX='-static'
11813
11814     case $host_os in
11815     aix*)
11816       # All AIX code is PIC.
11817       if test "$host_cpu" = ia64; then
11818         # AIX 5 now supports IA64 processor
11819         lt_prog_compiler_static_CXX='-Bstatic'
11820       fi
11821       ;;
11822     amigaos*)
11823       # FIXME: we need at least 68020 code to build shared libraries, but
11824       # adding the `-m68020' flag to GCC prevents building anything better,
11825       # like `-m68040'.
11826       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11827       ;;
11828     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11829       # PIC is the default for these OSes.
11830       ;;
11831     mingw* | os2* | pw32*)
11832       # This hack is so that the source file can tell whether it is being
11833       # built for inclusion in a dll (and should export symbols for example).
11834       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11835       ;;
11836     darwin* | rhapsody*)
11837       # PIC is the default on this platform
11838       # Common symbols not allowed in MH_DYLIB files
11839       lt_prog_compiler_pic_CXX='-fno-common'
11840       ;;
11841     *djgpp*)
11842       # DJGPP does not support shared libraries at all
11843       lt_prog_compiler_pic_CXX=
11844       ;;
11845     interix3*)
11846       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11847       # Instead, we relocate shared libraries at runtime.
11848       ;;
11849     sysv4*MP*)
11850       if test -d /usr/nec; then
11851         lt_prog_compiler_pic_CXX=-Kconform_pic
11852       fi
11853       ;;
11854     hpux*)
11855       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11856       # not for PA HP-UX.
11857       case $host_cpu in
11858       hppa*64*|ia64*)
11859         ;;
11860       *)
11861         lt_prog_compiler_pic_CXX='-fPIC'
11862         ;;
11863       esac
11864       ;;
11865     *)
11866       lt_prog_compiler_pic_CXX='-fPIC'
11867       ;;
11868     esac
11869   else
11870     case $host_os in
11871       aix4* | aix5*)
11872         # All AIX code is PIC.
11873         if test "$host_cpu" = ia64; then
11874           # AIX 5 now supports IA64 processor
11875           lt_prog_compiler_static_CXX='-Bstatic'
11876         else
11877           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11878         fi
11879         ;;
11880       chorus*)
11881         case $cc_basename in
11882         cxch68*)
11883           # Green Hills C++ Compiler
11884           # _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"
11885           ;;
11886         esac
11887         ;;
11888        darwin*)
11889          # PIC is the default on this platform
11890          # Common symbols not allowed in MH_DYLIB files
11891          case $cc_basename in
11892            xlc*)
11893            lt_prog_compiler_pic_CXX='-qnocommon'
11894            lt_prog_compiler_wl_CXX='-Wl,'
11895            ;;
11896          esac
11897        ;;
11898       dgux*)
11899         case $cc_basename in
11900           ec++*)
11901             lt_prog_compiler_pic_CXX='-KPIC'
11902             ;;
11903           ghcx*)
11904             # Green Hills C++ Compiler
11905             lt_prog_compiler_pic_CXX='-pic'
11906             ;;
11907           *)
11908             ;;
11909         esac
11910         ;;
11911       freebsd* | kfreebsd*-gnu | dragonfly*)
11912         # FreeBSD uses GNU C++
11913         ;;
11914       hpux9* | hpux10* | hpux11*)
11915         case $cc_basename in
11916           CC*)
11917             lt_prog_compiler_wl_CXX='-Wl,'
11918             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11919             if test "$host_cpu" != ia64; then
11920               lt_prog_compiler_pic_CXX='+Z'
11921             fi
11922             ;;
11923           aCC*)
11924             lt_prog_compiler_wl_CXX='-Wl,'
11925             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11926             case $host_cpu in
11927             hppa*64*|ia64*)
11928               # +Z the default
11929               ;;
11930             *)
11931               lt_prog_compiler_pic_CXX='+Z'
11932               ;;
11933             esac
11934             ;;
11935           *)
11936             ;;
11937         esac
11938         ;;
11939       interix*)
11940         # This is c89, which is MS Visual C++ (no shared libs)
11941         # Anyone wants to do a port?
11942         ;;
11943       irix5* | irix6* | nonstopux*)
11944         case $cc_basename in
11945           CC*)
11946             lt_prog_compiler_wl_CXX='-Wl,'
11947             lt_prog_compiler_static_CXX='-non_shared'
11948             # CC pic flag -KPIC is the default.
11949             ;;
11950           *)
11951             ;;
11952         esac
11953         ;;
11954       linux*)
11955         case $cc_basename in
11956           KCC*)
11957             # KAI C++ Compiler
11958             lt_prog_compiler_wl_CXX='--backend -Wl,'
11959             lt_prog_compiler_pic_CXX='-fPIC'
11960             ;;
11961           icpc* | ecpc*)
11962             # Intel C++
11963             lt_prog_compiler_wl_CXX='-Wl,'
11964             lt_prog_compiler_pic_CXX='-KPIC'
11965             lt_prog_compiler_static_CXX='-static'
11966             ;;
11967           pgCC*)
11968             # Portland Group C++ compiler.
11969             lt_prog_compiler_wl_CXX='-Wl,'
11970             lt_prog_compiler_pic_CXX='-fpic'
11971             lt_prog_compiler_static_CXX='-Bstatic'
11972             ;;
11973           cxx*)
11974             # Compaq C++
11975             # Make sure the PIC flag is empty.  It appears that all Alpha
11976             # Linux and Compaq Tru64 Unix objects are PIC.
11977             lt_prog_compiler_pic_CXX=
11978             lt_prog_compiler_static_CXX='-non_shared'
11979             ;;
11980           *)
11981             ;;
11982         esac
11983         ;;
11984       lynxos*)
11985         ;;
11986       m88k*)
11987         ;;
11988       mvs*)
11989         case $cc_basename in
11990           cxx*)
11991             lt_prog_compiler_pic_CXX='-W c,exportall'
11992             ;;
11993           *)
11994             ;;
11995         esac
11996         ;;
11997       netbsd*)
11998         ;;
11999       osf3* | osf4* | osf5*)
12000         case $cc_basename in
12001           KCC*)
12002             lt_prog_compiler_wl_CXX='--backend -Wl,'
12003             ;;
12004           RCC*)
12005             # Rational C++ 2.4.1
12006             lt_prog_compiler_pic_CXX='-pic'
12007             ;;
12008           cxx*)
12009             # Digital/Compaq C++
12010             lt_prog_compiler_wl_CXX='-Wl,'
12011             # Make sure the PIC flag is empty.  It appears that all Alpha
12012             # Linux and Compaq Tru64 Unix objects are PIC.
12013             lt_prog_compiler_pic_CXX=
12014             lt_prog_compiler_static_CXX='-non_shared'
12015             ;;
12016           *)
12017             ;;
12018         esac
12019         ;;
12020       psos*)
12021         ;;
12022       solaris*)
12023         case $cc_basename in
12024           CC*)
12025             # Sun C++ 4.2, 5.x and Centerline C++
12026             lt_prog_compiler_pic_CXX='-KPIC'
12027             lt_prog_compiler_static_CXX='-Bstatic'
12028             lt_prog_compiler_wl_CXX='-Qoption ld '
12029             ;;
12030           gcx*)
12031             # Green Hills C++ Compiler
12032             lt_prog_compiler_pic_CXX='-PIC'
12033             ;;
12034           *)
12035             ;;
12036         esac
12037         ;;
12038       sunos4*)
12039         case $cc_basename in
12040           CC*)
12041             # Sun C++ 4.x
12042             lt_prog_compiler_pic_CXX='-pic'
12043             lt_prog_compiler_static_CXX='-Bstatic'
12044             ;;
12045           lcc*)
12046             # Lucid
12047             lt_prog_compiler_pic_CXX='-pic'
12048             ;;
12049           *)
12050             ;;
12051         esac
12052         ;;
12053       tandem*)
12054         case $cc_basename in
12055           NCC*)
12056             # NonStop-UX NCC 3.20
12057             lt_prog_compiler_pic_CXX='-KPIC'
12058             ;;
12059           *)
12060             ;;
12061         esac
12062         ;;
12063       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12064         case $cc_basename in
12065           CC*)
12066             lt_prog_compiler_wl_CXX='-Wl,'
12067             lt_prog_compiler_pic_CXX='-KPIC'
12068             lt_prog_compiler_static_CXX='-Bstatic'
12069             ;;
12070         esac
12071         ;;
12072       vxworks*)
12073         ;;
12074       *)
12075         lt_prog_compiler_can_build_shared_CXX=no
12076         ;;
12077     esac
12078   fi
12079
12080 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12081 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12082
12083 #
12084 # Check to make sure the PIC flag actually works.
12085 #
12086 if test -n "$lt_prog_compiler_pic_CXX"; then
12087
12088 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12089 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12090 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12091   echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093   lt_prog_compiler_pic_works_CXX=no
12094   ac_outfile=conftest.$ac_objext
12095    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12096    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12097    # Insert the option either (1) after the last *FLAGS variable, or
12098    # (2) before a word containing "conftest.", or (3) at the end.
12099    # Note that $ac_compile itself does not contain backslashes and begins
12100    # with a dollar sign (not a hyphen), so the echo should work correctly.
12101    # The option is referenced via a variable to avoid confusing sed.
12102    lt_compile=`echo "$ac_compile" | $SED \
12103    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12104    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12105    -e 's:$: $lt_compiler_flag:'`
12106    (eval echo "\"\$as_me:12106: $lt_compile\"" >&5)
12107    (eval "$lt_compile" 2>conftest.err)
12108    ac_status=$?
12109    cat conftest.err >&5
12110    echo "$as_me:12110: \$? = $ac_status" >&5
12111    if (exit $ac_status) && test -s "$ac_outfile"; then
12112      # The compiler can only warn and ignore the option if not recognized
12113      # So say no if there are warnings other than the usual output.
12114      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12115      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12116      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12117        lt_prog_compiler_pic_works_CXX=yes
12118      fi
12119    fi
12120    $rm conftest*
12121
12122 fi
12123 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12124 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12125
12126 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12127     case $lt_prog_compiler_pic_CXX in
12128      "" | " "*) ;;
12129      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12130      esac
12131 else
12132     lt_prog_compiler_pic_CXX=
12133      lt_prog_compiler_can_build_shared_CXX=no
12134 fi
12135
12136 fi
12137 case $host_os in
12138   # For platforms which do not support PIC, -DPIC is meaningless:
12139   *djgpp*)
12140     lt_prog_compiler_pic_CXX=
12141     ;;
12142   *)
12143     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12144     ;;
12145 esac
12146
12147 #
12148 # Check to make sure the static flag actually works.
12149 #
12150 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12151 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12152 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12153 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156   lt_prog_compiler_static_works_CXX=no
12157    save_LDFLAGS="$LDFLAGS"
12158    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12159    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12160    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12161      # The linker can only warn and ignore the option if not recognized
12162      # So say no if there are warnings
12163      if test -s conftest.err; then
12164        # Append any errors to the config.log.
12165        cat conftest.err 1>&5
12166        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12167        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12168        if diff conftest.exp conftest.er2 >/dev/null; then
12169          lt_prog_compiler_static_works_CXX=yes
12170        fi
12171      else
12172        lt_prog_compiler_static_works_CXX=yes
12173      fi
12174    fi
12175    $rm conftest*
12176    LDFLAGS="$save_LDFLAGS"
12177
12178 fi
12179 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12180 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12181
12182 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12183     :
12184 else
12185     lt_prog_compiler_static_CXX=
12186 fi
12187
12188
12189 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12190 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12191 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12192   echo $ECHO_N "(cached) $ECHO_C" >&6
12193 else
12194   lt_cv_prog_compiler_c_o_CXX=no
12195    $rm -r conftest 2>/dev/null
12196    mkdir conftest
12197    cd conftest
12198    mkdir out
12199    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12200
12201    lt_compiler_flag="-o out/conftest2.$ac_objext"
12202    # Insert the option either (1) after the last *FLAGS variable, or
12203    # (2) before a word containing "conftest.", or (3) at the end.
12204    # Note that $ac_compile itself does not contain backslashes and begins
12205    # with a dollar sign (not a hyphen), so the echo should work correctly.
12206    lt_compile=`echo "$ac_compile" | $SED \
12207    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12208    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12209    -e 's:$: $lt_compiler_flag:'`
12210    (eval echo "\"\$as_me:12210: $lt_compile\"" >&5)
12211    (eval "$lt_compile" 2>out/conftest.err)
12212    ac_status=$?
12213    cat out/conftest.err >&5
12214    echo "$as_me:12214: \$? = $ac_status" >&5
12215    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12216    then
12217      # The compiler can only warn and ignore the option if not recognized
12218      # So say no if there are warnings
12219      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12220      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12221      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12222        lt_cv_prog_compiler_c_o_CXX=yes
12223      fi
12224    fi
12225    chmod u+w . 2>&5
12226    $rm conftest*
12227    # SGI C++ compiler will create directory out/ii_files/ for
12228    # template instantiation
12229    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12230    $rm out/* && rmdir out
12231    cd ..
12232    rmdir conftest
12233    $rm conftest*
12234
12235 fi
12236 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12237 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12238
12239
12240 hard_links="nottested"
12241 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12242   # do not overwrite the value of need_locks provided by the user
12243   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12244 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12245   hard_links=yes
12246   $rm conftest*
12247   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12248   touch conftest.a
12249   ln conftest.a conftest.b 2>&5 || hard_links=no
12250   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12251   { echo "$as_me:$LINENO: result: $hard_links" >&5
12252 echo "${ECHO_T}$hard_links" >&6; }
12253   if test "$hard_links" = no; then
12254     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12255 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12256     need_locks=warn
12257   fi
12258 else
12259   need_locks=no
12260 fi
12261
12262 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12263 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12264
12265   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12266   case $host_os in
12267   aix4* | aix5*)
12268     # If we're using GNU nm, then we don't want the "-C" option.
12269     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12270     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12271       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'
12272     else
12273       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'
12274     fi
12275     ;;
12276   pw32*)
12277     export_symbols_cmds_CXX="$ltdll_cmds"
12278   ;;
12279   cygwin* | mingw*)
12280     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'
12281   ;;
12282   *)
12283     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12284   ;;
12285   esac
12286
12287 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12288 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12289 test "$ld_shlibs_CXX" = no && can_build_shared=no
12290
12291 #
12292 # Do we need to explicitly link libc?
12293 #
12294 case "x$archive_cmds_need_lc_CXX" in
12295 x|xyes)
12296   # Assume -lc should be added
12297   archive_cmds_need_lc_CXX=yes
12298
12299   if test "$enable_shared" = yes && test "$GCC" = yes; then
12300     case $archive_cmds_CXX in
12301     *'~'*)
12302       # FIXME: we may have to deal with multi-command sequences.
12303       ;;
12304     '$CC '*)
12305       # Test whether the compiler implicitly links with -lc since on some
12306       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12307       # to ld, don't add -lc before -lgcc.
12308       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12309 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12310       $rm conftest*
12311       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12312
12313       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12314   (eval $ac_compile) 2>&5
12315   ac_status=$?
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); } 2>conftest.err; then
12318         soname=conftest
12319         lib=conftest
12320         libobjs=conftest.$ac_objext
12321         deplibs=
12322         wl=$lt_prog_compiler_wl_CXX
12323         pic_flag=$lt_prog_compiler_pic_CXX
12324         compiler_flags=-v
12325         linker_flags=-v
12326         verstring=
12327         output_objdir=.
12328         libname=conftest
12329         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12330         allow_undefined_flag_CXX=
12331         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12332   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12333   ac_status=$?
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); }
12336         then
12337           archive_cmds_need_lc_CXX=no
12338         else
12339           archive_cmds_need_lc_CXX=yes
12340         fi
12341         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12342       else
12343         cat conftest.err 1>&5
12344       fi
12345       $rm conftest*
12346       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12347 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12348       ;;
12349     esac
12350   fi
12351   ;;
12352 esac
12353
12354 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12355 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12356 library_names_spec=
12357 libname_spec='lib$name'
12358 soname_spec=
12359 shrext_cmds=".so"
12360 postinstall_cmds=
12361 postuninstall_cmds=
12362 finish_cmds=
12363 finish_eval=
12364 shlibpath_var=
12365 shlibpath_overrides_runpath=unknown
12366 version_type=none
12367 dynamic_linker="$host_os ld.so"
12368 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12369 if test "$GCC" = yes; then
12370   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12371   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12372     # if the path contains ";" then we assume it to be the separator
12373     # otherwise default to the standard path separator (i.e. ":") - it is
12374     # assumed that no part of a normal pathname contains ";" but that should
12375     # okay in the real world where ";" in dirpaths is itself problematic.
12376     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12377   else
12378     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12379   fi
12380 else
12381   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12382 fi
12383 need_lib_prefix=unknown
12384 hardcode_into_libs=no
12385
12386 # when you set need_version to no, make sure it does not cause -set_version
12387 # flags to be left without arguments
12388 need_version=unknown
12389
12390 case $host_os in
12391 aix3*)
12392   version_type=linux
12393   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12394   shlibpath_var=LIBPATH
12395
12396   # AIX 3 has no versioning support, so we append a major version to the name.
12397   soname_spec='${libname}${release}${shared_ext}$major'
12398   ;;
12399
12400 aix4* | aix5*)
12401   version_type=linux
12402   need_lib_prefix=no
12403   need_version=no
12404   hardcode_into_libs=yes
12405   if test "$host_cpu" = ia64; then
12406     # AIX 5 supports IA64
12407     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12408     shlibpath_var=LD_LIBRARY_PATH
12409   else
12410     # With GCC up to 2.95.x, collect2 would create an import file
12411     # for dependence libraries.  The import file would start with
12412     # the line `#! .'.  This would cause the generated library to
12413     # depend on `.', always an invalid library.  This was fixed in
12414     # development snapshots of GCC prior to 3.0.
12415     case $host_os in
12416       aix4 | aix4.[01] | aix4.[01].*)
12417       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12418            echo ' yes '
12419            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12420         :
12421       else
12422         can_build_shared=no
12423       fi
12424       ;;
12425     esac
12426     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12427     # soname into executable. Probably we can add versioning support to
12428     # collect2, so additional links can be useful in future.
12429     if test "$aix_use_runtimelinking" = yes; then
12430       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12431       # instead of lib<name>.a to let people know that these are not
12432       # typical AIX shared libraries.
12433       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12434     else
12435       # We preserve .a as extension for shared libraries through AIX4.2
12436       # and later when we are not doing run time linking.
12437       library_names_spec='${libname}${release}.a $libname.a'
12438       soname_spec='${libname}${release}${shared_ext}$major'
12439     fi
12440     shlibpath_var=LIBPATH
12441   fi
12442   ;;
12443
12444 amigaos*)
12445   library_names_spec='$libname.ixlibrary $libname.a'
12446   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12447   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'
12448   ;;
12449
12450 beos*)
12451   library_names_spec='${libname}${shared_ext}'
12452   dynamic_linker="$host_os ld.so"
12453   shlibpath_var=LIBRARY_PATH
12454   ;;
12455
12456 bsdi[45]*)
12457   version_type=linux
12458   need_version=no
12459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12460   soname_spec='${libname}${release}${shared_ext}$major'
12461   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12462   shlibpath_var=LD_LIBRARY_PATH
12463   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12464   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12465   # the default ld.so.conf also contains /usr/contrib/lib and
12466   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12467   # libtool to hard-code these into programs
12468   ;;
12469
12470 cygwin* | mingw* | pw32*)
12471   version_type=windows
12472   shrext_cmds=".dll"
12473   need_version=no
12474   need_lib_prefix=no
12475
12476   case $GCC,$host_os in
12477   yes,cygwin* | yes,mingw* | yes,pw32*)
12478     library_names_spec='$libname.dll.a'
12479     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12480     postinstall_cmds='base_file=`basename \${file}`~
12481       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12482       dldir=$destdir/`dirname \$dlpath`~
12483       test -d \$dldir || mkdir -p \$dldir~
12484       $install_prog $dir/$dlname \$dldir/$dlname~
12485       chmod a+x \$dldir/$dlname'
12486     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12487       dlpath=$dir/\$dldll~
12488        $rm \$dlpath'
12489     shlibpath_overrides_runpath=yes
12490
12491     case $host_os in
12492     cygwin*)
12493       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12494       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12495       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12496       ;;
12497     mingw*)
12498       # MinGW DLLs use traditional 'lib' prefix
12499       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12500       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12501       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12502         # It is most probably a Windows format PATH printed by
12503         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12504         # path with ; separators, and with drive letters. We can handle the
12505         # drive letters (cygwin fileutils understands them), so leave them,
12506         # especially as we might pass files found there to a mingw objdump,
12507         # which wouldn't understand a cygwinified path. Ahh.
12508         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12509       else
12510         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12511       fi
12512       ;;
12513     pw32*)
12514       # pw32 DLLs use 'pw' prefix rather than 'lib'
12515       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12516       ;;
12517     esac
12518     ;;
12519
12520   *)
12521     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12522     ;;
12523   esac
12524   dynamic_linker='Win32 ld.exe'
12525   # FIXME: first we should search . and the directory the executable is in
12526   shlibpath_var=PATH
12527   ;;
12528
12529 darwin* | rhapsody*)
12530   dynamic_linker="$host_os dyld"
12531   version_type=darwin
12532   need_lib_prefix=no
12533   need_version=no
12534   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12535   soname_spec='${libname}${release}${major}$shared_ext'
12536   shlibpath_overrides_runpath=yes
12537   shlibpath_var=DYLD_LIBRARY_PATH
12538   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12539   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12540   if test "$GCC" = yes; then
12541     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"`
12542   else
12543     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12544   fi
12545   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12546   ;;
12547
12548 dgux*)
12549   version_type=linux
12550   need_lib_prefix=no
12551   need_version=no
12552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12553   soname_spec='${libname}${release}${shared_ext}$major'
12554   shlibpath_var=LD_LIBRARY_PATH
12555   ;;
12556
12557 freebsd1*)
12558   dynamic_linker=no
12559   ;;
12560
12561 kfreebsd*-gnu)
12562   version_type=linux
12563   need_lib_prefix=no
12564   need_version=no
12565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12566   soname_spec='${libname}${release}${shared_ext}$major'
12567   shlibpath_var=LD_LIBRARY_PATH
12568   shlibpath_overrides_runpath=no
12569   hardcode_into_libs=yes
12570   dynamic_linker='GNU ld.so'
12571   ;;
12572
12573 freebsd* | dragonfly*)
12574   # DragonFly does not have aout.  When/if they implement a new
12575   # versioning mechanism, adjust this.
12576   if test -x /usr/bin/objformat; then
12577     objformat=`/usr/bin/objformat`
12578   else
12579     case $host_os in
12580     freebsd[123]*) objformat=aout ;;
12581     *) objformat=elf ;;
12582     esac
12583   fi
12584   version_type=freebsd-$objformat
12585   case $version_type in
12586     freebsd-elf*)
12587       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12588       need_version=no
12589       need_lib_prefix=no
12590       ;;
12591     freebsd-*)
12592       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12593       need_version=yes
12594       ;;
12595   esac
12596   shlibpath_var=LD_LIBRARY_PATH
12597   case $host_os in
12598   freebsd2*)
12599     shlibpath_overrides_runpath=yes
12600     ;;
12601   freebsd3.[01]* | freebsdelf3.[01]*)
12602     shlibpath_overrides_runpath=yes
12603     hardcode_into_libs=yes
12604     ;;
12605   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12606   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12607     shlibpath_overrides_runpath=no
12608     hardcode_into_libs=yes
12609     ;;
12610   freebsd*) # from 4.6 on
12611     shlibpath_overrides_runpath=yes
12612     hardcode_into_libs=yes
12613     ;;
12614   esac
12615   ;;
12616
12617 gnu*)
12618   version_type=linux
12619   need_lib_prefix=no
12620   need_version=no
12621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12622   soname_spec='${libname}${release}${shared_ext}$major'
12623   shlibpath_var=LD_LIBRARY_PATH
12624   hardcode_into_libs=yes
12625   ;;
12626
12627 hpux9* | hpux10* | hpux11*)
12628   # Give a soname corresponding to the major version so that dld.sl refuses to
12629   # link against other versions.
12630   version_type=sunos
12631   need_lib_prefix=no
12632   need_version=no
12633   case $host_cpu in
12634   ia64*)
12635     shrext_cmds='.so'
12636     hardcode_into_libs=yes
12637     dynamic_linker="$host_os dld.so"
12638     shlibpath_var=LD_LIBRARY_PATH
12639     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12641     soname_spec='${libname}${release}${shared_ext}$major'
12642     if test "X$HPUX_IA64_MODE" = X32; then
12643       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12644     else
12645       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12646     fi
12647     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12648     ;;
12649    hppa*64*)
12650      shrext_cmds='.sl'
12651      hardcode_into_libs=yes
12652      dynamic_linker="$host_os dld.sl"
12653      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12654      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12655      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12656      soname_spec='${libname}${release}${shared_ext}$major'
12657      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12658      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12659      ;;
12660    *)
12661     shrext_cmds='.sl'
12662     dynamic_linker="$host_os dld.sl"
12663     shlibpath_var=SHLIB_PATH
12664     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12666     soname_spec='${libname}${release}${shared_ext}$major'
12667     ;;
12668   esac
12669   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12670   postinstall_cmds='chmod 555 $lib'
12671   ;;
12672
12673 interix3*)
12674   version_type=linux
12675   need_lib_prefix=no
12676   need_version=no
12677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12678   soname_spec='${libname}${release}${shared_ext}$major'
12679   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12680   shlibpath_var=LD_LIBRARY_PATH
12681   shlibpath_overrides_runpath=no
12682   hardcode_into_libs=yes
12683   ;;
12684
12685 irix5* | irix6* | nonstopux*)
12686   case $host_os in
12687     nonstopux*) version_type=nonstopux ;;
12688     *)
12689         if test "$lt_cv_prog_gnu_ld" = yes; then
12690                 version_type=linux
12691         else
12692                 version_type=irix
12693         fi ;;
12694   esac
12695   need_lib_prefix=no
12696   need_version=no
12697   soname_spec='${libname}${release}${shared_ext}$major'
12698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12699   case $host_os in
12700   irix5* | nonstopux*)
12701     libsuff= shlibsuff=
12702     ;;
12703   *)
12704     case $LD in # libtool.m4 will add one of these switches to LD
12705     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12706       libsuff= shlibsuff= libmagic=32-bit;;
12707     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12708       libsuff=32 shlibsuff=N32 libmagic=N32;;
12709     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12710       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12711     *) libsuff= shlibsuff= libmagic=never-match;;
12712     esac
12713     ;;
12714   esac
12715   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12716   shlibpath_overrides_runpath=no
12717   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12718   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12719   hardcode_into_libs=yes
12720   ;;
12721
12722 # No shared lib support for Linux oldld, aout, or coff.
12723 linux*oldld* | linux*aout* | linux*coff*)
12724   dynamic_linker=no
12725   ;;
12726
12727 # This must be Linux ELF.
12728 linux*)
12729   version_type=linux
12730   need_lib_prefix=no
12731   need_version=no
12732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12733   soname_spec='${libname}${release}${shared_ext}$major'
12734   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12735   shlibpath_var=LD_LIBRARY_PATH
12736   shlibpath_overrides_runpath=no
12737   # This implies no fast_install, which is unacceptable.
12738   # Some rework will be needed to allow for fast_install
12739   # before this can be enabled.
12740   hardcode_into_libs=yes
12741
12742   # Append ld.so.conf contents to the search path
12743   if test -f /etc/ld.so.conf; then
12744     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' ' '`
12745     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12746   fi
12747
12748   # We used to test for /lib/ld.so.1 and disable shared libraries on
12749   # powerpc, because MkLinux only supported shared libraries with the
12750   # GNU dynamic linker.  Since this was broken with cross compilers,
12751   # most powerpc-linux boxes support dynamic linking these days and
12752   # people can always --disable-shared, the test was removed, and we
12753   # assume the GNU/Linux dynamic linker is in use.
12754   dynamic_linker='GNU/Linux ld.so'
12755   ;;
12756
12757 knetbsd*-gnu)
12758   version_type=linux
12759   need_lib_prefix=no
12760   need_version=no
12761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12762   soname_spec='${libname}${release}${shared_ext}$major'
12763   shlibpath_var=LD_LIBRARY_PATH
12764   shlibpath_overrides_runpath=no
12765   hardcode_into_libs=yes
12766   dynamic_linker='GNU ld.so'
12767   ;;
12768
12769 netbsd*)
12770   version_type=sunos
12771   need_lib_prefix=no
12772   need_version=no
12773   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12775     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12776     dynamic_linker='NetBSD (a.out) ld.so'
12777   else
12778     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12779     soname_spec='${libname}${release}${shared_ext}$major'
12780     dynamic_linker='NetBSD ld.elf_so'
12781   fi
12782   shlibpath_var=LD_LIBRARY_PATH
12783   shlibpath_overrides_runpath=yes
12784   hardcode_into_libs=yes
12785   ;;
12786
12787 newsos6)
12788   version_type=linux
12789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12790   shlibpath_var=LD_LIBRARY_PATH
12791   shlibpath_overrides_runpath=yes
12792   ;;
12793
12794 nto-qnx*)
12795   version_type=linux
12796   need_lib_prefix=no
12797   need_version=no
12798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12799   soname_spec='${libname}${release}${shared_ext}$major'
12800   shlibpath_var=LD_LIBRARY_PATH
12801   shlibpath_overrides_runpath=yes
12802   ;;
12803
12804 openbsd*)
12805   version_type=sunos
12806   sys_lib_dlsearch_path_spec="/usr/lib"
12807   need_lib_prefix=no
12808   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12809   case $host_os in
12810     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12811     *)                         need_version=no  ;;
12812   esac
12813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12814   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12815   shlibpath_var=LD_LIBRARY_PATH
12816   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12817     case $host_os in
12818       openbsd2.[89] | openbsd2.[89].*)
12819         shlibpath_overrides_runpath=no
12820         ;;
12821       *)
12822         shlibpath_overrides_runpath=yes
12823         ;;
12824       esac
12825   else
12826     shlibpath_overrides_runpath=yes
12827   fi
12828   ;;
12829
12830 os2*)
12831   libname_spec='$name'
12832   shrext_cmds=".dll"
12833   need_lib_prefix=no
12834   library_names_spec='$libname${shared_ext} $libname.a'
12835   dynamic_linker='OS/2 ld.exe'
12836   shlibpath_var=LIBPATH
12837   ;;
12838
12839 osf3* | osf4* | osf5*)
12840   version_type=osf
12841   need_lib_prefix=no
12842   need_version=no
12843   soname_spec='${libname}${release}${shared_ext}$major'
12844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12845   shlibpath_var=LD_LIBRARY_PATH
12846   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12847   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12848   ;;
12849
12850 solaris*)
12851   version_type=linux
12852   need_lib_prefix=no
12853   need_version=no
12854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12855   soname_spec='${libname}${release}${shared_ext}$major'
12856   shlibpath_var=LD_LIBRARY_PATH
12857   shlibpath_overrides_runpath=yes
12858   hardcode_into_libs=yes
12859   # ldd complains unless libraries are executable
12860   postinstall_cmds='chmod +x $lib'
12861   ;;
12862
12863 sunos4*)
12864   version_type=sunos
12865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12866   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12867   shlibpath_var=LD_LIBRARY_PATH
12868   shlibpath_overrides_runpath=yes
12869   if test "$with_gnu_ld" = yes; then
12870     need_lib_prefix=no
12871   fi
12872   need_version=yes
12873   ;;
12874
12875 sysv4 | sysv4.3*)
12876   version_type=linux
12877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12878   soname_spec='${libname}${release}${shared_ext}$major'
12879   shlibpath_var=LD_LIBRARY_PATH
12880   case $host_vendor in
12881     sni)
12882       shlibpath_overrides_runpath=no
12883       need_lib_prefix=no
12884       export_dynamic_flag_spec='${wl}-Blargedynsym'
12885       runpath_var=LD_RUN_PATH
12886       ;;
12887     siemens)
12888       need_lib_prefix=no
12889       ;;
12890     motorola)
12891       need_lib_prefix=no
12892       need_version=no
12893       shlibpath_overrides_runpath=no
12894       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12895       ;;
12896   esac
12897   ;;
12898
12899 sysv4*MP*)
12900   if test -d /usr/nec ;then
12901     version_type=linux
12902     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12903     soname_spec='$libname${shared_ext}.$major'
12904     shlibpath_var=LD_LIBRARY_PATH
12905   fi
12906   ;;
12907
12908 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12909   version_type=freebsd-elf
12910   need_lib_prefix=no
12911   need_version=no
12912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12913   soname_spec='${libname}${release}${shared_ext}$major'
12914   shlibpath_var=LD_LIBRARY_PATH
12915   hardcode_into_libs=yes
12916   if test "$with_gnu_ld" = yes; then
12917     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12918     shlibpath_overrides_runpath=no
12919   else
12920     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12921     shlibpath_overrides_runpath=yes
12922     case $host_os in
12923       sco3.2v5*)
12924         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12925         ;;
12926     esac
12927   fi
12928   sys_lib_dlsearch_path_spec='/usr/lib'
12929   ;;
12930
12931 uts4*)
12932   version_type=linux
12933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12934   soname_spec='${libname}${release}${shared_ext}$major'
12935   shlibpath_var=LD_LIBRARY_PATH
12936   ;;
12937
12938 *)
12939   dynamic_linker=no
12940   ;;
12941 esac
12942 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12943 echo "${ECHO_T}$dynamic_linker" >&6; }
12944 test "$dynamic_linker" = no && can_build_shared=no
12945
12946 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12947 if test "$GCC" = yes; then
12948   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12949 fi
12950
12951 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12952 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12953 hardcode_action_CXX=
12954 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12955    test -n "$runpath_var_CXX" || \
12956    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12957
12958   # We can hardcode non-existant directories.
12959   if test "$hardcode_direct_CXX" != no &&
12960      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12961      # have to relink, otherwise we might link with an installed library
12962      # when we should be linking with a yet-to-be-installed one
12963      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12964      test "$hardcode_minus_L_CXX" != no; then
12965     # Linking always hardcodes the temporary library directory.
12966     hardcode_action_CXX=relink
12967   else
12968     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12969     hardcode_action_CXX=immediate
12970   fi
12971 else
12972   # We cannot hardcode anything, or else we can only hardcode existing
12973   # directories.
12974   hardcode_action_CXX=unsupported
12975 fi
12976 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12977 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12978
12979 if test "$hardcode_action_CXX" = relink; then
12980   # Fast installation is not supported
12981   enable_fast_install=no
12982 elif test "$shlibpath_overrides_runpath" = yes ||
12983      test "$enable_shared" = no; then
12984   # Fast installation is not necessary
12985   enable_fast_install=needless
12986 fi
12987
12988
12989 # The else clause should only fire when bootstrapping the
12990 # libtool distribution, otherwise you forgot to ship ltmain.sh
12991 # with your package, and you will get complaints that there are
12992 # no rules to generate ltmain.sh.
12993 if test -f "$ltmain"; then
12994   # See if we are running on zsh, and set the options which allow our commands through
12995   # without removal of \ escapes.
12996   if test -n "${ZSH_VERSION+set}" ; then
12997     setopt NO_GLOB_SUBST
12998   fi
12999   # Now quote all the things that may contain metacharacters while being
13000   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13001   # variables and quote the copies for generation of the libtool script.
13002   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13003     SED SHELL STRIP \
13004     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13005     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13006     deplibs_check_method reload_flag reload_cmds need_locks \
13007     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13008     lt_cv_sys_global_symbol_to_c_name_address \
13009     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13010     old_postinstall_cmds old_postuninstall_cmds \
13011     compiler_CXX \
13012     CC_CXX \
13013     LD_CXX \
13014     lt_prog_compiler_wl_CXX \
13015     lt_prog_compiler_pic_CXX \
13016     lt_prog_compiler_static_CXX \
13017     lt_prog_compiler_no_builtin_flag_CXX \
13018     export_dynamic_flag_spec_CXX \
13019     thread_safe_flag_spec_CXX \
13020     whole_archive_flag_spec_CXX \
13021     enable_shared_with_static_runtimes_CXX \
13022     old_archive_cmds_CXX \
13023     old_archive_from_new_cmds_CXX \
13024     predep_objects_CXX \
13025     postdep_objects_CXX \
13026     predeps_CXX \
13027     postdeps_CXX \
13028     compiler_lib_search_path_CXX \
13029     archive_cmds_CXX \
13030     archive_expsym_cmds_CXX \
13031     postinstall_cmds_CXX \
13032     postuninstall_cmds_CXX \
13033     old_archive_from_expsyms_cmds_CXX \
13034     allow_undefined_flag_CXX \
13035     no_undefined_flag_CXX \
13036     export_symbols_cmds_CXX \
13037     hardcode_libdir_flag_spec_CXX \
13038     hardcode_libdir_flag_spec_ld_CXX \
13039     hardcode_libdir_separator_CXX \
13040     hardcode_automatic_CXX \
13041     module_cmds_CXX \
13042     module_expsym_cmds_CXX \
13043     lt_cv_prog_compiler_c_o_CXX \
13044     exclude_expsyms_CXX \
13045     include_expsyms_CXX; do
13046
13047     case $var in
13048     old_archive_cmds_CXX | \
13049     old_archive_from_new_cmds_CXX | \
13050     archive_cmds_CXX | \
13051     archive_expsym_cmds_CXX | \
13052     module_cmds_CXX | \
13053     module_expsym_cmds_CXX | \
13054     old_archive_from_expsyms_cmds_CXX | \
13055     export_symbols_cmds_CXX | \
13056     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13057     postinstall_cmds | postuninstall_cmds | \
13058     old_postinstall_cmds | old_postuninstall_cmds | \
13059     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13060       # Double-quote double-evaled strings.
13061       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13062       ;;
13063     *)
13064       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13065       ;;
13066     esac
13067   done
13068
13069   case $lt_echo in
13070   *'\$0 --fallback-echo"')
13071     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13072     ;;
13073   esac
13074
13075 cfgfile="$ofile"
13076
13077   cat <<__EOF__ >> "$cfgfile"
13078 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13079
13080 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13081
13082 # Shell to use when invoking shell scripts.
13083 SHELL=$lt_SHELL
13084
13085 # Whether or not to build shared libraries.
13086 build_libtool_libs=$enable_shared
13087
13088 # Whether or not to build static libraries.
13089 build_old_libs=$enable_static
13090
13091 # Whether or not to add -lc for building shared libraries.
13092 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13093
13094 # Whether or not to disallow shared libs when runtime libs are static
13095 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13096
13097 # Whether or not to optimize for fast installation.
13098 fast_install=$enable_fast_install
13099
13100 # The host system.
13101 host_alias=$host_alias
13102 host=$host
13103 host_os=$host_os
13104
13105 # The build system.
13106 build_alias=$build_alias
13107 build=$build
13108 build_os=$build_os
13109
13110 # An echo program that does not interpret backslashes.
13111 echo=$lt_echo
13112
13113 # The archiver.
13114 AR=$lt_AR
13115 AR_FLAGS=$lt_AR_FLAGS
13116
13117 # A C compiler.
13118 LTCC=$lt_LTCC
13119
13120 # LTCC compiler flags.
13121 LTCFLAGS=$lt_LTCFLAGS
13122
13123 # A language-specific compiler.
13124 CC=$lt_compiler_CXX
13125
13126 # Is the compiler the GNU C compiler?
13127 with_gcc=$GCC_CXX
13128
13129 # An ERE matcher.
13130 EGREP=$lt_EGREP
13131
13132 # The linker used to build libraries.
13133 LD=$lt_LD_CXX
13134
13135 # Whether we need hard or soft links.
13136 LN_S=$lt_LN_S
13137
13138 # A BSD-compatible nm program.
13139 NM=$lt_NM
13140
13141 # A symbol stripping program
13142 STRIP=$lt_STRIP
13143
13144 # Used to examine libraries when file_magic_cmd begins "file"
13145 MAGIC_CMD=$MAGIC_CMD
13146
13147 # Used on cygwin: DLL creation program.
13148 DLLTOOL="$DLLTOOL"
13149
13150 # Used on cygwin: object dumper.
13151 OBJDUMP="$OBJDUMP"
13152
13153 # Used on cygwin: assembler.
13154 AS="$AS"
13155
13156 # The name of the directory that contains temporary libtool files.
13157 objdir=$objdir
13158
13159 # How to create reloadable object files.
13160 reload_flag=$lt_reload_flag
13161 reload_cmds=$lt_reload_cmds
13162
13163 # How to pass a linker flag through the compiler.
13164 wl=$lt_lt_prog_compiler_wl_CXX
13165
13166 # Object file suffix (normally "o").
13167 objext="$ac_objext"
13168
13169 # Old archive suffix (normally "a").
13170 libext="$libext"
13171
13172 # Shared library suffix (normally ".so").
13173 shrext_cmds='$shrext_cmds'
13174
13175 # Executable file suffix (normally "").
13176 exeext="$exeext"
13177
13178 # Additional compiler flags for building library objects.
13179 pic_flag=$lt_lt_prog_compiler_pic_CXX
13180 pic_mode=$pic_mode
13181
13182 # What is the maximum length of a command?
13183 max_cmd_len=$lt_cv_sys_max_cmd_len
13184
13185 # Does compiler simultaneously support -c and -o options?
13186 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13187
13188 # Must we lock files when doing compilation?
13189 need_locks=$lt_need_locks
13190
13191 # Do we need the lib prefix for modules?
13192 need_lib_prefix=$need_lib_prefix
13193
13194 # Do we need a version for libraries?
13195 need_version=$need_version
13196
13197 # Whether dlopen is supported.
13198 dlopen_support=$enable_dlopen
13199
13200 # Whether dlopen of programs is supported.
13201 dlopen_self=$enable_dlopen_self
13202
13203 # Whether dlopen of statically linked programs is supported.
13204 dlopen_self_static=$enable_dlopen_self_static
13205
13206 # Compiler flag to prevent dynamic linking.
13207 link_static_flag=$lt_lt_prog_compiler_static_CXX
13208
13209 # Compiler flag to turn off builtin functions.
13210 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13211
13212 # Compiler flag to allow reflexive dlopens.
13213 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13214
13215 # Compiler flag to generate shared objects directly from archives.
13216 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13217
13218 # Compiler flag to generate thread-safe objects.
13219 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13220
13221 # Library versioning type.
13222 version_type=$version_type
13223
13224 # Format of library name prefix.
13225 libname_spec=$lt_libname_spec
13226
13227 # List of archive names.  First name is the real one, the rest are links.
13228 # The last name is the one that the linker finds with -lNAME.
13229 library_names_spec=$lt_library_names_spec
13230
13231 # The coded name of the library, if different from the real name.
13232 soname_spec=$lt_soname_spec
13233
13234 # Commands used to build and install an old-style archive.
13235 RANLIB=$lt_RANLIB
13236 old_archive_cmds=$lt_old_archive_cmds_CXX
13237 old_postinstall_cmds=$lt_old_postinstall_cmds
13238 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13239
13240 # Create an old-style archive from a shared archive.
13241 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13242
13243 # Create a temporary old-style archive to link instead of a shared archive.
13244 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13245
13246 # Commands used to build and install a shared archive.
13247 archive_cmds=$lt_archive_cmds_CXX
13248 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13249 postinstall_cmds=$lt_postinstall_cmds
13250 postuninstall_cmds=$lt_postuninstall_cmds
13251
13252 # Commands used to build a loadable module (assumed same as above if empty)
13253 module_cmds=$lt_module_cmds_CXX
13254 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13255
13256 # Commands to strip libraries.
13257 old_striplib=$lt_old_striplib
13258 striplib=$lt_striplib
13259
13260 # Dependencies to place before the objects being linked to create a
13261 # shared library.
13262 predep_objects=$lt_predep_objects_CXX
13263
13264 # Dependencies to place after the objects being linked to create a
13265 # shared library.
13266 postdep_objects=$lt_postdep_objects_CXX
13267
13268 # Dependencies to place before the objects being linked to create a
13269 # shared library.
13270 predeps=$lt_predeps_CXX
13271
13272 # Dependencies to place after the objects being linked to create a
13273 # shared library.
13274 postdeps=$lt_postdeps_CXX
13275
13276 # The library search path used internally by the compiler when linking
13277 # a shared library.
13278 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13279
13280 # Method to check whether dependent libraries are shared objects.
13281 deplibs_check_method=$lt_deplibs_check_method
13282
13283 # Command to use when deplibs_check_method == file_magic.
13284 file_magic_cmd=$lt_file_magic_cmd
13285
13286 # Flag that allows shared libraries with undefined symbols to be built.
13287 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13288
13289 # Flag that forces no undefined symbols.
13290 no_undefined_flag=$lt_no_undefined_flag_CXX
13291
13292 # Commands used to finish a libtool library installation in a directory.
13293 finish_cmds=$lt_finish_cmds
13294
13295 # Same as above, but a single script fragment to be evaled but not shown.
13296 finish_eval=$lt_finish_eval
13297
13298 # Take the output of nm and produce a listing of raw symbols and C names.
13299 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13300
13301 # Transform the output of nm in a proper C declaration
13302 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13303
13304 # Transform the output of nm in a C name address pair
13305 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13306
13307 # This is the shared library runtime path variable.
13308 runpath_var=$runpath_var
13309
13310 # This is the shared library path variable.
13311 shlibpath_var=$shlibpath_var
13312
13313 # Is shlibpath searched before the hard-coded library search path?
13314 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13315
13316 # How to hardcode a shared library path into an executable.
13317 hardcode_action=$hardcode_action_CXX
13318
13319 # Whether we should hardcode library paths into libraries.
13320 hardcode_into_libs=$hardcode_into_libs
13321
13322 # Flag to hardcode \$libdir into a binary during linking.
13323 # This must work even if \$libdir does not exist.
13324 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13325
13326 # If ld is used when linking, flag to hardcode \$libdir into
13327 # a binary during linking. This must work even if \$libdir does
13328 # not exist.
13329 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13330
13331 # Whether we need a single -rpath flag with a separated argument.
13332 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13333
13334 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13335 # resulting binary.
13336 hardcode_direct=$hardcode_direct_CXX
13337
13338 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13339 # resulting binary.
13340 hardcode_minus_L=$hardcode_minus_L_CXX
13341
13342 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13343 # the resulting binary.
13344 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13345
13346 # Set to yes if building a shared library automatically hardcodes DIR into the library
13347 # and all subsequent libraries and executables linked against it.
13348 hardcode_automatic=$hardcode_automatic_CXX
13349
13350 # Variables whose values should be saved in libtool wrapper scripts and
13351 # restored at relink time.
13352 variables_saved_for_relink="$variables_saved_for_relink"
13353
13354 # Whether libtool must link a program against all its dependency libraries.
13355 link_all_deplibs=$link_all_deplibs_CXX
13356
13357 # Compile-time system search path for libraries
13358 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13359
13360 # Run-time system search path for libraries
13361 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13362
13363 # Fix the shell variable \$srcfile for the compiler.
13364 fix_srcfile_path="$fix_srcfile_path_CXX"
13365
13366 # Set to yes if exported symbols are required.
13367 always_export_symbols=$always_export_symbols_CXX
13368
13369 # The commands to list exported symbols.
13370 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13371
13372 # The commands to extract the exported symbol list from a shared archive.
13373 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13374
13375 # Symbols that should not be listed in the preloaded symbols.
13376 exclude_expsyms=$lt_exclude_expsyms_CXX
13377
13378 # Symbols that must always be exported.
13379 include_expsyms=$lt_include_expsyms_CXX
13380
13381 # ### END LIBTOOL TAG CONFIG: $tagname
13382
13383 __EOF__
13384
13385
13386 else
13387   # If there is no Makefile yet, we rely on a make rule to execute
13388   # `config.status --recheck' to rerun these tests and create the
13389   # libtool script then.
13390   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13391   if test -f "$ltmain_in"; then
13392     test -f Makefile && make "$ltmain"
13393   fi
13394 fi
13395
13396
13397 ac_ext=c
13398 ac_cpp='$CPP $CPPFLAGS'
13399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13402
13403 CC=$lt_save_CC
13404 LDCXX=$LD
13405 LD=$lt_save_LD
13406 GCC=$lt_save_GCC
13407 with_gnu_ldcxx=$with_gnu_ld
13408 with_gnu_ld=$lt_save_with_gnu_ld
13409 lt_cv_path_LDCXX=$lt_cv_path_LD
13410 lt_cv_path_LD=$lt_save_path_LD
13411 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13412 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13413
13414         else
13415           tagname=""
13416         fi
13417         ;;
13418
13419       F77)
13420         if test -n "$F77" && test "X$F77" != "Xno"; then
13421
13422 ac_ext=f
13423 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13424 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13425 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13426
13427
13428 archive_cmds_need_lc_F77=no
13429 allow_undefined_flag_F77=
13430 always_export_symbols_F77=no
13431 archive_expsym_cmds_F77=
13432 export_dynamic_flag_spec_F77=
13433 hardcode_direct_F77=no
13434 hardcode_libdir_flag_spec_F77=
13435 hardcode_libdir_flag_spec_ld_F77=
13436 hardcode_libdir_separator_F77=
13437 hardcode_minus_L_F77=no
13438 hardcode_automatic_F77=no
13439 module_cmds_F77=
13440 module_expsym_cmds_F77=
13441 link_all_deplibs_F77=unknown
13442 old_archive_cmds_F77=$old_archive_cmds
13443 no_undefined_flag_F77=
13444 whole_archive_flag_spec_F77=
13445 enable_shared_with_static_runtimes_F77=no
13446
13447 # Source file extension for f77 test sources.
13448 ac_ext=f
13449
13450 # Object file extension for compiled f77 test sources.
13451 objext=o
13452 objext_F77=$objext
13453
13454 # Code to be used in simple compile tests
13455 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13456
13457 # Code to be used in simple link tests
13458 lt_simple_link_test_code="      program t\n      end\n"
13459
13460 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13461
13462 # If no C compiler was specified, use CC.
13463 LTCC=${LTCC-"$CC"}
13464
13465 # If no C compiler flags were specified, use CFLAGS.
13466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13467
13468 # Allow CC to be a program name with arguments.
13469 compiler=$CC
13470
13471
13472 # save warnings/boilerplate of simple test code
13473 ac_outfile=conftest.$ac_objext
13474 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13476 _lt_compiler_boilerplate=`cat conftest.err`
13477 $rm conftest*
13478
13479 ac_outfile=conftest.$ac_objext
13480 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13482 _lt_linker_boilerplate=`cat conftest.err`
13483 $rm conftest*
13484
13485
13486 # Allow CC to be a program name with arguments.
13487 lt_save_CC="$CC"
13488 CC=${F77-"f77"}
13489 compiler=$CC
13490 compiler_F77=$CC
13491 for cc_temp in $compiler""; do
13492   case $cc_temp in
13493     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13494     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13495     \-*) ;;
13496     *) break;;
13497   esac
13498 done
13499 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13500
13501
13502 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13503 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13504 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13505 echo "${ECHO_T}$can_build_shared" >&6; }
13506
13507 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13508 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13509 test "$can_build_shared" = "no" && enable_shared=no
13510
13511 # On AIX, shared libraries and static libraries use the same namespace, and
13512 # are all built from PIC.
13513 case $host_os in
13514 aix3*)
13515   test "$enable_shared" = yes && enable_static=no
13516   if test -n "$RANLIB"; then
13517     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13518     postinstall_cmds='$RANLIB $lib'
13519   fi
13520   ;;
13521 aix4* | aix5*)
13522   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13523     test "$enable_shared" = yes && enable_static=no
13524   fi
13525   ;;
13526 esac
13527 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13528 echo "${ECHO_T}$enable_shared" >&6; }
13529
13530 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13531 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13532 # Make sure either enable_shared or enable_static is yes.
13533 test "$enable_shared" = yes || enable_static=yes
13534 { echo "$as_me:$LINENO: result: $enable_static" >&5
13535 echo "${ECHO_T}$enable_static" >&6; }
13536
13537 GCC_F77="$G77"
13538 LD_F77="$LD"
13539
13540 lt_prog_compiler_wl_F77=
13541 lt_prog_compiler_pic_F77=
13542 lt_prog_compiler_static_F77=
13543
13544 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13545 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13546
13547   if test "$GCC" = yes; then
13548     lt_prog_compiler_wl_F77='-Wl,'
13549     lt_prog_compiler_static_F77='-static'
13550
13551     case $host_os in
13552       aix*)
13553       # All AIX code is PIC.
13554       if test "$host_cpu" = ia64; then
13555         # AIX 5 now supports IA64 processor
13556         lt_prog_compiler_static_F77='-Bstatic'
13557       fi
13558       ;;
13559
13560     amigaos*)
13561       # FIXME: we need at least 68020 code to build shared libraries, but
13562       # adding the `-m68020' flag to GCC prevents building anything better,
13563       # like `-m68040'.
13564       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13565       ;;
13566
13567     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13568       # PIC is the default for these OSes.
13569       ;;
13570
13571     mingw* | pw32* | os2*)
13572       # This hack is so that the source file can tell whether it is being
13573       # built for inclusion in a dll (and should export symbols for example).
13574       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13575       ;;
13576
13577     darwin* | rhapsody*)
13578       # PIC is the default on this platform
13579       # Common symbols not allowed in MH_DYLIB files
13580       lt_prog_compiler_pic_F77='-fno-common'
13581       ;;
13582
13583     interix3*)
13584       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13585       # Instead, we relocate shared libraries at runtime.
13586       ;;
13587
13588     msdosdjgpp*)
13589       # Just because we use GCC doesn't mean we suddenly get shared libraries
13590       # on systems that don't support them.
13591       lt_prog_compiler_can_build_shared_F77=no
13592       enable_shared=no
13593       ;;
13594
13595     sysv4*MP*)
13596       if test -d /usr/nec; then
13597         lt_prog_compiler_pic_F77=-Kconform_pic
13598       fi
13599       ;;
13600
13601     hpux*)
13602       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13603       # not for PA HP-UX.
13604       case $host_cpu in
13605       hppa*64*|ia64*)
13606         # +Z the default
13607         ;;
13608       *)
13609         lt_prog_compiler_pic_F77='-fPIC'
13610         ;;
13611       esac
13612       ;;
13613
13614     *)
13615       lt_prog_compiler_pic_F77='-fPIC'
13616       ;;
13617     esac
13618   else
13619     # PORTME Check for flag to pass linker flags through the system compiler.
13620     case $host_os in
13621     aix*)
13622       lt_prog_compiler_wl_F77='-Wl,'
13623       if test "$host_cpu" = ia64; then
13624         # AIX 5 now supports IA64 processor
13625         lt_prog_compiler_static_F77='-Bstatic'
13626       else
13627         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13628       fi
13629       ;;
13630       darwin*)
13631         # PIC is the default on this platform
13632         # Common symbols not allowed in MH_DYLIB files
13633        case $cc_basename in
13634          xlc*)
13635          lt_prog_compiler_pic_F77='-qnocommon'
13636          lt_prog_compiler_wl_F77='-Wl,'
13637          ;;
13638        esac
13639        ;;
13640
13641     mingw* | pw32* | os2*)
13642       # This hack is so that the source file can tell whether it is being
13643       # built for inclusion in a dll (and should export symbols for example).
13644       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13645       ;;
13646
13647     hpux9* | hpux10* | hpux11*)
13648       lt_prog_compiler_wl_F77='-Wl,'
13649       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13650       # not for PA HP-UX.
13651       case $host_cpu in
13652       hppa*64*|ia64*)
13653         # +Z the default
13654         ;;
13655       *)
13656         lt_prog_compiler_pic_F77='+Z'
13657         ;;
13658       esac
13659       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13660       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13661       ;;
13662
13663     irix5* | irix6* | nonstopux*)
13664       lt_prog_compiler_wl_F77='-Wl,'
13665       # PIC (with -KPIC) is the default.
13666       lt_prog_compiler_static_F77='-non_shared'
13667       ;;
13668
13669     newsos6)
13670       lt_prog_compiler_pic_F77='-KPIC'
13671       lt_prog_compiler_static_F77='-Bstatic'
13672       ;;
13673
13674     linux*)
13675       case $cc_basename in
13676       icc* | ecc*)
13677         lt_prog_compiler_wl_F77='-Wl,'
13678         lt_prog_compiler_pic_F77='-KPIC'
13679         lt_prog_compiler_static_F77='-static'
13680         ;;
13681       pgcc* | pgf77* | pgf90* | pgf95*)
13682         # Portland Group compilers (*not* the Pentium gcc compiler,
13683         # which looks to be a dead project)
13684         lt_prog_compiler_wl_F77='-Wl,'
13685         lt_prog_compiler_pic_F77='-fpic'
13686         lt_prog_compiler_static_F77='-Bstatic'
13687         ;;
13688       ccc*)
13689         lt_prog_compiler_wl_F77='-Wl,'
13690         # All Alpha code is PIC.
13691         lt_prog_compiler_static_F77='-non_shared'
13692         ;;
13693       esac
13694       ;;
13695
13696     osf3* | osf4* | osf5*)
13697       lt_prog_compiler_wl_F77='-Wl,'
13698       # All OSF/1 code is PIC.
13699       lt_prog_compiler_static_F77='-non_shared'
13700       ;;
13701
13702     solaris*)
13703       lt_prog_compiler_pic_F77='-KPIC'
13704       lt_prog_compiler_static_F77='-Bstatic'
13705       case $cc_basename in
13706       f77* | f90* | f95*)
13707         lt_prog_compiler_wl_F77='-Qoption ld ';;
13708       *)
13709         lt_prog_compiler_wl_F77='-Wl,';;
13710       esac
13711       ;;
13712
13713     sunos4*)
13714       lt_prog_compiler_wl_F77='-Qoption ld '
13715       lt_prog_compiler_pic_F77='-PIC'
13716       lt_prog_compiler_static_F77='-Bstatic'
13717       ;;
13718
13719     sysv4 | sysv4.2uw2* | sysv4.3*)
13720       lt_prog_compiler_wl_F77='-Wl,'
13721       lt_prog_compiler_pic_F77='-KPIC'
13722       lt_prog_compiler_static_F77='-Bstatic'
13723       ;;
13724
13725     sysv4*MP*)
13726       if test -d /usr/nec ;then
13727         lt_prog_compiler_pic_F77='-Kconform_pic'
13728         lt_prog_compiler_static_F77='-Bstatic'
13729       fi
13730       ;;
13731
13732     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13733       lt_prog_compiler_wl_F77='-Wl,'
13734       lt_prog_compiler_pic_F77='-KPIC'
13735       lt_prog_compiler_static_F77='-Bstatic'
13736       ;;
13737
13738     unicos*)
13739       lt_prog_compiler_wl_F77='-Wl,'
13740       lt_prog_compiler_can_build_shared_F77=no
13741       ;;
13742
13743     uts4*)
13744       lt_prog_compiler_pic_F77='-pic'
13745       lt_prog_compiler_static_F77='-Bstatic'
13746       ;;
13747
13748     *)
13749       lt_prog_compiler_can_build_shared_F77=no
13750       ;;
13751     esac
13752   fi
13753
13754 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13755 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13756
13757 #
13758 # Check to make sure the PIC flag actually works.
13759 #
13760 if test -n "$lt_prog_compiler_pic_F77"; then
13761
13762 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13763 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13764 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13765   echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
13767   lt_prog_compiler_pic_works_F77=no
13768   ac_outfile=conftest.$ac_objext
13769    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13770    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13771    # Insert the option either (1) after the last *FLAGS variable, or
13772    # (2) before a word containing "conftest.", or (3) at the end.
13773    # Note that $ac_compile itself does not contain backslashes and begins
13774    # with a dollar sign (not a hyphen), so the echo should work correctly.
13775    # The option is referenced via a variable to avoid confusing sed.
13776    lt_compile=`echo "$ac_compile" | $SED \
13777    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13778    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13779    -e 's:$: $lt_compiler_flag:'`
13780    (eval echo "\"\$as_me:13780: $lt_compile\"" >&5)
13781    (eval "$lt_compile" 2>conftest.err)
13782    ac_status=$?
13783    cat conftest.err >&5
13784    echo "$as_me:13784: \$? = $ac_status" >&5
13785    if (exit $ac_status) && test -s "$ac_outfile"; then
13786      # The compiler can only warn and ignore the option if not recognized
13787      # So say no if there are warnings other than the usual output.
13788      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13789      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13790      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13791        lt_prog_compiler_pic_works_F77=yes
13792      fi
13793    fi
13794    $rm conftest*
13795
13796 fi
13797 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13798 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13799
13800 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13801     case $lt_prog_compiler_pic_F77 in
13802      "" | " "*) ;;
13803      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13804      esac
13805 else
13806     lt_prog_compiler_pic_F77=
13807      lt_prog_compiler_can_build_shared_F77=no
13808 fi
13809
13810 fi
13811 case $host_os in
13812   # For platforms which do not support PIC, -DPIC is meaningless:
13813   *djgpp*)
13814     lt_prog_compiler_pic_F77=
13815     ;;
13816   *)
13817     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13818     ;;
13819 esac
13820
13821 #
13822 # Check to make sure the static flag actually works.
13823 #
13824 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13825 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13826 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13827 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13828   echo $ECHO_N "(cached) $ECHO_C" >&6
13829 else
13830   lt_prog_compiler_static_works_F77=no
13831    save_LDFLAGS="$LDFLAGS"
13832    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13833    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13834    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13835      # The linker can only warn and ignore the option if not recognized
13836      # So say no if there are warnings
13837      if test -s conftest.err; then
13838        # Append any errors to the config.log.
13839        cat conftest.err 1>&5
13840        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13841        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13842        if diff conftest.exp conftest.er2 >/dev/null; then
13843          lt_prog_compiler_static_works_F77=yes
13844        fi
13845      else
13846        lt_prog_compiler_static_works_F77=yes
13847      fi
13848    fi
13849    $rm conftest*
13850    LDFLAGS="$save_LDFLAGS"
13851
13852 fi
13853 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13854 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13855
13856 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13857     :
13858 else
13859     lt_prog_compiler_static_F77=
13860 fi
13861
13862
13863 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13864 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13865 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13866   echo $ECHO_N "(cached) $ECHO_C" >&6
13867 else
13868   lt_cv_prog_compiler_c_o_F77=no
13869    $rm -r conftest 2>/dev/null
13870    mkdir conftest
13871    cd conftest
13872    mkdir out
13873    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13874
13875    lt_compiler_flag="-o out/conftest2.$ac_objext"
13876    # Insert the option either (1) after the last *FLAGS variable, or
13877    # (2) before a word containing "conftest.", or (3) at the end.
13878    # Note that $ac_compile itself does not contain backslashes and begins
13879    # with a dollar sign (not a hyphen), so the echo should work correctly.
13880    lt_compile=`echo "$ac_compile" | $SED \
13881    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13882    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13883    -e 's:$: $lt_compiler_flag:'`
13884    (eval echo "\"\$as_me:13884: $lt_compile\"" >&5)
13885    (eval "$lt_compile" 2>out/conftest.err)
13886    ac_status=$?
13887    cat out/conftest.err >&5
13888    echo "$as_me:13888: \$? = $ac_status" >&5
13889    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13890    then
13891      # The compiler can only warn and ignore the option if not recognized
13892      # So say no if there are warnings
13893      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13894      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13895      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13896        lt_cv_prog_compiler_c_o_F77=yes
13897      fi
13898    fi
13899    chmod u+w . 2>&5
13900    $rm conftest*
13901    # SGI C++ compiler will create directory out/ii_files/ for
13902    # template instantiation
13903    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13904    $rm out/* && rmdir out
13905    cd ..
13906    rmdir conftest
13907    $rm conftest*
13908
13909 fi
13910 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13911 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13912
13913
13914 hard_links="nottested"
13915 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13916   # do not overwrite the value of need_locks provided by the user
13917   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13918 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13919   hard_links=yes
13920   $rm conftest*
13921   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13922   touch conftest.a
13923   ln conftest.a conftest.b 2>&5 || hard_links=no
13924   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13925   { echo "$as_me:$LINENO: result: $hard_links" >&5
13926 echo "${ECHO_T}$hard_links" >&6; }
13927   if test "$hard_links" = no; then
13928     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13929 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13930     need_locks=warn
13931   fi
13932 else
13933   need_locks=no
13934 fi
13935
13936 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13937 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13938
13939   runpath_var=
13940   allow_undefined_flag_F77=
13941   enable_shared_with_static_runtimes_F77=no
13942   archive_cmds_F77=
13943   archive_expsym_cmds_F77=
13944   old_archive_From_new_cmds_F77=
13945   old_archive_from_expsyms_cmds_F77=
13946   export_dynamic_flag_spec_F77=
13947   whole_archive_flag_spec_F77=
13948   thread_safe_flag_spec_F77=
13949   hardcode_libdir_flag_spec_F77=
13950   hardcode_libdir_flag_spec_ld_F77=
13951   hardcode_libdir_separator_F77=
13952   hardcode_direct_F77=no
13953   hardcode_minus_L_F77=no
13954   hardcode_shlibpath_var_F77=unsupported
13955   link_all_deplibs_F77=unknown
13956   hardcode_automatic_F77=no
13957   module_cmds_F77=
13958   module_expsym_cmds_F77=
13959   always_export_symbols_F77=no
13960   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13961   # include_expsyms should be a list of space-separated symbols to be *always*
13962   # included in the symbol list
13963   include_expsyms_F77=
13964   # exclude_expsyms can be an extended regexp of symbols to exclude
13965   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13966   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13967   # as well as any symbol that contains `d'.
13968   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13969   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13970   # platforms (ab)use it in PIC code, but their linkers get confused if
13971   # the symbol is explicitly referenced.  Since portable code cannot
13972   # rely on this symbol name, it's probably fine to never include it in
13973   # preloaded symbol tables.
13974   extract_expsyms_cmds=
13975   # Just being paranoid about ensuring that cc_basename is set.
13976   for cc_temp in $compiler""; do
13977   case $cc_temp in
13978     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13979     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13980     \-*) ;;
13981     *) break;;
13982   esac
13983 done
13984 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13985
13986   case $host_os in
13987   cygwin* | mingw* | pw32*)
13988     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13989     # When not using gcc, we currently assume that we are using
13990     # Microsoft Visual C++.
13991     if test "$GCC" != yes; then
13992       with_gnu_ld=no
13993     fi
13994     ;;
13995   interix*)
13996     # we just hope/assume this is gcc and not c89 (= MSVC++)
13997     with_gnu_ld=yes
13998     ;;
13999   openbsd*)
14000     with_gnu_ld=no
14001     ;;
14002   esac
14003
14004   ld_shlibs_F77=yes
14005   if test "$with_gnu_ld" = yes; then
14006     # If archive_cmds runs LD, not CC, wlarc should be empty
14007     wlarc='${wl}'
14008
14009     # Set some defaults for GNU ld with shared library support. These
14010     # are reset later if shared libraries are not supported. Putting them
14011     # here allows them to be overridden if necessary.
14012     runpath_var=LD_RUN_PATH
14013     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14014     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14015     # ancient GNU ld didn't support --whole-archive et. al.
14016     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14017         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14018       else
14019         whole_archive_flag_spec_F77=
14020     fi
14021     supports_anon_versioning=no
14022     case `$LD -v 2>/dev/null` in
14023       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14024       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14025       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14026       *\ 2.11.*) ;; # other 2.11 versions
14027       *) supports_anon_versioning=yes ;;
14028     esac
14029
14030     # See if GNU ld supports shared libraries.
14031     case $host_os in
14032     aix3* | aix4* | aix5*)
14033       # On AIX/PPC, the GNU linker is very broken
14034       if test "$host_cpu" != ia64; then
14035         ld_shlibs_F77=no
14036         cat <<EOF 1>&2
14037
14038 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14039 *** to be unable to reliably create shared libraries on AIX.
14040 *** Therefore, libtool is disabling shared libraries support.  If you
14041 *** really care for shared libraries, you may want to modify your PATH
14042 *** so that a non-GNU linker is found, and then restart.
14043
14044 EOF
14045       fi
14046       ;;
14047
14048     amigaos*)
14049       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)'
14050       hardcode_libdir_flag_spec_F77='-L$libdir'
14051       hardcode_minus_L_F77=yes
14052
14053       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14054       # that the semantics of dynamic libraries on AmigaOS, at least up
14055       # to version 4, is to share data among multiple programs linked
14056       # with the same dynamic library.  Since this doesn't match the
14057       # behavior of shared libraries on other platforms, we can't use
14058       # them.
14059       ld_shlibs_F77=no
14060       ;;
14061
14062     beos*)
14063       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14064         allow_undefined_flag_F77=unsupported
14065         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14066         # support --undefined.  This deserves some investigation.  FIXME
14067         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14068       else
14069         ld_shlibs_F77=no
14070       fi
14071       ;;
14072
14073     cygwin* | mingw* | pw32*)
14074       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14075       # as there is no search path for DLLs.
14076       hardcode_libdir_flag_spec_F77='-L$libdir'
14077       allow_undefined_flag_F77=unsupported
14078       always_export_symbols_F77=no
14079       enable_shared_with_static_runtimes_F77=yes
14080       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14081
14082       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14083         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14084         # If the export-symbols file already is a .def file (1st line
14085         # is EXPORTS), use it as is; otherwise, prepend...
14086         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14087           cp $export_symbols $output_objdir/$soname.def;
14088         else
14089           echo EXPORTS > $output_objdir/$soname.def;
14090           cat $export_symbols >> $output_objdir/$soname.def;
14091         fi~
14092         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14093       else
14094         ld_shlibs_F77=no
14095       fi
14096       ;;
14097
14098     interix3*)
14099       hardcode_direct_F77=no
14100       hardcode_shlibpath_var_F77=no
14101       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14102       export_dynamic_flag_spec_F77='${wl}-E'
14103       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14104       # Instead, shared libraries are loaded at an image base (0x10000000 by
14105       # default) and relocated if they conflict, which is a slow very memory
14106       # consuming and fragmenting process.  To avoid this, we pick a random,
14107       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14108       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14109       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'
14110       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'
14111       ;;
14112
14113     linux*)
14114       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14115         tmp_addflag=
14116         case $cc_basename,$host_cpu in
14117         pgcc*)                          # Portland Group C compiler
14118           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'
14119           tmp_addflag=' $pic_flag'
14120           ;;
14121         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14122           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'
14123           tmp_addflag=' $pic_flag -Mnomain' ;;
14124         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14125           tmp_addflag=' -i_dynamic' ;;
14126         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14127           tmp_addflag=' -i_dynamic -nofor_main' ;;
14128         ifc* | ifort*)                  # Intel Fortran compiler
14129           tmp_addflag=' -nofor_main' ;;
14130         esac
14131         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14132
14133         if test $supports_anon_versioning = yes; then
14134           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14135   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14136   $echo "local: *; };" >> $output_objdir/$libname.ver~
14137           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14138         fi
14139       else
14140         ld_shlibs_F77=no
14141       fi
14142       ;;
14143
14144     netbsd*)
14145       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14146         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14147         wlarc=
14148       else
14149         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14150         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14151       fi
14152       ;;
14153
14154     solaris*)
14155       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14156         ld_shlibs_F77=no
14157         cat <<EOF 1>&2
14158
14159 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14160 *** create shared libraries on Solaris systems.  Therefore, libtool
14161 *** is disabling shared libraries support.  We urge you to upgrade GNU
14162 *** binutils to release 2.9.1 or newer.  Another option is to modify
14163 *** your PATH or compiler configuration so that the native linker is
14164 *** used, and then restart.
14165
14166 EOF
14167       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14168         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14169         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14170       else
14171         ld_shlibs_F77=no
14172       fi
14173       ;;
14174
14175     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14176       case `$LD -v 2>&1` in
14177         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14178         ld_shlibs_F77=no
14179         cat <<_LT_EOF 1>&2
14180
14181 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14182 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14183 *** is disabling shared libraries support.  We urge you to upgrade GNU
14184 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14185 *** your PATH or compiler configuration so that the native linker is
14186 *** used, and then restart.
14187
14188 _LT_EOF
14189         ;;
14190         *)
14191           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14192             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14193             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14194             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14195           else
14196             ld_shlibs_F77=no
14197           fi
14198         ;;
14199       esac
14200       ;;
14201
14202     sunos4*)
14203       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14204       wlarc=
14205       hardcode_direct_F77=yes
14206       hardcode_shlibpath_var_F77=no
14207       ;;
14208
14209     *)
14210       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14211         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14212         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14213       else
14214         ld_shlibs_F77=no
14215       fi
14216       ;;
14217     esac
14218
14219     if test "$ld_shlibs_F77" = no; then
14220       runpath_var=
14221       hardcode_libdir_flag_spec_F77=
14222       export_dynamic_flag_spec_F77=
14223       whole_archive_flag_spec_F77=
14224     fi
14225   else
14226     # PORTME fill in a description of your system's linker (not GNU ld)
14227     case $host_os in
14228     aix3*)
14229       allow_undefined_flag_F77=unsupported
14230       always_export_symbols_F77=yes
14231       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'
14232       # Note: this linker hardcodes the directories in LIBPATH if there
14233       # are no directories specified by -L.
14234       hardcode_minus_L_F77=yes
14235       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14236         # Neither direct hardcoding nor static linking is supported with a
14237         # broken collect2.
14238         hardcode_direct_F77=unsupported
14239       fi
14240       ;;
14241
14242     aix4* | aix5*)
14243       if test "$host_cpu" = ia64; then
14244         # On IA64, the linker does run time linking by default, so we don't
14245         # have to do anything special.
14246         aix_use_runtimelinking=no
14247         exp_sym_flag='-Bexport'
14248         no_entry_flag=""
14249       else
14250         # If we're using GNU nm, then we don't want the "-C" option.
14251         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14252         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14253           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'
14254         else
14255           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'
14256         fi
14257         aix_use_runtimelinking=no
14258
14259         # Test if we are trying to use run time linking or normal
14260         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14261         # need to do runtime linking.
14262         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14263           for ld_flag in $LDFLAGS; do
14264           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14265             aix_use_runtimelinking=yes
14266             break
14267           fi
14268           done
14269           ;;
14270         esac
14271
14272         exp_sym_flag='-bexport'
14273         no_entry_flag='-bnoentry'
14274       fi
14275
14276       # When large executables or shared objects are built, AIX ld can
14277       # have problems creating the table of contents.  If linking a library
14278       # or program results in "error TOC overflow" add -mminimal-toc to
14279       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14280       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14281
14282       archive_cmds_F77=''
14283       hardcode_direct_F77=yes
14284       hardcode_libdir_separator_F77=':'
14285       link_all_deplibs_F77=yes
14286
14287       if test "$GCC" = yes; then
14288         case $host_os in aix4.[012]|aix4.[012].*)
14289         # We only want to do this on AIX 4.2 and lower, the check
14290         # below for broken collect2 doesn't work under 4.3+
14291           collect2name=`${CC} -print-prog-name=collect2`
14292           if test -f "$collect2name" && \
14293            strings "$collect2name" | grep resolve_lib_name >/dev/null
14294           then
14295           # We have reworked collect2
14296           hardcode_direct_F77=yes
14297           else
14298           # We have old collect2
14299           hardcode_direct_F77=unsupported
14300           # It fails to find uninstalled libraries when the uninstalled
14301           # path is not listed in the libpath.  Setting hardcode_minus_L
14302           # to unsupported forces relinking
14303           hardcode_minus_L_F77=yes
14304           hardcode_libdir_flag_spec_F77='-L$libdir'
14305           hardcode_libdir_separator_F77=
14306           fi
14307           ;;
14308         esac
14309         shared_flag='-shared'
14310         if test "$aix_use_runtimelinking" = yes; then
14311           shared_flag="$shared_flag "'${wl}-G'
14312         fi
14313       else
14314         # not using gcc
14315         if test "$host_cpu" = ia64; then
14316         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14317         # chokes on -Wl,-G. The following line is correct:
14318           shared_flag='-G'
14319         else
14320           if test "$aix_use_runtimelinking" = yes; then
14321             shared_flag='${wl}-G'
14322           else
14323             shared_flag='${wl}-bM:SRE'
14324           fi
14325         fi
14326       fi
14327
14328       # It seems that -bexpall does not export symbols beginning with
14329       # underscore (_), so it is better to generate a list of symbols to export.
14330       always_export_symbols_F77=yes
14331       if test "$aix_use_runtimelinking" = yes; then
14332         # Warning - without using the other runtime loading flags (-brtl),
14333         # -berok will link without error, but may produce a broken library.
14334         allow_undefined_flag_F77='-berok'
14335        # Determine the default libpath from the value encoded in an empty executable.
14336        cat >conftest.$ac_ext <<_ACEOF
14337       program main
14338
14339       end
14340 _ACEOF
14341 rm -f conftest.$ac_objext conftest$ac_exeext
14342 if { (ac_try="$ac_link"
14343 case "(($ac_try" in
14344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345   *) ac_try_echo=$ac_try;;
14346 esac
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348   (eval "$ac_link") 2>conftest.er1
14349   ac_status=$?
14350   grep -v '^ *+' conftest.er1 >conftest.err
14351   rm -f conftest.er1
14352   cat conftest.err >&5
14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354   (exit $ac_status); } && {
14355          test -z "$ac_f77_werror_flag" ||
14356          test ! -s conftest.err
14357        } && test -s conftest$ac_exeext &&
14358        $as_test_x conftest$ac_exeext; then
14359
14360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14361 }'`
14362 # Check for a 64-bit object if we didn't find anything.
14363 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; }
14364 }'`; fi
14365 else
14366   echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369
14370 fi
14371
14372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14373       conftest$ac_exeext conftest.$ac_ext
14374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14375
14376        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14377         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"
14378        else
14379         if test "$host_cpu" = ia64; then
14380           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14381           allow_undefined_flag_F77="-z nodefs"
14382           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"
14383         else
14384          # Determine the default libpath from the value encoded in an empty executable.
14385          cat >conftest.$ac_ext <<_ACEOF
14386       program main
14387
14388       end
14389 _ACEOF
14390 rm -f conftest.$ac_objext conftest$ac_exeext
14391 if { (ac_try="$ac_link"
14392 case "(($ac_try" in
14393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394   *) ac_try_echo=$ac_try;;
14395 esac
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397   (eval "$ac_link") 2>conftest.er1
14398   ac_status=$?
14399   grep -v '^ *+' conftest.er1 >conftest.err
14400   rm -f conftest.er1
14401   cat conftest.err >&5
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); } && {
14404          test -z "$ac_f77_werror_flag" ||
14405          test ! -s conftest.err
14406        } && test -s conftest$ac_exeext &&
14407        $as_test_x conftest$ac_exeext; then
14408
14409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14410 }'`
14411 # Check for a 64-bit object if we didn't find anything.
14412 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; }
14413 }'`; fi
14414 else
14415   echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14417
14418
14419 fi
14420
14421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14422       conftest$ac_exeext conftest.$ac_ext
14423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14424
14425          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14426           # Warning - without using the other run time loading flags,
14427           # -berok will link without error, but may produce a broken library.
14428           no_undefined_flag_F77=' ${wl}-bernotok'
14429           allow_undefined_flag_F77=' ${wl}-berok'
14430           # Exported symbols can be pulled into shared objects from archives
14431           whole_archive_flag_spec_F77='$convenience'
14432           archive_cmds_need_lc_F77=yes
14433           # This is similar to how AIX traditionally builds its shared libraries.
14434           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'
14435         fi
14436       fi
14437       ;;
14438
14439     amigaos*)
14440       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)'
14441       hardcode_libdir_flag_spec_F77='-L$libdir'
14442       hardcode_minus_L_F77=yes
14443       # see comment about different semantics on the GNU ld section
14444       ld_shlibs_F77=no
14445       ;;
14446
14447     bsdi[45]*)
14448       export_dynamic_flag_spec_F77=-rdynamic
14449       ;;
14450
14451     cygwin* | mingw* | pw32*)
14452       # When not using gcc, we currently assume that we are using
14453       # Microsoft Visual C++.
14454       # hardcode_libdir_flag_spec is actually meaningless, as there is
14455       # no search path for DLLs.
14456       hardcode_libdir_flag_spec_F77=' '
14457       allow_undefined_flag_F77=unsupported
14458       # Tell ltmain to make .lib files, not .a files.
14459       libext=lib
14460       # Tell ltmain to make .dll files, not .so files.
14461       shrext_cmds=".dll"
14462       # FIXME: Setting linknames here is a bad hack.
14463       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14464       # The linker will automatically build a .lib file if we build a DLL.
14465       old_archive_From_new_cmds_F77='true'
14466       # FIXME: Should let the user specify the lib program.
14467       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14468       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14469       enable_shared_with_static_runtimes_F77=yes
14470       ;;
14471
14472     darwin* | rhapsody*)
14473       case $host_os in
14474         rhapsody* | darwin1.[012])
14475          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14476          ;;
14477        *) # Darwin 1.3 on
14478          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14479            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14480          else
14481            case ${MACOSX_DEPLOYMENT_TARGET} in
14482              10.[012])
14483                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14484                ;;
14485              10.*)
14486                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14487                ;;
14488            esac
14489          fi
14490          ;;
14491       esac
14492       archive_cmds_need_lc_F77=no
14493       hardcode_direct_F77=no
14494       hardcode_automatic_F77=yes
14495       hardcode_shlibpath_var_F77=unsupported
14496       whole_archive_flag_spec_F77=''
14497       link_all_deplibs_F77=yes
14498     if test "$GCC" = yes ; then
14499         output_verbose_link_cmd='echo'
14500         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14501       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14502       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14503       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}'
14504       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}'
14505     else
14506       case $cc_basename in
14507         xlc*)
14508          output_verbose_link_cmd='echo'
14509          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14510          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14511           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14512          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}'
14513           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}'
14514           ;;
14515        *)
14516          ld_shlibs_F77=no
14517           ;;
14518       esac
14519     fi
14520       ;;
14521
14522     dgux*)
14523       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14524       hardcode_libdir_flag_spec_F77='-L$libdir'
14525       hardcode_shlibpath_var_F77=no
14526       ;;
14527
14528     freebsd1*)
14529       ld_shlibs_F77=no
14530       ;;
14531
14532     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14533     # support.  Future versions do this automatically, but an explicit c++rt0.o
14534     # does not break anything, and helps significantly (at the cost of a little
14535     # extra space).
14536     freebsd2.2*)
14537       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14538       hardcode_libdir_flag_spec_F77='-R$libdir'
14539       hardcode_direct_F77=yes
14540       hardcode_shlibpath_var_F77=no
14541       ;;
14542
14543     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14544     freebsd2*)
14545       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14546       hardcode_direct_F77=yes
14547       hardcode_minus_L_F77=yes
14548       hardcode_shlibpath_var_F77=no
14549       ;;
14550
14551     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14552     freebsd* | kfreebsd*-gnu | dragonfly*)
14553       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14554       hardcode_libdir_flag_spec_F77='-R$libdir'
14555       hardcode_direct_F77=yes
14556       hardcode_shlibpath_var_F77=no
14557       ;;
14558
14559     hpux9*)
14560       if test "$GCC" = yes; then
14561         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'
14562       else
14563         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'
14564       fi
14565       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14566       hardcode_libdir_separator_F77=:
14567       hardcode_direct_F77=yes
14568
14569       # hardcode_minus_L: Not really in the search PATH,
14570       # but as the default location of the library.
14571       hardcode_minus_L_F77=yes
14572       export_dynamic_flag_spec_F77='${wl}-E'
14573       ;;
14574
14575     hpux10*)
14576       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14577         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14578       else
14579         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14580       fi
14581       if test "$with_gnu_ld" = no; then
14582         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14583         hardcode_libdir_separator_F77=:
14584
14585         hardcode_direct_F77=yes
14586         export_dynamic_flag_spec_F77='${wl}-E'
14587
14588         # hardcode_minus_L: Not really in the search PATH,
14589         # but as the default location of the library.
14590         hardcode_minus_L_F77=yes
14591       fi
14592       ;;
14593
14594     hpux11*)
14595       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14596         case $host_cpu in
14597         hppa*64*)
14598           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14599           ;;
14600         ia64*)
14601           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14602           ;;
14603         *)
14604           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14605           ;;
14606         esac
14607       else
14608         case $host_cpu in
14609         hppa*64*)
14610           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14611           ;;
14612         ia64*)
14613           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14614           ;;
14615         *)
14616           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14617           ;;
14618         esac
14619       fi
14620       if test "$with_gnu_ld" = no; then
14621         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14622         hardcode_libdir_separator_F77=:
14623
14624         case $host_cpu in
14625         hppa*64*|ia64*)
14626           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14627           hardcode_direct_F77=no
14628           hardcode_shlibpath_var_F77=no
14629           ;;
14630         *)
14631           hardcode_direct_F77=yes
14632           export_dynamic_flag_spec_F77='${wl}-E'
14633
14634           # hardcode_minus_L: Not really in the search PATH,
14635           # but as the default location of the library.
14636           hardcode_minus_L_F77=yes
14637           ;;
14638         esac
14639       fi
14640       ;;
14641
14642     irix5* | irix6* | nonstopux*)
14643       if test "$GCC" = yes; then
14644         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'
14645       else
14646         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'
14647         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14648       fi
14649       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14650       hardcode_libdir_separator_F77=:
14651       link_all_deplibs_F77=yes
14652       ;;
14653
14654     netbsd*)
14655       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14656         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14657       else
14658         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14659       fi
14660       hardcode_libdir_flag_spec_F77='-R$libdir'
14661       hardcode_direct_F77=yes
14662       hardcode_shlibpath_var_F77=no
14663       ;;
14664
14665     newsos6)
14666       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14667       hardcode_direct_F77=yes
14668       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14669       hardcode_libdir_separator_F77=:
14670       hardcode_shlibpath_var_F77=no
14671       ;;
14672
14673     openbsd*)
14674       hardcode_direct_F77=yes
14675       hardcode_shlibpath_var_F77=no
14676       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14677         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14678         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14679         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14680         export_dynamic_flag_spec_F77='${wl}-E'
14681       else
14682        case $host_os in
14683          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14684            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14685            hardcode_libdir_flag_spec_F77='-R$libdir'
14686            ;;
14687          *)
14688            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14689            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14690            ;;
14691        esac
14692       fi
14693       ;;
14694
14695     os2*)
14696       hardcode_libdir_flag_spec_F77='-L$libdir'
14697       hardcode_minus_L_F77=yes
14698       allow_undefined_flag_F77=unsupported
14699       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'
14700       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14701       ;;
14702
14703     osf3*)
14704       if test "$GCC" = yes; then
14705         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14706         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'
14707       else
14708         allow_undefined_flag_F77=' -expect_unresolved \*'
14709         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'
14710       fi
14711       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14712       hardcode_libdir_separator_F77=:
14713       ;;
14714
14715     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14716       if test "$GCC" = yes; then
14717         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14718         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'
14719         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14720       else
14721         allow_undefined_flag_F77=' -expect_unresolved \*'
14722         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'
14723         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~
14724         $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'
14725
14726         # Both c and cxx compiler support -rpath directly
14727         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14728       fi
14729       hardcode_libdir_separator_F77=:
14730       ;;
14731
14732     solaris*)
14733       no_undefined_flag_F77=' -z text'
14734       if test "$GCC" = yes; then
14735         wlarc='${wl}'
14736         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14737         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14738           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14739       else
14740         wlarc=''
14741         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14742         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14743         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14744       fi
14745       hardcode_libdir_flag_spec_F77='-R$libdir'
14746       hardcode_shlibpath_var_F77=no
14747       case $host_os in
14748       solaris2.[0-5] | solaris2.[0-5].*) ;;
14749       *)
14750         # The compiler driver will combine linker options so we
14751         # cannot just pass the convience library names through
14752         # without $wl, iff we do not link with $LD.
14753         # Luckily, gcc supports the same syntax we need for Sun Studio.
14754         # Supported since Solaris 2.6 (maybe 2.5.1?)
14755         case $wlarc in
14756         '')
14757           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14758         *)
14759           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' ;;
14760         esac ;;
14761       esac
14762       link_all_deplibs_F77=yes
14763       ;;
14764
14765     sunos4*)
14766       if test "x$host_vendor" = xsequent; then
14767         # Use $CC to link under sequent, because it throws in some extra .o
14768         # files that make .init and .fini sections work.
14769         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14770       else
14771         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14772       fi
14773       hardcode_libdir_flag_spec_F77='-L$libdir'
14774       hardcode_direct_F77=yes
14775       hardcode_minus_L_F77=yes
14776       hardcode_shlibpath_var_F77=no
14777       ;;
14778
14779     sysv4)
14780       case $host_vendor in
14781         sni)
14782           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14783           hardcode_direct_F77=yes # is this really true???
14784         ;;
14785         siemens)
14786           ## LD is ld it makes a PLAMLIB
14787           ## CC just makes a GrossModule.
14788           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14789           reload_cmds_F77='$CC -r -o $output$reload_objs'
14790           hardcode_direct_F77=no
14791         ;;
14792         motorola)
14793           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14794           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14795         ;;
14796       esac
14797       runpath_var='LD_RUN_PATH'
14798       hardcode_shlibpath_var_F77=no
14799       ;;
14800
14801     sysv4.3*)
14802       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14803       hardcode_shlibpath_var_F77=no
14804       export_dynamic_flag_spec_F77='-Bexport'
14805       ;;
14806
14807     sysv4*MP*)
14808       if test -d /usr/nec; then
14809         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14810         hardcode_shlibpath_var_F77=no
14811         runpath_var=LD_RUN_PATH
14812         hardcode_runpath_var=yes
14813         ld_shlibs_F77=yes
14814       fi
14815       ;;
14816
14817     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14818       no_undefined_flag_F77='${wl}-z,text'
14819       archive_cmds_need_lc_F77=no
14820       hardcode_shlibpath_var_F77=no
14821       runpath_var='LD_RUN_PATH'
14822
14823       if test "$GCC" = yes; then
14824         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14825         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14826       else
14827         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14828         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14829       fi
14830       ;;
14831
14832     sysv5* | sco3.2v5* | sco5v6*)
14833       # Note: We can NOT use -z defs as we might desire, because we do not
14834       # link with -lc, and that would cause any symbols used from libc to
14835       # always be unresolved, which means just about no library would
14836       # ever link correctly.  If we're not using GNU ld we use -z text
14837       # though, which does catch some bad symbols but isn't as heavy-handed
14838       # as -z defs.
14839       no_undefined_flag_F77='${wl}-z,text'
14840       allow_undefined_flag_F77='${wl}-z,nodefs'
14841       archive_cmds_need_lc_F77=no
14842       hardcode_shlibpath_var_F77=no
14843       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14844       hardcode_libdir_separator_F77=':'
14845       link_all_deplibs_F77=yes
14846       export_dynamic_flag_spec_F77='${wl}-Bexport'
14847       runpath_var='LD_RUN_PATH'
14848
14849       if test "$GCC" = yes; then
14850         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14851         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14852       else
14853         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14854         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14855       fi
14856       ;;
14857
14858     uts4*)
14859       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14860       hardcode_libdir_flag_spec_F77='-L$libdir'
14861       hardcode_shlibpath_var_F77=no
14862       ;;
14863
14864     *)
14865       ld_shlibs_F77=no
14866       ;;
14867     esac
14868   fi
14869
14870 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14871 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14872 test "$ld_shlibs_F77" = no && can_build_shared=no
14873
14874 #
14875 # Do we need to explicitly link libc?
14876 #
14877 case "x$archive_cmds_need_lc_F77" in
14878 x|xyes)
14879   # Assume -lc should be added
14880   archive_cmds_need_lc_F77=yes
14881
14882   if test "$enable_shared" = yes && test "$GCC" = yes; then
14883     case $archive_cmds_F77 in
14884     *'~'*)
14885       # FIXME: we may have to deal with multi-command sequences.
14886       ;;
14887     '$CC '*)
14888       # Test whether the compiler implicitly links with -lc since on some
14889       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14890       # to ld, don't add -lc before -lgcc.
14891       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14892 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14893       $rm conftest*
14894       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14895
14896       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14897   (eval $ac_compile) 2>&5
14898   ac_status=$?
14899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900   (exit $ac_status); } 2>conftest.err; then
14901         soname=conftest
14902         lib=conftest
14903         libobjs=conftest.$ac_objext
14904         deplibs=
14905         wl=$lt_prog_compiler_wl_F77
14906         pic_flag=$lt_prog_compiler_pic_F77
14907         compiler_flags=-v
14908         linker_flags=-v
14909         verstring=
14910         output_objdir=.
14911         libname=conftest
14912         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14913         allow_undefined_flag_F77=
14914         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14915   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14916   ac_status=$?
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); }
14919         then
14920           archive_cmds_need_lc_F77=no
14921         else
14922           archive_cmds_need_lc_F77=yes
14923         fi
14924         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14925       else
14926         cat conftest.err 1>&5
14927       fi
14928       $rm conftest*
14929       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14930 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14931       ;;
14932     esac
14933   fi
14934   ;;
14935 esac
14936
14937 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14938 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14939 library_names_spec=
14940 libname_spec='lib$name'
14941 soname_spec=
14942 shrext_cmds=".so"
14943 postinstall_cmds=
14944 postuninstall_cmds=
14945 finish_cmds=
14946 finish_eval=
14947 shlibpath_var=
14948 shlibpath_overrides_runpath=unknown
14949 version_type=none
14950 dynamic_linker="$host_os ld.so"
14951 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14952 if test "$GCC" = yes; then
14953   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14954   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14955     # if the path contains ";" then we assume it to be the separator
14956     # otherwise default to the standard path separator (i.e. ":") - it is
14957     # assumed that no part of a normal pathname contains ";" but that should
14958     # okay in the real world where ";" in dirpaths is itself problematic.
14959     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14960   else
14961     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14962   fi
14963 else
14964   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14965 fi
14966 need_lib_prefix=unknown
14967 hardcode_into_libs=no
14968
14969 # when you set need_version to no, make sure it does not cause -set_version
14970 # flags to be left without arguments
14971 need_version=unknown
14972
14973 case $host_os in
14974 aix3*)
14975   version_type=linux
14976   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14977   shlibpath_var=LIBPATH
14978
14979   # AIX 3 has no versioning support, so we append a major version to the name.
14980   soname_spec='${libname}${release}${shared_ext}$major'
14981   ;;
14982
14983 aix4* | aix5*)
14984   version_type=linux
14985   need_lib_prefix=no
14986   need_version=no
14987   hardcode_into_libs=yes
14988   if test "$host_cpu" = ia64; then
14989     # AIX 5 supports IA64
14990     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14991     shlibpath_var=LD_LIBRARY_PATH
14992   else
14993     # With GCC up to 2.95.x, collect2 would create an import file
14994     # for dependence libraries.  The import file would start with
14995     # the line `#! .'.  This would cause the generated library to
14996     # depend on `.', always an invalid library.  This was fixed in
14997     # development snapshots of GCC prior to 3.0.
14998     case $host_os in
14999       aix4 | aix4.[01] | aix4.[01].*)
15000       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15001            echo ' yes '
15002            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15003         :
15004       else
15005         can_build_shared=no
15006       fi
15007       ;;
15008     esac
15009     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15010     # soname into executable. Probably we can add versioning support to
15011     # collect2, so additional links can be useful in future.
15012     if test "$aix_use_runtimelinking" = yes; then
15013       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15014       # instead of lib<name>.a to let people know that these are not
15015       # typical AIX shared libraries.
15016       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15017     else
15018       # We preserve .a as extension for shared libraries through AIX4.2
15019       # and later when we are not doing run time linking.
15020       library_names_spec='${libname}${release}.a $libname.a'
15021       soname_spec='${libname}${release}${shared_ext}$major'
15022     fi
15023     shlibpath_var=LIBPATH
15024   fi
15025   ;;
15026
15027 amigaos*)
15028   library_names_spec='$libname.ixlibrary $libname.a'
15029   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15030   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'
15031   ;;
15032
15033 beos*)
15034   library_names_spec='${libname}${shared_ext}'
15035   dynamic_linker="$host_os ld.so"
15036   shlibpath_var=LIBRARY_PATH
15037   ;;
15038
15039 bsdi[45]*)
15040   version_type=linux
15041   need_version=no
15042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15043   soname_spec='${libname}${release}${shared_ext}$major'
15044   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15045   shlibpath_var=LD_LIBRARY_PATH
15046   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15047   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15048   # the default ld.so.conf also contains /usr/contrib/lib and
15049   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15050   # libtool to hard-code these into programs
15051   ;;
15052
15053 cygwin* | mingw* | pw32*)
15054   version_type=windows
15055   shrext_cmds=".dll"
15056   need_version=no
15057   need_lib_prefix=no
15058
15059   case $GCC,$host_os in
15060   yes,cygwin* | yes,mingw* | yes,pw32*)
15061     library_names_spec='$libname.dll.a'
15062     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15063     postinstall_cmds='base_file=`basename \${file}`~
15064       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15065       dldir=$destdir/`dirname \$dlpath`~
15066       test -d \$dldir || mkdir -p \$dldir~
15067       $install_prog $dir/$dlname \$dldir/$dlname~
15068       chmod a+x \$dldir/$dlname'
15069     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15070       dlpath=$dir/\$dldll~
15071        $rm \$dlpath'
15072     shlibpath_overrides_runpath=yes
15073
15074     case $host_os in
15075     cygwin*)
15076       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15077       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15078       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15079       ;;
15080     mingw*)
15081       # MinGW DLLs use traditional 'lib' prefix
15082       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15083       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15084       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15085         # It is most probably a Windows format PATH printed by
15086         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15087         # path with ; separators, and with drive letters. We can handle the
15088         # drive letters (cygwin fileutils understands them), so leave them,
15089         # especially as we might pass files found there to a mingw objdump,
15090         # which wouldn't understand a cygwinified path. Ahh.
15091         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15092       else
15093         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15094       fi
15095       ;;
15096     pw32*)
15097       # pw32 DLLs use 'pw' prefix rather than 'lib'
15098       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15099       ;;
15100     esac
15101     ;;
15102
15103   *)
15104     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15105     ;;
15106   esac
15107   dynamic_linker='Win32 ld.exe'
15108   # FIXME: first we should search . and the directory the executable is in
15109   shlibpath_var=PATH
15110   ;;
15111
15112 darwin* | rhapsody*)
15113   dynamic_linker="$host_os dyld"
15114   version_type=darwin
15115   need_lib_prefix=no
15116   need_version=no
15117   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15118   soname_spec='${libname}${release}${major}$shared_ext'
15119   shlibpath_overrides_runpath=yes
15120   shlibpath_var=DYLD_LIBRARY_PATH
15121   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15122   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15123   if test "$GCC" = yes; then
15124     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"`
15125   else
15126     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15127   fi
15128   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15129   ;;
15130
15131 dgux*)
15132   version_type=linux
15133   need_lib_prefix=no
15134   need_version=no
15135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15136   soname_spec='${libname}${release}${shared_ext}$major'
15137   shlibpath_var=LD_LIBRARY_PATH
15138   ;;
15139
15140 freebsd1*)
15141   dynamic_linker=no
15142   ;;
15143
15144 kfreebsd*-gnu)
15145   version_type=linux
15146   need_lib_prefix=no
15147   need_version=no
15148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15149   soname_spec='${libname}${release}${shared_ext}$major'
15150   shlibpath_var=LD_LIBRARY_PATH
15151   shlibpath_overrides_runpath=no
15152   hardcode_into_libs=yes
15153   dynamic_linker='GNU ld.so'
15154   ;;
15155
15156 freebsd* | dragonfly*)
15157   # DragonFly does not have aout.  When/if they implement a new
15158   # versioning mechanism, adjust this.
15159   if test -x /usr/bin/objformat; then
15160     objformat=`/usr/bin/objformat`
15161   else
15162     case $host_os in
15163     freebsd[123]*) objformat=aout ;;
15164     *) objformat=elf ;;
15165     esac
15166   fi
15167   version_type=freebsd-$objformat
15168   case $version_type in
15169     freebsd-elf*)
15170       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15171       need_version=no
15172       need_lib_prefix=no
15173       ;;
15174     freebsd-*)
15175       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15176       need_version=yes
15177       ;;
15178   esac
15179   shlibpath_var=LD_LIBRARY_PATH
15180   case $host_os in
15181   freebsd2*)
15182     shlibpath_overrides_runpath=yes
15183     ;;
15184   freebsd3.[01]* | freebsdelf3.[01]*)
15185     shlibpath_overrides_runpath=yes
15186     hardcode_into_libs=yes
15187     ;;
15188   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15189   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15190     shlibpath_overrides_runpath=no
15191     hardcode_into_libs=yes
15192     ;;
15193   freebsd*) # from 4.6 on
15194     shlibpath_overrides_runpath=yes
15195     hardcode_into_libs=yes
15196     ;;
15197   esac
15198   ;;
15199
15200 gnu*)
15201   version_type=linux
15202   need_lib_prefix=no
15203   need_version=no
15204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15205   soname_spec='${libname}${release}${shared_ext}$major'
15206   shlibpath_var=LD_LIBRARY_PATH
15207   hardcode_into_libs=yes
15208   ;;
15209
15210 hpux9* | hpux10* | hpux11*)
15211   # Give a soname corresponding to the major version so that dld.sl refuses to
15212   # link against other versions.
15213   version_type=sunos
15214   need_lib_prefix=no
15215   need_version=no
15216   case $host_cpu in
15217   ia64*)
15218     shrext_cmds='.so'
15219     hardcode_into_libs=yes
15220     dynamic_linker="$host_os dld.so"
15221     shlibpath_var=LD_LIBRARY_PATH
15222     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15224     soname_spec='${libname}${release}${shared_ext}$major'
15225     if test "X$HPUX_IA64_MODE" = X32; then
15226       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15227     else
15228       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15229     fi
15230     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15231     ;;
15232    hppa*64*)
15233      shrext_cmds='.sl'
15234      hardcode_into_libs=yes
15235      dynamic_linker="$host_os dld.sl"
15236      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15237      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15238      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15239      soname_spec='${libname}${release}${shared_ext}$major'
15240      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15241      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15242      ;;
15243    *)
15244     shrext_cmds='.sl'
15245     dynamic_linker="$host_os dld.sl"
15246     shlibpath_var=SHLIB_PATH
15247     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249     soname_spec='${libname}${release}${shared_ext}$major'
15250     ;;
15251   esac
15252   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15253   postinstall_cmds='chmod 555 $lib'
15254   ;;
15255
15256 interix3*)
15257   version_type=linux
15258   need_lib_prefix=no
15259   need_version=no
15260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15261   soname_spec='${libname}${release}${shared_ext}$major'
15262   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15263   shlibpath_var=LD_LIBRARY_PATH
15264   shlibpath_overrides_runpath=no
15265   hardcode_into_libs=yes
15266   ;;
15267
15268 irix5* | irix6* | nonstopux*)
15269   case $host_os in
15270     nonstopux*) version_type=nonstopux ;;
15271     *)
15272         if test "$lt_cv_prog_gnu_ld" = yes; then
15273                 version_type=linux
15274         else
15275                 version_type=irix
15276         fi ;;
15277   esac
15278   need_lib_prefix=no
15279   need_version=no
15280   soname_spec='${libname}${release}${shared_ext}$major'
15281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15282   case $host_os in
15283   irix5* | nonstopux*)
15284     libsuff= shlibsuff=
15285     ;;
15286   *)
15287     case $LD in # libtool.m4 will add one of these switches to LD
15288     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15289       libsuff= shlibsuff= libmagic=32-bit;;
15290     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15291       libsuff=32 shlibsuff=N32 libmagic=N32;;
15292     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15293       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15294     *) libsuff= shlibsuff= libmagic=never-match;;
15295     esac
15296     ;;
15297   esac
15298   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15299   shlibpath_overrides_runpath=no
15300   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15301   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15302   hardcode_into_libs=yes
15303   ;;
15304
15305 # No shared lib support for Linux oldld, aout, or coff.
15306 linux*oldld* | linux*aout* | linux*coff*)
15307   dynamic_linker=no
15308   ;;
15309
15310 # This must be Linux ELF.
15311 linux*)
15312   version_type=linux
15313   need_lib_prefix=no
15314   need_version=no
15315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15316   soname_spec='${libname}${release}${shared_ext}$major'
15317   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15318   shlibpath_var=LD_LIBRARY_PATH
15319   shlibpath_overrides_runpath=no
15320   # This implies no fast_install, which is unacceptable.
15321   # Some rework will be needed to allow for fast_install
15322   # before this can be enabled.
15323   hardcode_into_libs=yes
15324
15325   # Append ld.so.conf contents to the search path
15326   if test -f /etc/ld.so.conf; then
15327     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' ' '`
15328     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15329   fi
15330
15331   # We used to test for /lib/ld.so.1 and disable shared libraries on
15332   # powerpc, because MkLinux only supported shared libraries with the
15333   # GNU dynamic linker.  Since this was broken with cross compilers,
15334   # most powerpc-linux boxes support dynamic linking these days and
15335   # people can always --disable-shared, the test was removed, and we
15336   # assume the GNU/Linux dynamic linker is in use.
15337   dynamic_linker='GNU/Linux ld.so'
15338   ;;
15339
15340 knetbsd*-gnu)
15341   version_type=linux
15342   need_lib_prefix=no
15343   need_version=no
15344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15345   soname_spec='${libname}${release}${shared_ext}$major'
15346   shlibpath_var=LD_LIBRARY_PATH
15347   shlibpath_overrides_runpath=no
15348   hardcode_into_libs=yes
15349   dynamic_linker='GNU ld.so'
15350   ;;
15351
15352 netbsd*)
15353   version_type=sunos
15354   need_lib_prefix=no
15355   need_version=no
15356   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15358     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15359     dynamic_linker='NetBSD (a.out) ld.so'
15360   else
15361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15362     soname_spec='${libname}${release}${shared_ext}$major'
15363     dynamic_linker='NetBSD ld.elf_so'
15364   fi
15365   shlibpath_var=LD_LIBRARY_PATH
15366   shlibpath_overrides_runpath=yes
15367   hardcode_into_libs=yes
15368   ;;
15369
15370 newsos6)
15371   version_type=linux
15372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373   shlibpath_var=LD_LIBRARY_PATH
15374   shlibpath_overrides_runpath=yes
15375   ;;
15376
15377 nto-qnx*)
15378   version_type=linux
15379   need_lib_prefix=no
15380   need_version=no
15381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382   soname_spec='${libname}${release}${shared_ext}$major'
15383   shlibpath_var=LD_LIBRARY_PATH
15384   shlibpath_overrides_runpath=yes
15385   ;;
15386
15387 openbsd*)
15388   version_type=sunos
15389   sys_lib_dlsearch_path_spec="/usr/lib"
15390   need_lib_prefix=no
15391   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15392   case $host_os in
15393     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15394     *)                         need_version=no  ;;
15395   esac
15396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15397   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15398   shlibpath_var=LD_LIBRARY_PATH
15399   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15400     case $host_os in
15401       openbsd2.[89] | openbsd2.[89].*)
15402         shlibpath_overrides_runpath=no
15403         ;;
15404       *)
15405         shlibpath_overrides_runpath=yes
15406         ;;
15407       esac
15408   else
15409     shlibpath_overrides_runpath=yes
15410   fi
15411   ;;
15412
15413 os2*)
15414   libname_spec='$name'
15415   shrext_cmds=".dll"
15416   need_lib_prefix=no
15417   library_names_spec='$libname${shared_ext} $libname.a'
15418   dynamic_linker='OS/2 ld.exe'
15419   shlibpath_var=LIBPATH
15420   ;;
15421
15422 osf3* | osf4* | osf5*)
15423   version_type=osf
15424   need_lib_prefix=no
15425   need_version=no
15426   soname_spec='${libname}${release}${shared_ext}$major'
15427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428   shlibpath_var=LD_LIBRARY_PATH
15429   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15430   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15431   ;;
15432
15433 solaris*)
15434   version_type=linux
15435   need_lib_prefix=no
15436   need_version=no
15437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438   soname_spec='${libname}${release}${shared_ext}$major'
15439   shlibpath_var=LD_LIBRARY_PATH
15440   shlibpath_overrides_runpath=yes
15441   hardcode_into_libs=yes
15442   # ldd complains unless libraries are executable
15443   postinstall_cmds='chmod +x $lib'
15444   ;;
15445
15446 sunos4*)
15447   version_type=sunos
15448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15449   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15450   shlibpath_var=LD_LIBRARY_PATH
15451   shlibpath_overrides_runpath=yes
15452   if test "$with_gnu_ld" = yes; then
15453     need_lib_prefix=no
15454   fi
15455   need_version=yes
15456   ;;
15457
15458 sysv4 | sysv4.3*)
15459   version_type=linux
15460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461   soname_spec='${libname}${release}${shared_ext}$major'
15462   shlibpath_var=LD_LIBRARY_PATH
15463   case $host_vendor in
15464     sni)
15465       shlibpath_overrides_runpath=no
15466       need_lib_prefix=no
15467       export_dynamic_flag_spec='${wl}-Blargedynsym'
15468       runpath_var=LD_RUN_PATH
15469       ;;
15470     siemens)
15471       need_lib_prefix=no
15472       ;;
15473     motorola)
15474       need_lib_prefix=no
15475       need_version=no
15476       shlibpath_overrides_runpath=no
15477       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15478       ;;
15479   esac
15480   ;;
15481
15482 sysv4*MP*)
15483   if test -d /usr/nec ;then
15484     version_type=linux
15485     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15486     soname_spec='$libname${shared_ext}.$major'
15487     shlibpath_var=LD_LIBRARY_PATH
15488   fi
15489   ;;
15490
15491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15492   version_type=freebsd-elf
15493   need_lib_prefix=no
15494   need_version=no
15495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15496   soname_spec='${libname}${release}${shared_ext}$major'
15497   shlibpath_var=LD_LIBRARY_PATH
15498   hardcode_into_libs=yes
15499   if test "$with_gnu_ld" = yes; then
15500     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15501     shlibpath_overrides_runpath=no
15502   else
15503     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15504     shlibpath_overrides_runpath=yes
15505     case $host_os in
15506       sco3.2v5*)
15507         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15508         ;;
15509     esac
15510   fi
15511   sys_lib_dlsearch_path_spec='/usr/lib'
15512   ;;
15513
15514 uts4*)
15515   version_type=linux
15516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15517   soname_spec='${libname}${release}${shared_ext}$major'
15518   shlibpath_var=LD_LIBRARY_PATH
15519   ;;
15520
15521 *)
15522   dynamic_linker=no
15523   ;;
15524 esac
15525 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15526 echo "${ECHO_T}$dynamic_linker" >&6; }
15527 test "$dynamic_linker" = no && can_build_shared=no
15528
15529 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15530 if test "$GCC" = yes; then
15531   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15532 fi
15533
15534 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15535 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15536 hardcode_action_F77=
15537 if test -n "$hardcode_libdir_flag_spec_F77" || \
15538    test -n "$runpath_var_F77" || \
15539    test "X$hardcode_automatic_F77" = "Xyes" ; then
15540
15541   # We can hardcode non-existant directories.
15542   if test "$hardcode_direct_F77" != no &&
15543      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15544      # have to relink, otherwise we might link with an installed library
15545      # when we should be linking with a yet-to-be-installed one
15546      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15547      test "$hardcode_minus_L_F77" != no; then
15548     # Linking always hardcodes the temporary library directory.
15549     hardcode_action_F77=relink
15550   else
15551     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15552     hardcode_action_F77=immediate
15553   fi
15554 else
15555   # We cannot hardcode anything, or else we can only hardcode existing
15556   # directories.
15557   hardcode_action_F77=unsupported
15558 fi
15559 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15560 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15561
15562 if test "$hardcode_action_F77" = relink; then
15563   # Fast installation is not supported
15564   enable_fast_install=no
15565 elif test "$shlibpath_overrides_runpath" = yes ||
15566      test "$enable_shared" = no; then
15567   # Fast installation is not necessary
15568   enable_fast_install=needless
15569 fi
15570
15571
15572 # The else clause should only fire when bootstrapping the
15573 # libtool distribution, otherwise you forgot to ship ltmain.sh
15574 # with your package, and you will get complaints that there are
15575 # no rules to generate ltmain.sh.
15576 if test -f "$ltmain"; then
15577   # See if we are running on zsh, and set the options which allow our commands through
15578   # without removal of \ escapes.
15579   if test -n "${ZSH_VERSION+set}" ; then
15580     setopt NO_GLOB_SUBST
15581   fi
15582   # Now quote all the things that may contain metacharacters while being
15583   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15584   # variables and quote the copies for generation of the libtool script.
15585   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15586     SED SHELL STRIP \
15587     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15588     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15589     deplibs_check_method reload_flag reload_cmds need_locks \
15590     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15591     lt_cv_sys_global_symbol_to_c_name_address \
15592     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15593     old_postinstall_cmds old_postuninstall_cmds \
15594     compiler_F77 \
15595     CC_F77 \
15596     LD_F77 \
15597     lt_prog_compiler_wl_F77 \
15598     lt_prog_compiler_pic_F77 \
15599     lt_prog_compiler_static_F77 \
15600     lt_prog_compiler_no_builtin_flag_F77 \
15601     export_dynamic_flag_spec_F77 \
15602     thread_safe_flag_spec_F77 \
15603     whole_archive_flag_spec_F77 \
15604     enable_shared_with_static_runtimes_F77 \
15605     old_archive_cmds_F77 \
15606     old_archive_from_new_cmds_F77 \
15607     predep_objects_F77 \
15608     postdep_objects_F77 \
15609     predeps_F77 \
15610     postdeps_F77 \
15611     compiler_lib_search_path_F77 \
15612     archive_cmds_F77 \
15613     archive_expsym_cmds_F77 \
15614     postinstall_cmds_F77 \
15615     postuninstall_cmds_F77 \
15616     old_archive_from_expsyms_cmds_F77 \
15617     allow_undefined_flag_F77 \
15618     no_undefined_flag_F77 \
15619     export_symbols_cmds_F77 \
15620     hardcode_libdir_flag_spec_F77 \
15621     hardcode_libdir_flag_spec_ld_F77 \
15622     hardcode_libdir_separator_F77 \
15623     hardcode_automatic_F77 \
15624     module_cmds_F77 \
15625     module_expsym_cmds_F77 \
15626     lt_cv_prog_compiler_c_o_F77 \
15627     exclude_expsyms_F77 \
15628     include_expsyms_F77; do
15629
15630     case $var in
15631     old_archive_cmds_F77 | \
15632     old_archive_from_new_cmds_F77 | \
15633     archive_cmds_F77 | \
15634     archive_expsym_cmds_F77 | \
15635     module_cmds_F77 | \
15636     module_expsym_cmds_F77 | \
15637     old_archive_from_expsyms_cmds_F77 | \
15638     export_symbols_cmds_F77 | \
15639     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15640     postinstall_cmds | postuninstall_cmds | \
15641     old_postinstall_cmds | old_postuninstall_cmds | \
15642     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15643       # Double-quote double-evaled strings.
15644       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15645       ;;
15646     *)
15647       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15648       ;;
15649     esac
15650   done
15651
15652   case $lt_echo in
15653   *'\$0 --fallback-echo"')
15654     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15655     ;;
15656   esac
15657
15658 cfgfile="$ofile"
15659
15660   cat <<__EOF__ >> "$cfgfile"
15661 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15662
15663 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15664
15665 # Shell to use when invoking shell scripts.
15666 SHELL=$lt_SHELL
15667
15668 # Whether or not to build shared libraries.
15669 build_libtool_libs=$enable_shared
15670
15671 # Whether or not to build static libraries.
15672 build_old_libs=$enable_static
15673
15674 # Whether or not to add -lc for building shared libraries.
15675 build_libtool_need_lc=$archive_cmds_need_lc_F77
15676
15677 # Whether or not to disallow shared libs when runtime libs are static
15678 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15679
15680 # Whether or not to optimize for fast installation.
15681 fast_install=$enable_fast_install
15682
15683 # The host system.
15684 host_alias=$host_alias
15685 host=$host
15686 host_os=$host_os
15687
15688 # The build system.
15689 build_alias=$build_alias
15690 build=$build
15691 build_os=$build_os
15692
15693 # An echo program that does not interpret backslashes.
15694 echo=$lt_echo
15695
15696 # The archiver.
15697 AR=$lt_AR
15698 AR_FLAGS=$lt_AR_FLAGS
15699
15700 # A C compiler.
15701 LTCC=$lt_LTCC
15702
15703 # LTCC compiler flags.
15704 LTCFLAGS=$lt_LTCFLAGS
15705
15706 # A language-specific compiler.
15707 CC=$lt_compiler_F77
15708
15709 # Is the compiler the GNU C compiler?
15710 with_gcc=$GCC_F77
15711
15712 # An ERE matcher.
15713 EGREP=$lt_EGREP
15714
15715 # The linker used to build libraries.
15716 LD=$lt_LD_F77
15717
15718 # Whether we need hard or soft links.
15719 LN_S=$lt_LN_S
15720
15721 # A BSD-compatible nm program.
15722 NM=$lt_NM
15723
15724 # A symbol stripping program
15725 STRIP=$lt_STRIP
15726
15727 # Used to examine libraries when file_magic_cmd begins "file"
15728 MAGIC_CMD=$MAGIC_CMD
15729
15730 # Used on cygwin: DLL creation program.
15731 DLLTOOL="$DLLTOOL"
15732
15733 # Used on cygwin: object dumper.
15734 OBJDUMP="$OBJDUMP"
15735
15736 # Used on cygwin: assembler.
15737 AS="$AS"
15738
15739 # The name of the directory that contains temporary libtool files.
15740 objdir=$objdir
15741
15742 # How to create reloadable object files.
15743 reload_flag=$lt_reload_flag
15744 reload_cmds=$lt_reload_cmds
15745
15746 # How to pass a linker flag through the compiler.
15747 wl=$lt_lt_prog_compiler_wl_F77
15748
15749 # Object file suffix (normally "o").
15750 objext="$ac_objext"
15751
15752 # Old archive suffix (normally "a").
15753 libext="$libext"
15754
15755 # Shared library suffix (normally ".so").
15756 shrext_cmds='$shrext_cmds'
15757
15758 # Executable file suffix (normally "").
15759 exeext="$exeext"
15760
15761 # Additional compiler flags for building library objects.
15762 pic_flag=$lt_lt_prog_compiler_pic_F77
15763 pic_mode=$pic_mode
15764
15765 # What is the maximum length of a command?
15766 max_cmd_len=$lt_cv_sys_max_cmd_len
15767
15768 # Does compiler simultaneously support -c and -o options?
15769 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15770
15771 # Must we lock files when doing compilation?
15772 need_locks=$lt_need_locks
15773
15774 # Do we need the lib prefix for modules?
15775 need_lib_prefix=$need_lib_prefix
15776
15777 # Do we need a version for libraries?
15778 need_version=$need_version
15779
15780 # Whether dlopen is supported.
15781 dlopen_support=$enable_dlopen
15782
15783 # Whether dlopen of programs is supported.
15784 dlopen_self=$enable_dlopen_self
15785
15786 # Whether dlopen of statically linked programs is supported.
15787 dlopen_self_static=$enable_dlopen_self_static
15788
15789 # Compiler flag to prevent dynamic linking.
15790 link_static_flag=$lt_lt_prog_compiler_static_F77
15791
15792 # Compiler flag to turn off builtin functions.
15793 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15794
15795 # Compiler flag to allow reflexive dlopens.
15796 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15797
15798 # Compiler flag to generate shared objects directly from archives.
15799 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15800
15801 # Compiler flag to generate thread-safe objects.
15802 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15803
15804 # Library versioning type.
15805 version_type=$version_type
15806
15807 # Format of library name prefix.
15808 libname_spec=$lt_libname_spec
15809
15810 # List of archive names.  First name is the real one, the rest are links.
15811 # The last name is the one that the linker finds with -lNAME.
15812 library_names_spec=$lt_library_names_spec
15813
15814 # The coded name of the library, if different from the real name.
15815 soname_spec=$lt_soname_spec
15816
15817 # Commands used to build and install an old-style archive.
15818 RANLIB=$lt_RANLIB
15819 old_archive_cmds=$lt_old_archive_cmds_F77
15820 old_postinstall_cmds=$lt_old_postinstall_cmds
15821 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15822
15823 # Create an old-style archive from a shared archive.
15824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15825
15826 # Create a temporary old-style archive to link instead of a shared archive.
15827 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15828
15829 # Commands used to build and install a shared archive.
15830 archive_cmds=$lt_archive_cmds_F77
15831 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15832 postinstall_cmds=$lt_postinstall_cmds
15833 postuninstall_cmds=$lt_postuninstall_cmds
15834
15835 # Commands used to build a loadable module (assumed same as above if empty)
15836 module_cmds=$lt_module_cmds_F77
15837 module_expsym_cmds=$lt_module_expsym_cmds_F77
15838
15839 # Commands to strip libraries.
15840 old_striplib=$lt_old_striplib
15841 striplib=$lt_striplib
15842
15843 # Dependencies to place before the objects being linked to create a
15844 # shared library.
15845 predep_objects=$lt_predep_objects_F77
15846
15847 # Dependencies to place after the objects being linked to create a
15848 # shared library.
15849 postdep_objects=$lt_postdep_objects_F77
15850
15851 # Dependencies to place before the objects being linked to create a
15852 # shared library.
15853 predeps=$lt_predeps_F77
15854
15855 # Dependencies to place after the objects being linked to create a
15856 # shared library.
15857 postdeps=$lt_postdeps_F77
15858
15859 # The library search path used internally by the compiler when linking
15860 # a shared library.
15861 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15862
15863 # Method to check whether dependent libraries are shared objects.
15864 deplibs_check_method=$lt_deplibs_check_method
15865
15866 # Command to use when deplibs_check_method == file_magic.
15867 file_magic_cmd=$lt_file_magic_cmd
15868
15869 # Flag that allows shared libraries with undefined symbols to be built.
15870 allow_undefined_flag=$lt_allow_undefined_flag_F77
15871
15872 # Flag that forces no undefined symbols.
15873 no_undefined_flag=$lt_no_undefined_flag_F77
15874
15875 # Commands used to finish a libtool library installation in a directory.
15876 finish_cmds=$lt_finish_cmds
15877
15878 # Same as above, but a single script fragment to be evaled but not shown.
15879 finish_eval=$lt_finish_eval
15880
15881 # Take the output of nm and produce a listing of raw symbols and C names.
15882 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15883
15884 # Transform the output of nm in a proper C declaration
15885 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15886
15887 # Transform the output of nm in a C name address pair
15888 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15889
15890 # This is the shared library runtime path variable.
15891 runpath_var=$runpath_var
15892
15893 # This is the shared library path variable.
15894 shlibpath_var=$shlibpath_var
15895
15896 # Is shlibpath searched before the hard-coded library search path?
15897 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15898
15899 # How to hardcode a shared library path into an executable.
15900 hardcode_action=$hardcode_action_F77
15901
15902 # Whether we should hardcode library paths into libraries.
15903 hardcode_into_libs=$hardcode_into_libs
15904
15905 # Flag to hardcode \$libdir into a binary during linking.
15906 # This must work even if \$libdir does not exist.
15907 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15908
15909 # If ld is used when linking, flag to hardcode \$libdir into
15910 # a binary during linking. This must work even if \$libdir does
15911 # not exist.
15912 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15913
15914 # Whether we need a single -rpath flag with a separated argument.
15915 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15916
15917 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15918 # resulting binary.
15919 hardcode_direct=$hardcode_direct_F77
15920
15921 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15922 # resulting binary.
15923 hardcode_minus_L=$hardcode_minus_L_F77
15924
15925 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15926 # the resulting binary.
15927 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15928
15929 # Set to yes if building a shared library automatically hardcodes DIR into the library
15930 # and all subsequent libraries and executables linked against it.
15931 hardcode_automatic=$hardcode_automatic_F77
15932
15933 # Variables whose values should be saved in libtool wrapper scripts and
15934 # restored at relink time.
15935 variables_saved_for_relink="$variables_saved_for_relink"
15936
15937 # Whether libtool must link a program against all its dependency libraries.
15938 link_all_deplibs=$link_all_deplibs_F77
15939
15940 # Compile-time system search path for libraries
15941 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15942
15943 # Run-time system search path for libraries
15944 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15945
15946 # Fix the shell variable \$srcfile for the compiler.
15947 fix_srcfile_path="$fix_srcfile_path_F77"
15948
15949 # Set to yes if exported symbols are required.
15950 always_export_symbols=$always_export_symbols_F77
15951
15952 # The commands to list exported symbols.
15953 export_symbols_cmds=$lt_export_symbols_cmds_F77
15954
15955 # The commands to extract the exported symbol list from a shared archive.
15956 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15957
15958 # Symbols that should not be listed in the preloaded symbols.
15959 exclude_expsyms=$lt_exclude_expsyms_F77
15960
15961 # Symbols that must always be exported.
15962 include_expsyms=$lt_include_expsyms_F77
15963
15964 # ### END LIBTOOL TAG CONFIG: $tagname
15965
15966 __EOF__
15967
15968
15969 else
15970   # If there is no Makefile yet, we rely on a make rule to execute
15971   # `config.status --recheck' to rerun these tests and create the
15972   # libtool script then.
15973   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15974   if test -f "$ltmain_in"; then
15975     test -f Makefile && make "$ltmain"
15976   fi
15977 fi
15978
15979
15980 ac_ext=c
15981 ac_cpp='$CPP $CPPFLAGS'
15982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15985
15986 CC="$lt_save_CC"
15987
15988         else
15989           tagname=""
15990         fi
15991         ;;
15992
15993       GCJ)
15994         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15995
15996
15997 # Source file extension for Java test sources.
15998 ac_ext=java
15999
16000 # Object file extension for compiled Java test sources.
16001 objext=o
16002 objext_GCJ=$objext
16003
16004 # Code to be used in simple compile tests
16005 lt_simple_compile_test_code="class foo {}\n"
16006
16007 # Code to be used in simple link tests
16008 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16009
16010 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16011
16012 # If no C compiler was specified, use CC.
16013 LTCC=${LTCC-"$CC"}
16014
16015 # If no C compiler flags were specified, use CFLAGS.
16016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16017
16018 # Allow CC to be a program name with arguments.
16019 compiler=$CC
16020
16021
16022 # save warnings/boilerplate of simple test code
16023 ac_outfile=conftest.$ac_objext
16024 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16025 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16026 _lt_compiler_boilerplate=`cat conftest.err`
16027 $rm conftest*
16028
16029 ac_outfile=conftest.$ac_objext
16030 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16031 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16032 _lt_linker_boilerplate=`cat conftest.err`
16033 $rm conftest*
16034
16035
16036 # Allow CC to be a program name with arguments.
16037 lt_save_CC="$CC"
16038 CC=${GCJ-"gcj"}
16039 compiler=$CC
16040 compiler_GCJ=$CC
16041 for cc_temp in $compiler""; do
16042   case $cc_temp in
16043     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16044     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16045     \-*) ;;
16046     *) break;;
16047   esac
16048 done
16049 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16050
16051
16052 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16053 archive_cmds_need_lc_GCJ=no
16054
16055 old_archive_cmds_GCJ=$old_archive_cmds
16056
16057 ## CAVEAT EMPTOR:
16058 ## There is no encapsulation within the following macros, do not change
16059 ## the running order or otherwise move them around unless you know exactly
16060 ## what you are doing...
16061
16062 lt_prog_compiler_no_builtin_flag_GCJ=
16063
16064 if test "$GCC" = yes; then
16065   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16066
16067
16068 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16069 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16070 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16071   echo $ECHO_N "(cached) $ECHO_C" >&6
16072 else
16073   lt_cv_prog_compiler_rtti_exceptions=no
16074   ac_outfile=conftest.$ac_objext
16075    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16076    lt_compiler_flag="-fno-rtti -fno-exceptions"
16077    # Insert the option either (1) after the last *FLAGS variable, or
16078    # (2) before a word containing "conftest.", or (3) at the end.
16079    # Note that $ac_compile itself does not contain backslashes and begins
16080    # with a dollar sign (not a hyphen), so the echo should work correctly.
16081    # The option is referenced via a variable to avoid confusing sed.
16082    lt_compile=`echo "$ac_compile" | $SED \
16083    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16084    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16085    -e 's:$: $lt_compiler_flag:'`
16086    (eval echo "\"\$as_me:16086: $lt_compile\"" >&5)
16087    (eval "$lt_compile" 2>conftest.err)
16088    ac_status=$?
16089    cat conftest.err >&5
16090    echo "$as_me:16090: \$? = $ac_status" >&5
16091    if (exit $ac_status) && test -s "$ac_outfile"; then
16092      # The compiler can only warn and ignore the option if not recognized
16093      # So say no if there are warnings other than the usual output.
16094      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16095      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16096      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16097        lt_cv_prog_compiler_rtti_exceptions=yes
16098      fi
16099    fi
16100    $rm conftest*
16101
16102 fi
16103 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16104 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16105
16106 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16107     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16108 else
16109     :
16110 fi
16111
16112 fi
16113
16114 lt_prog_compiler_wl_GCJ=
16115 lt_prog_compiler_pic_GCJ=
16116 lt_prog_compiler_static_GCJ=
16117
16118 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16119 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16120
16121   if test "$GCC" = yes; then
16122     lt_prog_compiler_wl_GCJ='-Wl,'
16123     lt_prog_compiler_static_GCJ='-static'
16124
16125     case $host_os in
16126       aix*)
16127       # All AIX code is PIC.
16128       if test "$host_cpu" = ia64; then
16129         # AIX 5 now supports IA64 processor
16130         lt_prog_compiler_static_GCJ='-Bstatic'
16131       fi
16132       ;;
16133
16134     amigaos*)
16135       # FIXME: we need at least 68020 code to build shared libraries, but
16136       # adding the `-m68020' flag to GCC prevents building anything better,
16137       # like `-m68040'.
16138       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16139       ;;
16140
16141     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16142       # PIC is the default for these OSes.
16143       ;;
16144
16145     mingw* | pw32* | os2*)
16146       # This hack is so that the source file can tell whether it is being
16147       # built for inclusion in a dll (and should export symbols for example).
16148       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16149       ;;
16150
16151     darwin* | rhapsody*)
16152       # PIC is the default on this platform
16153       # Common symbols not allowed in MH_DYLIB files
16154       lt_prog_compiler_pic_GCJ='-fno-common'
16155       ;;
16156
16157     interix3*)
16158       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16159       # Instead, we relocate shared libraries at runtime.
16160       ;;
16161
16162     msdosdjgpp*)
16163       # Just because we use GCC doesn't mean we suddenly get shared libraries
16164       # on systems that don't support them.
16165       lt_prog_compiler_can_build_shared_GCJ=no
16166       enable_shared=no
16167       ;;
16168
16169     sysv4*MP*)
16170       if test -d /usr/nec; then
16171         lt_prog_compiler_pic_GCJ=-Kconform_pic
16172       fi
16173       ;;
16174
16175     hpux*)
16176       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16177       # not for PA HP-UX.
16178       case $host_cpu in
16179       hppa*64*|ia64*)
16180         # +Z the default
16181         ;;
16182       *)
16183         lt_prog_compiler_pic_GCJ='-fPIC'
16184         ;;
16185       esac
16186       ;;
16187
16188     *)
16189       lt_prog_compiler_pic_GCJ='-fPIC'
16190       ;;
16191     esac
16192   else
16193     # PORTME Check for flag to pass linker flags through the system compiler.
16194     case $host_os in
16195     aix*)
16196       lt_prog_compiler_wl_GCJ='-Wl,'
16197       if test "$host_cpu" = ia64; then
16198         # AIX 5 now supports IA64 processor
16199         lt_prog_compiler_static_GCJ='-Bstatic'
16200       else
16201         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16202       fi
16203       ;;
16204       darwin*)
16205         # PIC is the default on this platform
16206         # Common symbols not allowed in MH_DYLIB files
16207        case $cc_basename in
16208          xlc*)
16209          lt_prog_compiler_pic_GCJ='-qnocommon'
16210          lt_prog_compiler_wl_GCJ='-Wl,'
16211          ;;
16212        esac
16213        ;;
16214
16215     mingw* | pw32* | os2*)
16216       # This hack is so that the source file can tell whether it is being
16217       # built for inclusion in a dll (and should export symbols for example).
16218       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16219       ;;
16220
16221     hpux9* | hpux10* | hpux11*)
16222       lt_prog_compiler_wl_GCJ='-Wl,'
16223       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16224       # not for PA HP-UX.
16225       case $host_cpu in
16226       hppa*64*|ia64*)
16227         # +Z the default
16228         ;;
16229       *)
16230         lt_prog_compiler_pic_GCJ='+Z'
16231         ;;
16232       esac
16233       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16234       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16235       ;;
16236
16237     irix5* | irix6* | nonstopux*)
16238       lt_prog_compiler_wl_GCJ='-Wl,'
16239       # PIC (with -KPIC) is the default.
16240       lt_prog_compiler_static_GCJ='-non_shared'
16241       ;;
16242
16243     newsos6)
16244       lt_prog_compiler_pic_GCJ='-KPIC'
16245       lt_prog_compiler_static_GCJ='-Bstatic'
16246       ;;
16247
16248     linux*)
16249       case $cc_basename in
16250       icc* | ecc*)
16251         lt_prog_compiler_wl_GCJ='-Wl,'
16252         lt_prog_compiler_pic_GCJ='-KPIC'
16253         lt_prog_compiler_static_GCJ='-static'
16254         ;;
16255       pgcc* | pgf77* | pgf90* | pgf95*)
16256         # Portland Group compilers (*not* the Pentium gcc compiler,
16257         # which looks to be a dead project)
16258         lt_prog_compiler_wl_GCJ='-Wl,'
16259         lt_prog_compiler_pic_GCJ='-fpic'
16260         lt_prog_compiler_static_GCJ='-Bstatic'
16261         ;;
16262       ccc*)
16263         lt_prog_compiler_wl_GCJ='-Wl,'
16264         # All Alpha code is PIC.
16265         lt_prog_compiler_static_GCJ='-non_shared'
16266         ;;
16267       esac
16268       ;;
16269
16270     osf3* | osf4* | osf5*)
16271       lt_prog_compiler_wl_GCJ='-Wl,'
16272       # All OSF/1 code is PIC.
16273       lt_prog_compiler_static_GCJ='-non_shared'
16274       ;;
16275
16276     solaris*)
16277       lt_prog_compiler_pic_GCJ='-KPIC'
16278       lt_prog_compiler_static_GCJ='-Bstatic'
16279       case $cc_basename in
16280       f77* | f90* | f95*)
16281         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16282       *)
16283         lt_prog_compiler_wl_GCJ='-Wl,';;
16284       esac
16285       ;;
16286
16287     sunos4*)
16288       lt_prog_compiler_wl_GCJ='-Qoption ld '
16289       lt_prog_compiler_pic_GCJ='-PIC'
16290       lt_prog_compiler_static_GCJ='-Bstatic'
16291       ;;
16292
16293     sysv4 | sysv4.2uw2* | sysv4.3*)
16294       lt_prog_compiler_wl_GCJ='-Wl,'
16295       lt_prog_compiler_pic_GCJ='-KPIC'
16296       lt_prog_compiler_static_GCJ='-Bstatic'
16297       ;;
16298
16299     sysv4*MP*)
16300       if test -d /usr/nec ;then
16301         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16302         lt_prog_compiler_static_GCJ='-Bstatic'
16303       fi
16304       ;;
16305
16306     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16307       lt_prog_compiler_wl_GCJ='-Wl,'
16308       lt_prog_compiler_pic_GCJ='-KPIC'
16309       lt_prog_compiler_static_GCJ='-Bstatic'
16310       ;;
16311
16312     unicos*)
16313       lt_prog_compiler_wl_GCJ='-Wl,'
16314       lt_prog_compiler_can_build_shared_GCJ=no
16315       ;;
16316
16317     uts4*)
16318       lt_prog_compiler_pic_GCJ='-pic'
16319       lt_prog_compiler_static_GCJ='-Bstatic'
16320       ;;
16321
16322     *)
16323       lt_prog_compiler_can_build_shared_GCJ=no
16324       ;;
16325     esac
16326   fi
16327
16328 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16329 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16330
16331 #
16332 # Check to make sure the PIC flag actually works.
16333 #
16334 if test -n "$lt_prog_compiler_pic_GCJ"; then
16335
16336 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16337 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16338 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16339   echo $ECHO_N "(cached) $ECHO_C" >&6
16340 else
16341   lt_prog_compiler_pic_works_GCJ=no
16342   ac_outfile=conftest.$ac_objext
16343    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16344    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16345    # Insert the option either (1) after the last *FLAGS variable, or
16346    # (2) before a word containing "conftest.", or (3) at the end.
16347    # Note that $ac_compile itself does not contain backslashes and begins
16348    # with a dollar sign (not a hyphen), so the echo should work correctly.
16349    # The option is referenced via a variable to avoid confusing sed.
16350    lt_compile=`echo "$ac_compile" | $SED \
16351    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16352    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16353    -e 's:$: $lt_compiler_flag:'`
16354    (eval echo "\"\$as_me:16354: $lt_compile\"" >&5)
16355    (eval "$lt_compile" 2>conftest.err)
16356    ac_status=$?
16357    cat conftest.err >&5
16358    echo "$as_me:16358: \$? = $ac_status" >&5
16359    if (exit $ac_status) && test -s "$ac_outfile"; then
16360      # The compiler can only warn and ignore the option if not recognized
16361      # So say no if there are warnings other than the usual output.
16362      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16363      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16364      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16365        lt_prog_compiler_pic_works_GCJ=yes
16366      fi
16367    fi
16368    $rm conftest*
16369
16370 fi
16371 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16372 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16373
16374 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16375     case $lt_prog_compiler_pic_GCJ in
16376      "" | " "*) ;;
16377      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16378      esac
16379 else
16380     lt_prog_compiler_pic_GCJ=
16381      lt_prog_compiler_can_build_shared_GCJ=no
16382 fi
16383
16384 fi
16385 case $host_os in
16386   # For platforms which do not support PIC, -DPIC is meaningless:
16387   *djgpp*)
16388     lt_prog_compiler_pic_GCJ=
16389     ;;
16390   *)
16391     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16392     ;;
16393 esac
16394
16395 #
16396 # Check to make sure the static flag actually works.
16397 #
16398 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16399 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16400 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16401 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16402   echo $ECHO_N "(cached) $ECHO_C" >&6
16403 else
16404   lt_prog_compiler_static_works_GCJ=no
16405    save_LDFLAGS="$LDFLAGS"
16406    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16407    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16408    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16409      # The linker can only warn and ignore the option if not recognized
16410      # So say no if there are warnings
16411      if test -s conftest.err; then
16412        # Append any errors to the config.log.
16413        cat conftest.err 1>&5
16414        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16415        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16416        if diff conftest.exp conftest.er2 >/dev/null; then
16417          lt_prog_compiler_static_works_GCJ=yes
16418        fi
16419      else
16420        lt_prog_compiler_static_works_GCJ=yes
16421      fi
16422    fi
16423    $rm conftest*
16424    LDFLAGS="$save_LDFLAGS"
16425
16426 fi
16427 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16428 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16429
16430 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16431     :
16432 else
16433     lt_prog_compiler_static_GCJ=
16434 fi
16435
16436
16437 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16438 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16439 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16440   echo $ECHO_N "(cached) $ECHO_C" >&6
16441 else
16442   lt_cv_prog_compiler_c_o_GCJ=no
16443    $rm -r conftest 2>/dev/null
16444    mkdir conftest
16445    cd conftest
16446    mkdir out
16447    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16448
16449    lt_compiler_flag="-o out/conftest2.$ac_objext"
16450    # Insert the option either (1) after the last *FLAGS variable, or
16451    # (2) before a word containing "conftest.", or (3) at the end.
16452    # Note that $ac_compile itself does not contain backslashes and begins
16453    # with a dollar sign (not a hyphen), so the echo should work correctly.
16454    lt_compile=`echo "$ac_compile" | $SED \
16455    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16456    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16457    -e 's:$: $lt_compiler_flag:'`
16458    (eval echo "\"\$as_me:16458: $lt_compile\"" >&5)
16459    (eval "$lt_compile" 2>out/conftest.err)
16460    ac_status=$?
16461    cat out/conftest.err >&5
16462    echo "$as_me:16462: \$? = $ac_status" >&5
16463    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16464    then
16465      # The compiler can only warn and ignore the option if not recognized
16466      # So say no if there are warnings
16467      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16468      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16469      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16470        lt_cv_prog_compiler_c_o_GCJ=yes
16471      fi
16472    fi
16473    chmod u+w . 2>&5
16474    $rm conftest*
16475    # SGI C++ compiler will create directory out/ii_files/ for
16476    # template instantiation
16477    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16478    $rm out/* && rmdir out
16479    cd ..
16480    rmdir conftest
16481    $rm conftest*
16482
16483 fi
16484 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16485 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16486
16487
16488 hard_links="nottested"
16489 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16490   # do not overwrite the value of need_locks provided by the user
16491   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16492 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16493   hard_links=yes
16494   $rm conftest*
16495   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16496   touch conftest.a
16497   ln conftest.a conftest.b 2>&5 || hard_links=no
16498   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16499   { echo "$as_me:$LINENO: result: $hard_links" >&5
16500 echo "${ECHO_T}$hard_links" >&6; }
16501   if test "$hard_links" = no; then
16502     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16503 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16504     need_locks=warn
16505   fi
16506 else
16507   need_locks=no
16508 fi
16509
16510 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16511 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16512
16513   runpath_var=
16514   allow_undefined_flag_GCJ=
16515   enable_shared_with_static_runtimes_GCJ=no
16516   archive_cmds_GCJ=
16517   archive_expsym_cmds_GCJ=
16518   old_archive_From_new_cmds_GCJ=
16519   old_archive_from_expsyms_cmds_GCJ=
16520   export_dynamic_flag_spec_GCJ=
16521   whole_archive_flag_spec_GCJ=
16522   thread_safe_flag_spec_GCJ=
16523   hardcode_libdir_flag_spec_GCJ=
16524   hardcode_libdir_flag_spec_ld_GCJ=
16525   hardcode_libdir_separator_GCJ=
16526   hardcode_direct_GCJ=no
16527   hardcode_minus_L_GCJ=no
16528   hardcode_shlibpath_var_GCJ=unsupported
16529   link_all_deplibs_GCJ=unknown
16530   hardcode_automatic_GCJ=no
16531   module_cmds_GCJ=
16532   module_expsym_cmds_GCJ=
16533   always_export_symbols_GCJ=no
16534   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16535   # include_expsyms should be a list of space-separated symbols to be *always*
16536   # included in the symbol list
16537   include_expsyms_GCJ=
16538   # exclude_expsyms can be an extended regexp of symbols to exclude
16539   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16540   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16541   # as well as any symbol that contains `d'.
16542   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16543   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16544   # platforms (ab)use it in PIC code, but their linkers get confused if
16545   # the symbol is explicitly referenced.  Since portable code cannot
16546   # rely on this symbol name, it's probably fine to never include it in
16547   # preloaded symbol tables.
16548   extract_expsyms_cmds=
16549   # Just being paranoid about ensuring that cc_basename is set.
16550   for cc_temp in $compiler""; do
16551   case $cc_temp in
16552     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16553     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16554     \-*) ;;
16555     *) break;;
16556   esac
16557 done
16558 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16559
16560   case $host_os in
16561   cygwin* | mingw* | pw32*)
16562     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16563     # When not using gcc, we currently assume that we are using
16564     # Microsoft Visual C++.
16565     if test "$GCC" != yes; then
16566       with_gnu_ld=no
16567     fi
16568     ;;
16569   interix*)
16570     # we just hope/assume this is gcc and not c89 (= MSVC++)
16571     with_gnu_ld=yes
16572     ;;
16573   openbsd*)
16574     with_gnu_ld=no
16575     ;;
16576   esac
16577
16578   ld_shlibs_GCJ=yes
16579   if test "$with_gnu_ld" = yes; then
16580     # If archive_cmds runs LD, not CC, wlarc should be empty
16581     wlarc='${wl}'
16582
16583     # Set some defaults for GNU ld with shared library support. These
16584     # are reset later if shared libraries are not supported. Putting them
16585     # here allows them to be overridden if necessary.
16586     runpath_var=LD_RUN_PATH
16587     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16588     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16589     # ancient GNU ld didn't support --whole-archive et. al.
16590     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16591         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16592       else
16593         whole_archive_flag_spec_GCJ=
16594     fi
16595     supports_anon_versioning=no
16596     case `$LD -v 2>/dev/null` in
16597       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16598       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16599       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16600       *\ 2.11.*) ;; # other 2.11 versions
16601       *) supports_anon_versioning=yes ;;
16602     esac
16603
16604     # See if GNU ld supports shared libraries.
16605     case $host_os in
16606     aix3* | aix4* | aix5*)
16607       # On AIX/PPC, the GNU linker is very broken
16608       if test "$host_cpu" != ia64; then
16609         ld_shlibs_GCJ=no
16610         cat <<EOF 1>&2
16611
16612 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16613 *** to be unable to reliably create shared libraries on AIX.
16614 *** Therefore, libtool is disabling shared libraries support.  If you
16615 *** really care for shared libraries, you may want to modify your PATH
16616 *** so that a non-GNU linker is found, and then restart.
16617
16618 EOF
16619       fi
16620       ;;
16621
16622     amigaos*)
16623       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)'
16624       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16625       hardcode_minus_L_GCJ=yes
16626
16627       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16628       # that the semantics of dynamic libraries on AmigaOS, at least up
16629       # to version 4, is to share data among multiple programs linked
16630       # with the same dynamic library.  Since this doesn't match the
16631       # behavior of shared libraries on other platforms, we can't use
16632       # them.
16633       ld_shlibs_GCJ=no
16634       ;;
16635
16636     beos*)
16637       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16638         allow_undefined_flag_GCJ=unsupported
16639         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16640         # support --undefined.  This deserves some investigation.  FIXME
16641         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16642       else
16643         ld_shlibs_GCJ=no
16644       fi
16645       ;;
16646
16647     cygwin* | mingw* | pw32*)
16648       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16649       # as there is no search path for DLLs.
16650       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16651       allow_undefined_flag_GCJ=unsupported
16652       always_export_symbols_GCJ=no
16653       enable_shared_with_static_runtimes_GCJ=yes
16654       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16655
16656       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16657         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16658         # If the export-symbols file already is a .def file (1st line
16659         # is EXPORTS), use it as is; otherwise, prepend...
16660         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16661           cp $export_symbols $output_objdir/$soname.def;
16662         else
16663           echo EXPORTS > $output_objdir/$soname.def;
16664           cat $export_symbols >> $output_objdir/$soname.def;
16665         fi~
16666         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16667       else
16668         ld_shlibs_GCJ=no
16669       fi
16670       ;;
16671
16672     interix3*)
16673       hardcode_direct_GCJ=no
16674       hardcode_shlibpath_var_GCJ=no
16675       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16676       export_dynamic_flag_spec_GCJ='${wl}-E'
16677       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16678       # Instead, shared libraries are loaded at an image base (0x10000000 by
16679       # default) and relocated if they conflict, which is a slow very memory
16680       # consuming and fragmenting process.  To avoid this, we pick a random,
16681       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16682       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16683       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'
16684       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'
16685       ;;
16686
16687     linux*)
16688       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16689         tmp_addflag=
16690         case $cc_basename,$host_cpu in
16691         pgcc*)                          # Portland Group C compiler
16692           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'
16693           tmp_addflag=' $pic_flag'
16694           ;;
16695         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16696           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'
16697           tmp_addflag=' $pic_flag -Mnomain' ;;
16698         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16699           tmp_addflag=' -i_dynamic' ;;
16700         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16701           tmp_addflag=' -i_dynamic -nofor_main' ;;
16702         ifc* | ifort*)                  # Intel Fortran compiler
16703           tmp_addflag=' -nofor_main' ;;
16704         esac
16705         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16706
16707         if test $supports_anon_versioning = yes; then
16708           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16709   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16710   $echo "local: *; };" >> $output_objdir/$libname.ver~
16711           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16712         fi
16713       else
16714         ld_shlibs_GCJ=no
16715       fi
16716       ;;
16717
16718     netbsd*)
16719       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16720         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16721         wlarc=
16722       else
16723         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16724         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16725       fi
16726       ;;
16727
16728     solaris*)
16729       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16730         ld_shlibs_GCJ=no
16731         cat <<EOF 1>&2
16732
16733 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16734 *** create shared libraries on Solaris systems.  Therefore, libtool
16735 *** is disabling shared libraries support.  We urge you to upgrade GNU
16736 *** binutils to release 2.9.1 or newer.  Another option is to modify
16737 *** your PATH or compiler configuration so that the native linker is
16738 *** used, and then restart.
16739
16740 EOF
16741       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16742         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16743         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16744       else
16745         ld_shlibs_GCJ=no
16746       fi
16747       ;;
16748
16749     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16750       case `$LD -v 2>&1` in
16751         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16752         ld_shlibs_GCJ=no
16753         cat <<_LT_EOF 1>&2
16754
16755 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16756 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16757 *** is disabling shared libraries support.  We urge you to upgrade GNU
16758 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16759 *** your PATH or compiler configuration so that the native linker is
16760 *** used, and then restart.
16761
16762 _LT_EOF
16763         ;;
16764         *)
16765           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16766             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16767             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16768             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16769           else
16770             ld_shlibs_GCJ=no
16771           fi
16772         ;;
16773       esac
16774       ;;
16775
16776     sunos4*)
16777       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16778       wlarc=
16779       hardcode_direct_GCJ=yes
16780       hardcode_shlibpath_var_GCJ=no
16781       ;;
16782
16783     *)
16784       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16785         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16786         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16787       else
16788         ld_shlibs_GCJ=no
16789       fi
16790       ;;
16791     esac
16792
16793     if test "$ld_shlibs_GCJ" = no; then
16794       runpath_var=
16795       hardcode_libdir_flag_spec_GCJ=
16796       export_dynamic_flag_spec_GCJ=
16797       whole_archive_flag_spec_GCJ=
16798     fi
16799   else
16800     # PORTME fill in a description of your system's linker (not GNU ld)
16801     case $host_os in
16802     aix3*)
16803       allow_undefined_flag_GCJ=unsupported
16804       always_export_symbols_GCJ=yes
16805       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'
16806       # Note: this linker hardcodes the directories in LIBPATH if there
16807       # are no directories specified by -L.
16808       hardcode_minus_L_GCJ=yes
16809       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16810         # Neither direct hardcoding nor static linking is supported with a
16811         # broken collect2.
16812         hardcode_direct_GCJ=unsupported
16813       fi
16814       ;;
16815
16816     aix4* | aix5*)
16817       if test "$host_cpu" = ia64; then
16818         # On IA64, the linker does run time linking by default, so we don't
16819         # have to do anything special.
16820         aix_use_runtimelinking=no
16821         exp_sym_flag='-Bexport'
16822         no_entry_flag=""
16823       else
16824         # If we're using GNU nm, then we don't want the "-C" option.
16825         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16826         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16827           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'
16828         else
16829           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'
16830         fi
16831         aix_use_runtimelinking=no
16832
16833         # Test if we are trying to use run time linking or normal
16834         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16835         # need to do runtime linking.
16836         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16837           for ld_flag in $LDFLAGS; do
16838           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16839             aix_use_runtimelinking=yes
16840             break
16841           fi
16842           done
16843           ;;
16844         esac
16845
16846         exp_sym_flag='-bexport'
16847         no_entry_flag='-bnoentry'
16848       fi
16849
16850       # When large executables or shared objects are built, AIX ld can
16851       # have problems creating the table of contents.  If linking a library
16852       # or program results in "error TOC overflow" add -mminimal-toc to
16853       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16854       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16855
16856       archive_cmds_GCJ=''
16857       hardcode_direct_GCJ=yes
16858       hardcode_libdir_separator_GCJ=':'
16859       link_all_deplibs_GCJ=yes
16860
16861       if test "$GCC" = yes; then
16862         case $host_os in aix4.[012]|aix4.[012].*)
16863         # We only want to do this on AIX 4.2 and lower, the check
16864         # below for broken collect2 doesn't work under 4.3+
16865           collect2name=`${CC} -print-prog-name=collect2`
16866           if test -f "$collect2name" && \
16867            strings "$collect2name" | grep resolve_lib_name >/dev/null
16868           then
16869           # We have reworked collect2
16870           hardcode_direct_GCJ=yes
16871           else
16872           # We have old collect2
16873           hardcode_direct_GCJ=unsupported
16874           # It fails to find uninstalled libraries when the uninstalled
16875           # path is not listed in the libpath.  Setting hardcode_minus_L
16876           # to unsupported forces relinking
16877           hardcode_minus_L_GCJ=yes
16878           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16879           hardcode_libdir_separator_GCJ=
16880           fi
16881           ;;
16882         esac
16883         shared_flag='-shared'
16884         if test "$aix_use_runtimelinking" = yes; then
16885           shared_flag="$shared_flag "'${wl}-G'
16886         fi
16887       else
16888         # not using gcc
16889         if test "$host_cpu" = ia64; then
16890         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16891         # chokes on -Wl,-G. The following line is correct:
16892           shared_flag='-G'
16893         else
16894           if test "$aix_use_runtimelinking" = yes; then
16895             shared_flag='${wl}-G'
16896           else
16897             shared_flag='${wl}-bM:SRE'
16898           fi
16899         fi
16900       fi
16901
16902       # It seems that -bexpall does not export symbols beginning with
16903       # underscore (_), so it is better to generate a list of symbols to export.
16904       always_export_symbols_GCJ=yes
16905       if test "$aix_use_runtimelinking" = yes; then
16906         # Warning - without using the other runtime loading flags (-brtl),
16907         # -berok will link without error, but may produce a broken library.
16908         allow_undefined_flag_GCJ='-berok'
16909        # Determine the default libpath from the value encoded in an empty executable.
16910        cat >conftest.$ac_ext <<_ACEOF
16911 /* confdefs.h.  */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h.  */
16916
16917 int
16918 main ()
16919 {
16920
16921   ;
16922   return 0;
16923 }
16924 _ACEOF
16925 rm -f conftest.$ac_objext conftest$ac_exeext
16926 if { (ac_try="$ac_link"
16927 case "(($ac_try" in
16928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929   *) ac_try_echo=$ac_try;;
16930 esac
16931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932   (eval "$ac_link") 2>conftest.er1
16933   ac_status=$?
16934   grep -v '^ *+' conftest.er1 >conftest.err
16935   rm -f conftest.er1
16936   cat conftest.err >&5
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); } && {
16939          test -z "$ac_c_werror_flag" ||
16940          test ! -s conftest.err
16941        } && test -s conftest$ac_exeext &&
16942        $as_test_x conftest$ac_exeext; then
16943
16944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16945 }'`
16946 # Check for a 64-bit object if we didn't find anything.
16947 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; }
16948 }'`; fi
16949 else
16950   echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16952
16953
16954 fi
16955
16956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16957       conftest$ac_exeext conftest.$ac_ext
16958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16959
16960        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16961         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"
16962        else
16963         if test "$host_cpu" = ia64; then
16964           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16965           allow_undefined_flag_GCJ="-z nodefs"
16966           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"
16967         else
16968          # Determine the default libpath from the value encoded in an empty executable.
16969          cat >conftest.$ac_ext <<_ACEOF
16970 /* confdefs.h.  */
16971 _ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h.  */
16975
16976 int
16977 main ()
16978 {
16979
16980   ;
16981   return 0;
16982 }
16983 _ACEOF
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (ac_try="$ac_link"
16986 case "(($ac_try" in
16987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988   *) ac_try_echo=$ac_try;;
16989 esac
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991   (eval "$ac_link") 2>conftest.er1
16992   ac_status=$?
16993   grep -v '^ *+' conftest.er1 >conftest.err
16994   rm -f conftest.er1
16995   cat conftest.err >&5
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); } && {
16998          test -z "$ac_c_werror_flag" ||
16999          test ! -s conftest.err
17000        } && test -s conftest$ac_exeext &&
17001        $as_test_x conftest$ac_exeext; then
17002
17003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17004 }'`
17005 # Check for a 64-bit object if we didn't find anything.
17006 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; }
17007 }'`; fi
17008 else
17009   echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17011
17012
17013 fi
17014
17015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17016       conftest$ac_exeext conftest.$ac_ext
17017 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17018
17019          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17020           # Warning - without using the other run time loading flags,
17021           # -berok will link without error, but may produce a broken library.
17022           no_undefined_flag_GCJ=' ${wl}-bernotok'
17023           allow_undefined_flag_GCJ=' ${wl}-berok'
17024           # Exported symbols can be pulled into shared objects from archives
17025           whole_archive_flag_spec_GCJ='$convenience'
17026           archive_cmds_need_lc_GCJ=yes
17027           # This is similar to how AIX traditionally builds its shared libraries.
17028           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'
17029         fi
17030       fi
17031       ;;
17032
17033     amigaos*)
17034       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)'
17035       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17036       hardcode_minus_L_GCJ=yes
17037       # see comment about different semantics on the GNU ld section
17038       ld_shlibs_GCJ=no
17039       ;;
17040
17041     bsdi[45]*)
17042       export_dynamic_flag_spec_GCJ=-rdynamic
17043       ;;
17044
17045     cygwin* | mingw* | pw32*)
17046       # When not using gcc, we currently assume that we are using
17047       # Microsoft Visual C++.
17048       # hardcode_libdir_flag_spec is actually meaningless, as there is
17049       # no search path for DLLs.
17050       hardcode_libdir_flag_spec_GCJ=' '
17051       allow_undefined_flag_GCJ=unsupported
17052       # Tell ltmain to make .lib files, not .a files.
17053       libext=lib
17054       # Tell ltmain to make .dll files, not .so files.
17055       shrext_cmds=".dll"
17056       # FIXME: Setting linknames here is a bad hack.
17057       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17058       # The linker will automatically build a .lib file if we build a DLL.
17059       old_archive_From_new_cmds_GCJ='true'
17060       # FIXME: Should let the user specify the lib program.
17061       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17062       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17063       enable_shared_with_static_runtimes_GCJ=yes
17064       ;;
17065
17066     darwin* | rhapsody*)
17067       case $host_os in
17068         rhapsody* | darwin1.[012])
17069          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17070          ;;
17071        *) # Darwin 1.3 on
17072          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17073            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17074          else
17075            case ${MACOSX_DEPLOYMENT_TARGET} in
17076              10.[012])
17077                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17078                ;;
17079              10.*)
17080                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17081                ;;
17082            esac
17083          fi
17084          ;;
17085       esac
17086       archive_cmds_need_lc_GCJ=no
17087       hardcode_direct_GCJ=no
17088       hardcode_automatic_GCJ=yes
17089       hardcode_shlibpath_var_GCJ=unsupported
17090       whole_archive_flag_spec_GCJ=''
17091       link_all_deplibs_GCJ=yes
17092     if test "$GCC" = yes ; then
17093         output_verbose_link_cmd='echo'
17094         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17095       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17096       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17097       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}'
17098       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}'
17099     else
17100       case $cc_basename in
17101         xlc*)
17102          output_verbose_link_cmd='echo'
17103          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17104          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17105           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17106          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}'
17107           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}'
17108           ;;
17109        *)
17110          ld_shlibs_GCJ=no
17111           ;;
17112       esac
17113     fi
17114       ;;
17115
17116     dgux*)
17117       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17118       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17119       hardcode_shlibpath_var_GCJ=no
17120       ;;
17121
17122     freebsd1*)
17123       ld_shlibs_GCJ=no
17124       ;;
17125
17126     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17127     # support.  Future versions do this automatically, but an explicit c++rt0.o
17128     # does not break anything, and helps significantly (at the cost of a little
17129     # extra space).
17130     freebsd2.2*)
17131       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17132       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17133       hardcode_direct_GCJ=yes
17134       hardcode_shlibpath_var_GCJ=no
17135       ;;
17136
17137     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17138     freebsd2*)
17139       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17140       hardcode_direct_GCJ=yes
17141       hardcode_minus_L_GCJ=yes
17142       hardcode_shlibpath_var_GCJ=no
17143       ;;
17144
17145     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17146     freebsd* | kfreebsd*-gnu | dragonfly*)
17147       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17148       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17149       hardcode_direct_GCJ=yes
17150       hardcode_shlibpath_var_GCJ=no
17151       ;;
17152
17153     hpux9*)
17154       if test "$GCC" = yes; then
17155         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'
17156       else
17157         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'
17158       fi
17159       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17160       hardcode_libdir_separator_GCJ=:
17161       hardcode_direct_GCJ=yes
17162
17163       # hardcode_minus_L: Not really in the search PATH,
17164       # but as the default location of the library.
17165       hardcode_minus_L_GCJ=yes
17166       export_dynamic_flag_spec_GCJ='${wl}-E'
17167       ;;
17168
17169     hpux10*)
17170       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17171         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17172       else
17173         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17174       fi
17175       if test "$with_gnu_ld" = no; then
17176         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17177         hardcode_libdir_separator_GCJ=:
17178
17179         hardcode_direct_GCJ=yes
17180         export_dynamic_flag_spec_GCJ='${wl}-E'
17181
17182         # hardcode_minus_L: Not really in the search PATH,
17183         # but as the default location of the library.
17184         hardcode_minus_L_GCJ=yes
17185       fi
17186       ;;
17187
17188     hpux11*)
17189       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17190         case $host_cpu in
17191         hppa*64*)
17192           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17193           ;;
17194         ia64*)
17195           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17196           ;;
17197         *)
17198           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17199           ;;
17200         esac
17201       else
17202         case $host_cpu in
17203         hppa*64*)
17204           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17205           ;;
17206         ia64*)
17207           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17208           ;;
17209         *)
17210           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17211           ;;
17212         esac
17213       fi
17214       if test "$with_gnu_ld" = no; then
17215         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17216         hardcode_libdir_separator_GCJ=:
17217
17218         case $host_cpu in
17219         hppa*64*|ia64*)
17220           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17221           hardcode_direct_GCJ=no
17222           hardcode_shlibpath_var_GCJ=no
17223           ;;
17224         *)
17225           hardcode_direct_GCJ=yes
17226           export_dynamic_flag_spec_GCJ='${wl}-E'
17227
17228           # hardcode_minus_L: Not really in the search PATH,
17229           # but as the default location of the library.
17230           hardcode_minus_L_GCJ=yes
17231           ;;
17232         esac
17233       fi
17234       ;;
17235
17236     irix5* | irix6* | nonstopux*)
17237       if test "$GCC" = yes; then
17238         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'
17239       else
17240         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'
17241         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17242       fi
17243       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17244       hardcode_libdir_separator_GCJ=:
17245       link_all_deplibs_GCJ=yes
17246       ;;
17247
17248     netbsd*)
17249       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17250         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17251       else
17252         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17253       fi
17254       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17255       hardcode_direct_GCJ=yes
17256       hardcode_shlibpath_var_GCJ=no
17257       ;;
17258
17259     newsos6)
17260       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17261       hardcode_direct_GCJ=yes
17262       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17263       hardcode_libdir_separator_GCJ=:
17264       hardcode_shlibpath_var_GCJ=no
17265       ;;
17266
17267     openbsd*)
17268       hardcode_direct_GCJ=yes
17269       hardcode_shlibpath_var_GCJ=no
17270       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17271         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17272         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17273         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17274         export_dynamic_flag_spec_GCJ='${wl}-E'
17275       else
17276        case $host_os in
17277          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17278            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17279            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17280            ;;
17281          *)
17282            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17283            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17284            ;;
17285        esac
17286       fi
17287       ;;
17288
17289     os2*)
17290       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17291       hardcode_minus_L_GCJ=yes
17292       allow_undefined_flag_GCJ=unsupported
17293       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'
17294       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17295       ;;
17296
17297     osf3*)
17298       if test "$GCC" = yes; then
17299         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17300         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'
17301       else
17302         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17303         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'
17304       fi
17305       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17306       hardcode_libdir_separator_GCJ=:
17307       ;;
17308
17309     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17310       if test "$GCC" = yes; then
17311         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17312         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'
17313         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17314       else
17315         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17316         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'
17317         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~
17318         $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'
17319
17320         # Both c and cxx compiler support -rpath directly
17321         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17322       fi
17323       hardcode_libdir_separator_GCJ=:
17324       ;;
17325
17326     solaris*)
17327       no_undefined_flag_GCJ=' -z text'
17328       if test "$GCC" = yes; then
17329         wlarc='${wl}'
17330         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17331         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17332           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17333       else
17334         wlarc=''
17335         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17336         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17337         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17338       fi
17339       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17340       hardcode_shlibpath_var_GCJ=no
17341       case $host_os in
17342       solaris2.[0-5] | solaris2.[0-5].*) ;;
17343       *)
17344         # The compiler driver will combine linker options so we
17345         # cannot just pass the convience library names through
17346         # without $wl, iff we do not link with $LD.
17347         # Luckily, gcc supports the same syntax we need for Sun Studio.
17348         # Supported since Solaris 2.6 (maybe 2.5.1?)
17349         case $wlarc in
17350         '')
17351           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17352         *)
17353           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' ;;
17354         esac ;;
17355       esac
17356       link_all_deplibs_GCJ=yes
17357       ;;
17358
17359     sunos4*)
17360       if test "x$host_vendor" = xsequent; then
17361         # Use $CC to link under sequent, because it throws in some extra .o
17362         # files that make .init and .fini sections work.
17363         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17364       else
17365         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17366       fi
17367       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17368       hardcode_direct_GCJ=yes
17369       hardcode_minus_L_GCJ=yes
17370       hardcode_shlibpath_var_GCJ=no
17371       ;;
17372
17373     sysv4)
17374       case $host_vendor in
17375         sni)
17376           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17377           hardcode_direct_GCJ=yes # is this really true???
17378         ;;
17379         siemens)
17380           ## LD is ld it makes a PLAMLIB
17381           ## CC just makes a GrossModule.
17382           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17383           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17384           hardcode_direct_GCJ=no
17385         ;;
17386         motorola)
17387           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17388           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17389         ;;
17390       esac
17391       runpath_var='LD_RUN_PATH'
17392       hardcode_shlibpath_var_GCJ=no
17393       ;;
17394
17395     sysv4.3*)
17396       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17397       hardcode_shlibpath_var_GCJ=no
17398       export_dynamic_flag_spec_GCJ='-Bexport'
17399       ;;
17400
17401     sysv4*MP*)
17402       if test -d /usr/nec; then
17403         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17404         hardcode_shlibpath_var_GCJ=no
17405         runpath_var=LD_RUN_PATH
17406         hardcode_runpath_var=yes
17407         ld_shlibs_GCJ=yes
17408       fi
17409       ;;
17410
17411     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17412       no_undefined_flag_GCJ='${wl}-z,text'
17413       archive_cmds_need_lc_GCJ=no
17414       hardcode_shlibpath_var_GCJ=no
17415       runpath_var='LD_RUN_PATH'
17416
17417       if test "$GCC" = yes; then
17418         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17419         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17420       else
17421         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17422         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17423       fi
17424       ;;
17425
17426     sysv5* | sco3.2v5* | sco5v6*)
17427       # Note: We can NOT use -z defs as we might desire, because we do not
17428       # link with -lc, and that would cause any symbols used from libc to
17429       # always be unresolved, which means just about no library would
17430       # ever link correctly.  If we're not using GNU ld we use -z text
17431       # though, which does catch some bad symbols but isn't as heavy-handed
17432       # as -z defs.
17433       no_undefined_flag_GCJ='${wl}-z,text'
17434       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17435       archive_cmds_need_lc_GCJ=no
17436       hardcode_shlibpath_var_GCJ=no
17437       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17438       hardcode_libdir_separator_GCJ=':'
17439       link_all_deplibs_GCJ=yes
17440       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17441       runpath_var='LD_RUN_PATH'
17442
17443       if test "$GCC" = yes; then
17444         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17445         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17446       else
17447         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17448         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17449       fi
17450       ;;
17451
17452     uts4*)
17453       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17454       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17455       hardcode_shlibpath_var_GCJ=no
17456       ;;
17457
17458     *)
17459       ld_shlibs_GCJ=no
17460       ;;
17461     esac
17462   fi
17463
17464 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17465 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17466 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17467
17468 #
17469 # Do we need to explicitly link libc?
17470 #
17471 case "x$archive_cmds_need_lc_GCJ" in
17472 x|xyes)
17473   # Assume -lc should be added
17474   archive_cmds_need_lc_GCJ=yes
17475
17476   if test "$enable_shared" = yes && test "$GCC" = yes; then
17477     case $archive_cmds_GCJ in
17478     *'~'*)
17479       # FIXME: we may have to deal with multi-command sequences.
17480       ;;
17481     '$CC '*)
17482       # Test whether the compiler implicitly links with -lc since on some
17483       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17484       # to ld, don't add -lc before -lgcc.
17485       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17486 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17487       $rm conftest*
17488       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17489
17490       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17491   (eval $ac_compile) 2>&5
17492   ac_status=$?
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); } 2>conftest.err; then
17495         soname=conftest
17496         lib=conftest
17497         libobjs=conftest.$ac_objext
17498         deplibs=
17499         wl=$lt_prog_compiler_wl_GCJ
17500         pic_flag=$lt_prog_compiler_pic_GCJ
17501         compiler_flags=-v
17502         linker_flags=-v
17503         verstring=
17504         output_objdir=.
17505         libname=conftest
17506         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17507         allow_undefined_flag_GCJ=
17508         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17509   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17510   ac_status=$?
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); }
17513         then
17514           archive_cmds_need_lc_GCJ=no
17515         else
17516           archive_cmds_need_lc_GCJ=yes
17517         fi
17518         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17519       else
17520         cat conftest.err 1>&5
17521       fi
17522       $rm conftest*
17523       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17524 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17525       ;;
17526     esac
17527   fi
17528   ;;
17529 esac
17530
17531 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17532 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17533 library_names_spec=
17534 libname_spec='lib$name'
17535 soname_spec=
17536 shrext_cmds=".so"
17537 postinstall_cmds=
17538 postuninstall_cmds=
17539 finish_cmds=
17540 finish_eval=
17541 shlibpath_var=
17542 shlibpath_overrides_runpath=unknown
17543 version_type=none
17544 dynamic_linker="$host_os ld.so"
17545 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17546 if test "$GCC" = yes; then
17547   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17548   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17549     # if the path contains ";" then we assume it to be the separator
17550     # otherwise default to the standard path separator (i.e. ":") - it is
17551     # assumed that no part of a normal pathname contains ";" but that should
17552     # okay in the real world where ";" in dirpaths is itself problematic.
17553     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17554   else
17555     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17556   fi
17557 else
17558   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17559 fi
17560 need_lib_prefix=unknown
17561 hardcode_into_libs=no
17562
17563 # when you set need_version to no, make sure it does not cause -set_version
17564 # flags to be left without arguments
17565 need_version=unknown
17566
17567 case $host_os in
17568 aix3*)
17569   version_type=linux
17570   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17571   shlibpath_var=LIBPATH
17572
17573   # AIX 3 has no versioning support, so we append a major version to the name.
17574   soname_spec='${libname}${release}${shared_ext}$major'
17575   ;;
17576
17577 aix4* | aix5*)
17578   version_type=linux
17579   need_lib_prefix=no
17580   need_version=no
17581   hardcode_into_libs=yes
17582   if test "$host_cpu" = ia64; then
17583     # AIX 5 supports IA64
17584     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17585     shlibpath_var=LD_LIBRARY_PATH
17586   else
17587     # With GCC up to 2.95.x, collect2 would create an import file
17588     # for dependence libraries.  The import file would start with
17589     # the line `#! .'.  This would cause the generated library to
17590     # depend on `.', always an invalid library.  This was fixed in
17591     # development snapshots of GCC prior to 3.0.
17592     case $host_os in
17593       aix4 | aix4.[01] | aix4.[01].*)
17594       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17595            echo ' yes '
17596            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17597         :
17598       else
17599         can_build_shared=no
17600       fi
17601       ;;
17602     esac
17603     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17604     # soname into executable. Probably we can add versioning support to
17605     # collect2, so additional links can be useful in future.
17606     if test "$aix_use_runtimelinking" = yes; then
17607       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17608       # instead of lib<name>.a to let people know that these are not
17609       # typical AIX shared libraries.
17610       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17611     else
17612       # We preserve .a as extension for shared libraries through AIX4.2
17613       # and later when we are not doing run time linking.
17614       library_names_spec='${libname}${release}.a $libname.a'
17615       soname_spec='${libname}${release}${shared_ext}$major'
17616     fi
17617     shlibpath_var=LIBPATH
17618   fi
17619   ;;
17620
17621 amigaos*)
17622   library_names_spec='$libname.ixlibrary $libname.a'
17623   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17624   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'
17625   ;;
17626
17627 beos*)
17628   library_names_spec='${libname}${shared_ext}'
17629   dynamic_linker="$host_os ld.so"
17630   shlibpath_var=LIBRARY_PATH
17631   ;;
17632
17633 bsdi[45]*)
17634   version_type=linux
17635   need_version=no
17636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17637   soname_spec='${libname}${release}${shared_ext}$major'
17638   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17639   shlibpath_var=LD_LIBRARY_PATH
17640   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17641   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17642   # the default ld.so.conf also contains /usr/contrib/lib and
17643   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17644   # libtool to hard-code these into programs
17645   ;;
17646
17647 cygwin* | mingw* | pw32*)
17648   version_type=windows
17649   shrext_cmds=".dll"
17650   need_version=no
17651   need_lib_prefix=no
17652
17653   case $GCC,$host_os in
17654   yes,cygwin* | yes,mingw* | yes,pw32*)
17655     library_names_spec='$libname.dll.a'
17656     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17657     postinstall_cmds='base_file=`basename \${file}`~
17658       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17659       dldir=$destdir/`dirname \$dlpath`~
17660       test -d \$dldir || mkdir -p \$dldir~
17661       $install_prog $dir/$dlname \$dldir/$dlname~
17662       chmod a+x \$dldir/$dlname'
17663     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17664       dlpath=$dir/\$dldll~
17665        $rm \$dlpath'
17666     shlibpath_overrides_runpath=yes
17667
17668     case $host_os in
17669     cygwin*)
17670       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17671       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17672       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17673       ;;
17674     mingw*)
17675       # MinGW DLLs use traditional 'lib' prefix
17676       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17677       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17678       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17679         # It is most probably a Windows format PATH printed by
17680         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17681         # path with ; separators, and with drive letters. We can handle the
17682         # drive letters (cygwin fileutils understands them), so leave them,
17683         # especially as we might pass files found there to a mingw objdump,
17684         # which wouldn't understand a cygwinified path. Ahh.
17685         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17686       else
17687         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17688       fi
17689       ;;
17690     pw32*)
17691       # pw32 DLLs use 'pw' prefix rather than 'lib'
17692       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17693       ;;
17694     esac
17695     ;;
17696
17697   *)
17698     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17699     ;;
17700   esac
17701   dynamic_linker='Win32 ld.exe'
17702   # FIXME: first we should search . and the directory the executable is in
17703   shlibpath_var=PATH
17704   ;;
17705
17706 darwin* | rhapsody*)
17707   dynamic_linker="$host_os dyld"
17708   version_type=darwin
17709   need_lib_prefix=no
17710   need_version=no
17711   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17712   soname_spec='${libname}${release}${major}$shared_ext'
17713   shlibpath_overrides_runpath=yes
17714   shlibpath_var=DYLD_LIBRARY_PATH
17715   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17716   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17717   if test "$GCC" = yes; then
17718     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"`
17719   else
17720     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17721   fi
17722   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17723   ;;
17724
17725 dgux*)
17726   version_type=linux
17727   need_lib_prefix=no
17728   need_version=no
17729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17730   soname_spec='${libname}${release}${shared_ext}$major'
17731   shlibpath_var=LD_LIBRARY_PATH
17732   ;;
17733
17734 freebsd1*)
17735   dynamic_linker=no
17736   ;;
17737
17738 kfreebsd*-gnu)
17739   version_type=linux
17740   need_lib_prefix=no
17741   need_version=no
17742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17743   soname_spec='${libname}${release}${shared_ext}$major'
17744   shlibpath_var=LD_LIBRARY_PATH
17745   shlibpath_overrides_runpath=no
17746   hardcode_into_libs=yes
17747   dynamic_linker='GNU ld.so'
17748   ;;
17749
17750 freebsd* | dragonfly*)
17751   # DragonFly does not have aout.  When/if they implement a new
17752   # versioning mechanism, adjust this.
17753   if test -x /usr/bin/objformat; then
17754     objformat=`/usr/bin/objformat`
17755   else
17756     case $host_os in
17757     freebsd[123]*) objformat=aout ;;
17758     *) objformat=elf ;;
17759     esac
17760   fi
17761   version_type=freebsd-$objformat
17762   case $version_type in
17763     freebsd-elf*)
17764       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17765       need_version=no
17766       need_lib_prefix=no
17767       ;;
17768     freebsd-*)
17769       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17770       need_version=yes
17771       ;;
17772   esac
17773   shlibpath_var=LD_LIBRARY_PATH
17774   case $host_os in
17775   freebsd2*)
17776     shlibpath_overrides_runpath=yes
17777     ;;
17778   freebsd3.[01]* | freebsdelf3.[01]*)
17779     shlibpath_overrides_runpath=yes
17780     hardcode_into_libs=yes
17781     ;;
17782   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17783   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17784     shlibpath_overrides_runpath=no
17785     hardcode_into_libs=yes
17786     ;;
17787   freebsd*) # from 4.6 on
17788     shlibpath_overrides_runpath=yes
17789     hardcode_into_libs=yes
17790     ;;
17791   esac
17792   ;;
17793
17794 gnu*)
17795   version_type=linux
17796   need_lib_prefix=no
17797   need_version=no
17798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17799   soname_spec='${libname}${release}${shared_ext}$major'
17800   shlibpath_var=LD_LIBRARY_PATH
17801   hardcode_into_libs=yes
17802   ;;
17803
17804 hpux9* | hpux10* | hpux11*)
17805   # Give a soname corresponding to the major version so that dld.sl refuses to
17806   # link against other versions.
17807   version_type=sunos
17808   need_lib_prefix=no
17809   need_version=no
17810   case $host_cpu in
17811   ia64*)
17812     shrext_cmds='.so'
17813     hardcode_into_libs=yes
17814     dynamic_linker="$host_os dld.so"
17815     shlibpath_var=LD_LIBRARY_PATH
17816     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17818     soname_spec='${libname}${release}${shared_ext}$major'
17819     if test "X$HPUX_IA64_MODE" = X32; then
17820       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17821     else
17822       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17823     fi
17824     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17825     ;;
17826    hppa*64*)
17827      shrext_cmds='.sl'
17828      hardcode_into_libs=yes
17829      dynamic_linker="$host_os dld.sl"
17830      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17831      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17832      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17833      soname_spec='${libname}${release}${shared_ext}$major'
17834      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17835      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17836      ;;
17837    *)
17838     shrext_cmds='.sl'
17839     dynamic_linker="$host_os dld.sl"
17840     shlibpath_var=SHLIB_PATH
17841     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17843     soname_spec='${libname}${release}${shared_ext}$major'
17844     ;;
17845   esac
17846   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17847   postinstall_cmds='chmod 555 $lib'
17848   ;;
17849
17850 interix3*)
17851   version_type=linux
17852   need_lib_prefix=no
17853   need_version=no
17854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17855   soname_spec='${libname}${release}${shared_ext}$major'
17856   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17857   shlibpath_var=LD_LIBRARY_PATH
17858   shlibpath_overrides_runpath=no
17859   hardcode_into_libs=yes
17860   ;;
17861
17862 irix5* | irix6* | nonstopux*)
17863   case $host_os in
17864     nonstopux*) version_type=nonstopux ;;
17865     *)
17866         if test "$lt_cv_prog_gnu_ld" = yes; then
17867                 version_type=linux
17868         else
17869                 version_type=irix
17870         fi ;;
17871   esac
17872   need_lib_prefix=no
17873   need_version=no
17874   soname_spec='${libname}${release}${shared_ext}$major'
17875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17876   case $host_os in
17877   irix5* | nonstopux*)
17878     libsuff= shlibsuff=
17879     ;;
17880   *)
17881     case $LD in # libtool.m4 will add one of these switches to LD
17882     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17883       libsuff= shlibsuff= libmagic=32-bit;;
17884     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17885       libsuff=32 shlibsuff=N32 libmagic=N32;;
17886     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17887       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17888     *) libsuff= shlibsuff= libmagic=never-match;;
17889     esac
17890     ;;
17891   esac
17892   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17893   shlibpath_overrides_runpath=no
17894   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17895   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17896   hardcode_into_libs=yes
17897   ;;
17898
17899 # No shared lib support for Linux oldld, aout, or coff.
17900 linux*oldld* | linux*aout* | linux*coff*)
17901   dynamic_linker=no
17902   ;;
17903
17904 # This must be Linux ELF.
17905 linux*)
17906   version_type=linux
17907   need_lib_prefix=no
17908   need_version=no
17909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17910   soname_spec='${libname}${release}${shared_ext}$major'
17911   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17912   shlibpath_var=LD_LIBRARY_PATH
17913   shlibpath_overrides_runpath=no
17914   # This implies no fast_install, which is unacceptable.
17915   # Some rework will be needed to allow for fast_install
17916   # before this can be enabled.
17917   hardcode_into_libs=yes
17918
17919   # Append ld.so.conf contents to the search path
17920   if test -f /etc/ld.so.conf; then
17921     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' ' '`
17922     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17923   fi
17924
17925   # We used to test for /lib/ld.so.1 and disable shared libraries on
17926   # powerpc, because MkLinux only supported shared libraries with the
17927   # GNU dynamic linker.  Since this was broken with cross compilers,
17928   # most powerpc-linux boxes support dynamic linking these days and
17929   # people can always --disable-shared, the test was removed, and we
17930   # assume the GNU/Linux dynamic linker is in use.
17931   dynamic_linker='GNU/Linux ld.so'
17932   ;;
17933
17934 knetbsd*-gnu)
17935   version_type=linux
17936   need_lib_prefix=no
17937   need_version=no
17938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17939   soname_spec='${libname}${release}${shared_ext}$major'
17940   shlibpath_var=LD_LIBRARY_PATH
17941   shlibpath_overrides_runpath=no
17942   hardcode_into_libs=yes
17943   dynamic_linker='GNU ld.so'
17944   ;;
17945
17946 netbsd*)
17947   version_type=sunos
17948   need_lib_prefix=no
17949   need_version=no
17950   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17952     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17953     dynamic_linker='NetBSD (a.out) ld.so'
17954   else
17955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17956     soname_spec='${libname}${release}${shared_ext}$major'
17957     dynamic_linker='NetBSD ld.elf_so'
17958   fi
17959   shlibpath_var=LD_LIBRARY_PATH
17960   shlibpath_overrides_runpath=yes
17961   hardcode_into_libs=yes
17962   ;;
17963
17964 newsos6)
17965   version_type=linux
17966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17967   shlibpath_var=LD_LIBRARY_PATH
17968   shlibpath_overrides_runpath=yes
17969   ;;
17970
17971 nto-qnx*)
17972   version_type=linux
17973   need_lib_prefix=no
17974   need_version=no
17975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17976   soname_spec='${libname}${release}${shared_ext}$major'
17977   shlibpath_var=LD_LIBRARY_PATH
17978   shlibpath_overrides_runpath=yes
17979   ;;
17980
17981 openbsd*)
17982   version_type=sunos
17983   sys_lib_dlsearch_path_spec="/usr/lib"
17984   need_lib_prefix=no
17985   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17986   case $host_os in
17987     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17988     *)                         need_version=no  ;;
17989   esac
17990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17991   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17992   shlibpath_var=LD_LIBRARY_PATH
17993   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17994     case $host_os in
17995       openbsd2.[89] | openbsd2.[89].*)
17996         shlibpath_overrides_runpath=no
17997         ;;
17998       *)
17999         shlibpath_overrides_runpath=yes
18000         ;;
18001       esac
18002   else
18003     shlibpath_overrides_runpath=yes
18004   fi
18005   ;;
18006
18007 os2*)
18008   libname_spec='$name'
18009   shrext_cmds=".dll"
18010   need_lib_prefix=no
18011   library_names_spec='$libname${shared_ext} $libname.a'
18012   dynamic_linker='OS/2 ld.exe'
18013   shlibpath_var=LIBPATH
18014   ;;
18015
18016 osf3* | osf4* | osf5*)
18017   version_type=osf
18018   need_lib_prefix=no
18019   need_version=no
18020   soname_spec='${libname}${release}${shared_ext}$major'
18021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022   shlibpath_var=LD_LIBRARY_PATH
18023   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18024   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18025   ;;
18026
18027 solaris*)
18028   version_type=linux
18029   need_lib_prefix=no
18030   need_version=no
18031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18032   soname_spec='${libname}${release}${shared_ext}$major'
18033   shlibpath_var=LD_LIBRARY_PATH
18034   shlibpath_overrides_runpath=yes
18035   hardcode_into_libs=yes
18036   # ldd complains unless libraries are executable
18037   postinstall_cmds='chmod +x $lib'
18038   ;;
18039
18040 sunos4*)
18041   version_type=sunos
18042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18043   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18044   shlibpath_var=LD_LIBRARY_PATH
18045   shlibpath_overrides_runpath=yes
18046   if test "$with_gnu_ld" = yes; then
18047     need_lib_prefix=no
18048   fi
18049   need_version=yes
18050   ;;
18051
18052 sysv4 | sysv4.3*)
18053   version_type=linux
18054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18055   soname_spec='${libname}${release}${shared_ext}$major'
18056   shlibpath_var=LD_LIBRARY_PATH
18057   case $host_vendor in
18058     sni)
18059       shlibpath_overrides_runpath=no
18060       need_lib_prefix=no
18061       export_dynamic_flag_spec='${wl}-Blargedynsym'
18062       runpath_var=LD_RUN_PATH
18063       ;;
18064     siemens)
18065       need_lib_prefix=no
18066       ;;
18067     motorola)
18068       need_lib_prefix=no
18069       need_version=no
18070       shlibpath_overrides_runpath=no
18071       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18072       ;;
18073   esac
18074   ;;
18075
18076 sysv4*MP*)
18077   if test -d /usr/nec ;then
18078     version_type=linux
18079     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18080     soname_spec='$libname${shared_ext}.$major'
18081     shlibpath_var=LD_LIBRARY_PATH
18082   fi
18083   ;;
18084
18085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18086   version_type=freebsd-elf
18087   need_lib_prefix=no
18088   need_version=no
18089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18090   soname_spec='${libname}${release}${shared_ext}$major'
18091   shlibpath_var=LD_LIBRARY_PATH
18092   hardcode_into_libs=yes
18093   if test "$with_gnu_ld" = yes; then
18094     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18095     shlibpath_overrides_runpath=no
18096   else
18097     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18098     shlibpath_overrides_runpath=yes
18099     case $host_os in
18100       sco3.2v5*)
18101         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18102         ;;
18103     esac
18104   fi
18105   sys_lib_dlsearch_path_spec='/usr/lib'
18106   ;;
18107
18108 uts4*)
18109   version_type=linux
18110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18111   soname_spec='${libname}${release}${shared_ext}$major'
18112   shlibpath_var=LD_LIBRARY_PATH
18113   ;;
18114
18115 *)
18116   dynamic_linker=no
18117   ;;
18118 esac
18119 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18120 echo "${ECHO_T}$dynamic_linker" >&6; }
18121 test "$dynamic_linker" = no && can_build_shared=no
18122
18123 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18124 if test "$GCC" = yes; then
18125   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18126 fi
18127
18128 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18129 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18130 hardcode_action_GCJ=
18131 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18132    test -n "$runpath_var_GCJ" || \
18133    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18134
18135   # We can hardcode non-existant directories.
18136   if test "$hardcode_direct_GCJ" != no &&
18137      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18138      # have to relink, otherwise we might link with an installed library
18139      # when we should be linking with a yet-to-be-installed one
18140      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18141      test "$hardcode_minus_L_GCJ" != no; then
18142     # Linking always hardcodes the temporary library directory.
18143     hardcode_action_GCJ=relink
18144   else
18145     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18146     hardcode_action_GCJ=immediate
18147   fi
18148 else
18149   # We cannot hardcode anything, or else we can only hardcode existing
18150   # directories.
18151   hardcode_action_GCJ=unsupported
18152 fi
18153 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18154 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18155
18156 if test "$hardcode_action_GCJ" = relink; then
18157   # Fast installation is not supported
18158   enable_fast_install=no
18159 elif test "$shlibpath_overrides_runpath" = yes ||
18160      test "$enable_shared" = no; then
18161   # Fast installation is not necessary
18162   enable_fast_install=needless
18163 fi
18164
18165
18166 # The else clause should only fire when bootstrapping the
18167 # libtool distribution, otherwise you forgot to ship ltmain.sh
18168 # with your package, and you will get complaints that there are
18169 # no rules to generate ltmain.sh.
18170 if test -f "$ltmain"; then
18171   # See if we are running on zsh, and set the options which allow our commands through
18172   # without removal of \ escapes.
18173   if test -n "${ZSH_VERSION+set}" ; then
18174     setopt NO_GLOB_SUBST
18175   fi
18176   # Now quote all the things that may contain metacharacters while being
18177   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18178   # variables and quote the copies for generation of the libtool script.
18179   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18180     SED SHELL STRIP \
18181     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18182     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18183     deplibs_check_method reload_flag reload_cmds need_locks \
18184     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18185     lt_cv_sys_global_symbol_to_c_name_address \
18186     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18187     old_postinstall_cmds old_postuninstall_cmds \
18188     compiler_GCJ \
18189     CC_GCJ \
18190     LD_GCJ \
18191     lt_prog_compiler_wl_GCJ \
18192     lt_prog_compiler_pic_GCJ \
18193     lt_prog_compiler_static_GCJ \
18194     lt_prog_compiler_no_builtin_flag_GCJ \
18195     export_dynamic_flag_spec_GCJ \
18196     thread_safe_flag_spec_GCJ \
18197     whole_archive_flag_spec_GCJ \
18198     enable_shared_with_static_runtimes_GCJ \
18199     old_archive_cmds_GCJ \
18200     old_archive_from_new_cmds_GCJ \
18201     predep_objects_GCJ \
18202     postdep_objects_GCJ \
18203     predeps_GCJ \
18204     postdeps_GCJ \
18205     compiler_lib_search_path_GCJ \
18206     archive_cmds_GCJ \
18207     archive_expsym_cmds_GCJ \
18208     postinstall_cmds_GCJ \
18209     postuninstall_cmds_GCJ \
18210     old_archive_from_expsyms_cmds_GCJ \
18211     allow_undefined_flag_GCJ \
18212     no_undefined_flag_GCJ \
18213     export_symbols_cmds_GCJ \
18214     hardcode_libdir_flag_spec_GCJ \
18215     hardcode_libdir_flag_spec_ld_GCJ \
18216     hardcode_libdir_separator_GCJ \
18217     hardcode_automatic_GCJ \
18218     module_cmds_GCJ \
18219     module_expsym_cmds_GCJ \
18220     lt_cv_prog_compiler_c_o_GCJ \
18221     exclude_expsyms_GCJ \
18222     include_expsyms_GCJ; do
18223
18224     case $var in
18225     old_archive_cmds_GCJ | \
18226     old_archive_from_new_cmds_GCJ | \
18227     archive_cmds_GCJ | \
18228     archive_expsym_cmds_GCJ | \
18229     module_cmds_GCJ | \
18230     module_expsym_cmds_GCJ | \
18231     old_archive_from_expsyms_cmds_GCJ | \
18232     export_symbols_cmds_GCJ | \
18233     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18234     postinstall_cmds | postuninstall_cmds | \
18235     old_postinstall_cmds | old_postuninstall_cmds | \
18236     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18237       # Double-quote double-evaled strings.
18238       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18239       ;;
18240     *)
18241       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18242       ;;
18243     esac
18244   done
18245
18246   case $lt_echo in
18247   *'\$0 --fallback-echo"')
18248     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18249     ;;
18250   esac
18251
18252 cfgfile="$ofile"
18253
18254   cat <<__EOF__ >> "$cfgfile"
18255 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18256
18257 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18258
18259 # Shell to use when invoking shell scripts.
18260 SHELL=$lt_SHELL
18261
18262 # Whether or not to build shared libraries.
18263 build_libtool_libs=$enable_shared
18264
18265 # Whether or not to build static libraries.
18266 build_old_libs=$enable_static
18267
18268 # Whether or not to add -lc for building shared libraries.
18269 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18270
18271 # Whether or not to disallow shared libs when runtime libs are static
18272 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18273
18274 # Whether or not to optimize for fast installation.
18275 fast_install=$enable_fast_install
18276
18277 # The host system.
18278 host_alias=$host_alias
18279 host=$host
18280 host_os=$host_os
18281
18282 # The build system.
18283 build_alias=$build_alias
18284 build=$build
18285 build_os=$build_os
18286
18287 # An echo program that does not interpret backslashes.
18288 echo=$lt_echo
18289
18290 # The archiver.
18291 AR=$lt_AR
18292 AR_FLAGS=$lt_AR_FLAGS
18293
18294 # A C compiler.
18295 LTCC=$lt_LTCC
18296
18297 # LTCC compiler flags.
18298 LTCFLAGS=$lt_LTCFLAGS
18299
18300 # A language-specific compiler.
18301 CC=$lt_compiler_GCJ
18302
18303 # Is the compiler the GNU C compiler?
18304 with_gcc=$GCC_GCJ
18305
18306 # An ERE matcher.
18307 EGREP=$lt_EGREP
18308
18309 # The linker used to build libraries.
18310 LD=$lt_LD_GCJ
18311
18312 # Whether we need hard or soft links.
18313 LN_S=$lt_LN_S
18314
18315 # A BSD-compatible nm program.
18316 NM=$lt_NM
18317
18318 # A symbol stripping program
18319 STRIP=$lt_STRIP
18320
18321 # Used to examine libraries when file_magic_cmd begins "file"
18322 MAGIC_CMD=$MAGIC_CMD
18323
18324 # Used on cygwin: DLL creation program.
18325 DLLTOOL="$DLLTOOL"
18326
18327 # Used on cygwin: object dumper.
18328 OBJDUMP="$OBJDUMP"
18329
18330 # Used on cygwin: assembler.
18331 AS="$AS"
18332
18333 # The name of the directory that contains temporary libtool files.
18334 objdir=$objdir
18335
18336 # How to create reloadable object files.
18337 reload_flag=$lt_reload_flag
18338 reload_cmds=$lt_reload_cmds
18339
18340 # How to pass a linker flag through the compiler.
18341 wl=$lt_lt_prog_compiler_wl_GCJ
18342
18343 # Object file suffix (normally "o").
18344 objext="$ac_objext"
18345
18346 # Old archive suffix (normally "a").
18347 libext="$libext"
18348
18349 # Shared library suffix (normally ".so").
18350 shrext_cmds='$shrext_cmds'
18351
18352 # Executable file suffix (normally "").
18353 exeext="$exeext"
18354
18355 # Additional compiler flags for building library objects.
18356 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18357 pic_mode=$pic_mode
18358
18359 # What is the maximum length of a command?
18360 max_cmd_len=$lt_cv_sys_max_cmd_len
18361
18362 # Does compiler simultaneously support -c and -o options?
18363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18364
18365 # Must we lock files when doing compilation?
18366 need_locks=$lt_need_locks
18367
18368 # Do we need the lib prefix for modules?
18369 need_lib_prefix=$need_lib_prefix
18370
18371 # Do we need a version for libraries?
18372 need_version=$need_version
18373
18374 # Whether dlopen is supported.
18375 dlopen_support=$enable_dlopen
18376
18377 # Whether dlopen of programs is supported.
18378 dlopen_self=$enable_dlopen_self
18379
18380 # Whether dlopen of statically linked programs is supported.
18381 dlopen_self_static=$enable_dlopen_self_static
18382
18383 # Compiler flag to prevent dynamic linking.
18384 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18385
18386 # Compiler flag to turn off builtin functions.
18387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18388
18389 # Compiler flag to allow reflexive dlopens.
18390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18391
18392 # Compiler flag to generate shared objects directly from archives.
18393 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18394
18395 # Compiler flag to generate thread-safe objects.
18396 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18397
18398 # Library versioning type.
18399 version_type=$version_type
18400
18401 # Format of library name prefix.
18402 libname_spec=$lt_libname_spec
18403
18404 # List of archive names.  First name is the real one, the rest are links.
18405 # The last name is the one that the linker finds with -lNAME.
18406 library_names_spec=$lt_library_names_spec
18407
18408 # The coded name of the library, if different from the real name.
18409 soname_spec=$lt_soname_spec
18410
18411 # Commands used to build and install an old-style archive.
18412 RANLIB=$lt_RANLIB
18413 old_archive_cmds=$lt_old_archive_cmds_GCJ
18414 old_postinstall_cmds=$lt_old_postinstall_cmds
18415 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18416
18417 # Create an old-style archive from a shared archive.
18418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18419
18420 # Create a temporary old-style archive to link instead of a shared archive.
18421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18422
18423 # Commands used to build and install a shared archive.
18424 archive_cmds=$lt_archive_cmds_GCJ
18425 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18426 postinstall_cmds=$lt_postinstall_cmds
18427 postuninstall_cmds=$lt_postuninstall_cmds
18428
18429 # Commands used to build a loadable module (assumed same as above if empty)
18430 module_cmds=$lt_module_cmds_GCJ
18431 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18432
18433 # Commands to strip libraries.
18434 old_striplib=$lt_old_striplib
18435 striplib=$lt_striplib
18436
18437 # Dependencies to place before the objects being linked to create a
18438 # shared library.
18439 predep_objects=$lt_predep_objects_GCJ
18440
18441 # Dependencies to place after the objects being linked to create a
18442 # shared library.
18443 postdep_objects=$lt_postdep_objects_GCJ
18444
18445 # Dependencies to place before the objects being linked to create a
18446 # shared library.
18447 predeps=$lt_predeps_GCJ
18448
18449 # Dependencies to place after the objects being linked to create a
18450 # shared library.
18451 postdeps=$lt_postdeps_GCJ
18452
18453 # The library search path used internally by the compiler when linking
18454 # a shared library.
18455 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18456
18457 # Method to check whether dependent libraries are shared objects.
18458 deplibs_check_method=$lt_deplibs_check_method
18459
18460 # Command to use when deplibs_check_method == file_magic.
18461 file_magic_cmd=$lt_file_magic_cmd
18462
18463 # Flag that allows shared libraries with undefined symbols to be built.
18464 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18465
18466 # Flag that forces no undefined symbols.
18467 no_undefined_flag=$lt_no_undefined_flag_GCJ
18468
18469 # Commands used to finish a libtool library installation in a directory.
18470 finish_cmds=$lt_finish_cmds
18471
18472 # Same as above, but a single script fragment to be evaled but not shown.
18473 finish_eval=$lt_finish_eval
18474
18475 # Take the output of nm and produce a listing of raw symbols and C names.
18476 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18477
18478 # Transform the output of nm in a proper C declaration
18479 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18480
18481 # Transform the output of nm in a C name address pair
18482 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18483
18484 # This is the shared library runtime path variable.
18485 runpath_var=$runpath_var
18486
18487 # This is the shared library path variable.
18488 shlibpath_var=$shlibpath_var
18489
18490 # Is shlibpath searched before the hard-coded library search path?
18491 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18492
18493 # How to hardcode a shared library path into an executable.
18494 hardcode_action=$hardcode_action_GCJ
18495
18496 # Whether we should hardcode library paths into libraries.
18497 hardcode_into_libs=$hardcode_into_libs
18498
18499 # Flag to hardcode \$libdir into a binary during linking.
18500 # This must work even if \$libdir does not exist.
18501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18502
18503 # If ld is used when linking, flag to hardcode \$libdir into
18504 # a binary during linking. This must work even if \$libdir does
18505 # not exist.
18506 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18507
18508 # Whether we need a single -rpath flag with a separated argument.
18509 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18510
18511 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18512 # resulting binary.
18513 hardcode_direct=$hardcode_direct_GCJ
18514
18515 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18516 # resulting binary.
18517 hardcode_minus_L=$hardcode_minus_L_GCJ
18518
18519 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18520 # the resulting binary.
18521 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18522
18523 # Set to yes if building a shared library automatically hardcodes DIR into the library
18524 # and all subsequent libraries and executables linked against it.
18525 hardcode_automatic=$hardcode_automatic_GCJ
18526
18527 # Variables whose values should be saved in libtool wrapper scripts and
18528 # restored at relink time.
18529 variables_saved_for_relink="$variables_saved_for_relink"
18530
18531 # Whether libtool must link a program against all its dependency libraries.
18532 link_all_deplibs=$link_all_deplibs_GCJ
18533
18534 # Compile-time system search path for libraries
18535 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18536
18537 # Run-time system search path for libraries
18538 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18539
18540 # Fix the shell variable \$srcfile for the compiler.
18541 fix_srcfile_path="$fix_srcfile_path_GCJ"
18542
18543 # Set to yes if exported symbols are required.
18544 always_export_symbols=$always_export_symbols_GCJ
18545
18546 # The commands to list exported symbols.
18547 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18548
18549 # The commands to extract the exported symbol list from a shared archive.
18550 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18551
18552 # Symbols that should not be listed in the preloaded symbols.
18553 exclude_expsyms=$lt_exclude_expsyms_GCJ
18554
18555 # Symbols that must always be exported.
18556 include_expsyms=$lt_include_expsyms_GCJ
18557
18558 # ### END LIBTOOL TAG CONFIG: $tagname
18559
18560 __EOF__
18561
18562
18563 else
18564   # If there is no Makefile yet, we rely on a make rule to execute
18565   # `config.status --recheck' to rerun these tests and create the
18566   # libtool script then.
18567   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18568   if test -f "$ltmain_in"; then
18569     test -f Makefile && make "$ltmain"
18570   fi
18571 fi
18572
18573
18574 ac_ext=c
18575 ac_cpp='$CPP $CPPFLAGS'
18576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18579
18580 CC="$lt_save_CC"
18581
18582         else
18583           tagname=""
18584         fi
18585         ;;
18586
18587       RC)
18588
18589
18590 # Source file extension for RC test sources.
18591 ac_ext=rc
18592
18593 # Object file extension for compiled RC test sources.
18594 objext=o
18595 objext_RC=$objext
18596
18597 # Code to be used in simple compile tests
18598 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18599
18600 # Code to be used in simple link tests
18601 lt_simple_link_test_code="$lt_simple_compile_test_code"
18602
18603 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18604
18605 # If no C compiler was specified, use CC.
18606 LTCC=${LTCC-"$CC"}
18607
18608 # If no C compiler flags were specified, use CFLAGS.
18609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18610
18611 # Allow CC to be a program name with arguments.
18612 compiler=$CC
18613
18614
18615 # save warnings/boilerplate of simple test code
18616 ac_outfile=conftest.$ac_objext
18617 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18618 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18619 _lt_compiler_boilerplate=`cat conftest.err`
18620 $rm conftest*
18621
18622 ac_outfile=conftest.$ac_objext
18623 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18624 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18625 _lt_linker_boilerplate=`cat conftest.err`
18626 $rm conftest*
18627
18628
18629 # Allow CC to be a program name with arguments.
18630 lt_save_CC="$CC"
18631 CC=${RC-"windres"}
18632 compiler=$CC
18633 compiler_RC=$CC
18634 for cc_temp in $compiler""; do
18635   case $cc_temp in
18636     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18637     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18638     \-*) ;;
18639     *) break;;
18640   esac
18641 done
18642 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18643
18644 lt_cv_prog_compiler_c_o_RC=yes
18645
18646 # The else clause should only fire when bootstrapping the
18647 # libtool distribution, otherwise you forgot to ship ltmain.sh
18648 # with your package, and you will get complaints that there are
18649 # no rules to generate ltmain.sh.
18650 if test -f "$ltmain"; then
18651   # See if we are running on zsh, and set the options which allow our commands through
18652   # without removal of \ escapes.
18653   if test -n "${ZSH_VERSION+set}" ; then
18654     setopt NO_GLOB_SUBST
18655   fi
18656   # Now quote all the things that may contain metacharacters while being
18657   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18658   # variables and quote the copies for generation of the libtool script.
18659   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18660     SED SHELL STRIP \
18661     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18662     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18663     deplibs_check_method reload_flag reload_cmds need_locks \
18664     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18665     lt_cv_sys_global_symbol_to_c_name_address \
18666     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18667     old_postinstall_cmds old_postuninstall_cmds \
18668     compiler_RC \
18669     CC_RC \
18670     LD_RC \
18671     lt_prog_compiler_wl_RC \
18672     lt_prog_compiler_pic_RC \
18673     lt_prog_compiler_static_RC \
18674     lt_prog_compiler_no_builtin_flag_RC \
18675     export_dynamic_flag_spec_RC \
18676     thread_safe_flag_spec_RC \
18677     whole_archive_flag_spec_RC \
18678     enable_shared_with_static_runtimes_RC \
18679     old_archive_cmds_RC \
18680     old_archive_from_new_cmds_RC \
18681     predep_objects_RC \
18682     postdep_objects_RC \
18683     predeps_RC \
18684     postdeps_RC \
18685     compiler_lib_search_path_RC \
18686     archive_cmds_RC \
18687     archive_expsym_cmds_RC \
18688     postinstall_cmds_RC \
18689     postuninstall_cmds_RC \
18690     old_archive_from_expsyms_cmds_RC \
18691     allow_undefined_flag_RC \
18692     no_undefined_flag_RC \
18693     export_symbols_cmds_RC \
18694     hardcode_libdir_flag_spec_RC \
18695     hardcode_libdir_flag_spec_ld_RC \
18696     hardcode_libdir_separator_RC \
18697     hardcode_automatic_RC \
18698     module_cmds_RC \
18699     module_expsym_cmds_RC \
18700     lt_cv_prog_compiler_c_o_RC \
18701     exclude_expsyms_RC \
18702     include_expsyms_RC; do
18703
18704     case $var in
18705     old_archive_cmds_RC | \
18706     old_archive_from_new_cmds_RC | \
18707     archive_cmds_RC | \
18708     archive_expsym_cmds_RC | \
18709     module_cmds_RC | \
18710     module_expsym_cmds_RC | \
18711     old_archive_from_expsyms_cmds_RC | \
18712     export_symbols_cmds_RC | \
18713     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18714     postinstall_cmds | postuninstall_cmds | \
18715     old_postinstall_cmds | old_postuninstall_cmds | \
18716     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18717       # Double-quote double-evaled strings.
18718       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18719       ;;
18720     *)
18721       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18722       ;;
18723     esac
18724   done
18725
18726   case $lt_echo in
18727   *'\$0 --fallback-echo"')
18728     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18729     ;;
18730   esac
18731
18732 cfgfile="$ofile"
18733
18734   cat <<__EOF__ >> "$cfgfile"
18735 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18736
18737 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18738
18739 # Shell to use when invoking shell scripts.
18740 SHELL=$lt_SHELL
18741
18742 # Whether or not to build shared libraries.
18743 build_libtool_libs=$enable_shared
18744
18745 # Whether or not to build static libraries.
18746 build_old_libs=$enable_static
18747
18748 # Whether or not to add -lc for building shared libraries.
18749 build_libtool_need_lc=$archive_cmds_need_lc_RC
18750
18751 # Whether or not to disallow shared libs when runtime libs are static
18752 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18753
18754 # Whether or not to optimize for fast installation.
18755 fast_install=$enable_fast_install
18756
18757 # The host system.
18758 host_alias=$host_alias
18759 host=$host
18760 host_os=$host_os
18761
18762 # The build system.
18763 build_alias=$build_alias
18764 build=$build
18765 build_os=$build_os
18766
18767 # An echo program that does not interpret backslashes.
18768 echo=$lt_echo
18769
18770 # The archiver.
18771 AR=$lt_AR
18772 AR_FLAGS=$lt_AR_FLAGS
18773
18774 # A C compiler.
18775 LTCC=$lt_LTCC
18776
18777 # LTCC compiler flags.
18778 LTCFLAGS=$lt_LTCFLAGS
18779
18780 # A language-specific compiler.
18781 CC=$lt_compiler_RC
18782
18783 # Is the compiler the GNU C compiler?
18784 with_gcc=$GCC_RC
18785
18786 # An ERE matcher.
18787 EGREP=$lt_EGREP
18788
18789 # The linker used to build libraries.
18790 LD=$lt_LD_RC
18791
18792 # Whether we need hard or soft links.
18793 LN_S=$lt_LN_S
18794
18795 # A BSD-compatible nm program.
18796 NM=$lt_NM
18797
18798 # A symbol stripping program
18799 STRIP=$lt_STRIP
18800
18801 # Used to examine libraries when file_magic_cmd begins "file"
18802 MAGIC_CMD=$MAGIC_CMD
18803
18804 # Used on cygwin: DLL creation program.
18805 DLLTOOL="$DLLTOOL"
18806
18807 # Used on cygwin: object dumper.
18808 OBJDUMP="$OBJDUMP"
18809
18810 # Used on cygwin: assembler.
18811 AS="$AS"
18812
18813 # The name of the directory that contains temporary libtool files.
18814 objdir=$objdir
18815
18816 # How to create reloadable object files.
18817 reload_flag=$lt_reload_flag
18818 reload_cmds=$lt_reload_cmds
18819
18820 # How to pass a linker flag through the compiler.
18821 wl=$lt_lt_prog_compiler_wl_RC
18822
18823 # Object file suffix (normally "o").
18824 objext="$ac_objext"
18825
18826 # Old archive suffix (normally "a").
18827 libext="$libext"
18828
18829 # Shared library suffix (normally ".so").
18830 shrext_cmds='$shrext_cmds'
18831
18832 # Executable file suffix (normally "").
18833 exeext="$exeext"
18834
18835 # Additional compiler flags for building library objects.
18836 pic_flag=$lt_lt_prog_compiler_pic_RC
18837 pic_mode=$pic_mode
18838
18839 # What is the maximum length of a command?
18840 max_cmd_len=$lt_cv_sys_max_cmd_len
18841
18842 # Does compiler simultaneously support -c and -o options?
18843 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18844
18845 # Must we lock files when doing compilation?
18846 need_locks=$lt_need_locks
18847
18848 # Do we need the lib prefix for modules?
18849 need_lib_prefix=$need_lib_prefix
18850
18851 # Do we need a version for libraries?
18852 need_version=$need_version
18853
18854 # Whether dlopen is supported.
18855 dlopen_support=$enable_dlopen
18856
18857 # Whether dlopen of programs is supported.
18858 dlopen_self=$enable_dlopen_self
18859
18860 # Whether dlopen of statically linked programs is supported.
18861 dlopen_self_static=$enable_dlopen_self_static
18862
18863 # Compiler flag to prevent dynamic linking.
18864 link_static_flag=$lt_lt_prog_compiler_static_RC
18865
18866 # Compiler flag to turn off builtin functions.
18867 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18868
18869 # Compiler flag to allow reflexive dlopens.
18870 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18871
18872 # Compiler flag to generate shared objects directly from archives.
18873 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18874
18875 # Compiler flag to generate thread-safe objects.
18876 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18877
18878 # Library versioning type.
18879 version_type=$version_type
18880
18881 # Format of library name prefix.
18882 libname_spec=$lt_libname_spec
18883
18884 # List of archive names.  First name is the real one, the rest are links.
18885 # The last name is the one that the linker finds with -lNAME.
18886 library_names_spec=$lt_library_names_spec
18887
18888 # The coded name of the library, if different from the real name.
18889 soname_spec=$lt_soname_spec
18890
18891 # Commands used to build and install an old-style archive.
18892 RANLIB=$lt_RANLIB
18893 old_archive_cmds=$lt_old_archive_cmds_RC
18894 old_postinstall_cmds=$lt_old_postinstall_cmds
18895 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18896
18897 # Create an old-style archive from a shared archive.
18898 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18899
18900 # Create a temporary old-style archive to link instead of a shared archive.
18901 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18902
18903 # Commands used to build and install a shared archive.
18904 archive_cmds=$lt_archive_cmds_RC
18905 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18906 postinstall_cmds=$lt_postinstall_cmds
18907 postuninstall_cmds=$lt_postuninstall_cmds
18908
18909 # Commands used to build a loadable module (assumed same as above if empty)
18910 module_cmds=$lt_module_cmds_RC
18911 module_expsym_cmds=$lt_module_expsym_cmds_RC
18912
18913 # Commands to strip libraries.
18914 old_striplib=$lt_old_striplib
18915 striplib=$lt_striplib
18916
18917 # Dependencies to place before the objects being linked to create a
18918 # shared library.
18919 predep_objects=$lt_predep_objects_RC
18920
18921 # Dependencies to place after the objects being linked to create a
18922 # shared library.
18923 postdep_objects=$lt_postdep_objects_RC
18924
18925 # Dependencies to place before the objects being linked to create a
18926 # shared library.
18927 predeps=$lt_predeps_RC
18928
18929 # Dependencies to place after the objects being linked to create a
18930 # shared library.
18931 postdeps=$lt_postdeps_RC
18932
18933 # The library search path used internally by the compiler when linking
18934 # a shared library.
18935 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18936
18937 # Method to check whether dependent libraries are shared objects.
18938 deplibs_check_method=$lt_deplibs_check_method
18939
18940 # Command to use when deplibs_check_method == file_magic.
18941 file_magic_cmd=$lt_file_magic_cmd
18942
18943 # Flag that allows shared libraries with undefined symbols to be built.
18944 allow_undefined_flag=$lt_allow_undefined_flag_RC
18945
18946 # Flag that forces no undefined symbols.
18947 no_undefined_flag=$lt_no_undefined_flag_RC
18948
18949 # Commands used to finish a libtool library installation in a directory.
18950 finish_cmds=$lt_finish_cmds
18951
18952 # Same as above, but a single script fragment to be evaled but not shown.
18953 finish_eval=$lt_finish_eval
18954
18955 # Take the output of nm and produce a listing of raw symbols and C names.
18956 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18957
18958 # Transform the output of nm in a proper C declaration
18959 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18960
18961 # Transform the output of nm in a C name address pair
18962 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18963
18964 # This is the shared library runtime path variable.
18965 runpath_var=$runpath_var
18966
18967 # This is the shared library path variable.
18968 shlibpath_var=$shlibpath_var
18969
18970 # Is shlibpath searched before the hard-coded library search path?
18971 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18972
18973 # How to hardcode a shared library path into an executable.
18974 hardcode_action=$hardcode_action_RC
18975
18976 # Whether we should hardcode library paths into libraries.
18977 hardcode_into_libs=$hardcode_into_libs
18978
18979 # Flag to hardcode \$libdir into a binary during linking.
18980 # This must work even if \$libdir does not exist.
18981 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18982
18983 # If ld is used when linking, flag to hardcode \$libdir into
18984 # a binary during linking. This must work even if \$libdir does
18985 # not exist.
18986 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18987
18988 # Whether we need a single -rpath flag with a separated argument.
18989 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18990
18991 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18992 # resulting binary.
18993 hardcode_direct=$hardcode_direct_RC
18994
18995 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18996 # resulting binary.
18997 hardcode_minus_L=$hardcode_minus_L_RC
18998
18999 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19000 # the resulting binary.
19001 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19002
19003 # Set to yes if building a shared library automatically hardcodes DIR into the library
19004 # and all subsequent libraries and executables linked against it.
19005 hardcode_automatic=$hardcode_automatic_RC
19006
19007 # Variables whose values should be saved in libtool wrapper scripts and
19008 # restored at relink time.
19009 variables_saved_for_relink="$variables_saved_for_relink"
19010
19011 # Whether libtool must link a program against all its dependency libraries.
19012 link_all_deplibs=$link_all_deplibs_RC
19013
19014 # Compile-time system search path for libraries
19015 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19016
19017 # Run-time system search path for libraries
19018 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19019
19020 # Fix the shell variable \$srcfile for the compiler.
19021 fix_srcfile_path="$fix_srcfile_path_RC"
19022
19023 # Set to yes if exported symbols are required.
19024 always_export_symbols=$always_export_symbols_RC
19025
19026 # The commands to list exported symbols.
19027 export_symbols_cmds=$lt_export_symbols_cmds_RC
19028
19029 # The commands to extract the exported symbol list from a shared archive.
19030 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19031
19032 # Symbols that should not be listed in the preloaded symbols.
19033 exclude_expsyms=$lt_exclude_expsyms_RC
19034
19035 # Symbols that must always be exported.
19036 include_expsyms=$lt_include_expsyms_RC
19037
19038 # ### END LIBTOOL TAG CONFIG: $tagname
19039
19040 __EOF__
19041
19042
19043 else
19044   # If there is no Makefile yet, we rely on a make rule to execute
19045   # `config.status --recheck' to rerun these tests and create the
19046   # libtool script then.
19047   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19048   if test -f "$ltmain_in"; then
19049     test -f Makefile && make "$ltmain"
19050   fi
19051 fi
19052
19053
19054 ac_ext=c
19055 ac_cpp='$CPP $CPPFLAGS'
19056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19059
19060 CC="$lt_save_CC"
19061
19062         ;;
19063
19064       *)
19065         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19066 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19067    { (exit 1); exit 1; }; }
19068         ;;
19069       esac
19070
19071       # Append the new tag name to the list of available tags.
19072       if test -n "$tagname" ; then
19073       available_tags="$available_tags $tagname"
19074     fi
19075     fi
19076   done
19077   IFS="$lt_save_ifs"
19078
19079   # Now substitute the updated list of available tags.
19080   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19081     mv "${ofile}T" "$ofile"
19082     chmod +x "$ofile"
19083   else
19084     rm -f "${ofile}T"
19085     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19086 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19087    { (exit 1); exit 1; }; }
19088   fi
19089 fi
19090
19091
19092
19093 # This can be used to rebuild libtool when needed
19094 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19095
19096 # Always use our own libtool.
19097 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19098
19099 # Prevent multiple expansion
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112 # Check whether --with-system-libtool was given.
19113 if test "${with_system_libtool+set}" = set; then
19114   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19115 set dummy libtool; ac_word=$2
19116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19118 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19119   echo $ECHO_N "(cached) $ECHO_C" >&6
19120 else
19121   case $LIBTOOL in
19122   [\\/]* | ?:[\\/]*)
19123   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19124   ;;
19125   *)
19126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19127 as_dummy="$PATH:/usr/local/bin"
19128 for as_dir in $as_dummy
19129 do
19130   IFS=$as_save_IFS
19131   test -z "$as_dir" && as_dir=.
19132   for ac_exec_ext in '' $ac_executable_extensions; do
19133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19134     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19136     break 2
19137   fi
19138 done
19139 done
19140 IFS=$as_save_IFS
19141
19142   ;;
19143 esac
19144 fi
19145 LIBTOOL=$ac_cv_path_LIBTOOL
19146 if test -n "$LIBTOOL"; then
19147   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19148 echo "${ECHO_T}$LIBTOOL" >&6; }
19149 else
19150   { echo "$as_me:$LINENO: result: no" >&5
19151 echo "${ECHO_T}no" >&6; }
19152 fi
19153
19154
19155 else
19156
19157   LIBTOOL="`pwd`/libtool"
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172 fi
19173
19174
19175
19176
19177 # Check whether --enable-strict-dependencies was given.
19178 if test "${enable_strict_dependencies+set}" = set; then
19179   enableval=$enable_strict_dependencies;
19180 fi
19181
19182
19183 docdir='${datadir}/doc/freeradius'
19184 { echo "$as_me:$LINENO: checking docdir" >&5
19185 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19186
19187 # Check whether --with-docdir was given.
19188 if test "${with_docdir+set}" = set; then
19189   withval=$with_docdir;  case "$withval" in
19190     no)
19191         docdir=no
19192         ;;
19193     yes)
19194         ;;
19195     [\\/$]* | ?:[\\/]* )
19196         docdir="$withval"
19197         ;;
19198     *)
19199         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19200 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19201    { (exit 1); exit 1; }; }
19202         ;;
19203   esac
19204
19205 fi
19206
19207
19208 { echo "$as_me:$LINENO: result: $docdir" >&5
19209 echo "${ECHO_T}$docdir" >&6; }
19210 if test "x$docdir" = xno; then
19211         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19212 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19213 fi
19214
19215 logdir='${localstatedir}/log/radius'
19216 { echo "$as_me:$LINENO: checking logdir" >&5
19217 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19218
19219 # Check whether --with-logdir was given.
19220 if test "${with_logdir+set}" = set; then
19221   withval=$with_logdir;  case "$withval" in
19222     no)
19223         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19224 echo "$as_me: error: Need logdir" >&2;}
19225    { (exit 1); exit 1; }; }
19226         ;;
19227     yes)
19228         ;;
19229     [\\/$]* | ?:[\\/]* )
19230         logdir="$withval"
19231         ;;
19232     *)
19233         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19234 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19235    { (exit 1); exit 1; }; }
19236         ;;
19237   esac
19238
19239 fi
19240
19241
19242 { echo "$as_me:$LINENO: result: $logdir" >&5
19243 echo "${ECHO_T}$logdir" >&6; }
19244
19245 radacctdir='${logdir}/radacct'
19246 { echo "$as_me:$LINENO: checking radacctdir" >&5
19247 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19248
19249 # Check whether --with-radacctdir was given.
19250 if test "${with_radacctdir+set}" = set; then
19251   withval=$with_radacctdir;  case "$withval" in
19252     no)
19253         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19254 echo "$as_me: error: Need radacctdir" >&2;}
19255    { (exit 1); exit 1; }; }
19256         ;;
19257     yes)
19258         ;;
19259     [\\/$]* | ?:[\\/]* )
19260         radacctdir="$withval"
19261         ;;
19262     *)
19263         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19264 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19265    { (exit 1); exit 1; }; }
19266         ;;
19267   esac
19268
19269 fi
19270
19271
19272 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19273 echo "${ECHO_T}$radacctdir" >&6; }
19274
19275 raddbdir='${sysconfdir}/raddb'
19276 { echo "$as_me:$LINENO: checking raddbdir" >&5
19277 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19278
19279 # Check whether --with-raddbdir was given.
19280 if test "${with_raddbdir+set}" = set; then
19281   withval=$with_raddbdir;  case "$withval" in
19282     no)
19283         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19284 echo "$as_me: error: Need raddbdir" >&2;}
19285    { (exit 1); exit 1; }; }
19286         ;;
19287     yes)
19288         ;;
19289     [\\/$]* | ?:[\\/]* )
19290         raddbdir="$withval"
19291         ;;
19292     *)
19293         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19294 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19295    { (exit 1); exit 1; }; }
19296         ;;
19297   esac
19298
19299 fi
19300
19301
19302 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19303 echo "${ECHO_T}$raddbdir" >&6; }
19304
19305 ASCEND_BINARY=yes
19306
19307 # Check whether --with-ascend-binary was given.
19308 if test "${with_ascend_binary+set}" = set; then
19309   withval=$with_ascend_binary;  case "$withval" in
19310     yes)
19311         ;;
19312     *)
19313         ASCEND_BINARY=""
19314   esac
19315
19316 fi
19317
19318 if test "X$ASCEND_BINARY" = "Xyes"; then
19319   cat >>confdefs.h <<\_ACEOF
19320 #define ASCEND_BINARY 1
19321 _ACEOF
19322
19323 fi
19324
19325 WITH_THREADS=yes
19326
19327 # Check whether --with-threads was given.
19328 if test "${with_threads+set}" = set; then
19329   withval=$with_threads;  case "$withval" in
19330     yes)
19331         ;;
19332     *)
19333         WITH_THREADS=""
19334   esac
19335
19336 fi
19337
19338
19339 WITH_SNMP=yes
19340
19341 # Check whether --with-snmp was given.
19342 if test "${with_snmp+set}" = set; then
19343   withval=$with_snmp;  case "$withval" in
19344     yes)
19345         ;;
19346     *)
19347         WITH_SNMP=no
19348   esac
19349
19350 fi
19351
19352
19353
19354 # Check whether --with-snmp-include-dir was given.
19355 if test "${with_snmp_include_dir+set}" = set; then
19356   withval=$with_snmp_include_dir;  case "$withval" in
19357     *)
19358         ;;
19359   esac
19360
19361 fi
19362
19363
19364 rad_enable_largefiles=no
19365
19366 # Check whether --with-large-files was given.
19367 if test "${with_large_files+set}" = set; then
19368   withval=$with_large_files;  case "$withval" in
19369     yes)
19370         rad_enable_largefiles=yes
19371         ;;
19372     *)
19373         ;;
19374   esac
19375
19376 fi
19377
19378
19379
19380 STATIC_MODULES=
19381
19382 # Check whether --with-static_modules was given.
19383 if test "${with_static_modules+set}" = set; then
19384   withval=$with_static_modules;
19385   for i in $withval; do
19386     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19387   done
19388
19389 fi
19390
19391
19392 MODULES=
19393
19394 # Check whether --with-modules was given.
19395 if test "${with_modules+set}" = set; then
19396   withval=$with_modules;
19397  for i in $withval; do
19398    MODULES="$MODULES $i"
19399  done
19400
19401 fi
19402
19403
19404 # Check whether --enable-developer was given.
19405 if test "${enable_developer+set}" = set; then
19406   enableval=$enable_developer;  case "$enableval" in
19407     no)
19408         developer=no
19409         ;;
19410     *)
19411         developer=yes
19412   esac
19413
19414 fi
19415
19416
19417 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19418     developer="yes"
19419 fi
19420
19421 EXPERIMENTAL=
19422
19423 # Check whether --with-experimental-modules was given.
19424 if test "${with_experimental_modules+set}" = set; then
19425   withval=$with_experimental_modules;  case "$withval" in
19426     yes)
19427         EXPERIMENTAL=yes
19428         ;;
19429     *)
19430   esac
19431
19432 fi
19433
19434
19435 WITH_OPENSSL=yes
19436
19437 # Check whether --with-openssl was given.
19438 if test "${with_openssl+set}" = set; then
19439   withval=$with_openssl;  case "$withval" in
19440     no)
19441         WITH_OPENSSL=no
19442         ;;
19443     *)
19444         WITH_OPENSSL=yes
19445         ;;
19446   esac
19447
19448 fi
19449
19450
19451 OPENSSL_INCLUDE_DIR=
19452
19453 # Check whether --with-openssl-includes was given.
19454 if test "${with_openssl_includes+set}" = set; then
19455   withval=$with_openssl_includes;  case "$withval" in
19456     *) OPENSSL_INCLUDE_DIR="$withval"
19457         ;;
19458   esac
19459
19460 fi
19461
19462
19463 OPENSSL_LIB_DIR=
19464
19465 # Check whether --with-openssl-libraries was given.
19466 if test "${with_openssl_libraries+set}" = set; then
19467   withval=$with_openssl_libraries;  case "$withval" in
19468     *) OPENSSL_LIB_DIR="$withval"
19469         ;;
19470   esac
19471
19472 fi
19473
19474
19475
19476
19477 # Check whether --with-rlm-FOO-lib-dir was given.
19478 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19479   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19480     *)
19481         ;;
19482   esac
19483
19484 fi
19485
19486
19487
19488 # Check whether --with-rlm-FOO-include-dir was given.
19489 if test "${with_rlm_FOO_include_dir+set}" = set; then
19490   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19491     *)
19492         ;;
19493   esac
19494
19495 fi
19496
19497
19498
19499 WITH_UDPFROMTO=no
19500
19501 # Check whether --with-udpfromto was given.
19502 if test "${with_udpfromto+set}" = set; then
19503   withval=$with_udpfromto;  case "$withval" in
19504     yes)
19505         WITH_UDPFROMTO=yes
19506         ;;
19507     *)
19508         WITH_UDPFROMTO=no
19509   esac
19510
19511 fi
19512
19513
19514 if test "x$WITH_UDPFROMTO" = "xyes"; then
19515         cat >>confdefs.h <<\_ACEOF
19516 #define WITH_UDPFROMTO 1
19517 _ACEOF
19518
19519 fi
19520
19521
19522 # Check whether --with-edir was given.
19523 if test "${with_edir+set}" = set; then
19524   withval=$with_edir;
19525 fi
19526
19527
19528
19529 CHECKRAD=checkrad.pl
19530 # Extract the first word of "perl", so it can be a program name with args.
19531 set dummy perl; ac_word=$2
19532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19534 if test "${ac_cv_path_PERL+set}" = set; then
19535   echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537   case $PERL in
19538   [\\/]* | ?:[\\/]*)
19539   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19540   ;;
19541   *)
19542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19543 for as_dir in $PATH
19544 do
19545   IFS=$as_save_IFS
19546   test -z "$as_dir" && as_dir=.
19547   for ac_exec_ext in '' $ac_executable_extensions; do
19548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19549     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19551     break 2
19552   fi
19553 done
19554 done
19555 IFS=$as_save_IFS
19556
19557   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19558   ;;
19559 esac
19560 fi
19561 PERL=$ac_cv_path_PERL
19562 if test -n "$PERL"; then
19563   { echo "$as_me:$LINENO: result: $PERL" >&5
19564 echo "${ECHO_T}$PERL" >&6; }
19565 else
19566   { echo "$as_me:$LINENO: result: no" >&5
19567 echo "${ECHO_T}no" >&6; }
19568 fi
19569
19570
19571 if test "x$ac_cv_path_PERL" = "x"; then
19572   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19573 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19574 fi
19575 # Extract the first word of "snmpget", so it can be a program name with args.
19576 set dummy snmpget; ac_word=$2
19577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19579 if test "${ac_cv_path_SNMPGET+set}" = set; then
19580   echo $ECHO_N "(cached) $ECHO_C" >&6
19581 else
19582   case $SNMPGET in
19583   [\\/]* | ?:[\\/]*)
19584   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19585   ;;
19586   *)
19587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19588 for as_dir in $PATH
19589 do
19590   IFS=$as_save_IFS
19591   test -z "$as_dir" && as_dir=.
19592   for ac_exec_ext in '' $ac_executable_extensions; do
19593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19594     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19596     break 2
19597   fi
19598 done
19599 done
19600 IFS=$as_save_IFS
19601
19602   ;;
19603 esac
19604 fi
19605 SNMPGET=$ac_cv_path_SNMPGET
19606 if test -n "$SNMPGET"; then
19607   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19608 echo "${ECHO_T}$SNMPGET" >&6; }
19609 else
19610   { echo "$as_me:$LINENO: result: no" >&5
19611 echo "${ECHO_T}no" >&6; }
19612 fi
19613
19614
19615 if test "x$ac_cv_path_SNMPGET" = "x"; then
19616   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19617 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19618 fi
19619
19620 # Extract the first word of "snmpwalk", so it can be a program name with args.
19621 set dummy snmpwalk; ac_word=$2
19622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19624 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19625   echo $ECHO_N "(cached) $ECHO_C" >&6
19626 else
19627   case $SNMPWALK in
19628   [\\/]* | ?:[\\/]*)
19629   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19630   ;;
19631   *)
19632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19633 for as_dir in $PATH
19634 do
19635   IFS=$as_save_IFS
19636   test -z "$as_dir" && as_dir=.
19637   for ac_exec_ext in '' $ac_executable_extensions; do
19638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19639     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19641     break 2
19642   fi
19643 done
19644 done
19645 IFS=$as_save_IFS
19646
19647   ;;
19648 esac
19649 fi
19650 SNMPWALK=$ac_cv_path_SNMPWALK
19651 if test -n "$SNMPWALK"; then
19652   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19653 echo "${ECHO_T}$SNMPWALK" >&6; }
19654 else
19655   { echo "$as_me:$LINENO: result: no" >&5
19656 echo "${ECHO_T}no" >&6; }
19657 fi
19658
19659
19660 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19661   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19662 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19663 fi
19664
19665 # Extract the first word of "rusers", so it can be a program name with args.
19666 set dummy rusers; ac_word=$2
19667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19669 if test "${ac_cv_path_RUSERS+set}" = set; then
19670   echo $ECHO_N "(cached) $ECHO_C" >&6
19671 else
19672   case $RUSERS in
19673   [\\/]* | ?:[\\/]*)
19674   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19675   ;;
19676   *)
19677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19678 for as_dir in $PATH
19679 do
19680   IFS=$as_save_IFS
19681   test -z "$as_dir" && as_dir=.
19682   for ac_exec_ext in '' $ac_executable_extensions; do
19683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19684     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19686     break 2
19687   fi
19688 done
19689 done
19690 IFS=$as_save_IFS
19691
19692   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19693   ;;
19694 esac
19695 fi
19696 RUSERS=$ac_cv_path_RUSERS
19697 if test -n "$RUSERS"; then
19698   { echo "$as_me:$LINENO: result: $RUSERS" >&5
19699 echo "${ECHO_T}$RUSERS" >&6; }
19700 else
19701   { echo "$as_me:$LINENO: result: no" >&5
19702 echo "${ECHO_T}no" >&6; }
19703 fi
19704
19705
19706
19707 missing_dir=`cd $ac_aux_dir && pwd`
19708 { echo "$as_me:$LINENO: checking for working aclocal" >&5
19709 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6; }
19710 # Run test in a subshell; some versions of sh will print an error if
19711 # an executable is not found, even if stderr is redirected.
19712 # Redirect stdin to placate older versions of autoconf.  Sigh.
19713 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19714    ACLOCAL=aclocal
19715    { echo "$as_me:$LINENO: result: found" >&5
19716 echo "${ECHO_T}found" >&6; }
19717 else
19718    ACLOCAL="$missing_dir/missing aclocal"
19719    { echo "$as_me:$LINENO: result: missing" >&5
19720 echo "${ECHO_T}missing" >&6; }
19721 fi
19722
19723 { echo "$as_me:$LINENO: checking for working autoconf" >&5
19724 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6; }
19725 # Run test in a subshell; some versions of sh will print an error if
19726 # an executable is not found, even if stderr is redirected.
19727 # Redirect stdin to placate older versions of autoconf.  Sigh.
19728 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19729    AUTOCONF=autoconf
19730    { echo "$as_me:$LINENO: result: found" >&5
19731 echo "${ECHO_T}found" >&6; }
19732 else
19733    AUTOCONF="$missing_dir/missing autoconf"
19734    { echo "$as_me:$LINENO: result: missing" >&5
19735 echo "${ECHO_T}missing" >&6; }
19736 fi
19737
19738 { echo "$as_me:$LINENO: checking for working autoheader" >&5
19739 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6; }
19740 # Run test in a subshell; some versions of sh will print an error if
19741 # an executable is not found, even if stderr is redirected.
19742 # Redirect stdin to placate older versions of autoconf.  Sigh.
19743 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19744    AUTOHEADER=autoheader
19745    { echo "$as_me:$LINENO: result: found" >&5
19746 echo "${ECHO_T}found" >&6; }
19747 else
19748    AUTOHEADER="$missing_dir/missing autoheader"
19749    { echo "$as_me:$LINENO: result: missing" >&5
19750 echo "${ECHO_T}missing" >&6; }
19751 fi
19752
19753
19754 # Extract the first word of "locate", so it can be a program name with args.
19755 set dummy locate; ac_word=$2
19756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19758 if test "${ac_cv_path_LOCATE+set}" = set; then
19759   echo $ECHO_N "(cached) $ECHO_C" >&6
19760 else
19761   case $LOCATE in
19762   [\\/]* | ?:[\\/]*)
19763   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19764   ;;
19765   *)
19766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19767 for as_dir in $PATH
19768 do
19769   IFS=$as_save_IFS
19770   test -z "$as_dir" && as_dir=.
19771   for ac_exec_ext in '' $ac_executable_extensions; do
19772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19773     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19775     break 2
19776   fi
19777 done
19778 done
19779 IFS=$as_save_IFS
19780
19781   ;;
19782 esac
19783 fi
19784 LOCATE=$ac_cv_path_LOCATE
19785 if test -n "$LOCATE"; then
19786   { echo "$as_me:$LINENO: result: $LOCATE" >&5
19787 echo "${ECHO_T}$LOCATE" >&6; }
19788 else
19789   { echo "$as_me:$LINENO: result: no" >&5
19790 echo "${ECHO_T}no" >&6; }
19791 fi
19792
19793
19794 # Extract the first word of "dirname", so it can be a program name with args.
19795 set dummy dirname; ac_word=$2
19796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19798 if test "${ac_cv_path_DIRNAME+set}" = set; then
19799   echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801   case $DIRNAME in
19802   [\\/]* | ?:[\\/]*)
19803   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19804   ;;
19805   *)
19806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19807 for as_dir in $PATH
19808 do
19809   IFS=$as_save_IFS
19810   test -z "$as_dir" && as_dir=.
19811   for ac_exec_ext in '' $ac_executable_extensions; do
19812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19813     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19815     break 2
19816   fi
19817 done
19818 done
19819 IFS=$as_save_IFS
19820
19821   ;;
19822 esac
19823 fi
19824 DIRNAME=$ac_cv_path_DIRNAME
19825 if test -n "$DIRNAME"; then
19826   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
19827 echo "${ECHO_T}$DIRNAME" >&6; }
19828 else
19829   { echo "$as_me:$LINENO: result: no" >&5
19830 echo "${ECHO_T}no" >&6; }
19831 fi
19832
19833
19834 # Extract the first word of "grep", so it can be a program name with args.
19835 set dummy grep; ac_word=$2
19836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19838 if test "${ac_cv_path_GREP+set}" = set; then
19839   echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841   case $GREP in
19842   [\\/]* | ?:[\\/]*)
19843   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19844   ;;
19845   *)
19846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19847 for as_dir in $PATH
19848 do
19849   IFS=$as_save_IFS
19850   test -z "$as_dir" && as_dir=.
19851   for ac_exec_ext in '' $ac_executable_extensions; do
19852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19853     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19855     break 2
19856   fi
19857 done
19858 done
19859 IFS=$as_save_IFS
19860
19861   ;;
19862 esac
19863 fi
19864 GREP=$ac_cv_path_GREP
19865 if test -n "$GREP"; then
19866   { echo "$as_me:$LINENO: result: $GREP" >&5
19867 echo "${ECHO_T}$GREP" >&6; }
19868 else
19869   { echo "$as_me:$LINENO: result: no" >&5
19870 echo "${ECHO_T}no" >&6; }
19871 fi
19872
19873
19874
19875
19876 old_CFLAGS=$CFLAGS
19877 if test "x$WITH_THREADS" = "xyes"; then
19878   if test $ac_cv_prog_suncc = "yes"; then
19879     CFLAGS="$CFLAGS -mt"
19880   fi
19881
19882
19883 for ac_header in pthread.h
19884 do
19885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19887   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19890   echo $ECHO_N "(cached) $ECHO_C" >&6
19891 fi
19892 ac_res=`eval echo '${'$as_ac_Header'}'`
19893                { echo "$as_me:$LINENO: result: $ac_res" >&5
19894 echo "${ECHO_T}$ac_res" >&6; }
19895 else
19896   # Is the header compilable?
19897 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19899 cat >conftest.$ac_ext <<_ACEOF
19900 /* confdefs.h.  */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h.  */
19905 $ac_includes_default
19906 #include <$ac_header>
19907 _ACEOF
19908 rm -f conftest.$ac_objext
19909 if { (ac_try="$ac_compile"
19910 case "(($ac_try" in
19911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912   *) ac_try_echo=$ac_try;;
19913 esac
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915   (eval "$ac_compile") 2>conftest.er1
19916   ac_status=$?
19917   grep -v '^ *+' conftest.er1 >conftest.err
19918   rm -f conftest.er1
19919   cat conftest.err >&5
19920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921   (exit $ac_status); } && {
19922          test -z "$ac_c_werror_flag" ||
19923          test ! -s conftest.err
19924        } && test -s conftest.$ac_objext; then
19925   ac_header_compiler=yes
19926 else
19927   echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19929
19930         ac_header_compiler=no
19931 fi
19932
19933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19935 echo "${ECHO_T}$ac_header_compiler" >&6; }
19936
19937 # Is the header present?
19938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19940 cat >conftest.$ac_ext <<_ACEOF
19941 /* confdefs.h.  */
19942 _ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h.  */
19946 #include <$ac_header>
19947 _ACEOF
19948 if { (ac_try="$ac_cpp conftest.$ac_ext"
19949 case "(($ac_try" in
19950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951   *) ac_try_echo=$ac_try;;
19952 esac
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19955   ac_status=$?
19956   grep -v '^ *+' conftest.er1 >conftest.err
19957   rm -f conftest.er1
19958   cat conftest.err >&5
19959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960   (exit $ac_status); } >/dev/null && {
19961          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19962          test ! -s conftest.err
19963        }; then
19964   ac_header_preproc=yes
19965 else
19966   echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19968
19969   ac_header_preproc=no
19970 fi
19971
19972 rm -f conftest.err conftest.$ac_ext
19973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19974 echo "${ECHO_T}$ac_header_preproc" >&6; }
19975
19976 # So?  What about this header?
19977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19978   yes:no: )
19979     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19981     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19983     ac_header_preproc=yes
19984     ;;
19985   no:yes:* )
19986     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19988     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19989 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19990     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19992     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19993 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19996     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19998
19999     ;;
20000 esac
20001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20004   echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006   eval "$as_ac_Header=\$ac_header_preproc"
20007 fi
20008 ac_res=`eval echo '${'$as_ac_Header'}'`
20009                { echo "$as_me:$LINENO: result: $ac_res" >&5
20010 echo "${ECHO_T}$ac_res" >&6; }
20011
20012 fi
20013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20014   cat >>confdefs.h <<_ACEOF
20015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20016 _ACEOF
20017
20018 else
20019    WITH_THREADS="no"
20020 fi
20021
20022 done
20023
20024
20025   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20026 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20027 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20028   echo $ECHO_N "(cached) $ECHO_C" >&6
20029 else
20030   ac_check_lib_save_LIBS=$LIBS
20031 LIBS="-lpthread  $LIBS"
20032 cat >conftest.$ac_ext <<_ACEOF
20033 /* confdefs.h.  */
20034 _ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h.  */
20038
20039 /* Override any GCC internal prototype to avoid an error.
20040    Use char because int might match the return type of a GCC
20041    builtin and then its argument prototype would still apply.  */
20042 #ifdef __cplusplus
20043 extern "C"
20044 #endif
20045 char pthread_create ();
20046 int
20047 main ()
20048 {
20049 return pthread_create ();
20050   ;
20051   return 0;
20052 }
20053 _ACEOF
20054 rm -f conftest.$ac_objext conftest$ac_exeext
20055 if { (ac_try="$ac_link"
20056 case "(($ac_try" in
20057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058   *) ac_try_echo=$ac_try;;
20059 esac
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061   (eval "$ac_link") 2>conftest.er1
20062   ac_status=$?
20063   grep -v '^ *+' conftest.er1 >conftest.err
20064   rm -f conftest.er1
20065   cat conftest.err >&5
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); } && {
20068          test -z "$ac_c_werror_flag" ||
20069          test ! -s conftest.err
20070        } && test -s conftest$ac_exeext &&
20071        $as_test_x conftest$ac_exeext; then
20072   ac_cv_lib_pthread_pthread_create=yes
20073 else
20074   echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20076
20077         ac_cv_lib_pthread_pthread_create=no
20078 fi
20079
20080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20081       conftest$ac_exeext conftest.$ac_ext
20082 LIBS=$ac_check_lib_save_LIBS
20083 fi
20084 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20085 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20086 if test $ac_cv_lib_pthread_pthread_create = yes; then
20087    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20088                   LIBS="$LIBS -lpthread"
20089 else
20090   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20091 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20092 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20093   echo $ECHO_N "(cached) $ECHO_C" >&6
20094 else
20095   ac_check_lib_save_LIBS=$LIBS
20096 LIBS="-lc_r  $LIBS"
20097 cat >conftest.$ac_ext <<_ACEOF
20098 /* confdefs.h.  */
20099 _ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h.  */
20103
20104 /* Override any GCC internal prototype to avoid an error.
20105    Use char because int might match the return type of a GCC
20106    builtin and then its argument prototype would still apply.  */
20107 #ifdef __cplusplus
20108 extern "C"
20109 #endif
20110 char pthread_create ();
20111 int
20112 main ()
20113 {
20114 return pthread_create ();
20115   ;
20116   return 0;
20117 }
20118 _ACEOF
20119 rm -f conftest.$ac_objext conftest$ac_exeext
20120 if { (ac_try="$ac_link"
20121 case "(($ac_try" in
20122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123   *) ac_try_echo=$ac_try;;
20124 esac
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126   (eval "$ac_link") 2>conftest.er1
20127   ac_status=$?
20128   grep -v '^ *+' conftest.er1 >conftest.err
20129   rm -f conftest.er1
20130   cat conftest.err >&5
20131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); } && {
20133          test -z "$ac_c_werror_flag" ||
20134          test ! -s conftest.err
20135        } && test -s conftest$ac_exeext &&
20136        $as_test_x conftest$ac_exeext; then
20137   ac_cv_lib_c_r_pthread_create=yes
20138 else
20139   echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20141
20142         ac_cv_lib_c_r_pthread_create=no
20143 fi
20144
20145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20146       conftest$ac_exeext conftest.$ac_ext
20147 LIBS=$ac_check_lib_save_LIBS
20148 fi
20149 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20150 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20151 if test $ac_cv_lib_c_r_pthread_create = yes; then
20152    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20153 else
20154    WITH_THREADS="no"
20155
20156 fi
20157
20158
20159 fi
20160
20161 fi
20162
20163 if test "x$WITH_THREADS" != "xyes"; then
20164   CFLAGS=$old_CFLAGS
20165   ac_cv_header_pthread_h="no"
20166   WITH_THREADS=no
20167 else
20168
20169   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20170 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20171 if test "${ac_cv_search_sem_init+set}" = set; then
20172   echo $ECHO_N "(cached) $ECHO_C" >&6
20173 else
20174   ac_func_search_save_LIBS=$LIBS
20175 cat >conftest.$ac_ext <<_ACEOF
20176 /* confdefs.h.  */
20177 _ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h.  */
20181
20182 /* Override any GCC internal prototype to avoid an error.
20183    Use char because int might match the return type of a GCC
20184    builtin and then its argument prototype would still apply.  */
20185 #ifdef __cplusplus
20186 extern "C"
20187 #endif
20188 char sem_init ();
20189 int
20190 main ()
20191 {
20192 return sem_init ();
20193   ;
20194   return 0;
20195 }
20196 _ACEOF
20197 for ac_lib in '' pthread sem posix4 rt; do
20198   if test -z "$ac_lib"; then
20199     ac_res="none required"
20200   else
20201     ac_res=-l$ac_lib
20202     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20203   fi
20204   rm -f conftest.$ac_objext conftest$ac_exeext
20205 if { (ac_try="$ac_link"
20206 case "(($ac_try" in
20207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208   *) ac_try_echo=$ac_try;;
20209 esac
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211   (eval "$ac_link") 2>conftest.er1
20212   ac_status=$?
20213   grep -v '^ *+' conftest.er1 >conftest.err
20214   rm -f conftest.er1
20215   cat conftest.err >&5
20216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217   (exit $ac_status); } && {
20218          test -z "$ac_c_werror_flag" ||
20219          test ! -s conftest.err
20220        } && test -s conftest$ac_exeext &&
20221        $as_test_x conftest$ac_exeext; then
20222   ac_cv_search_sem_init=$ac_res
20223 else
20224   echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20226
20227
20228 fi
20229
20230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20231       conftest$ac_exeext
20232   if test "${ac_cv_search_sem_init+set}" = set; then
20233   break
20234 fi
20235 done
20236 if test "${ac_cv_search_sem_init+set}" = set; then
20237   :
20238 else
20239   ac_cv_search_sem_init=no
20240 fi
20241 rm conftest.$ac_ext
20242 LIBS=$ac_func_search_save_LIBS
20243 fi
20244 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20245 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20246 ac_res=$ac_cv_search_sem_init
20247 if test "$ac_res" != no; then
20248   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20249
20250 else
20251   { { 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
20252 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;}
20253    { (exit 1); exit 1; }; }
20254
20255 fi
20256
20257 fi
20258
20259
20260 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20261 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20262 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20263   echo $ECHO_N "(cached) $ECHO_C" >&6
20264 else
20265   ac_check_lib_save_LIBS=$LIBS
20266 LIBS="-lsocket  $LIBS"
20267 cat >conftest.$ac_ext <<_ACEOF
20268 /* confdefs.h.  */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h.  */
20273
20274 /* Override any GCC internal prototype to avoid an error.
20275    Use char because int might match the return type of a GCC
20276    builtin and then its argument prototype would still apply.  */
20277 #ifdef __cplusplus
20278 extern "C"
20279 #endif
20280 char getsockname ();
20281 int
20282 main ()
20283 {
20284 return getsockname ();
20285   ;
20286   return 0;
20287 }
20288 _ACEOF
20289 rm -f conftest.$ac_objext conftest$ac_exeext
20290 if { (ac_try="$ac_link"
20291 case "(($ac_try" in
20292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20293   *) ac_try_echo=$ac_try;;
20294 esac
20295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20296   (eval "$ac_link") 2>conftest.er1
20297   ac_status=$?
20298   grep -v '^ *+' conftest.er1 >conftest.err
20299   rm -f conftest.er1
20300   cat conftest.err >&5
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); } && {
20303          test -z "$ac_c_werror_flag" ||
20304          test ! -s conftest.err
20305        } && test -s conftest$ac_exeext &&
20306        $as_test_x conftest$ac_exeext; then
20307   ac_cv_lib_socket_getsockname=yes
20308 else
20309   echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.$ac_ext >&5
20311
20312         ac_cv_lib_socket_getsockname=no
20313 fi
20314
20315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20316       conftest$ac_exeext conftest.$ac_ext
20317 LIBS=$ac_check_lib_save_LIBS
20318 fi
20319 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20320 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20321 if test $ac_cv_lib_socket_getsockname = yes; then
20322   cat >>confdefs.h <<_ACEOF
20323 #define HAVE_LIBSOCKET 1
20324 _ACEOF
20325
20326   LIBS="-lsocket $LIBS"
20327
20328 fi
20329
20330
20331
20332 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20333 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20334 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20335   echo $ECHO_N "(cached) $ECHO_C" >&6
20336 else
20337   ac_check_lib_save_LIBS=$LIBS
20338 LIBS="-lresolv  $LIBS"
20339 cat >conftest.$ac_ext <<_ACEOF
20340 /* confdefs.h.  */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h.  */
20345
20346 /* Override any GCC internal prototype to avoid an error.
20347    Use char because int might match the return type of a GCC
20348    builtin and then its argument prototype would still apply.  */
20349 #ifdef __cplusplus
20350 extern "C"
20351 #endif
20352 char inet_aton ();
20353 int
20354 main ()
20355 {
20356 return inet_aton ();
20357   ;
20358   return 0;
20359 }
20360 _ACEOF
20361 rm -f conftest.$ac_objext conftest$ac_exeext
20362 if { (ac_try="$ac_link"
20363 case "(($ac_try" in
20364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365   *) ac_try_echo=$ac_try;;
20366 esac
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368   (eval "$ac_link") 2>conftest.er1
20369   ac_status=$?
20370   grep -v '^ *+' conftest.er1 >conftest.err
20371   rm -f conftest.er1
20372   cat conftest.err >&5
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); } && {
20375          test -z "$ac_c_werror_flag" ||
20376          test ! -s conftest.err
20377        } && test -s conftest$ac_exeext &&
20378        $as_test_x conftest$ac_exeext; then
20379   ac_cv_lib_resolv_inet_aton=yes
20380 else
20381   echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20383
20384         ac_cv_lib_resolv_inet_aton=no
20385 fi
20386
20387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20388       conftest$ac_exeext conftest.$ac_ext
20389 LIBS=$ac_check_lib_save_LIBS
20390 fi
20391 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20392 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20393 if test $ac_cv_lib_resolv_inet_aton = yes; then
20394   cat >>confdefs.h <<_ACEOF
20395 #define HAVE_LIBRESOLV 1
20396 _ACEOF
20397
20398   LIBS="-lresolv $LIBS"
20399
20400 fi
20401
20402
20403
20404 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20405 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20406 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20407   echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409   ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lnsl  $LIBS"
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417
20418 /* Override any GCC internal prototype to avoid an error.
20419    Use char because int might match the return type of a GCC
20420    builtin and then its argument prototype would still apply.  */
20421 #ifdef __cplusplus
20422 extern "C"
20423 #endif
20424 char inet_ntoa ();
20425 int
20426 main ()
20427 {
20428 return inet_ntoa ();
20429   ;
20430   return 0;
20431 }
20432 _ACEOF
20433 rm -f conftest.$ac_objext conftest$ac_exeext
20434 if { (ac_try="$ac_link"
20435 case "(($ac_try" in
20436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437   *) ac_try_echo=$ac_try;;
20438 esac
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440   (eval "$ac_link") 2>conftest.er1
20441   ac_status=$?
20442   grep -v '^ *+' conftest.er1 >conftest.err
20443   rm -f conftest.er1
20444   cat conftest.err >&5
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); } && {
20447          test -z "$ac_c_werror_flag" ||
20448          test ! -s conftest.err
20449        } && test -s conftest$ac_exeext &&
20450        $as_test_x conftest$ac_exeext; then
20451   ac_cv_lib_nsl_inet_ntoa=yes
20452 else
20453   echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20455
20456         ac_cv_lib_nsl_inet_ntoa=no
20457 fi
20458
20459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20460       conftest$ac_exeext conftest.$ac_ext
20461 LIBS=$ac_check_lib_save_LIBS
20462 fi
20463 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20464 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20465 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20466   cat >>confdefs.h <<_ACEOF
20467 #define HAVE_LIBNSL 1
20468 _ACEOF
20469
20470   LIBS="-lnsl $LIBS"
20471
20472 fi
20473
20474
20475 OPENSSL_LIBS=
20476 if test "x$WITH_OPENSSL" = xyes; then
20477   old_LIBS=$LIBS
20478   if test "x$OPENSSL_LIB_DIR" != "x"; then
20479     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20480   fi
20481   { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20482 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20483 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20484   echo $ECHO_N "(cached) $ECHO_C" >&6
20485 else
20486   ac_check_lib_save_LIBS=$LIBS
20487 LIBS="-lcrypto  $LIBS"
20488 cat >conftest.$ac_ext <<_ACEOF
20489 /* confdefs.h.  */
20490 _ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h.  */
20494
20495 /* Override any GCC internal prototype to avoid an error.
20496    Use char because int might match the return type of a GCC
20497    builtin and then its argument prototype would still apply.  */
20498 #ifdef __cplusplus
20499 extern "C"
20500 #endif
20501 char DH_new ();
20502 int
20503 main ()
20504 {
20505 return DH_new ();
20506   ;
20507   return 0;
20508 }
20509 _ACEOF
20510 rm -f conftest.$ac_objext conftest$ac_exeext
20511 if { (ac_try="$ac_link"
20512 case "(($ac_try" in
20513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514   *) ac_try_echo=$ac_try;;
20515 esac
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517   (eval "$ac_link") 2>conftest.er1
20518   ac_status=$?
20519   grep -v '^ *+' conftest.er1 >conftest.err
20520   rm -f conftest.er1
20521   cat conftest.err >&5
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); } && {
20524          test -z "$ac_c_werror_flag" ||
20525          test ! -s conftest.err
20526        } && test -s conftest$ac_exeext &&
20527        $as_test_x conftest$ac_exeext; then
20528   ac_cv_lib_crypto_DH_new=yes
20529 else
20530   echo "$as_me: failed program was:" >&5
20531 sed 's/^/| /' conftest.$ac_ext >&5
20532
20533         ac_cv_lib_crypto_DH_new=no
20534 fi
20535
20536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20537       conftest$ac_exeext conftest.$ac_ext
20538 LIBS=$ac_check_lib_save_LIBS
20539 fi
20540 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20541 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20542 if test $ac_cv_lib_crypto_DH_new = yes; then
20543
20544
20545 cat >>confdefs.h <<\_ACEOF
20546 #define HAVE_LIBCRYPTO 1
20547 _ACEOF
20548
20549         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20550 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20551 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20552   echo $ECHO_N "(cached) $ECHO_C" >&6
20553 else
20554   ac_check_lib_save_LIBS=$LIBS
20555 LIBS="-lssl  $LIBS"
20556 cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h.  */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h.  */
20562
20563 /* Override any GCC internal prototype to avoid an error.
20564    Use char because int might match the return type of a GCC
20565    builtin and then its argument prototype would still apply.  */
20566 #ifdef __cplusplus
20567 extern "C"
20568 #endif
20569 char SSL_new ();
20570 int
20571 main ()
20572 {
20573 return SSL_new ();
20574   ;
20575   return 0;
20576 }
20577 _ACEOF
20578 rm -f conftest.$ac_objext conftest$ac_exeext
20579 if { (ac_try="$ac_link"
20580 case "(($ac_try" in
20581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582   *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585   (eval "$ac_link") 2>conftest.er1
20586   ac_status=$?
20587   grep -v '^ *+' conftest.er1 >conftest.err
20588   rm -f conftest.er1
20589   cat conftest.err >&5
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); } && {
20592          test -z "$ac_c_werror_flag" ||
20593          test ! -s conftest.err
20594        } && test -s conftest$ac_exeext &&
20595        $as_test_x conftest$ac_exeext; then
20596   ac_cv_lib_ssl_SSL_new=yes
20597 else
20598   echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20600
20601         ac_cv_lib_ssl_SSL_new=no
20602 fi
20603
20604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20605       conftest$ac_exeext conftest.$ac_ext
20606 LIBS=$ac_check_lib_save_LIBS
20607 fi
20608 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20609 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20610 if test $ac_cv_lib_ssl_SSL_new = yes; then
20611
20612
20613 cat >>confdefs.h <<\_ACEOF
20614 #define HAVE_LIBSSL 1
20615 _ACEOF
20616
20617                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20618                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20619                 fi
20620                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20621
20622 fi
20623
20624
20625 fi
20626
20627   LIBS=$old_LIBS
20628 fi
20629
20630
20631 case "$host" in
20632 *-interix*)
20633         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20634         ;;
20635 *-darwin*)
20636         CFLAGS="$CFLAGS -DDARWIN"
20637         ;;
20638 esac
20639
20640
20641
20642
20643
20644
20645 ac_header_dirent=no
20646 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20647   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20648 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20649 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20651   echo $ECHO_N "(cached) $ECHO_C" >&6
20652 else
20653   cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h.  */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h.  */
20659 #include <sys/types.h>
20660 #include <$ac_hdr>
20661
20662 int
20663 main ()
20664 {
20665 if ((DIR *) 0)
20666 return 0;
20667   ;
20668   return 0;
20669 }
20670 _ACEOF
20671 rm -f conftest.$ac_objext
20672 if { (ac_try="$ac_compile"
20673 case "(($ac_try" in
20674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675   *) ac_try_echo=$ac_try;;
20676 esac
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678   (eval "$ac_compile") 2>conftest.er1
20679   ac_status=$?
20680   grep -v '^ *+' conftest.er1 >conftest.err
20681   rm -f conftest.er1
20682   cat conftest.err >&5
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); } && {
20685          test -z "$ac_c_werror_flag" ||
20686          test ! -s conftest.err
20687        } && test -s conftest.$ac_objext; then
20688   eval "$as_ac_Header=yes"
20689 else
20690   echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20692
20693         eval "$as_ac_Header=no"
20694 fi
20695
20696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20697 fi
20698 ac_res=`eval echo '${'$as_ac_Header'}'`
20699                { echo "$as_me:$LINENO: result: $ac_res" >&5
20700 echo "${ECHO_T}$ac_res" >&6; }
20701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20702   cat >>confdefs.h <<_ACEOF
20703 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20704 _ACEOF
20705
20706 ac_header_dirent=$ac_hdr; break
20707 fi
20708
20709 done
20710 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20711 if test $ac_header_dirent = dirent.h; then
20712   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20713 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20714 if test "${ac_cv_search_opendir+set}" = set; then
20715   echo $ECHO_N "(cached) $ECHO_C" >&6
20716 else
20717   ac_func_search_save_LIBS=$LIBS
20718 cat >conftest.$ac_ext <<_ACEOF
20719 /* confdefs.h.  */
20720 _ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h.  */
20724
20725 /* Override any GCC internal prototype to avoid an error.
20726    Use char because int might match the return type of a GCC
20727    builtin and then its argument prototype would still apply.  */
20728 #ifdef __cplusplus
20729 extern "C"
20730 #endif
20731 char opendir ();
20732 int
20733 main ()
20734 {
20735 return opendir ();
20736   ;
20737   return 0;
20738 }
20739 _ACEOF
20740 for ac_lib in '' dir; do
20741   if test -z "$ac_lib"; then
20742     ac_res="none required"
20743   else
20744     ac_res=-l$ac_lib
20745     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20746   fi
20747   rm -f conftest.$ac_objext conftest$ac_exeext
20748 if { (ac_try="$ac_link"
20749 case "(($ac_try" in
20750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751   *) ac_try_echo=$ac_try;;
20752 esac
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754   (eval "$ac_link") 2>conftest.er1
20755   ac_status=$?
20756   grep -v '^ *+' conftest.er1 >conftest.err
20757   rm -f conftest.er1
20758   cat conftest.err >&5
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); } && {
20761          test -z "$ac_c_werror_flag" ||
20762          test ! -s conftest.err
20763        } && test -s conftest$ac_exeext &&
20764        $as_test_x conftest$ac_exeext; then
20765   ac_cv_search_opendir=$ac_res
20766 else
20767   echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20769
20770
20771 fi
20772
20773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20774       conftest$ac_exeext
20775   if test "${ac_cv_search_opendir+set}" = set; then
20776   break
20777 fi
20778 done
20779 if test "${ac_cv_search_opendir+set}" = set; then
20780   :
20781 else
20782   ac_cv_search_opendir=no
20783 fi
20784 rm conftest.$ac_ext
20785 LIBS=$ac_func_search_save_LIBS
20786 fi
20787 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20788 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20789 ac_res=$ac_cv_search_opendir
20790 if test "$ac_res" != no; then
20791   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20792
20793 fi
20794
20795 else
20796   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20797 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20798 if test "${ac_cv_search_opendir+set}" = set; then
20799   echo $ECHO_N "(cached) $ECHO_C" >&6
20800 else
20801   ac_func_search_save_LIBS=$LIBS
20802 cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h.  */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h.  */
20808
20809 /* Override any GCC internal prototype to avoid an error.
20810    Use char because int might match the return type of a GCC
20811    builtin and then its argument prototype would still apply.  */
20812 #ifdef __cplusplus
20813 extern "C"
20814 #endif
20815 char opendir ();
20816 int
20817 main ()
20818 {
20819 return opendir ();
20820   ;
20821   return 0;
20822 }
20823 _ACEOF
20824 for ac_lib in '' x; do
20825   if test -z "$ac_lib"; then
20826     ac_res="none required"
20827   else
20828     ac_res=-l$ac_lib
20829     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20830   fi
20831   rm -f conftest.$ac_objext conftest$ac_exeext
20832 if { (ac_try="$ac_link"
20833 case "(($ac_try" in
20834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835   *) ac_try_echo=$ac_try;;
20836 esac
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838   (eval "$ac_link") 2>conftest.er1
20839   ac_status=$?
20840   grep -v '^ *+' conftest.er1 >conftest.err
20841   rm -f conftest.er1
20842   cat conftest.err >&5
20843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844   (exit $ac_status); } && {
20845          test -z "$ac_c_werror_flag" ||
20846          test ! -s conftest.err
20847        } && test -s conftest$ac_exeext &&
20848        $as_test_x conftest$ac_exeext; then
20849   ac_cv_search_opendir=$ac_res
20850 else
20851   echo "$as_me: failed program was:" >&5
20852 sed 's/^/| /' conftest.$ac_ext >&5
20853
20854
20855 fi
20856
20857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20858       conftest$ac_exeext
20859   if test "${ac_cv_search_opendir+set}" = set; then
20860   break
20861 fi
20862 done
20863 if test "${ac_cv_search_opendir+set}" = set; then
20864   :
20865 else
20866   ac_cv_search_opendir=no
20867 fi
20868 rm conftest.$ac_ext
20869 LIBS=$ac_func_search_save_LIBS
20870 fi
20871 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20872 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20873 ac_res=$ac_cv_search_opendir
20874 if test "$ac_res" != no; then
20875   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20876
20877 fi
20878
20879 fi
20880
20881 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20882 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20883 if test "${ac_cv_header_stdc+set}" = set; then
20884   echo $ECHO_N "(cached) $ECHO_C" >&6
20885 else
20886   cat >conftest.$ac_ext <<_ACEOF
20887 /* confdefs.h.  */
20888 _ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h.  */
20892 #include <stdlib.h>
20893 #include <stdarg.h>
20894 #include <string.h>
20895 #include <float.h>
20896
20897 int
20898 main ()
20899 {
20900
20901   ;
20902   return 0;
20903 }
20904 _ACEOF
20905 rm -f conftest.$ac_objext
20906 if { (ac_try="$ac_compile"
20907 case "(($ac_try" in
20908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909   *) ac_try_echo=$ac_try;;
20910 esac
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912   (eval "$ac_compile") 2>conftest.er1
20913   ac_status=$?
20914   grep -v '^ *+' conftest.er1 >conftest.err
20915   rm -f conftest.er1
20916   cat conftest.err >&5
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); } && {
20919          test -z "$ac_c_werror_flag" ||
20920          test ! -s conftest.err
20921        } && test -s conftest.$ac_objext; then
20922   ac_cv_header_stdc=yes
20923 else
20924   echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20926
20927         ac_cv_header_stdc=no
20928 fi
20929
20930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20931
20932 if test $ac_cv_header_stdc = yes; then
20933   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20934   cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h.  */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h.  */
20940 #include <string.h>
20941
20942 _ACEOF
20943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20944   $EGREP "memchr" >/dev/null 2>&1; then
20945   :
20946 else
20947   ac_cv_header_stdc=no
20948 fi
20949 rm -f conftest*
20950
20951 fi
20952
20953 if test $ac_cv_header_stdc = yes; then
20954   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20955   cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h.  */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h.  */
20961 #include <stdlib.h>
20962
20963 _ACEOF
20964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20965   $EGREP "free" >/dev/null 2>&1; then
20966   :
20967 else
20968   ac_cv_header_stdc=no
20969 fi
20970 rm -f conftest*
20971
20972 fi
20973
20974 if test $ac_cv_header_stdc = yes; then
20975   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20976   if test "$cross_compiling" = yes; then
20977   :
20978 else
20979   cat >conftest.$ac_ext <<_ACEOF
20980 /* confdefs.h.  */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h.  */
20985 #include <ctype.h>
20986 #include <stdlib.h>
20987 #if ((' ' & 0x0FF) == 0x020)
20988 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20989 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20990 #else
20991 # define ISLOWER(c) \
20992                    (('a' <= (c) && (c) <= 'i') \
20993                      || ('j' <= (c) && (c) <= 'r') \
20994                      || ('s' <= (c) && (c) <= 'z'))
20995 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20996 #endif
20997
20998 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20999 int
21000 main ()
21001 {
21002   int i;
21003   for (i = 0; i < 256; i++)
21004     if (XOR (islower (i), ISLOWER (i))
21005         || toupper (i) != TOUPPER (i))
21006       return 2;
21007   return 0;
21008 }
21009 _ACEOF
21010 rm -f conftest$ac_exeext
21011 if { (ac_try="$ac_link"
21012 case "(($ac_try" in
21013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014   *) ac_try_echo=$ac_try;;
21015 esac
21016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21017   (eval "$ac_link") 2>&5
21018   ac_status=$?
21019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21021   { (case "(($ac_try" in
21022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023   *) ac_try_echo=$ac_try;;
21024 esac
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026   (eval "$ac_try") 2>&5
21027   ac_status=$?
21028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); }; }; then
21030   :
21031 else
21032   echo "$as_me: program exited with status $ac_status" >&5
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21035
21036 ( exit $ac_status )
21037 ac_cv_header_stdc=no
21038 fi
21039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21040 fi
21041
21042
21043 fi
21044 fi
21045 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21046 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21047 if test $ac_cv_header_stdc = yes; then
21048
21049 cat >>confdefs.h <<\_ACEOF
21050 #define STDC_HEADERS 1
21051 _ACEOF
21052
21053 fi
21054
21055 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21056 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21057 if test "${ac_cv_header_time+set}" = set; then
21058   echo $ECHO_N "(cached) $ECHO_C" >&6
21059 else
21060   cat >conftest.$ac_ext <<_ACEOF
21061 /* confdefs.h.  */
21062 _ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h.  */
21066 #include <sys/types.h>
21067 #include <sys/time.h>
21068 #include <time.h>
21069
21070 int
21071 main ()
21072 {
21073 if ((struct tm *) 0)
21074 return 0;
21075   ;
21076   return 0;
21077 }
21078 _ACEOF
21079 rm -f conftest.$ac_objext
21080 if { (ac_try="$ac_compile"
21081 case "(($ac_try" in
21082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083   *) ac_try_echo=$ac_try;;
21084 esac
21085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21086   (eval "$ac_compile") 2>conftest.er1
21087   ac_status=$?
21088   grep -v '^ *+' conftest.er1 >conftest.err
21089   rm -f conftest.er1
21090   cat conftest.err >&5
21091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092   (exit $ac_status); } && {
21093          test -z "$ac_c_werror_flag" ||
21094          test ! -s conftest.err
21095        } && test -s conftest.$ac_objext; then
21096   ac_cv_header_time=yes
21097 else
21098   echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21100
21101         ac_cv_header_time=no
21102 fi
21103
21104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21105 fi
21106 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21107 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21108 if test $ac_cv_header_time = yes; then
21109
21110 cat >>confdefs.h <<\_ACEOF
21111 #define TIME_WITH_SYS_TIME 1
21112 _ACEOF
21113
21114 fi
21115
21116 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21117 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21118 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21119   echo $ECHO_N "(cached) $ECHO_C" >&6
21120 else
21121   cat >conftest.$ac_ext <<_ACEOF
21122 /* confdefs.h.  */
21123 _ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h.  */
21127 #include <sys/types.h>
21128 #include <sys/wait.h>
21129 #ifndef WEXITSTATUS
21130 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21131 #endif
21132 #ifndef WIFEXITED
21133 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21134 #endif
21135
21136 int
21137 main ()
21138 {
21139   int s;
21140   wait (&s);
21141   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21142   ;
21143   return 0;
21144 }
21145 _ACEOF
21146 rm -f conftest.$ac_objext
21147 if { (ac_try="$ac_compile"
21148 case "(($ac_try" in
21149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150   *) ac_try_echo=$ac_try;;
21151 esac
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153   (eval "$ac_compile") 2>conftest.er1
21154   ac_status=$?
21155   grep -v '^ *+' conftest.er1 >conftest.err
21156   rm -f conftest.er1
21157   cat conftest.err >&5
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); } && {
21160          test -z "$ac_c_werror_flag" ||
21161          test ! -s conftest.err
21162        } && test -s conftest.$ac_objext; then
21163   ac_cv_header_sys_wait_h=yes
21164 else
21165   echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21167
21168         ac_cv_header_sys_wait_h=no
21169 fi
21170
21171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21172 fi
21173 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21174 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21175 if test $ac_cv_header_sys_wait_h = yes; then
21176
21177 cat >>confdefs.h <<\_ACEOF
21178 #define HAVE_SYS_WAIT_H 1
21179 _ACEOF
21180
21181 fi
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214 for ac_header in \
21215         unistd.h \
21216         crypt.h \
21217         errno.h \
21218         resource.h \
21219         getopt.h \
21220         malloc.h \
21221         utmp.h \
21222         utmpx.h \
21223         signal.h \
21224         sys/select.h \
21225         syslog.h \
21226         inttypes.h \
21227         stdint.h \
21228         stdio.h \
21229         netdb.h \
21230         semaphore.h \
21231         arpa/inet.h \
21232         netinet/in.h \
21233         sys/types.h \
21234         sys/socket.h \
21235         sys/time.h \
21236         sys/wait.h \
21237         sys/security.h \
21238         fcntl.h \
21239         sys/fcntl.h \
21240         sys/stat.h \
21241         sys/prctl.h \
21242         prot.h \
21243         sia.h \
21244         siad.h
21245
21246 do
21247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21249   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21252   echo $ECHO_N "(cached) $ECHO_C" >&6
21253 fi
21254 ac_res=`eval echo '${'$as_ac_Header'}'`
21255                { echo "$as_me:$LINENO: result: $ac_res" >&5
21256 echo "${ECHO_T}$ac_res" >&6; }
21257 else
21258   # Is the header compilable?
21259 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21261 cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h.  */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h.  */
21267 $ac_includes_default
21268 #include <$ac_header>
21269 _ACEOF
21270 rm -f conftest.$ac_objext
21271 if { (ac_try="$ac_compile"
21272 case "(($ac_try" in
21273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274   *) ac_try_echo=$ac_try;;
21275 esac
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277   (eval "$ac_compile") 2>conftest.er1
21278   ac_status=$?
21279   grep -v '^ *+' conftest.er1 >conftest.err
21280   rm -f conftest.er1
21281   cat conftest.err >&5
21282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283   (exit $ac_status); } && {
21284          test -z "$ac_c_werror_flag" ||
21285          test ! -s conftest.err
21286        } && test -s conftest.$ac_objext; then
21287   ac_header_compiler=yes
21288 else
21289   echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21291
21292         ac_header_compiler=no
21293 fi
21294
21295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21297 echo "${ECHO_T}$ac_header_compiler" >&6; }
21298
21299 # Is the header present?
21300 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21302 cat >conftest.$ac_ext <<_ACEOF
21303 /* confdefs.h.  */
21304 _ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h.  */
21308 #include <$ac_header>
21309 _ACEOF
21310 if { (ac_try="$ac_cpp conftest.$ac_ext"
21311 case "(($ac_try" in
21312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313   *) ac_try_echo=$ac_try;;
21314 esac
21315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21317   ac_status=$?
21318   grep -v '^ *+' conftest.er1 >conftest.err
21319   rm -f conftest.er1
21320   cat conftest.err >&5
21321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322   (exit $ac_status); } >/dev/null && {
21323          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21324          test ! -s conftest.err
21325        }; then
21326   ac_header_preproc=yes
21327 else
21328   echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21330
21331   ac_header_preproc=no
21332 fi
21333
21334 rm -f conftest.err conftest.$ac_ext
21335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21336 echo "${ECHO_T}$ac_header_preproc" >&6; }
21337
21338 # So?  What about this header?
21339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21340   yes:no: )
21341     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21345     ac_header_preproc=yes
21346     ;;
21347   no:yes:* )
21348     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21350     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21351 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21352     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21354     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21355 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21358     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21360
21361     ;;
21362 esac
21363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21366   echo $ECHO_N "(cached) $ECHO_C" >&6
21367 else
21368   eval "$as_ac_Header=\$ac_header_preproc"
21369 fi
21370 ac_res=`eval echo '${'$as_ac_Header'}'`
21371                { echo "$as_me:$LINENO: result: $ac_res" >&5
21372 echo "${ECHO_T}$ac_res" >&6; }
21373
21374 fi
21375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21376   cat >>confdefs.h <<_ACEOF
21377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21378 _ACEOF
21379
21380 fi
21381
21382 done
21383
21384
21385 REGEX=no
21386 if test "${ac_cv_header_regex_h+set}" = set; then
21387   { echo "$as_me:$LINENO: checking for regex.h" >&5
21388 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21389 if test "${ac_cv_header_regex_h+set}" = set; then
21390   echo $ECHO_N "(cached) $ECHO_C" >&6
21391 fi
21392 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21393 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21394 else
21395   # Is the header compilable?
21396 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21397 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21398 cat >conftest.$ac_ext <<_ACEOF
21399 /* confdefs.h.  */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h.  */
21404 $ac_includes_default
21405 #include <regex.h>
21406 _ACEOF
21407 rm -f conftest.$ac_objext
21408 if { (ac_try="$ac_compile"
21409 case "(($ac_try" in
21410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21411   *) ac_try_echo=$ac_try;;
21412 esac
21413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21414   (eval "$ac_compile") 2>conftest.er1
21415   ac_status=$?
21416   grep -v '^ *+' conftest.er1 >conftest.err
21417   rm -f conftest.er1
21418   cat conftest.err >&5
21419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420   (exit $ac_status); } && {
21421          test -z "$ac_c_werror_flag" ||
21422          test ! -s conftest.err
21423        } && test -s conftest.$ac_objext; then
21424   ac_header_compiler=yes
21425 else
21426   echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21428
21429         ac_header_compiler=no
21430 fi
21431
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21434 echo "${ECHO_T}$ac_header_compiler" >&6; }
21435
21436 # Is the header present?
21437 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21438 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
21439 cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h.  */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h.  */
21445 #include <regex.h>
21446 _ACEOF
21447 if { (ac_try="$ac_cpp conftest.$ac_ext"
21448 case "(($ac_try" in
21449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450   *) ac_try_echo=$ac_try;;
21451 esac
21452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21454   ac_status=$?
21455   grep -v '^ *+' conftest.er1 >conftest.err
21456   rm -f conftest.er1
21457   cat conftest.err >&5
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); } >/dev/null && {
21460          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21461          test ! -s conftest.err
21462        }; then
21463   ac_header_preproc=yes
21464 else
21465   echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21467
21468   ac_header_preproc=no
21469 fi
21470
21471 rm -f conftest.err conftest.$ac_ext
21472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21473 echo "${ECHO_T}$ac_header_preproc" >&6; }
21474
21475 # So?  What about this header?
21476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21477   yes:no: )
21478     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21479 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21480     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21481 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21482     ac_header_preproc=yes
21483     ;;
21484   no:yes:* )
21485     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21486 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21487     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
21488 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
21489     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21490 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21491     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
21492 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21493     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21494 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21495     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21496 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21497
21498     ;;
21499 esac
21500 { echo "$as_me:$LINENO: checking for regex.h" >&5
21501 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21502 if test "${ac_cv_header_regex_h+set}" = set; then
21503   echo $ECHO_N "(cached) $ECHO_C" >&6
21504 else
21505   ac_cv_header_regex_h=$ac_header_preproc
21506 fi
21507 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21508 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21509
21510 fi
21511 if test $ac_cv_header_regex_h = yes; then
21512   cat >>confdefs.h <<\_ACEOF
21513 #define HAVE_REGEX_H 1
21514 _ACEOF
21515
21516 fi
21517
21518
21519 if test "x$ac_cv_header_regex_h" = "xyes"; then
21520   REGEX_EXTENDED=no
21521   REGEX=yes
21522   cat >conftest.$ac_ext <<_ACEOF
21523 /* confdefs.h.  */
21524 _ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h.  */
21528 #include <regex.h>
21529      #ifdef REG_EXTENDED
21530        yes
21531      #endif
21532
21533 _ACEOF
21534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21535   $EGREP "yes" >/dev/null 2>&1; then
21536   cat >>confdefs.h <<\_ACEOF
21537 #define HAVE_REG_EXTENDED 1
21538 _ACEOF
21539  REGEX_EXTENDED=yes
21540 fi
21541 rm -f conftest*
21542
21543 fi
21544
21545
21546
21547 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21548 then
21549   cat >>confdefs.h <<\_ACEOF
21550 #define OSFC2 1
21551 _ACEOF
21552
21553 fi
21554
21555 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21556 then
21557   cat >>confdefs.h <<\_ACEOF
21558 #define OSFSIA 1
21559 _ACEOF
21560
21561 fi
21562
21563 OPENSSL_INCLUDE="-DNO_OPENSSL"
21564 if test "x$WITH_OPENSSL" = xyes; then
21565   if test "x$OPENSSL_LIBS" = "x"; then
21566     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
21567 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21568   else
21569     old_CPPFLAGS=$CPPFLAGS
21570     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21571         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21572     fi
21573         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21574
21575
21576
21577
21578 for ac_header in \
21579         openssl/ssl.h \
21580         openssl/crypto.h \
21581         openssl/err.h \
21582         openssl/engine.h
21583 do
21584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21586   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21589   echo $ECHO_N "(cached) $ECHO_C" >&6
21590 fi
21591 ac_res=`eval echo '${'$as_ac_Header'}'`
21592                { echo "$as_me:$LINENO: result: $ac_res" >&5
21593 echo "${ECHO_T}$ac_res" >&6; }
21594 else
21595   # Is the header compilable?
21596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21598 cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h.  */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h.  */
21604 $ac_includes_default
21605 #include <$ac_header>
21606 _ACEOF
21607 rm -f conftest.$ac_objext
21608 if { (ac_try="$ac_compile"
21609 case "(($ac_try" in
21610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611   *) ac_try_echo=$ac_try;;
21612 esac
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614   (eval "$ac_compile") 2>conftest.er1
21615   ac_status=$?
21616   grep -v '^ *+' conftest.er1 >conftest.err
21617   rm -f conftest.er1
21618   cat conftest.err >&5
21619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620   (exit $ac_status); } && {
21621          test -z "$ac_c_werror_flag" ||
21622          test ! -s conftest.err
21623        } && test -s conftest.$ac_objext; then
21624   ac_header_compiler=yes
21625 else
21626   echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21628
21629         ac_header_compiler=no
21630 fi
21631
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21634 echo "${ECHO_T}$ac_header_compiler" >&6; }
21635
21636 # Is the header present?
21637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21639 cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h.  */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h.  */
21645 #include <$ac_header>
21646 _ACEOF
21647 if { (ac_try="$ac_cpp conftest.$ac_ext"
21648 case "(($ac_try" in
21649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650   *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21654   ac_status=$?
21655   grep -v '^ *+' conftest.er1 >conftest.err
21656   rm -f conftest.er1
21657   cat conftest.err >&5
21658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659   (exit $ac_status); } >/dev/null && {
21660          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21661          test ! -s conftest.err
21662        }; then
21663   ac_header_preproc=yes
21664 else
21665   echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21667
21668   ac_header_preproc=no
21669 fi
21670
21671 rm -f conftest.err conftest.$ac_ext
21672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21673 echo "${ECHO_T}$ac_header_preproc" >&6; }
21674
21675 # So?  What about this header?
21676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21677   yes:no: )
21678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21682     ac_header_preproc=yes
21683     ;;
21684   no:yes:* )
21685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21687     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21688 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21689     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21691     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21692 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21695     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21697
21698     ;;
21699 esac
21700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21703   echo $ECHO_N "(cached) $ECHO_C" >&6
21704 else
21705   eval "$as_ac_Header=\$ac_header_preproc"
21706 fi
21707 ac_res=`eval echo '${'$as_ac_Header'}'`
21708                { echo "$as_me:$LINENO: result: $ac_res" >&5
21709 echo "${ECHO_T}$ac_res" >&6; }
21710
21711 fi
21712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21713   cat >>confdefs.h <<_ACEOF
21714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21715 _ACEOF
21716
21717 else
21718   OPENSSL_LIBS=
21719
21720 fi
21721
21722 done
21723
21724     if test "x$OPENSSL_LIBS" != "x"; then
21725         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21726 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
21727         cat >conftest.$ac_ext <<_ACEOF
21728 /* confdefs.h.  */
21729 _ACEOF
21730 cat confdefs.h >>conftest.$ac_ext
21731 cat >>conftest.$ac_ext <<_ACEOF
21732 /* end confdefs.h.  */
21733 #include <openssl/crypto.h>
21734              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21735              yes
21736              #endif
21737
21738 _ACEOF
21739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21740   $EGREP "yes" >/dev/null 2>&1; then
21741   goodssl="yes"
21742 fi
21743 rm -f conftest*
21744
21745         if test "x$goodssl" != "xyes"; then
21746             { echo "$as_me:$LINENO: result: no" >&5
21747 echo "${ECHO_T}no" >&6; }
21748             OPENSSL_LIBS=
21749         else
21750             { echo "$as_me:$LINENO: result: yes" >&5
21751 echo "${ECHO_T}yes" >&6; }
21752             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21753                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21754             else
21755                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21756             fi
21757         fi
21758     fi
21759     CPPFLAGS=$old_CPPFLAGS
21760   fi
21761 fi
21762
21763
21764 export OPENSSL_LIBS
21765
21766
21767 { echo "$as_me:$LINENO: checking for off_t" >&5
21768 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21769 if test "${ac_cv_type_off_t+set}" = set; then
21770   echo $ECHO_N "(cached) $ECHO_C" >&6
21771 else
21772   cat >conftest.$ac_ext <<_ACEOF
21773 /* confdefs.h.  */
21774 _ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h.  */
21778 $ac_includes_default
21779 typedef off_t ac__type_new_;
21780 int
21781 main ()
21782 {
21783 if ((ac__type_new_ *) 0)
21784   return 0;
21785 if (sizeof (ac__type_new_))
21786   return 0;
21787   ;
21788   return 0;
21789 }
21790 _ACEOF
21791 rm -f conftest.$ac_objext
21792 if { (ac_try="$ac_compile"
21793 case "(($ac_try" in
21794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795   *) ac_try_echo=$ac_try;;
21796 esac
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798   (eval "$ac_compile") 2>conftest.er1
21799   ac_status=$?
21800   grep -v '^ *+' conftest.er1 >conftest.err
21801   rm -f conftest.er1
21802   cat conftest.err >&5
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); } && {
21805          test -z "$ac_c_werror_flag" ||
21806          test ! -s conftest.err
21807        } && test -s conftest.$ac_objext; then
21808   ac_cv_type_off_t=yes
21809 else
21810   echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21812
21813         ac_cv_type_off_t=no
21814 fi
21815
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817 fi
21818 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21819 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21820 if test $ac_cv_type_off_t = yes; then
21821   :
21822 else
21823
21824 cat >>confdefs.h <<_ACEOF
21825 #define off_t long int
21826 _ACEOF
21827
21828 fi
21829
21830 { echo "$as_me:$LINENO: checking for pid_t" >&5
21831 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21832 if test "${ac_cv_type_pid_t+set}" = set; then
21833   echo $ECHO_N "(cached) $ECHO_C" >&6
21834 else
21835   cat >conftest.$ac_ext <<_ACEOF
21836 /* confdefs.h.  */
21837 _ACEOF
21838 cat confdefs.h >>conftest.$ac_ext
21839 cat >>conftest.$ac_ext <<_ACEOF
21840 /* end confdefs.h.  */
21841 $ac_includes_default
21842 typedef pid_t ac__type_new_;
21843 int
21844 main ()
21845 {
21846 if ((ac__type_new_ *) 0)
21847   return 0;
21848 if (sizeof (ac__type_new_))
21849   return 0;
21850   ;
21851   return 0;
21852 }
21853 _ACEOF
21854 rm -f conftest.$ac_objext
21855 if { (ac_try="$ac_compile"
21856 case "(($ac_try" in
21857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858   *) ac_try_echo=$ac_try;;
21859 esac
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861   (eval "$ac_compile") 2>conftest.er1
21862   ac_status=$?
21863   grep -v '^ *+' conftest.er1 >conftest.err
21864   rm -f conftest.er1
21865   cat conftest.err >&5
21866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867   (exit $ac_status); } && {
21868          test -z "$ac_c_werror_flag" ||
21869          test ! -s conftest.err
21870        } && test -s conftest.$ac_objext; then
21871   ac_cv_type_pid_t=yes
21872 else
21873   echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21875
21876         ac_cv_type_pid_t=no
21877 fi
21878
21879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21880 fi
21881 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21882 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21883 if test $ac_cv_type_pid_t = yes; then
21884   :
21885 else
21886
21887 cat >>confdefs.h <<_ACEOF
21888 #define pid_t int
21889 _ACEOF
21890
21891 fi
21892
21893 { echo "$as_me:$LINENO: checking for size_t" >&5
21894 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21895 if test "${ac_cv_type_size_t+set}" = set; then
21896   echo $ECHO_N "(cached) $ECHO_C" >&6
21897 else
21898   cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h.  */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h.  */
21904 $ac_includes_default
21905 typedef size_t ac__type_new_;
21906 int
21907 main ()
21908 {
21909 if ((ac__type_new_ *) 0)
21910   return 0;
21911 if (sizeof (ac__type_new_))
21912   return 0;
21913   ;
21914   return 0;
21915 }
21916 _ACEOF
21917 rm -f conftest.$ac_objext
21918 if { (ac_try="$ac_compile"
21919 case "(($ac_try" in
21920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921   *) ac_try_echo=$ac_try;;
21922 esac
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924   (eval "$ac_compile") 2>conftest.er1
21925   ac_status=$?
21926   grep -v '^ *+' conftest.er1 >conftest.err
21927   rm -f conftest.er1
21928   cat conftest.err >&5
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); } && {
21931          test -z "$ac_c_werror_flag" ||
21932          test ! -s conftest.err
21933        } && test -s conftest.$ac_objext; then
21934   ac_cv_type_size_t=yes
21935 else
21936   echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21938
21939         ac_cv_type_size_t=no
21940 fi
21941
21942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21943 fi
21944 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21945 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21946 if test $ac_cv_type_size_t = yes; then
21947   :
21948 else
21949
21950 cat >>confdefs.h <<_ACEOF
21951 #define size_t unsigned int
21952 _ACEOF
21953
21954 fi
21955
21956 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21957 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21958 if test "${ac_cv_type_uid_t+set}" = set; then
21959   echo $ECHO_N "(cached) $ECHO_C" >&6
21960 else
21961   cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h.  */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h.  */
21967 #include <sys/types.h>
21968
21969 _ACEOF
21970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21971   $EGREP "uid_t" >/dev/null 2>&1; then
21972   ac_cv_type_uid_t=yes
21973 else
21974   ac_cv_type_uid_t=no
21975 fi
21976 rm -f conftest*
21977
21978 fi
21979 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21980 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21981 if test $ac_cv_type_uid_t = no; then
21982
21983 cat >>confdefs.h <<\_ACEOF
21984 #define uid_t int
21985 _ACEOF
21986
21987
21988 cat >>confdefs.h <<\_ACEOF
21989 #define gid_t int
21990 _ACEOF
21991
21992 fi
21993
21994
21995
21996   { echo "$as_me:$LINENO: checking for socklen_t" >&5
21997 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21998 if test "${ac_cv_type_socklen_t+set}" = set; then
21999   echo $ECHO_N "(cached) $ECHO_C" >&6
22000 else
22001    ac_cv_type_socklen_t=no
22002       cat >conftest.$ac_ext <<_ACEOF
22003 /* confdefs.h.  */
22004 _ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h.  */
22008 #ifdef HAVE_SYS_TYPES_H
22009 #include <sys/types.h>
22010 #endif
22011 #ifdef HAVE_SYS_SOCKET_H
22012 #include <sys/socket.h>
22013 #endif
22014
22015 int
22016 main ()
22017 {
22018 socklen_t foo
22019   ;
22020   return 0;
22021 }
22022 _ACEOF
22023 rm -f conftest.$ac_objext
22024 if { (ac_try="$ac_compile"
22025 case "(($ac_try" in
22026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027   *) ac_try_echo=$ac_try;;
22028 esac
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030   (eval "$ac_compile") 2>conftest.er1
22031   ac_status=$?
22032   grep -v '^ *+' conftest.er1 >conftest.err
22033   rm -f conftest.er1
22034   cat conftest.err >&5
22035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036   (exit $ac_status); } && {
22037          test -z "$ac_c_werror_flag" ||
22038          test ! -s conftest.err
22039        } && test -s conftest.$ac_objext; then
22040   ac_cv_type_socklen_t=yes
22041 else
22042   echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22044
22045
22046 fi
22047
22048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22049
22050
22051 fi
22052 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22053 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22054
22055   if test "$ac_cv_type_socklen_t" != "yes"; then
22056          cat >>confdefs.h <<\_ACEOF
22057 #define socklen_t int
22058 _ACEOF
22059
22060   fi
22061
22062
22063
22064   { echo "$as_me:$LINENO: checking for uint8_t" >&5
22065 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22066 if test "${ac_cv_type_uint8_t+set}" = set; then
22067   echo $ECHO_N "(cached) $ECHO_C" >&6
22068 else
22069    ac_cv_type_uint8_t=no
22070       cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h.  */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h.  */
22076 #ifdef HAVE_INTTYPES_H
22077 #include <inttypes.h>
22078 #endif
22079 #ifdef HAVE_STDINT_H
22080 #include <stdint.h>
22081 #endif
22082
22083 int
22084 main ()
22085 {
22086 uint8_t foo
22087   ;
22088   return 0;
22089 }
22090 _ACEOF
22091 rm -f conftest.$ac_objext
22092 if { (ac_try="$ac_compile"
22093 case "(($ac_try" in
22094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095   *) ac_try_echo=$ac_try;;
22096 esac
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098   (eval "$ac_compile") 2>conftest.er1
22099   ac_status=$?
22100   grep -v '^ *+' conftest.er1 >conftest.err
22101   rm -f conftest.er1
22102   cat conftest.err >&5
22103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); } && {
22105          test -z "$ac_c_werror_flag" ||
22106          test ! -s conftest.err
22107        } && test -s conftest.$ac_objext; then
22108   ac_cv_type_uint8_t=yes
22109 else
22110   echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22112
22113
22114 fi
22115
22116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22117
22118
22119 fi
22120 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22121 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22122
22123   if test "$ac_cv_type_uint8_t" != "yes"; then
22124          cat >>confdefs.h <<\_ACEOF
22125 #define uint8_t unsigned char
22126 _ACEOF
22127
22128   fi
22129
22130
22131
22132   { echo "$as_me:$LINENO: checking for uint16_t" >&5
22133 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22134 if test "${ac_cv_type_uint16_t+set}" = set; then
22135   echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137    ac_cv_type_uint16_t=no
22138       cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144 #ifdef HAVE_INTTYPES_H
22145 #include <inttypes.h>
22146 #endif
22147 #ifdef HAVE_STDINT_H
22148 #include <stdint.h>
22149 #endif
22150
22151 int
22152 main ()
22153 {
22154 uint16_t foo
22155   ;
22156   return 0;
22157 }
22158 _ACEOF
22159 rm -f conftest.$ac_objext
22160 if { (ac_try="$ac_compile"
22161 case "(($ac_try" in
22162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163   *) ac_try_echo=$ac_try;;
22164 esac
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166   (eval "$ac_compile") 2>conftest.er1
22167   ac_status=$?
22168   grep -v '^ *+' conftest.er1 >conftest.err
22169   rm -f conftest.er1
22170   cat conftest.err >&5
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); } && {
22173          test -z "$ac_c_werror_flag" ||
22174          test ! -s conftest.err
22175        } && test -s conftest.$ac_objext; then
22176   ac_cv_type_uint16_t=yes
22177 else
22178   echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22180
22181
22182 fi
22183
22184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22185
22186
22187 fi
22188 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22189 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22190
22191   if test "$ac_cv_type_uint16_t" != "yes"; then
22192          cat >>confdefs.h <<\_ACEOF
22193 #define uint16_t unsigned short
22194 _ACEOF
22195
22196   fi
22197
22198
22199
22200   { echo "$as_me:$LINENO: checking for uint32_t" >&5
22201 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22202 if test "${ac_cv_type_uint32_t+set}" = set; then
22203   echo $ECHO_N "(cached) $ECHO_C" >&6
22204 else
22205    ac_cv_type_uint32_t=no
22206       cat >conftest.$ac_ext <<_ACEOF
22207 /* confdefs.h.  */
22208 _ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h.  */
22212 #ifdef HAVE_INTTYPES_H
22213 #include <inttypes.h>
22214 #endif
22215 #ifdef HAVE_STDINT_H
22216 #include <stdint.h>
22217 #endif
22218
22219 int
22220 main ()
22221 {
22222 uint32_t foo
22223   ;
22224   return 0;
22225 }
22226 _ACEOF
22227 rm -f conftest.$ac_objext
22228 if { (ac_try="$ac_compile"
22229 case "(($ac_try" in
22230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231   *) ac_try_echo=$ac_try;;
22232 esac
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234   (eval "$ac_compile") 2>conftest.er1
22235   ac_status=$?
22236   grep -v '^ *+' conftest.er1 >conftest.err
22237   rm -f conftest.er1
22238   cat conftest.err >&5
22239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240   (exit $ac_status); } && {
22241          test -z "$ac_c_werror_flag" ||
22242          test ! -s conftest.err
22243        } && test -s conftest.$ac_objext; then
22244   ac_cv_type_uint32_t=yes
22245 else
22246   echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22248
22249
22250 fi
22251
22252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22253
22254
22255 fi
22256 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22257 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22258
22259   if test "$ac_cv_type_uint32_t" != "yes"; then
22260          cat >>confdefs.h <<\_ACEOF
22261 #define uint32_t unsigned int
22262 _ACEOF
22263
22264   fi
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291 for ac_func in \
22292         getopt_long \
22293         lockf \
22294         strsignal \
22295         sigaction \
22296         sigprocmask \
22297         pthread_sigmask \
22298         snprintf \
22299         vsnprintf \
22300         setsid \
22301         strncasecmp \
22302         strcasecmp \
22303         localtime_r \
22304         ctime_r \
22305         gmtime_r \
22306         strsep \
22307         inet_aton \
22308         inet_pton \
22309         inet_ntop \
22310         gethostname \
22311         setlinebuf \
22312         setvbuf \
22313         getusershell \
22314         initgroups \
22315         closefrom
22316
22317 do
22318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22322   echo $ECHO_N "(cached) $ECHO_C" >&6
22323 else
22324   cat >conftest.$ac_ext <<_ACEOF
22325 /* confdefs.h.  */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h.  */
22330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22332 #define $ac_func innocuous_$ac_func
22333
22334 /* System header to define __stub macros and hopefully few prototypes,
22335     which can conflict with char $ac_func (); below.
22336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22337     <limits.h> exists even on freestanding compilers.  */
22338
22339 #ifdef __STDC__
22340 # include <limits.h>
22341 #else
22342 # include <assert.h>
22343 #endif
22344
22345 #undef $ac_func
22346
22347 /* Override any GCC internal prototype to avoid an error.
22348    Use char because int might match the return type of a GCC
22349    builtin and then its argument prototype would still apply.  */
22350 #ifdef __cplusplus
22351 extern "C"
22352 #endif
22353 char $ac_func ();
22354 /* The GNU C library defines this for functions which it implements
22355     to always fail with ENOSYS.  Some functions are actually named
22356     something starting with __ and the normal name is an alias.  */
22357 #if defined __stub_$ac_func || defined __stub___$ac_func
22358 choke me
22359 #endif
22360
22361 int
22362 main ()
22363 {
22364 return $ac_func ();
22365   ;
22366   return 0;
22367 }
22368 _ACEOF
22369 rm -f conftest.$ac_objext conftest$ac_exeext
22370 if { (ac_try="$ac_link"
22371 case "(($ac_try" in
22372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373   *) ac_try_echo=$ac_try;;
22374 esac
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376   (eval "$ac_link") 2>conftest.er1
22377   ac_status=$?
22378   grep -v '^ *+' conftest.er1 >conftest.err
22379   rm -f conftest.er1
22380   cat conftest.err >&5
22381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); } && {
22383          test -z "$ac_c_werror_flag" ||
22384          test ! -s conftest.err
22385        } && test -s conftest$ac_exeext &&
22386        $as_test_x conftest$ac_exeext; then
22387   eval "$as_ac_var=yes"
22388 else
22389   echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22391
22392         eval "$as_ac_var=no"
22393 fi
22394
22395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22396       conftest$ac_exeext conftest.$ac_ext
22397 fi
22398 ac_res=`eval echo '${'$as_ac_var'}'`
22399                { echo "$as_me:$LINENO: result: $ac_res" >&5
22400 echo "${ECHO_T}$ac_res" >&6; }
22401 if test `eval echo '${'$as_ac_var'}'` = yes; then
22402   cat >>confdefs.h <<_ACEOF
22403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22404 _ACEOF
22405
22406 fi
22407 done
22408
22409 for ac_func in \
22410         crypt \
22411         strncasecmp \
22412         strcasecmp \
22413         inet_aton \
22414         gethostname \
22415         setlinebuf \
22416         getusershell \
22417         endusershell
22418
22419 do
22420 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22421 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
22422 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
22423   echo $ECHO_N "(cached) $ECHO_C" >&6
22424 else
22425   cat >conftest.$ac_ext <<_ACEOF
22426 /* confdefs.h.  */
22427 _ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h.  */
22431
22432 #include <stdio.h>
22433 #include <string.h>
22434 #ifdef HAVE_UNISTD_H
22435 #include <unistd.h>
22436 #endif
22437 #ifdef HAVE_CRYPT_H
22438 #include <crypt.h>
22439 #endif
22440 #ifdef HAVE_ERRNO_H
22441 #include <errno.h>
22442 #endif
22443 #ifdef HAVE_RESOURCE_H
22444 #include <resource.h>
22445 #endif
22446 #ifdef HAVE_GETOPT_H
22447 #include <getopt.h>
22448 #endif
22449 #ifdef HAVE_MALLOC_H
22450 #include <malloc.h>
22451 #endif
22452 #ifdef HAVE_UTMP_H
22453 #include <utmp.h>
22454 #endif
22455 #ifdef HAVE_UTMPX_H
22456 #include <utmpx.h>
22457 #endif
22458 #ifdef HAVE_SYS_SELECT_H
22459 #include <sys/select.h>
22460 #endif
22461 #ifdef HAVE_DLFCN_H
22462 #include <dlfcn.h>
22463 #endif
22464 #ifdef HAVE_REGEX_H
22465 #include <regex.h>
22466 #endif
22467 #ifdef HAVE_SYSLOG_H
22468 #include <syslog.h>
22469 #endif
22470 #ifdef HAVE_INTTYPES_H
22471 #include <inttypes.h>
22472 #endif
22473 #ifdef HAVE_STDINT_H
22474 #include <stdint.h>
22475 #endif
22476 #ifdef HAVE_ARPA_INET_H
22477 #include <arpa/inet.h>
22478 #endif
22479
22480 int
22481 main ()
22482 {
22483 char *(*pfn) = (char *(*)) $ac_func
22484   ;
22485   return 0;
22486 }
22487 _ACEOF
22488 rm -f conftest.$ac_objext
22489 if { (ac_try="$ac_compile"
22490 case "(($ac_try" in
22491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492   *) ac_try_echo=$ac_try;;
22493 esac
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495   (eval "$ac_compile") 2>conftest.er1
22496   ac_status=$?
22497   grep -v '^ *+' conftest.er1 >conftest.err
22498   rm -f conftest.er1
22499   cat conftest.err >&5
22500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501   (exit $ac_status); } && {
22502          test -z "$ac_c_werror_flag" ||
22503          test ! -s conftest.err
22504        } && test -s conftest.$ac_objext; then
22505   eval "radius_cv_decl_needed_$ac_func=no"
22506 else
22507   echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22509
22510         eval "radius_cv_decl_needed_$ac_func=yes"
22511 fi
22512
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514 fi
22515
22516 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22517   { echo "$as_me:$LINENO: result: yes" >&5
22518 echo "${ECHO_T}yes" >&6; }
22519   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22520   cat >>confdefs.h <<_ACEOF
22521 #define $radius_tr_decl 1
22522 _ACEOF
22523
22524 else
22525   { echo "$as_me:$LINENO: result: no" >&5
22526 echo "${ECHO_T}no" >&6; }
22527 fi
22528
22529 done
22530
22531
22532 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22533 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22534 if test "${ac_cv_type_signal+set}" = set; then
22535   echo $ECHO_N "(cached) $ECHO_C" >&6
22536 else
22537   cat >conftest.$ac_ext <<_ACEOF
22538 /* confdefs.h.  */
22539 _ACEOF
22540 cat confdefs.h >>conftest.$ac_ext
22541 cat >>conftest.$ac_ext <<_ACEOF
22542 /* end confdefs.h.  */
22543 #include <sys/types.h>
22544 #include <signal.h>
22545
22546 int
22547 main ()
22548 {
22549 return *(signal (0, 0)) (0) == 1;
22550   ;
22551   return 0;
22552 }
22553 _ACEOF
22554 rm -f conftest.$ac_objext
22555 if { (ac_try="$ac_compile"
22556 case "(($ac_try" in
22557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558   *) ac_try_echo=$ac_try;;
22559 esac
22560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561   (eval "$ac_compile") 2>conftest.er1
22562   ac_status=$?
22563   grep -v '^ *+' conftest.er1 >conftest.err
22564   rm -f conftest.er1
22565   cat conftest.err >&5
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); } && {
22568          test -z "$ac_c_werror_flag" ||
22569          test ! -s conftest.err
22570        } && test -s conftest.$ac_objext; then
22571   ac_cv_type_signal=int
22572 else
22573   echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22575
22576         ac_cv_type_signal=void
22577 fi
22578
22579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22580 fi
22581 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22582 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22583
22584 cat >>confdefs.h <<_ACEOF
22585 #define RETSIGTYPE $ac_cv_type_signal
22586 _ACEOF
22587
22588
22589
22590 if test "x$ac_cv_header_utmpx_h" = "xyes"
22591 then
22592
22593   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22594 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
22595
22596
22597   cat >conftest.$ac_ext <<_ACEOF
22598 /* confdefs.h.  */
22599 _ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h.  */
22603
22604 #include <utmpx.h>
22605 #ifndef offsetof
22606 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22607 #endif
22608
22609 int
22610 main ()
22611 {
22612  int foo = offsetof(struct utmpx, ut_xtime)
22613   ;
22614   return 0;
22615 }
22616 _ACEOF
22617 rm -f conftest.$ac_objext
22618 if { (ac_try="$ac_compile"
22619 case "(($ac_try" in
22620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621   *) ac_try_echo=$ac_try;;
22622 esac
22623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22624   (eval "$ac_compile") 2>conftest.er1
22625   ac_status=$?
22626   grep -v '^ *+' conftest.er1 >conftest.err
22627   rm -f conftest.er1
22628   cat conftest.err >&5
22629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630   (exit $ac_status); } && {
22631          test -z "$ac_c_werror_flag" ||
22632          test ! -s conftest.err
22633        } && test -s conftest.$ac_objext; then
22634   has_element=" "
22635 else
22636   echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22638
22639         has_element=
22640 fi
22641
22642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22643
22644   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22645   if test "x$has_element" != "x"; then
22646     { echo "$as_me:$LINENO: result: yes" >&5
22647 echo "${ECHO_T}yes" >&6; }
22648     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22649   else
22650     { echo "$as_me:$LINENO: result: no" >&5
22651 echo "${ECHO_T}no" >&6; }
22652     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22653  fi
22654
22655  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22656  then
22657    cat >>confdefs.h <<\_ACEOF
22658 #define ut_xtime ut_tv.tv_sec
22659 _ACEOF
22660
22661  fi
22662 fi
22663
22664
22665   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22666 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
22667
22668
22669   cat >conftest.$ac_ext <<_ACEOF
22670 /* confdefs.h.  */
22671 _ACEOF
22672 cat confdefs.h >>conftest.$ac_ext
22673 cat >>conftest.$ac_ext <<_ACEOF
22674 /* end confdefs.h.  */
22675
22676 #include <netinet/in.h>
22677 #ifndef offsetof
22678 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22679 #endif
22680
22681 int
22682 main ()
22683 {
22684  int foo = offsetof(struct in_pktinfo, ipi_addr)
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          test -z "$ac_c_werror_flag" ||
22704          test ! -s conftest.err
22705        } && test -s conftest.$ac_objext; then
22706   has_element=" "
22707 else
22708   echo "$as_me: failed program was:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22710
22711         has_element=
22712 fi
22713
22714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22715
22716   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22717   if test "x$has_element" != "x"; then
22718     { echo "$as_me:$LINENO: result: yes" >&5
22719 echo "${ECHO_T}yes" >&6; }
22720     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22721   else
22722     { echo "$as_me:$LINENO: result: no" >&5
22723 echo "${ECHO_T}no" >&6; }
22724     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22725  fi
22726
22727 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22728 then
22729         cat >>confdefs.h <<\_ACEOF
22730 #define HAVE_IP_PKTINFO 1
22731 _ACEOF
22732
22733 fi
22734
22735
22736 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22737 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22738 if test "${ac_cv_c_const+set}" = set; then
22739   echo $ECHO_N "(cached) $ECHO_C" >&6
22740 else
22741   cat >conftest.$ac_ext <<_ACEOF
22742 /* confdefs.h.  */
22743 _ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h.  */
22747
22748 int
22749 main ()
22750 {
22751 /* FIXME: Include the comments suggested by Paul. */
22752 #ifndef __cplusplus
22753   /* Ultrix mips cc rejects this.  */
22754   typedef int charset[2];
22755   const charset cs;
22756   /* SunOS 4.1.1 cc rejects this.  */
22757   char const *const *pcpcc;
22758   char **ppc;
22759   /* NEC SVR4.0.2 mips cc rejects this.  */
22760   struct point {int x, y;};
22761   static struct point const zero = {0,0};
22762   /* AIX XL C 1.02.0.0 rejects this.
22763      It does not let you subtract one const X* pointer from another in
22764      an arm of an if-expression whose if-part is not a constant
22765      expression */
22766   const char *g = "string";
22767   pcpcc = &g + (g ? g-g : 0);
22768   /* HPUX 7.0 cc rejects these. */
22769   ++pcpcc;
22770   ppc = (char**) pcpcc;
22771   pcpcc = (char const *const *) ppc;
22772   { /* SCO 3.2v4 cc rejects this.  */
22773     char *t;
22774     char const *s = 0 ? (char *) 0 : (char const *) 0;
22775
22776     *t++ = 0;
22777     if (s) return 0;
22778   }
22779   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22780     int x[] = {25, 17};
22781     const int *foo = &x[0];
22782     ++foo;
22783   }
22784   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22785     typedef const int *iptr;
22786     iptr p = 0;
22787     ++p;
22788   }
22789   { /* AIX XL C 1.02.0.0 rejects this saying
22790        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22791     struct s { int j; const int *ap[3]; };
22792     struct s *b; b->j = 5;
22793   }
22794   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22795     const int foo = 10;
22796     if (!foo) return 0;
22797   }
22798   return !cs[0] && !zero.x;
22799 #endif
22800
22801   ;
22802   return 0;
22803 }
22804 _ACEOF
22805 rm -f conftest.$ac_objext
22806 if { (ac_try="$ac_compile"
22807 case "(($ac_try" in
22808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22809   *) ac_try_echo=$ac_try;;
22810 esac
22811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22812   (eval "$ac_compile") 2>conftest.er1
22813   ac_status=$?
22814   grep -v '^ *+' conftest.er1 >conftest.err
22815   rm -f conftest.er1
22816   cat conftest.err >&5
22817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818   (exit $ac_status); } && {
22819          test -z "$ac_c_werror_flag" ||
22820          test ! -s conftest.err
22821        } && test -s conftest.$ac_objext; then
22822   ac_cv_c_const=yes
22823 else
22824   echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22826
22827         ac_cv_c_const=no
22828 fi
22829
22830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22831 fi
22832 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22833 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22834 if test $ac_cv_c_const = no; then
22835
22836 cat >>confdefs.h <<\_ACEOF
22837 #define const
22838 _ACEOF
22839
22840 fi
22841
22842
22843 { echo "$as_me:$LINENO: checking type of OS" >&5
22844 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
22845 OS=`uname -s`
22846 { echo "$as_me:$LINENO: result: $OS" >&5
22847 echo "${ECHO_T}$OS" >&6; }
22848 if test "$OS" = "OS/2"; then
22849         LIBPREFIX=
22850 else
22851         LIBPREFIX=lib
22852 fi
22853
22854
22855 if test "x$GCC" = "xyes"; then
22856     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22857 fi
22858
22859 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22860 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
22861 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22862   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22863   CFLAGS="$CFLAGS $devflags"
22864   INSTALLSTRIP=""
22865   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
22866 echo "${ECHO_T}yes.  Using $devflags" >&6; }
22867 else
22868   devflags=""
22869   CFLAGS="$CFLAGS -DNDEBUG"
22870   INSTALLSTRIP="-s"
22871   { echo "$as_me:$LINENO: result: no." >&5
22872 echo "${ECHO_T}no." >&6; }
22873 fi
22874
22875
22876 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22877 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22878 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22879   echo $ECHO_N "(cached) $ECHO_C" >&6
22880 else
22881   ac_check_lib_save_LIBS=$LIBS
22882 LIBS="-lcrypt  $LIBS"
22883 cat >conftest.$ac_ext <<_ACEOF
22884 /* confdefs.h.  */
22885 _ACEOF
22886 cat confdefs.h >>conftest.$ac_ext
22887 cat >>conftest.$ac_ext <<_ACEOF
22888 /* end confdefs.h.  */
22889
22890 /* Override any GCC internal prototype to avoid an error.
22891    Use char because int might match the return type of a GCC
22892    builtin and then its argument prototype would still apply.  */
22893 #ifdef __cplusplus
22894 extern "C"
22895 #endif
22896 char crypt ();
22897 int
22898 main ()
22899 {
22900 return crypt ();
22901   ;
22902   return 0;
22903 }
22904 _ACEOF
22905 rm -f conftest.$ac_objext conftest$ac_exeext
22906 if { (ac_try="$ac_link"
22907 case "(($ac_try" in
22908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909   *) ac_try_echo=$ac_try;;
22910 esac
22911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912   (eval "$ac_link") 2>conftest.er1
22913   ac_status=$?
22914   grep -v '^ *+' conftest.er1 >conftest.err
22915   rm -f conftest.er1
22916   cat conftest.err >&5
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); } && {
22919          test -z "$ac_c_werror_flag" ||
22920          test ! -s conftest.err
22921        } && test -s conftest$ac_exeext &&
22922        $as_test_x conftest$ac_exeext; then
22923   ac_cv_lib_crypt_crypt=yes
22924 else
22925   echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22927
22928         ac_cv_lib_crypt_crypt=no
22929 fi
22930
22931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22932       conftest$ac_exeext conftest.$ac_ext
22933 LIBS=$ac_check_lib_save_LIBS
22934 fi
22935 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22936 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22937 if test $ac_cv_lib_crypt_crypt = yes; then
22938   CRYPTLIB="-lcrypt"
22939
22940 fi
22941
22942 if test "$CRYPTLIB" != ""; then
22943   cat >>confdefs.h <<\_ACEOF
22944 #define HAVE_CRYPT 1
22945 _ACEOF
22946
22947 else
22948   { echo "$as_me:$LINENO: checking for crypt" >&5
22949 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
22950 if test "${ac_cv_func_crypt+set}" = set; then
22951   echo $ECHO_N "(cached) $ECHO_C" >&6
22952 else
22953   cat >conftest.$ac_ext <<_ACEOF
22954 /* confdefs.h.  */
22955 _ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h.  */
22959 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22961 #define crypt innocuous_crypt
22962
22963 /* System header to define __stub macros and hopefully few prototypes,
22964     which can conflict with char crypt (); below.
22965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22966     <limits.h> exists even on freestanding compilers.  */
22967
22968 #ifdef __STDC__
22969 # include <limits.h>
22970 #else
22971 # include <assert.h>
22972 #endif
22973
22974 #undef crypt
22975
22976 /* Override any GCC internal prototype to avoid an error.
22977    Use char because int might match the return type of a GCC
22978    builtin and then its argument prototype would still apply.  */
22979 #ifdef __cplusplus
22980 extern "C"
22981 #endif
22982 char crypt ();
22983 /* The GNU C library defines this for functions which it implements
22984     to always fail with ENOSYS.  Some functions are actually named
22985     something starting with __ and the normal name is an alias.  */
22986 #if defined __stub_crypt || defined __stub___crypt
22987 choke me
22988 #endif
22989
22990 int
22991 main ()
22992 {
22993 return crypt ();
22994   ;
22995   return 0;
22996 }
22997 _ACEOF
22998 rm -f conftest.$ac_objext conftest$ac_exeext
22999 if { (ac_try="$ac_link"
23000 case "(($ac_try" in
23001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002   *) ac_try_echo=$ac_try;;
23003 esac
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005   (eval "$ac_link") 2>conftest.er1
23006   ac_status=$?
23007   grep -v '^ *+' conftest.er1 >conftest.err
23008   rm -f conftest.er1
23009   cat conftest.err >&5
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); } && {
23012          test -z "$ac_c_werror_flag" ||
23013          test ! -s conftest.err
23014        } && test -s conftest$ac_exeext &&
23015        $as_test_x conftest$ac_exeext; then
23016   ac_cv_func_crypt=yes
23017 else
23018   echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23020
23021         ac_cv_func_crypt=no
23022 fi
23023
23024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23025       conftest$ac_exeext conftest.$ac_ext
23026 fi
23027 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23028 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
23029 if test $ac_cv_func_crypt = yes; then
23030   cat >>confdefs.h <<\_ACEOF
23031 #define HAVE_CRYPT 1
23032 _ACEOF
23033
23034 fi
23035
23036 fi
23037
23038 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23039 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
23040 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23041   echo $ECHO_N "(cached) $ECHO_C" >&6
23042 else
23043   ac_check_lib_save_LIBS=$LIBS
23044 LIBS="-lcipher  $LIBS"
23045 cat >conftest.$ac_ext <<_ACEOF
23046 /* confdefs.h.  */
23047 _ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h.  */
23051
23052 /* Override any GCC internal prototype to avoid an error.
23053    Use char because int might match the return type of a GCC
23054    builtin and then its argument prototype would still apply.  */
23055 #ifdef __cplusplus
23056 extern "C"
23057 #endif
23058 char setkey ();
23059 int
23060 main ()
23061 {
23062 return setkey ();
23063   ;
23064   return 0;
23065 }
23066 _ACEOF
23067 rm -f conftest.$ac_objext conftest$ac_exeext
23068 if { (ac_try="$ac_link"
23069 case "(($ac_try" in
23070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071   *) ac_try_echo=$ac_try;;
23072 esac
23073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074   (eval "$ac_link") 2>conftest.er1
23075   ac_status=$?
23076   grep -v '^ *+' conftest.er1 >conftest.err
23077   rm -f conftest.er1
23078   cat conftest.err >&5
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); } && {
23081          test -z "$ac_c_werror_flag" ||
23082          test ! -s conftest.err
23083        } && test -s conftest$ac_exeext &&
23084        $as_test_x conftest$ac_exeext; then
23085   ac_cv_lib_cipher_setkey=yes
23086 else
23087   echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23089
23090         ac_cv_lib_cipher_setkey=no
23091 fi
23092
23093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23094       conftest$ac_exeext conftest.$ac_ext
23095 LIBS=$ac_check_lib_save_LIBS
23096 fi
23097 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23098 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
23099 if test $ac_cv_lib_cipher_setkey = yes; then
23100   CRYPTLIB="${CRYPTLIB} -lcipher"
23101
23102 fi
23103
23104
23105
23106 if test "x$WITH_SNMP" = "xyes"; then
23107
23108
23109
23110
23111 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23112 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
23113
23114 cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h.  */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h.  */
23120
23121 #ifdef HAVE_SYS_TYPES_H
23122 #include <sys/types.h>
23123 #endif
23124 #ifdef HAVE_STDINT_H
23125 #include <stdint.h>
23126 #endif
23127 #ifdef HAVE_STDIO_H
23128 #include <stdio.h>
23129 #endif
23130 #ifdef HAVE_NETDB_H
23131 #include <netdb.h>
23132 #endif
23133 #ifdef HAVE_UNISTD_H
23134 #include <unistd.h>
23135 #endif
23136 #include <ucd-snmp/ucd-snmp-config.h>
23137 #include <ucd-snmp/asn1.h>
23138 #include <ucd-snmp/snmp.h>
23139 #include <ucd-snmp/snmp_impl.h>
23140 int
23141 main ()
23142 {
23143  int a = 1;
23144   ;
23145   return 0;
23146 }
23147 _ACEOF
23148 rm -f conftest.$ac_objext
23149 if { (ac_try="$ac_compile"
23150 case "(($ac_try" in
23151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23152   *) ac_try_echo=$ac_try;;
23153 esac
23154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23155   (eval "$ac_compile") 2>conftest.er1
23156   ac_status=$?
23157   grep -v '^ *+' conftest.er1 >conftest.err
23158   rm -f conftest.er1
23159   cat conftest.err >&5
23160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161   (exit $ac_status); } && {
23162          test -z "$ac_c_werror_flag" ||
23163          test ! -s conftest.err
23164        } && test -s conftest.$ac_objext; then
23165   SNMP_INCLUDE="";ucdsnmp=yes
23166 else
23167   echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23169
23170         ucdsnmp=
23171 fi
23172
23173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23174
23175 if test "x$ucdsnmp" = "x"; then
23176   old_CFLAGS="$CFLAGS"
23177   for try in /usr/include /usr/local/include $with_snmp_include_dir; do
23178     CFLAGS="$old_CFLAGS -I$try"
23179     cat >conftest.$ac_ext <<_ACEOF
23180 /* confdefs.h.  */
23181 _ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h.  */
23185
23186 #ifdef HAVE_SYS_TYPES_H
23187 #include <sys/types.h>
23188 #endif
23189 #ifdef HAVE_STDINT_H
23190 #include <stdint.h>
23191 #endif
23192 #ifdef HAVE_STDIO_H
23193 #include <stdio.h>
23194 #endif
23195 #ifdef HAVE_NETDB_H
23196 #include <netdb.h>
23197 #endif
23198 #ifdef HAVE_UNISTD_H
23199 #include <unistd.h>
23200 #endif
23201 #include <ucd-snmp/ucd-snmp-config.h>
23202 #include <ucd-snmp/asn1.h>
23203 #include <ucd-snmp/snmp.h>
23204 #include <ucd-snmp/snmp_impl.h>
23205 int
23206 main ()
23207 {
23208  int a = 1;
23209   ;
23210   return 0;
23211 }
23212 _ACEOF
23213 rm -f conftest.$ac_objext
23214 if { (ac_try="$ac_compile"
23215 case "(($ac_try" in
23216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217   *) ac_try_echo=$ac_try;;
23218 esac
23219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23220   (eval "$ac_compile") 2>conftest.er1
23221   ac_status=$?
23222   grep -v '^ *+' conftest.er1 >conftest.err
23223   rm -f conftest.er1
23224   cat conftest.err >&5
23225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226   (exit $ac_status); } && {
23227          test -z "$ac_c_werror_flag" ||
23228          test ! -s conftest.err
23229        } && test -s conftest.$ac_objext; then
23230   SNMP_INCLUDE="-I$try";ucdsnmp=yes
23231 else
23232   echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23234
23235         ucdsnmp=
23236 fi
23237
23238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23239     if test "x$ucdsnmp" != "x"; then
23240       break;
23241     fi
23242   done
23243   CFLAGS="$old_CFLAGS"
23244 fi
23245
23246 if test "x$ucdsnmp" = "x"; then
23247   old_CFLAGS="$CFLAGS"
23248   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
23249     CFLAGS="$old_CFLAGS -I$try"
23250 cat >conftest.$ac_ext <<_ACEOF
23251 /* confdefs.h.  */
23252 _ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h.  */
23256
23257 #ifdef HAVE_SYS_TYPES_H
23258 #include <sys/types.h>
23259 #endif
23260 #ifdef HAVE_STDINT_H
23261 #include <stdint.h>
23262 #endif
23263 #ifdef HAVE_STDIO_H
23264 #include <stdio.h>
23265 #endif
23266 #ifdef HAVE_NETDB_H
23267 #include <netdb.h>
23268 #endif
23269 #ifdef HAVE_UNISTD_H
23270 #include <unistd.h>
23271 #endif
23272 #include <asn1.h>
23273 #include <snmp.h>
23274 #include <snmp_impl.h>
23275 int
23276 main ()
23277 {
23278  int a = 1;
23279   ;
23280   return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext
23284 if { (ac_try="$ac_compile"
23285 case "(($ac_try" in
23286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287   *) ac_try_echo=$ac_try;;
23288 esac
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290   (eval "$ac_compile") 2>conftest.er1
23291   ac_status=$?
23292   grep -v '^ *+' conftest.er1 >conftest.err
23293   rm -f conftest.er1
23294   cat conftest.err >&5
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); } && {
23297          test -z "$ac_c_werror_flag" ||
23298          test ! -s conftest.err
23299        } && test -s conftest.$ac_objext; then
23300   SNMP_INCLUDE="";ucdsnmp=no
23301 else
23302   echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23304
23305         ucdsnmp=
23306 fi
23307
23308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23309     if test "x$ucdsnmp" != "x"; then
23310       break;
23311     fi
23312   done
23313   CFLAGS="$old_CFLAGS"
23314 fi
23315
23316 if test "x$ucdsnmp" = "x"; then
23317   old_CFLAGS="$CFLAGS"
23318   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
23319     CFLAGS="$old_CFLAGS -I$try"
23320     cat >conftest.$ac_ext <<_ACEOF
23321 /* confdefs.h.  */
23322 _ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h.  */
23326
23327 #ifdef HAVE_SYS_TYPES_H
23328 #include <sys/types.h>
23329 #endif
23330 #ifdef HAVE_STDINT_H
23331 #include <stdint.h>
23332 #endif
23333 #ifdef HAVE_STDIO_H
23334 #include <stdio.h>
23335 #endif
23336 #ifdef HAVE_NETDB_H
23337 #include <netdb.h>
23338 #endif
23339 #ifdef HAVE_UNISTD_H
23340 #include <unistd.h>
23341 #endif
23342 #include <asn1.h>
23343 #include <snmp.h>
23344 #include <snmp_impl.h>
23345 int
23346 main ()
23347 {
23348  int a = 1;
23349   ;
23350   return 0;
23351 }
23352 _ACEOF
23353 rm -f conftest.$ac_objext
23354 if { (ac_try="$ac_compile"
23355 case "(($ac_try" in
23356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23357   *) ac_try_echo=$ac_try;;
23358 esac
23359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23360   (eval "$ac_compile") 2>conftest.er1
23361   ac_status=$?
23362   grep -v '^ *+' conftest.er1 >conftest.err
23363   rm -f conftest.er1
23364   cat conftest.err >&5
23365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366   (exit $ac_status); } && {
23367          test -z "$ac_c_werror_flag" ||
23368          test ! -s conftest.err
23369        } && test -s conftest.$ac_objext; then
23370   SNMP_INCLUDE="-I$try";ucdsnmp=no
23371 else
23372   echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23374
23375         ucdsnmp=
23376 fi
23377
23378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23379     if test "x$ucdsnmp" != "x"; then
23380       break;
23381     fi
23382   done
23383   CFLAGS="$old_CFLAGS"
23384 fi
23385
23386 if test "x$ucdsnmp" = "x"; then
23387   { echo "$as_me:$LINENO: result: no" >&5
23388 echo "${ECHO_T}no" >&6; }
23389 else
23390   if test "x$ucdsnmp" = "xyes"; then
23391     { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23392 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
23393     cat >>confdefs.h <<\_ACEOF
23394 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
23395 _ACEOF
23396
23397   else
23398     { echo "$as_me:$LINENO: result: yes" >&5
23399 echo "${ECHO_T}yes" >&6; }
23400     cat >>confdefs.h <<\_ACEOF
23401 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
23402 _ACEOF
23403
23404   fi
23405   { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23406 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
23407
23408   old_LIBS="$LIBS"
23409   LIBS="$old_LIBS -lsnmp"
23410   cat >conftest.$ac_ext <<_ACEOF
23411 /* confdefs.h.  */
23412 _ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h.  */
23416 extern char snmp_build_var_op();
23417 int
23418 main ()
23419 {
23420  snmp_build_var_op()
23421   ;
23422   return 0;
23423 }
23424 _ACEOF
23425 rm -f conftest.$ac_objext conftest$ac_exeext
23426 if { (ac_try="$ac_link"
23427 case "(($ac_try" in
23428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429   *) ac_try_echo=$ac_try;;
23430 esac
23431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432   (eval "$ac_link") 2>conftest.er1
23433   ac_status=$?
23434   grep -v '^ *+' conftest.er1 >conftest.err
23435   rm -f conftest.er1
23436   cat conftest.err >&5
23437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438   (exit $ac_status); } && {
23439          test -z "$ac_c_werror_flag" ||
23440          test ! -s conftest.err
23441        } && test -s conftest$ac_exeext &&
23442        $as_test_x conftest$ac_exeext; then
23443   SNMP_LIBS="-lsnmp"
23444 else
23445   echo "$as_me: failed program was:" >&5
23446 sed 's/^/| /' conftest.$ac_ext >&5
23447
23448         SNMP_LIBS=
23449 fi
23450
23451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23452       conftest$ac_exeext conftest.$ac_ext
23453
23454   if test "x$SNMP_LIBS" = "x"; then
23455     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23456       LIBS="$old_LIBS -L$try -lsnmp"
23457       cat >conftest.$ac_ext <<_ACEOF
23458 /* confdefs.h.  */
23459 _ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h.  */
23463 extern char snmp_build_var_op();
23464 int
23465 main ()
23466 {
23467  snmp_build_var_op()
23468   ;
23469   return 0;
23470 }
23471 _ACEOF
23472 rm -f conftest.$ac_objext conftest$ac_exeext
23473 if { (ac_try="$ac_link"
23474 case "(($ac_try" in
23475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476   *) ac_try_echo=$ac_try;;
23477 esac
23478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479   (eval "$ac_link") 2>conftest.er1
23480   ac_status=$?
23481   grep -v '^ *+' conftest.er1 >conftest.err
23482   rm -f conftest.er1
23483   cat conftest.err >&5
23484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485   (exit $ac_status); } && {
23486          test -z "$ac_c_werror_flag" ||
23487          test ! -s conftest.err
23488        } && test -s conftest$ac_exeext &&
23489        $as_test_x conftest$ac_exeext; then
23490   SNMP_LIBS="-L$try -lsnmp"
23491 else
23492   echo "$as_me: failed program was:" >&5
23493 sed 's/^/| /' conftest.$ac_ext >&5
23494
23495         SNMP_LIBS=
23496 fi
23497
23498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23499       conftest$ac_exeext conftest.$ac_ext
23500       if test "x$SNMP_LIBS" != "x"; then
23501         break;
23502       fi
23503       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23504       cat >conftest.$ac_ext <<_ACEOF
23505 /* confdefs.h.  */
23506 _ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h.  */
23510 extern char snmp_build_var_op();
23511 int
23512 main ()
23513 {
23514  snmp_build_var_op()
23515   ;
23516   return 0;
23517 }
23518 _ACEOF
23519 rm -f conftest.$ac_objext conftest$ac_exeext
23520 if { (ac_try="$ac_link"
23521 case "(($ac_try" in
23522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23523   *) ac_try_echo=$ac_try;;
23524 esac
23525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23526   (eval "$ac_link") 2>conftest.er1
23527   ac_status=$?
23528   grep -v '^ *+' conftest.er1 >conftest.err
23529   rm -f conftest.er1
23530   cat conftest.err >&5
23531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532   (exit $ac_status); } && {
23533          test -z "$ac_c_werror_flag" ||
23534          test ! -s conftest.err
23535        } && test -s conftest$ac_exeext &&
23536        $as_test_x conftest$ac_exeext; then
23537   SNMP_LIBS="-L$try -lsnmp -lcrypto"
23538 else
23539   echo "$as_me: failed program was:" >&5
23540 sed 's/^/| /' conftest.$ac_ext >&5
23541
23542         SNMP_LIBS=
23543 fi
23544
23545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23546       conftest$ac_exeext conftest.$ac_ext
23547       if test "x$SNMP_LIBS" != "x"; then
23548         break;
23549       fi
23550       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23551       cat >conftest.$ac_ext <<_ACEOF
23552 /* confdefs.h.  */
23553 _ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h.  */
23557 extern char snmp_build_var_op();
23558 int
23559 main ()
23560 {
23561  snmp_build_var_op()
23562   ;
23563   return 0;
23564 }
23565 _ACEOF
23566 rm -f conftest.$ac_objext conftest$ac_exeext
23567 if { (ac_try="$ac_link"
23568 case "(($ac_try" in
23569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570   *) ac_try_echo=$ac_try;;
23571 esac
23572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23573   (eval "$ac_link") 2>conftest.er1
23574   ac_status=$?
23575   grep -v '^ *+' conftest.er1 >conftest.err
23576   rm -f conftest.er1
23577   cat conftest.err >&5
23578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579   (exit $ac_status); } && {
23580          test -z "$ac_c_werror_flag" ||
23581          test ! -s conftest.err
23582        } && test -s conftest$ac_exeext &&
23583        $as_test_x conftest$ac_exeext; then
23584   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23585 else
23586   echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23588
23589         SNMP_LIBS=
23590 fi
23591
23592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23593       conftest$ac_exeext conftest.$ac_ext
23594       if test "x$SNMP_LIBS" != "x"; then
23595         break;
23596       fi
23597     done
23598   fi
23599   LIBS="$old_LIBS"
23600
23601           CFLAGS="$old_CFLAGS"
23602   if test "x$SNMP_LIBS" = "x"; then
23603     { echo "$as_me:$LINENO: result: no" >&5
23604 echo "${ECHO_T}no" >&6; }
23605     SNMP_INCLUDE=
23606   else
23607     { echo "$as_me:$LINENO: result: yes" >&5
23608 echo "${ECHO_T}yes" >&6; }
23609     cat >>confdefs.h <<\_ACEOF
23610 #define WITH_SNMP 1
23611 _ACEOF
23612
23613     cat >>confdefs.h <<\_ACEOF
23614 #define HAVE_LIBSNMP 1
23615 _ACEOF
23616
23617   fi
23618 fi
23619
23620 fi
23621
23622 gethostbyaddrrstyle=""
23623 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23624 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
23625 case "$host" in
23626 *-freebsd*)
23627         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
23628 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
23629 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
23630   echo $ECHO_N "(cached) $ECHO_C" >&6
23631 else
23632   cat >conftest.$ac_ext <<_ACEOF
23633 /* confdefs.h.  */
23634 _ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h.  */
23638
23639 #ifdef HAVE_NETDB_H
23640 #include <netdb.h>
23641 #endif
23642
23643
23644 int
23645 main ()
23646 {
23647 #ifndef gethostbyaddr_r
23648   (void) gethostbyaddr_r;
23649 #endif
23650
23651   ;
23652   return 0;
23653 }
23654 _ACEOF
23655 rm -f conftest.$ac_objext
23656 if { (ac_try="$ac_compile"
23657 case "(($ac_try" in
23658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23659   *) ac_try_echo=$ac_try;;
23660 esac
23661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23662   (eval "$ac_compile") 2>conftest.er1
23663   ac_status=$?
23664   grep -v '^ *+' conftest.er1 >conftest.err
23665   rm -f conftest.er1
23666   cat conftest.err >&5
23667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668   (exit $ac_status); } && {
23669          test -z "$ac_c_werror_flag" ||
23670          test ! -s conftest.err
23671        } && test -s conftest.$ac_objext; then
23672   ac_cv_have_decl_gethostbyaddr_r=yes
23673 else
23674   echo "$as_me: failed program was:" >&5
23675 sed 's/^/| /' conftest.$ac_ext >&5
23676
23677         ac_cv_have_decl_gethostbyaddr_r=no
23678 fi
23679
23680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23681 fi
23682 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
23683 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
23684 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
23685
23686 cat >>confdefs.h <<_ACEOF
23687 #define HAVE_DECL_GETHOSTBYADDR_R 1
23688 _ACEOF
23689
23690
23691 else
23692   cat >>confdefs.h <<_ACEOF
23693 #define HAVE_DECL_GETHOSTBYADDR_R 0
23694 _ACEOF
23695
23696
23697
23698 cat >>confdefs.h <<\_ACEOF
23699 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23700 _ACEOF
23701
23702                 gethostbyaddrrstyle=BSD
23703                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23704 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23705
23706 fi
23707
23708
23709         ;;
23710 esac
23711 if test "x$gethostbyaddrrstyle" = "x"; then
23712         cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h.  */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h.  */
23718
23719 #include <stdio.h>
23720 #include <netdb.h>
23721
23722 int
23723 main ()
23724 {
23725  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23726   ;
23727   return 0;
23728 }
23729 _ACEOF
23730 rm -f conftest.$ac_objext conftest$ac_exeext
23731 if { (ac_try="$ac_link"
23732 case "(($ac_try" in
23733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734   *) ac_try_echo=$ac_try;;
23735 esac
23736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737   (eval "$ac_link") 2>conftest.er1
23738   ac_status=$?
23739   grep -v '^ *+' conftest.er1 >conftest.err
23740   rm -f conftest.er1
23741   cat conftest.err >&5
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); } && {
23744          test -z "$ac_c_werror_flag" ||
23745          test ! -s conftest.err
23746        } && test -s conftest$ac_exeext &&
23747        $as_test_x conftest$ac_exeext; then
23748
23749         cat >>confdefs.h <<\_ACEOF
23750 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23751 _ACEOF
23752
23753         gethostbyaddrrstyle=GNU
23754
23755 else
23756   echo "$as_me: failed program was:" >&5
23757 sed 's/^/| /' conftest.$ac_ext >&5
23758
23759
23760 fi
23761
23762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23763       conftest$ac_exeext conftest.$ac_ext
23764 fi
23765 if test "x$gethostbyaddrrstyle" = "x"; then
23766         cat >conftest.$ac_ext <<_ACEOF
23767 /* confdefs.h.  */
23768 _ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h.  */
23772
23773 #include <stdio.h>
23774 #include <netdb.h>
23775
23776 int
23777 main ()
23778 {
23779  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23780   ;
23781   return 0;
23782 }
23783 _ACEOF
23784 rm -f conftest.$ac_objext conftest$ac_exeext
23785 if { (ac_try="$ac_link"
23786 case "(($ac_try" in
23787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788   *) ac_try_echo=$ac_try;;
23789 esac
23790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791   (eval "$ac_link") 2>conftest.er1
23792   ac_status=$?
23793   grep -v '^ *+' conftest.er1 >conftest.err
23794   rm -f conftest.er1
23795   cat conftest.err >&5
23796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797   (exit $ac_status); } && {
23798          test -z "$ac_c_werror_flag" ||
23799          test ! -s conftest.err
23800        } && test -s conftest$ac_exeext &&
23801        $as_test_x conftest$ac_exeext; then
23802
23803                 cat >>confdefs.h <<\_ACEOF
23804 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23805 _ACEOF
23806
23807                 gethostbyaddrrstyle=SYSV
23808
23809 else
23810   echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23812
23813
23814 fi
23815
23816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23817       conftest$ac_exeext conftest.$ac_ext
23818 fi
23819 if test "x$gethostbyaddrrstyle" = "x"; then
23820         cat >conftest.$ac_ext <<_ACEOF
23821 /* confdefs.h.  */
23822 _ACEOF
23823 cat confdefs.h >>conftest.$ac_ext
23824 cat >>conftest.$ac_ext <<_ACEOF
23825 /* end confdefs.h.  */
23826
23827 #include <stdio.h>
23828 #include <netdb.h>
23829
23830 int
23831 main ()
23832 {
23833  gethostbyaddr(NULL, 0, 0)
23834   ;
23835   return 0;
23836 }
23837 _ACEOF
23838 rm -f conftest.$ac_objext conftest$ac_exeext
23839 if { (ac_try="$ac_link"
23840 case "(($ac_try" in
23841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842   *) ac_try_echo=$ac_try;;
23843 esac
23844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23845   (eval "$ac_link") 2>conftest.er1
23846   ac_status=$?
23847   grep -v '^ *+' conftest.er1 >conftest.err
23848   rm -f conftest.er1
23849   cat conftest.err >&5
23850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851   (exit $ac_status); } && {
23852          test -z "$ac_c_werror_flag" ||
23853          test ! -s conftest.err
23854        } && test -s conftest$ac_exeext &&
23855        $as_test_x conftest$ac_exeext; then
23856
23857                 cat >>confdefs.h <<\_ACEOF
23858 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23859 _ACEOF
23860
23861                 gethostbyaddrrstyle=BSD
23862
23863 else
23864   echo "$as_me: failed program was:" >&5
23865 sed 's/^/| /' conftest.$ac_ext >&5
23866
23867
23868 fi
23869
23870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23871       conftest$ac_exeext conftest.$ac_ext
23872 fi
23873
23874 if test "x$gethostbyaddrrstyle" = "x"; then
23875         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23876 echo "${ECHO_T}none!  It must not exist, here." >&6; }
23877 else
23878         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23879 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
23880 fi
23881
23882 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23883         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23884 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23885 fi
23886
23887 gethostbynamerstyle=""
23888 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23889 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
23890 cat >conftest.$ac_ext <<_ACEOF
23891 /* confdefs.h.  */
23892 _ACEOF
23893 cat confdefs.h >>conftest.$ac_ext
23894 cat >>conftest.$ac_ext <<_ACEOF
23895 /* end confdefs.h.  */
23896
23897 #include <stdio.h>
23898 #include <netdb.h>
23899
23900 int
23901 main ()
23902 {
23903  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23904   ;
23905   return 0;
23906 }
23907 _ACEOF
23908 rm -f conftest.$ac_objext conftest$ac_exeext
23909 if { (ac_try="$ac_link"
23910 case "(($ac_try" in
23911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23912   *) ac_try_echo=$ac_try;;
23913 esac
23914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23915   (eval "$ac_link") 2>conftest.er1
23916   ac_status=$?
23917   grep -v '^ *+' conftest.er1 >conftest.err
23918   rm -f conftest.er1
23919   cat conftest.err >&5
23920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921   (exit $ac_status); } && {
23922          test -z "$ac_c_werror_flag" ||
23923          test ! -s conftest.err
23924        } && test -s conftest$ac_exeext &&
23925        $as_test_x conftest$ac_exeext; then
23926
23927         cat >>confdefs.h <<\_ACEOF
23928 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23929 _ACEOF
23930
23931         gethostbynamerstyle=GNU
23932
23933 else
23934   echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23936
23937
23938 fi
23939
23940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23941       conftest$ac_exeext conftest.$ac_ext
23942 if test "x$gethostbynamerstyle" = "x"; then
23943         cat >conftest.$ac_ext <<_ACEOF
23944 /* confdefs.h.  */
23945 _ACEOF
23946 cat confdefs.h >>conftest.$ac_ext
23947 cat >>conftest.$ac_ext <<_ACEOF
23948 /* end confdefs.h.  */
23949
23950 #include <stdio.h>
23951 #include <netdb.h>
23952
23953 int
23954 main ()
23955 {
23956  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23957   ;
23958   return 0;
23959 }
23960 _ACEOF
23961 rm -f conftest.$ac_objext conftest$ac_exeext
23962 if { (ac_try="$ac_link"
23963 case "(($ac_try" in
23964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965   *) ac_try_echo=$ac_try;;
23966 esac
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968   (eval "$ac_link") 2>conftest.er1
23969   ac_status=$?
23970   grep -v '^ *+' conftest.er1 >conftest.err
23971   rm -f conftest.er1
23972   cat conftest.err >&5
23973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974   (exit $ac_status); } && {
23975          test -z "$ac_c_werror_flag" ||
23976          test ! -s conftest.err
23977        } && test -s conftest$ac_exeext &&
23978        $as_test_x conftest$ac_exeext; then
23979
23980                 cat >>confdefs.h <<\_ACEOF
23981 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23982 _ACEOF
23983
23984                 gethostbynamerstyle=SYSV
23985
23986 else
23987   echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23989
23990
23991 fi
23992
23993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23994       conftest$ac_exeext conftest.$ac_ext
23995 fi
23996 if test "x$gethostbynamerstyle" = "x"; then
23997         cat >conftest.$ac_ext <<_ACEOF
23998 /* confdefs.h.  */
23999 _ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>conftest.$ac_ext <<_ACEOF
24002 /* end confdefs.h.  */
24003
24004 #include <stdio.h>
24005 #include <netdb.h>
24006
24007 int
24008 main ()
24009 {
24010  gethostbyname(NULL)
24011   ;
24012   return 0;
24013 }
24014 _ACEOF
24015 rm -f conftest.$ac_objext conftest$ac_exeext
24016 if { (ac_try="$ac_link"
24017 case "(($ac_try" in
24018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24019   *) ac_try_echo=$ac_try;;
24020 esac
24021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24022   (eval "$ac_link") 2>conftest.er1
24023   ac_status=$?
24024   grep -v '^ *+' conftest.er1 >conftest.err
24025   rm -f conftest.er1
24026   cat conftest.err >&5
24027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028   (exit $ac_status); } && {
24029          test -z "$ac_c_werror_flag" ||
24030          test ! -s conftest.err
24031        } && test -s conftest$ac_exeext &&
24032        $as_test_x conftest$ac_exeext; then
24033
24034                 cat >>confdefs.h <<\_ACEOF
24035 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24036 _ACEOF
24037
24038                 gethostbynamerstyle=BSD
24039
24040 else
24041   echo "$as_me: failed program was:" >&5
24042 sed 's/^/| /' conftest.$ac_ext >&5
24043
24044
24045 fi
24046
24047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24048       conftest$ac_exeext conftest.$ac_ext
24049 fi
24050
24051 if test "x$gethostbynamerstyle" = "x"; then
24052         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24053 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24054 else
24055         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24056 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
24057 fi
24058
24059 if test "x$gethostbynamerstyle" = "xBSD"; then
24060         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24061 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24062 fi
24063
24064 ctimerstyle=""
24065 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24066 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
24067 cat >conftest.$ac_ext <<_ACEOF
24068 /* confdefs.h.  */
24069 _ACEOF
24070 cat confdefs.h >>conftest.$ac_ext
24071 cat >>conftest.$ac_ext <<_ACEOF
24072 /* end confdefs.h.  */
24073
24074 #include <time.h>
24075
24076 int
24077 main ()
24078 {
24079  ctime_r(NULL, NULL, 0)
24080   ;
24081   return 0;
24082 }
24083 _ACEOF
24084 rm -f conftest.$ac_objext conftest$ac_exeext
24085 if { (ac_try="$ac_link"
24086 case "(($ac_try" in
24087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24088   *) ac_try_echo=$ac_try;;
24089 esac
24090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24091   (eval "$ac_link") 2>conftest.er1
24092   ac_status=$?
24093   grep -v '^ *+' conftest.er1 >conftest.err
24094   rm -f conftest.er1
24095   cat conftest.err >&5
24096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097   (exit $ac_status); } && {
24098          test -z "$ac_c_werror_flag" ||
24099          test ! -s conftest.err
24100        } && test -s conftest$ac_exeext &&
24101        $as_test_x conftest$ac_exeext; then
24102
24103         cat >>confdefs.h <<\_ACEOF
24104 #define CTIMERSTYLE SOLARISSTYLE
24105 _ACEOF
24106
24107         ctimerstyle="SOLARIS"
24108
24109 else
24110   echo "$as_me: failed program was:" >&5
24111 sed 's/^/| /' conftest.$ac_ext >&5
24112
24113
24114 fi
24115
24116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24117       conftest$ac_exeext conftest.$ac_ext
24118 if test "x$ctimerstyle" = "x"; then
24119         cat >conftest.$ac_ext <<_ACEOF
24120 /* confdefs.h.  */
24121 _ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h.  */
24125
24126 #include <time.h>
24127
24128 int
24129 main ()
24130 {
24131  ctime_r(NULL, NULL)
24132   ;
24133   return 0;
24134 }
24135 _ACEOF
24136 rm -f conftest.$ac_objext conftest$ac_exeext
24137 if { (ac_try="$ac_link"
24138 case "(($ac_try" in
24139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24140   *) ac_try_echo=$ac_try;;
24141 esac
24142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24143   (eval "$ac_link") 2>conftest.er1
24144   ac_status=$?
24145   grep -v '^ *+' conftest.er1 >conftest.err
24146   rm -f conftest.er1
24147   cat conftest.err >&5
24148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149   (exit $ac_status); } && {
24150          test -z "$ac_c_werror_flag" ||
24151          test ! -s conftest.err
24152        } && test -s conftest$ac_exeext &&
24153        $as_test_x conftest$ac_exeext; then
24154
24155                 cat >>confdefs.h <<\_ACEOF
24156 #define CTIMERSTYLE POSIXSTYLE
24157 _ACEOF
24158
24159                 ctimerstyle="POSIX"
24160
24161 else
24162   echo "$as_me: failed program was:" >&5
24163 sed 's/^/| /' conftest.$ac_ext >&5
24164
24165
24166 fi
24167
24168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24169       conftest$ac_exeext conftest.$ac_ext
24170 fi
24171
24172 if test "x$ctimerstyle" = "x"; then
24173         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24174 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24175 else
24176         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24177 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
24178 fi
24179
24180
24181 if test x"$rad_enable_largefiles" = xyes ; then
24182     { echo "$as_me:$LINENO: checking for largefile linkage" >&5
24183 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6; }
24184     case "$host" in
24185     *-aix4.01*)
24186         { echo "$as_me:$LINENO: result: no" >&5
24187 echo "${ECHO_T}no" >&6; }
24188         { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
24189 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
24190    { (exit 1); exit 1; }; }
24191         ;;
24192     *-aix4*)
24193         { echo "$as_me:$LINENO: result: ok" >&5
24194 echo "${ECHO_T}ok" >&6; }
24195         LFS_CFLAGS="-D_LARGE_FILES"
24196         LFS_LDFLAGS=""
24197         LFS_LIBS=""
24198         ;;
24199     *-hpux*)
24200         { echo "$as_me:$LINENO: result: ok" >&5
24201 echo "${ECHO_T}ok" >&6; }
24202         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24203         LFS_LDFLAGS=""
24204         LFS_LIBS=""
24205         ;;
24206     *-irix*)
24207         { echo "$as_me:$LINENO: result: no" >&5
24208 echo "${ECHO_T}no" >&6; }
24209         { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
24210 echo "$as_me: error: Large files not supported on this platform" >&2;}
24211    { (exit 1); exit 1; }; }
24212         ;;
24213     *-linux*)
24214         { echo "$as_me:$LINENO: result: maybe" >&5
24215 echo "${ECHO_T}maybe" >&6; }
24216         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24217         LFS_LDFLAGS=""
24218         LFS_LIBS=""
24219
24220 cat >>confdefs.h <<\_ACEOF
24221 #define _GNU_SOURCE 1
24222 _ACEOF
24223
24224         ;;
24225     *-solaris*)
24226         { echo "$as_me:$LINENO: result: ok" >&5
24227 echo "${ECHO_T}ok" >&6; }
24228         # Extract the first word of "getconf", so it can be a program name with args.
24229 set dummy getconf; ac_word=$2
24230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24232 if test "${ac_cv_path_GETCONF+set}" = set; then
24233   echo $ECHO_N "(cached) $ECHO_C" >&6
24234 else
24235   case $GETCONF in
24236   [\\/]* | ?:[\\/]*)
24237   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
24238   ;;
24239   *)
24240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24241 for as_dir in $PATH
24242 do
24243   IFS=$as_save_IFS
24244   test -z "$as_dir" && as_dir=.
24245   for ac_exec_ext in '' $ac_executable_extensions; do
24246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24247     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
24248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24249     break 2
24250   fi
24251 done
24252 done
24253 IFS=$as_save_IFS
24254
24255   ;;
24256 esac
24257 fi
24258 GETCONF=$ac_cv_path_GETCONF
24259 if test -n "$GETCONF"; then
24260   { echo "$as_me:$LINENO: result: $GETCONF" >&5
24261 echo "${ECHO_T}$GETCONF" >&6; }
24262 else
24263   { echo "$as_me:$LINENO: result: no" >&5
24264 echo "${ECHO_T}no" >&6; }
24265 fi
24266
24267
24268         if test -z "$GETCONF" ; then
24269             { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
24270 echo "$as_me: error: getconf required to configure large file support" >&2;}
24271    { (exit 1); exit 1; }; }
24272         fi
24273         LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
24274         LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
24275         LFS_LIBS=`$GETCONF LFS_LIBS`
24276         ;;
24277     *)
24278         { echo "$as_me:$LINENO: result: maybe" >&5
24279 echo "${ECHO_T}maybe" >&6; }
24280         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24281         LFS_LDFLAGS=""
24282         LFS_LIBS=""
24283         ;;
24284     esac
24285
24286
24287
24288 fi
24289
24290 HOSTINFO=$host
24291
24292
24293
24294 top_builddir=`pwd`
24295 export top_builddir
24296 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24297 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
24298
24299
24300
24301
24302
24303 mysubdirs=
24304 if test "x$EXPERIMENTAL" = "xyes"; then
24305   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
24306     mysubdirs=`echo $bar`
24307 else
24308         for bar in `cat src/modules/stable`; do
24309     if test -f src/modules/$bar/configure; then
24310       mysubdirs="$mysubdirs src/modules/$bar"
24311     fi
24312   done
24313 fi
24314
24315 if test "x$EXPERIMENTAL" = "xyes"; then
24316   for foo in `ls -1 src/modules | grep rlm_`; do
24317     MODULES="$MODULES $foo"
24318   done
24319 else
24320             for foo in `cat src/modules/stable`; do
24321     MODULES="$MODULES $foo"
24322    done
24323 fi
24324
24325 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
24326
24327
24328
24329
24330
24331
24332
24333 USE_SHARED_LIBS=$enable_shared
24334
24335 USE_STATIC_LIBS=$enable_static
24336
24337
24338
24339
24340
24341 export CFLAGS LIBS
24342
24343
24344   unset ac_cv_env_LIBS_set
24345   unset ac_cv_env_LIBS_value
24346
24347   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"
24348
24349 cat >confcache <<\_ACEOF
24350 # This file is a shell script that caches the results of configure
24351 # tests run on this system so they can be shared between configure
24352 # scripts and configure runs, see configure's option --config-cache.
24353 # It is not useful on other systems.  If it contains results you don't
24354 # want to keep, you may remove or edit it.
24355 #
24356 # config.status only pays attention to the cache file if you give it
24357 # the --recheck option to rerun configure.
24358 #
24359 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24360 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24361 # following values.
24362
24363 _ACEOF
24364
24365 # The following way of writing the cache mishandles newlines in values,
24366 # but we know of no workaround that is simple, portable, and efficient.
24367 # So, we kill variables containing newlines.
24368 # Ultrix sh set writes to stderr and can't be redirected directly,
24369 # and sets the high bit in the cache file unless we assign to the vars.
24370 (
24371   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24372     eval ac_val=\$$ac_var
24373     case $ac_val in #(
24374     *${as_nl}*)
24375       case $ac_var in #(
24376       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24377 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24378       esac
24379       case $ac_var in #(
24380       _ | IFS | as_nl) ;; #(
24381       *) $as_unset $ac_var ;;
24382       esac ;;
24383     esac
24384   done
24385
24386   (set) 2>&1 |
24387     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24388     *${as_nl}ac_space=\ *)
24389       # `set' does not quote correctly, so add quotes (double-quote
24390       # substitution turns \\\\ into \\, and sed turns \\ into \).
24391       sed -n \
24392         "s/'/'\\\\''/g;
24393           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24394       ;; #(
24395     *)
24396       # `set' quotes correctly as required by POSIX, so do not add quotes.
24397       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24398       ;;
24399     esac |
24400     sort
24401 ) |
24402   sed '
24403      /^ac_cv_env_/b end
24404      t clear
24405      :clear
24406      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24407      t end
24408      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24409      :end' >>confcache
24410 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24411   if test -w "$cache_file"; then
24412     test "x$cache_file" != "x/dev/null" &&
24413       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24414 echo "$as_me: updating cache $cache_file" >&6;}
24415     cat confcache >$cache_file
24416   else
24417     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24418 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24419   fi
24420 fi
24421 rm -f confcache
24422
24423 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24424 # Let make expand exec_prefix.
24425 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24426
24427 DEFS=-DHAVE_CONFIG_H
24428
24429 ac_libobjs=
24430 ac_ltlibobjs=
24431 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24432   # 1. Remove the extension, and $U if already installed.
24433   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24434   ac_i=`echo "$ac_i" | sed "$ac_script"`
24435   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24436   #    will be set to the directory where LIBOBJS objects are built.
24437   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24438   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24439 done
24440 LIBOBJS=$ac_libobjs
24441
24442 LTLIBOBJS=$ac_ltlibobjs
24443
24444
24445
24446 : ${CONFIG_STATUS=./config.status}
24447 ac_clean_files_save=$ac_clean_files
24448 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24449 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24450 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24451 cat >$CONFIG_STATUS <<_ACEOF
24452 #! $SHELL
24453 # Generated by $as_me.
24454 # Run this file to recreate the current configuration.
24455 # Compiler output produced by configure, useful for debugging
24456 # configure, is in config.log if it exists.
24457
24458 debug=false
24459 ac_cs_recheck=false
24460 ac_cs_silent=false
24461 SHELL=\${CONFIG_SHELL-$SHELL}
24462 _ACEOF
24463
24464 cat >>$CONFIG_STATUS <<\_ACEOF
24465 ## --------------------- ##
24466 ## M4sh Initialization.  ##
24467 ## --------------------- ##
24468
24469 # Be more Bourne compatible
24470 DUALCASE=1; export DUALCASE # for MKS sh
24471 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24472   emulate sh
24473   NULLCMD=:
24474   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24475   # is contrary to our usage.  Disable this feature.
24476   alias -g '${1+"$@"}'='"$@"'
24477   setopt NO_GLOB_SUBST
24478 else
24479   case `(set -o) 2>/dev/null` in
24480   *posix*) set -o posix ;;
24481 esac
24482
24483 fi
24484
24485
24486
24487
24488 # PATH needs CR
24489 # Avoid depending upon Character Ranges.
24490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24493 as_cr_digits='0123456789'
24494 as_cr_alnum=$as_cr_Letters$as_cr_digits
24495
24496 # The user is always right.
24497 if test "${PATH_SEPARATOR+set}" != set; then
24498   echo "#! /bin/sh" >conf$$.sh
24499   echo  "exit 0"   >>conf$$.sh
24500   chmod +x conf$$.sh
24501   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24502     PATH_SEPARATOR=';'
24503   else
24504     PATH_SEPARATOR=:
24505   fi
24506   rm -f conf$$.sh
24507 fi
24508
24509 # Support unset when possible.
24510 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24511   as_unset=unset
24512 else
24513   as_unset=false
24514 fi
24515
24516
24517 # IFS
24518 # We need space, tab and new line, in precisely that order.  Quoting is
24519 # there to prevent editors from complaining about space-tab.
24520 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24521 # splitting by setting IFS to empty value.)
24522 as_nl='
24523 '
24524 IFS=" ""        $as_nl"
24525
24526 # Find who we are.  Look in the path if we contain no directory separator.
24527 case $0 in
24528   *[\\/]* ) as_myself=$0 ;;
24529   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24530 for as_dir in $PATH
24531 do
24532   IFS=$as_save_IFS
24533   test -z "$as_dir" && as_dir=.
24534   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24535 done
24536 IFS=$as_save_IFS
24537
24538      ;;
24539 esac
24540 # We did not find ourselves, most probably we were run as `sh COMMAND'
24541 # in which case we are not to be found in the path.
24542 if test "x$as_myself" = x; then
24543   as_myself=$0
24544 fi
24545 if test ! -f "$as_myself"; then
24546   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24547   { (exit 1); exit 1; }
24548 fi
24549
24550 # Work around bugs in pre-3.0 UWIN ksh.
24551 for as_var in ENV MAIL MAILPATH
24552 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24553 done
24554 PS1='$ '
24555 PS2='> '
24556 PS4='+ '
24557
24558 # NLS nuisances.
24559 for as_var in \
24560   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24561   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24562   LC_TELEPHONE LC_TIME
24563 do
24564   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24565     eval $as_var=C; export $as_var
24566   else
24567     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24568   fi
24569 done
24570
24571 # Required to use basename.
24572 if expr a : '\(a\)' >/dev/null 2>&1 &&
24573    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24574   as_expr=expr
24575 else
24576   as_expr=false
24577 fi
24578
24579 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24580   as_basename=basename
24581 else
24582   as_basename=false
24583 fi
24584
24585
24586 # Name of the executable.
24587 as_me=`$as_basename -- "$0" ||
24588 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24589          X"$0" : 'X\(//\)$' \| \
24590          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24591 echo X/"$0" |
24592     sed '/^.*\/\([^/][^/]*\)\/*$/{
24593             s//\1/
24594             q
24595           }
24596           /^X\/\(\/\/\)$/{
24597             s//\1/
24598             q
24599           }
24600           /^X\/\(\/\).*/{
24601             s//\1/
24602             q
24603           }
24604           s/.*/./; q'`
24605
24606 # CDPATH.
24607 $as_unset CDPATH
24608
24609
24610
24611   as_lineno_1=$LINENO
24612   as_lineno_2=$LINENO
24613   test "x$as_lineno_1" != "x$as_lineno_2" &&
24614   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24615
24616   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24617   # uniformly replaced by the line number.  The first 'sed' inserts a
24618   # line-number line after each line using $LINENO; the second 'sed'
24619   # does the real work.  The second script uses 'N' to pair each
24620   # line-number line with the line containing $LINENO, and appends
24621   # trailing '-' during substitution so that $LINENO is not a special
24622   # case at line end.
24623   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24624   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24625   # E. McMahon (1931-1989) for sed's syntax.  :-)
24626   sed -n '
24627     p
24628     /[$]LINENO/=
24629   ' <$as_myself |
24630     sed '
24631       s/[$]LINENO.*/&-/
24632       t lineno
24633       b
24634       :lineno
24635       N
24636       :loop
24637       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24638       t loop
24639       s/-\n.*//
24640     ' >$as_me.lineno &&
24641   chmod +x "$as_me.lineno" ||
24642     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24643    { (exit 1); exit 1; }; }
24644
24645   # Don't try to exec as it changes $[0], causing all sort of problems
24646   # (the dirname of $[0] is not the place where we might find the
24647   # original and so on.  Autoconf is especially sensitive to this).
24648   . "./$as_me.lineno"
24649   # Exit status is that of the last command.
24650   exit
24651 }
24652
24653
24654 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24655   as_dirname=dirname
24656 else
24657   as_dirname=false
24658 fi
24659
24660 ECHO_C= ECHO_N= ECHO_T=
24661 case `echo -n x` in
24662 -n*)
24663   case `echo 'x\c'` in
24664   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24665   *)   ECHO_C='\c';;
24666   esac;;
24667 *)
24668   ECHO_N='-n';;
24669 esac
24670
24671 if expr a : '\(a\)' >/dev/null 2>&1 &&
24672    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24673   as_expr=expr
24674 else
24675   as_expr=false
24676 fi
24677
24678 rm -f conf$$ conf$$.exe conf$$.file
24679 if test -d conf$$.dir; then
24680   rm -f conf$$.dir/conf$$.file
24681 else
24682   rm -f conf$$.dir
24683   mkdir conf$$.dir
24684 fi
24685 echo >conf$$.file
24686 if ln -s conf$$.file conf$$ 2>/dev/null; then
24687   as_ln_s='ln -s'
24688   # ... but there are two gotchas:
24689   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24690   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24691   # In both cases, we have to default to `cp -p'.
24692   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24693     as_ln_s='cp -p'
24694 elif ln conf$$.file conf$$ 2>/dev/null; then
24695   as_ln_s=ln
24696 else
24697   as_ln_s='cp -p'
24698 fi
24699 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24700 rmdir conf$$.dir 2>/dev/null
24701
24702 if mkdir -p . 2>/dev/null; then
24703   as_mkdir_p=:
24704 else
24705   test -d ./-p && rmdir ./-p
24706   as_mkdir_p=false
24707 fi
24708
24709 if test -x / >/dev/null 2>&1; then
24710   as_test_x='test -x'
24711 else
24712   if ls -dL / >/dev/null 2>&1; then
24713     as_ls_L_option=L
24714   else
24715     as_ls_L_option=
24716   fi
24717   as_test_x='
24718     eval sh -c '\''
24719       if test -d "$1"; then
24720         test -d "$1/.";
24721       else
24722         case $1 in
24723         -*)set "./$1";;
24724         esac;
24725         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24726         ???[sx]*):;;*)false;;esac;fi
24727     '\'' sh
24728   '
24729 fi
24730 as_executable_p=$as_test_x
24731
24732 # Sed expression to map a string onto a valid CPP name.
24733 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24734
24735 # Sed expression to map a string onto a valid variable name.
24736 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24737
24738
24739 exec 6>&1
24740
24741 # Save the log message, to keep $[0] and so on meaningful, and to
24742 # report actual input values of CONFIG_FILES etc. instead of their
24743 # values after options handling.
24744 ac_log="
24745 This file was extended by $as_me, which was
24746 generated by GNU Autoconf 2.61.  Invocation command line was
24747
24748   CONFIG_FILES    = $CONFIG_FILES
24749   CONFIG_HEADERS  = $CONFIG_HEADERS
24750   CONFIG_LINKS    = $CONFIG_LINKS
24751   CONFIG_COMMANDS = $CONFIG_COMMANDS
24752   $ $0 $@
24753
24754 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24755 "
24756
24757 _ACEOF
24758
24759 cat >>$CONFIG_STATUS <<_ACEOF
24760 # Files that config.status was made for.
24761 config_files="$ac_config_files"
24762 config_headers="$ac_config_headers"
24763
24764 _ACEOF
24765
24766 cat >>$CONFIG_STATUS <<\_ACEOF
24767 ac_cs_usage="\
24768 \`$as_me' instantiates files from templates according to the
24769 current configuration.
24770
24771 Usage: $0 [OPTIONS] [FILE]...
24772
24773   -h, --help       print this help, then exit
24774   -V, --version    print version number and configuration settings, then exit
24775   -q, --quiet      do not print progress messages
24776   -d, --debug      don't remove temporary files
24777       --recheck    update $as_me by reconfiguring in the same conditions
24778   --file=FILE[:TEMPLATE]
24779                    instantiate the configuration file FILE
24780   --header=FILE[:TEMPLATE]
24781                    instantiate the configuration header FILE
24782
24783 Configuration files:
24784 $config_files
24785
24786 Configuration headers:
24787 $config_headers
24788
24789 Report bugs to <bug-autoconf@gnu.org>."
24790
24791 _ACEOF
24792 cat >>$CONFIG_STATUS <<_ACEOF
24793 ac_cs_version="\\
24794 config.status
24795 configured by $0, generated by GNU Autoconf 2.61,
24796   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24797
24798 Copyright (C) 2006 Free Software Foundation, Inc.
24799 This config.status script is free software; the Free Software Foundation
24800 gives unlimited permission to copy, distribute and modify it."
24801
24802 ac_pwd='$ac_pwd'
24803 srcdir='$srcdir'
24804 _ACEOF
24805
24806 cat >>$CONFIG_STATUS <<\_ACEOF
24807 # If no file are specified by the user, then we need to provide default
24808 # value.  By we need to know if files were specified by the user.
24809 ac_need_defaults=:
24810 while test $# != 0
24811 do
24812   case $1 in
24813   --*=*)
24814     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24815     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24816     ac_shift=:
24817     ;;
24818   *)
24819     ac_option=$1
24820     ac_optarg=$2
24821     ac_shift=shift
24822     ;;
24823   esac
24824
24825   case $ac_option in
24826   # Handling of the options.
24827   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24828     ac_cs_recheck=: ;;
24829   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24830     echo "$ac_cs_version"; exit ;;
24831   --debug | --debu | --deb | --de | --d | -d )
24832     debug=: ;;
24833   --file | --fil | --fi | --f )
24834     $ac_shift
24835     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24836     ac_need_defaults=false;;
24837   --header | --heade | --head | --hea )
24838     $ac_shift
24839     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24840     ac_need_defaults=false;;
24841   --he | --h)
24842     # Conflict between --help and --header
24843     { echo "$as_me: error: ambiguous option: $1
24844 Try \`$0 --help' for more information." >&2
24845    { (exit 1); exit 1; }; };;
24846   --help | --hel | -h )
24847     echo "$ac_cs_usage"; exit ;;
24848   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24849   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24850     ac_cs_silent=: ;;
24851
24852   # This is an error.
24853   -*) { echo "$as_me: error: unrecognized option: $1
24854 Try \`$0 --help' for more information." >&2
24855    { (exit 1); exit 1; }; } ;;
24856
24857   *) ac_config_targets="$ac_config_targets $1"
24858      ac_need_defaults=false ;;
24859
24860   esac
24861   shift
24862 done
24863
24864 ac_configure_extra_args=
24865
24866 if $ac_cs_silent; then
24867   exec 6>/dev/null
24868   ac_configure_extra_args="$ac_configure_extra_args --silent"
24869 fi
24870
24871 _ACEOF
24872 cat >>$CONFIG_STATUS <<_ACEOF
24873 if \$ac_cs_recheck; then
24874   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24875   CONFIG_SHELL=$SHELL
24876   export CONFIG_SHELL
24877   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24878 fi
24879
24880 _ACEOF
24881 cat >>$CONFIG_STATUS <<\_ACEOF
24882 exec 5>>config.log
24883 {
24884   echo
24885   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24886 ## Running $as_me. ##
24887 _ASBOX
24888   echo "$ac_log"
24889 } >&5
24890
24891 _ACEOF
24892 cat >>$CONFIG_STATUS <<_ACEOF
24893 _ACEOF
24894
24895 cat >>$CONFIG_STATUS <<\_ACEOF
24896
24897 # Handling of arguments.
24898 for ac_config_target in $ac_config_targets
24899 do
24900   case $ac_config_target in
24901     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24902     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24903     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24904     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24905     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24906     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24907     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24908     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24909     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24910     "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24911     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24912     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24913     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24914     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24915     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24916
24917   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24918 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24919    { (exit 1); exit 1; }; };;
24920   esac
24921 done
24922
24923
24924 # If the user did not use the arguments to specify the items to instantiate,
24925 # then the envvar interface is used.  Set only those that are not.
24926 # We use the long form for the default assignment because of an extremely
24927 # bizarre bug on SunOS 4.1.3.
24928 if $ac_need_defaults; then
24929   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24930   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24931 fi
24932
24933 # Have a temporary directory for convenience.  Make it in the build tree
24934 # simply because there is no reason against having it here, and in addition,
24935 # creating and moving files from /tmp can sometimes cause problems.
24936 # Hook for its removal unless debugging.
24937 # Note that there is a small window in which the directory will not be cleaned:
24938 # after its creation but before its name has been assigned to `$tmp'.
24939 $debug ||
24940 {
24941   tmp=
24942   trap 'exit_status=$?
24943   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24944 ' 0
24945   trap '{ (exit 1); exit 1; }' 1 2 13 15
24946 }
24947 # Create a (secure) tmp directory for tmp files.
24948
24949 {
24950   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24951   test -n "$tmp" && test -d "$tmp"
24952 }  ||
24953 {
24954   tmp=./conf$$-$RANDOM
24955   (umask 077 && mkdir "$tmp")
24956 } ||
24957 {
24958    echo "$me: cannot create a temporary directory in ." >&2
24959    { (exit 1); exit 1; }
24960 }
24961
24962 #
24963 # Set up the sed scripts for CONFIG_FILES section.
24964 #
24965
24966 # No need to generate the scripts if there are no CONFIG_FILES.
24967 # This happens for instance when ./config.status config.h
24968 if test -n "$CONFIG_FILES"; then
24969
24970 _ACEOF
24971
24972
24973
24974 ac_delim='%!_!# '
24975 for ac_last_try in false false false false false :; do
24976   cat >conf$$subs.sed <<_ACEOF
24977 SHELL!$SHELL$ac_delim
24978 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24979 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24980 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24981 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24982 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24983 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24984 exec_prefix!$exec_prefix$ac_delim
24985 prefix!$prefix$ac_delim
24986 program_transform_name!$program_transform_name$ac_delim
24987 bindir!$bindir$ac_delim
24988 sbindir!$sbindir$ac_delim
24989 libexecdir!$libexecdir$ac_delim
24990 datarootdir!$datarootdir$ac_delim
24991 datadir!$datadir$ac_delim
24992 sysconfdir!$sysconfdir$ac_delim
24993 sharedstatedir!$sharedstatedir$ac_delim
24994 localstatedir!$localstatedir$ac_delim
24995 includedir!$includedir$ac_delim
24996 oldincludedir!$oldincludedir$ac_delim
24997 docdir!$docdir$ac_delim
24998 infodir!$infodir$ac_delim
24999 htmldir!$htmldir$ac_delim
25000 dvidir!$dvidir$ac_delim
25001 pdfdir!$pdfdir$ac_delim
25002 psdir!$psdir$ac_delim
25003 libdir!$libdir$ac_delim
25004 localedir!$localedir$ac_delim
25005 mandir!$mandir$ac_delim
25006 DEFS!$DEFS$ac_delim
25007 ECHO_C!$ECHO_C$ac_delim
25008 ECHO_N!$ECHO_N$ac_delim
25009 ECHO_T!$ECHO_T$ac_delim
25010 LIBS!$LIBS$ac_delim
25011 build_alias!$build_alias$ac_delim
25012 host_alias!$host_alias$ac_delim
25013 target_alias!$target_alias$ac_delim
25014 CC!$CC$ac_delim
25015 CFLAGS!$CFLAGS$ac_delim
25016 LDFLAGS!$LDFLAGS$ac_delim
25017 CPPFLAGS!$CPPFLAGS$ac_delim
25018 ac_ct_CC!$ac_ct_CC$ac_delim
25019 EXEEXT!$EXEEXT$ac_delim
25020 OBJEXT!$OBJEXT$ac_delim
25021 CPP!$CPP$ac_delim
25022 GREP!$GREP$ac_delim
25023 EGREP!$EGREP$ac_delim
25024 RANLIB!$RANLIB$ac_delim
25025 abs_top_builddir!$abs_top_builddir$ac_delim
25026 GMAKE!$GMAKE$ac_delim
25027 MAKE!$MAKE$ac_delim
25028 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
25029 LIBTOOL!$LIBTOOL$ac_delim
25030 build!$build$ac_delim
25031 build_cpu!$build_cpu$ac_delim
25032 build_vendor!$build_vendor$ac_delim
25033 build_os!$build_os$ac_delim
25034 host!$host$ac_delim
25035 host_cpu!$host_cpu$ac_delim
25036 host_vendor!$host_vendor$ac_delim
25037 host_os!$host_os$ac_delim
25038 LN_S!$LN_S$ac_delim
25039 ECHO!$ECHO$ac_delim
25040 AR!$AR$ac_delim
25041 STRIP!$STRIP$ac_delim
25042 CXX!$CXX$ac_delim
25043 CXXFLAGS!$CXXFLAGS$ac_delim
25044 ac_ct_CXX!$ac_ct_CXX$ac_delim
25045 CXXCPP!$CXXCPP$ac_delim
25046 F77!$F77$ac_delim
25047 FFLAGS!$FFLAGS$ac_delim
25048 ac_ct_F77!$ac_ct_F77$ac_delim
25049 logdir!$logdir$ac_delim
25050 radacctdir!$radacctdir$ac_delim
25051 raddbdir!$raddbdir$ac_delim
25052 PERL!$PERL$ac_delim
25053 SNMPGET!$SNMPGET$ac_delim
25054 SNMPWALK!$SNMPWALK$ac_delim
25055 RUSERS!$RUSERS$ac_delim
25056 ACLOCAL!$ACLOCAL$ac_delim
25057 AUTOCONF!$AUTOCONF$ac_delim
25058 AUTOHEADER!$AUTOHEADER$ac_delim
25059 LOCATE!$LOCATE$ac_delim
25060 DIRNAME!$DIRNAME$ac_delim
25061 REGEX!$REGEX$ac_delim
25062 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
25063 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
25064 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
25065 LIBPREFIX!$LIBPREFIX$ac_delim
25066 CRYPTLIB!$CRYPTLIB$ac_delim
25067 SNMP_LIBS!$SNMP_LIBS$ac_delim
25068 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
25069 GETCONF!$GETCONF$ac_delim
25070 LFS_CFLAGS!$LFS_CFLAGS$ac_delim
25071 LFS_LDFLAGS!$LFS_LDFLAGS$ac_delim
25072 LFS_LIBS!$LFS_LIBS$ac_delim
25073 HOSTINFO!$HOSTINFO$ac_delim
25074 _ACEOF
25075
25076   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25077     break
25078   elif $ac_last_try; then
25079     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25080 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25081    { (exit 1); exit 1; }; }
25082   else
25083     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25084   fi
25085 done
25086
25087 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25088 if test -n "$ac_eof"; then
25089   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25090   ac_eof=`expr $ac_eof + 1`
25091 fi
25092
25093 cat >>$CONFIG_STATUS <<_ACEOF
25094 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25096 _ACEOF
25097 sed '
25098 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25099 s/^/s,@/; s/!/@,|#_!!_#|/
25100 :n
25101 t n
25102 s/'"$ac_delim"'$/,g/; t
25103 s/$/\\/; p
25104 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25105 ' >>$CONFIG_STATUS <conf$$subs.sed
25106 rm -f conf$$subs.sed
25107 cat >>$CONFIG_STATUS <<_ACEOF
25108 CEOF$ac_eof
25109 _ACEOF
25110
25111
25112 ac_delim='%!_!# '
25113 for ac_last_try in false false false false false :; do
25114   cat >conf$$subs.sed <<_ACEOF
25115 LIBLTDL!$LIBLTDL$ac_delim
25116 INCLTDL!$INCLTDL$ac_delim
25117 subdirs!$subdirs$ac_delim
25118 MODULES!$MODULES$ac_delim
25119 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
25120 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
25121 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
25122 STATIC_MODULES!$STATIC_MODULES$ac_delim
25123 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
25124 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
25125 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
25126 LIBOBJS!$LIBOBJS$ac_delim
25127 LTLIBOBJS!$LTLIBOBJS$ac_delim
25128 _ACEOF
25129
25130   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
25131     break
25132   elif $ac_last_try; then
25133     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25134 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25135    { (exit 1); exit 1; }; }
25136   else
25137     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25138   fi
25139 done
25140
25141 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25142 if test -n "$ac_eof"; then
25143   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25144   ac_eof=`expr $ac_eof + 1`
25145 fi
25146
25147 cat >>$CONFIG_STATUS <<_ACEOF
25148 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25150 _ACEOF
25151 sed '
25152 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25153 s/^/s,@/; s/!/@,|#_!!_#|/
25154 :n
25155 t n
25156 s/'"$ac_delim"'$/,g/; t
25157 s/$/\\/; p
25158 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25159 ' >>$CONFIG_STATUS <conf$$subs.sed
25160 rm -f conf$$subs.sed
25161 cat >>$CONFIG_STATUS <<_ACEOF
25162 :end
25163 s/|#_!!_#|//g
25164 CEOF$ac_eof
25165 _ACEOF
25166
25167
25168 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25169 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25170 # trailing colons and then remove the whole line if VPATH becomes empty
25171 # (actually we leave an empty line to preserve line numbers).
25172 if test "x$srcdir" = x.; then
25173   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25174 s/:*\$(srcdir):*/:/
25175 s/:*\${srcdir}:*/:/
25176 s/:*@srcdir@:*/:/
25177 s/^\([^=]*=[     ]*\):*/\1/
25178 s/:*$//
25179 s/^[^=]*=[       ]*$//
25180 }'
25181 fi
25182
25183 cat >>$CONFIG_STATUS <<\_ACEOF
25184 fi # test -n "$CONFIG_FILES"
25185
25186
25187 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
25188 do
25189   case $ac_tag in
25190   :[FHLC]) ac_mode=$ac_tag; continue;;
25191   esac
25192   case $ac_mode$ac_tag in
25193   :[FHL]*:*);;
25194   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25195 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25196    { (exit 1); exit 1; }; };;
25197   :[FH]-) ac_tag=-:-;;
25198   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25199   esac
25200   ac_save_IFS=$IFS
25201   IFS=:
25202   set x $ac_tag
25203   IFS=$ac_save_IFS
25204   shift
25205   ac_file=$1
25206   shift
25207
25208   case $ac_mode in
25209   :L) ac_source=$1;;
25210   :[FH])
25211     ac_file_inputs=
25212     for ac_f
25213     do
25214       case $ac_f in
25215       -) ac_f="$tmp/stdin";;
25216       *) # Look for the file first in the build tree, then in the source tree
25217          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25218          # because $ac_f cannot contain `:'.
25219          test -f "$ac_f" ||
25220            case $ac_f in
25221            [\\/$]*) false;;
25222            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25223            esac ||
25224            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25225 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25226    { (exit 1); exit 1; }; };;
25227       esac
25228       ac_file_inputs="$ac_file_inputs $ac_f"
25229     done
25230
25231     # Let's still pretend it is `configure' which instantiates (i.e., don't
25232     # use $as_me), people would be surprised to read:
25233     #    /* config.h.  Generated by config.status.  */
25234     configure_input="Generated from "`IFS=:
25235           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25236     if test x"$ac_file" != x-; then
25237       configure_input="$ac_file.  $configure_input"
25238       { echo "$as_me:$LINENO: creating $ac_file" >&5
25239 echo "$as_me: creating $ac_file" >&6;}
25240     fi
25241
25242     case $ac_tag in
25243     *:-:* | *:-) cat >"$tmp/stdin";;
25244     esac
25245     ;;
25246   esac
25247
25248   ac_dir=`$as_dirname -- "$ac_file" ||
25249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25250          X"$ac_file" : 'X\(//\)[^/]' \| \
25251          X"$ac_file" : 'X\(//\)$' \| \
25252          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25253 echo X"$ac_file" |
25254     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25255             s//\1/
25256             q
25257           }
25258           /^X\(\/\/\)[^/].*/{
25259             s//\1/
25260             q
25261           }
25262           /^X\(\/\/\)$/{
25263             s//\1/
25264             q
25265           }
25266           /^X\(\/\).*/{
25267             s//\1/
25268             q
25269           }
25270           s/.*/./; q'`
25271   { as_dir="$ac_dir"
25272   case $as_dir in #(
25273   -*) as_dir=./$as_dir;;
25274   esac
25275   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25276     as_dirs=
25277     while :; do
25278       case $as_dir in #(
25279       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25280       *) as_qdir=$as_dir;;
25281       esac
25282       as_dirs="'$as_qdir' $as_dirs"
25283       as_dir=`$as_dirname -- "$as_dir" ||
25284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25285          X"$as_dir" : 'X\(//\)[^/]' \| \
25286          X"$as_dir" : 'X\(//\)$' \| \
25287          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25288 echo X"$as_dir" |
25289     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25290             s//\1/
25291             q
25292           }
25293           /^X\(\/\/\)[^/].*/{
25294             s//\1/
25295             q
25296           }
25297           /^X\(\/\/\)$/{
25298             s//\1/
25299             q
25300           }
25301           /^X\(\/\).*/{
25302             s//\1/
25303             q
25304           }
25305           s/.*/./; q'`
25306       test -d "$as_dir" && break
25307     done
25308     test -z "$as_dirs" || eval "mkdir $as_dirs"
25309   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25310 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25311    { (exit 1); exit 1; }; }; }
25312   ac_builddir=.
25313
25314 case "$ac_dir" in
25315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25316 *)
25317   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25318   # A ".." for each directory in $ac_dir_suffix.
25319   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25320   case $ac_top_builddir_sub in
25321   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25322   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25323   esac ;;
25324 esac
25325 ac_abs_top_builddir=$ac_pwd
25326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25327 # for backward compatibility:
25328 ac_top_builddir=$ac_top_build_prefix
25329
25330 case $srcdir in
25331   .)  # We are building in place.
25332     ac_srcdir=.
25333     ac_top_srcdir=$ac_top_builddir_sub
25334     ac_abs_top_srcdir=$ac_pwd ;;
25335   [\\/]* | ?:[\\/]* )  # Absolute name.
25336     ac_srcdir=$srcdir$ac_dir_suffix;
25337     ac_top_srcdir=$srcdir
25338     ac_abs_top_srcdir=$srcdir ;;
25339   *) # Relative name.
25340     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25341     ac_top_srcdir=$ac_top_build_prefix$srcdir
25342     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25343 esac
25344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25345
25346
25347   case $ac_mode in
25348   :F)
25349   #
25350   # CONFIG_FILE
25351   #
25352
25353 _ACEOF
25354
25355 cat >>$CONFIG_STATUS <<\_ACEOF
25356 # If the template does not know about datarootdir, expand it.
25357 # FIXME: This hack should be removed a few years after 2.60.
25358 ac_datarootdir_hack=; ac_datarootdir_seen=
25359
25360 case `sed -n '/datarootdir/ {
25361   p
25362   q
25363 }
25364 /@datadir@/p
25365 /@docdir@/p
25366 /@infodir@/p
25367 /@localedir@/p
25368 /@mandir@/p
25369 ' $ac_file_inputs` in
25370 *datarootdir*) ac_datarootdir_seen=yes;;
25371 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25372   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25373 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25374 _ACEOF
25375 cat >>$CONFIG_STATUS <<_ACEOF
25376   ac_datarootdir_hack='
25377   s&@datadir@&$datadir&g
25378   s&@docdir@&$docdir&g
25379   s&@infodir@&$infodir&g
25380   s&@localedir@&$localedir&g
25381   s&@mandir@&$mandir&g
25382     s&\\\${datarootdir}&$datarootdir&g' ;;
25383 esac
25384 _ACEOF
25385
25386 # Neutralize VPATH when `$srcdir' = `.'.
25387 # Shell code in configure.ac might set extrasub.
25388 # FIXME: do we really want to maintain this feature?
25389 cat >>$CONFIG_STATUS <<_ACEOF
25390   sed "$ac_vpsub
25391 $extrasub
25392 _ACEOF
25393 cat >>$CONFIG_STATUS <<\_ACEOF
25394 :t
25395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25396 s&@configure_input@&$configure_input&;t t
25397 s&@top_builddir@&$ac_top_builddir_sub&;t t
25398 s&@srcdir@&$ac_srcdir&;t t
25399 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25400 s&@top_srcdir@&$ac_top_srcdir&;t t
25401 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25402 s&@builddir@&$ac_builddir&;t t
25403 s&@abs_builddir@&$ac_abs_builddir&;t t
25404 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25405 $ac_datarootdir_hack
25406 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25407
25408 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25409   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25410   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25411   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25412 which seems to be undefined.  Please make sure it is defined." >&5
25413 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25414 which seems to be undefined.  Please make sure it is defined." >&2;}
25415
25416   rm -f "$tmp/stdin"
25417   case $ac_file in
25418   -) cat "$tmp/out"; rm -f "$tmp/out";;
25419   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25420   esac
25421  ;;
25422   :H)
25423   #
25424   # CONFIG_HEADER
25425   #
25426 _ACEOF
25427
25428 # Transform confdefs.h into a sed script `conftest.defines', that
25429 # substitutes the proper values into config.h.in to produce config.h.
25430 rm -f conftest.defines conftest.tail
25431 # First, append a space to every undef/define line, to ease matching.
25432 echo 's/$/ /' >conftest.defines
25433 # Then, protect against being on the right side of a sed subst, or in
25434 # an unquoted here document, in config.status.  If some macros were
25435 # called several times there might be several #defines for the same
25436 # symbol, which is useless.  But do not sort them, since the last
25437 # AC_DEFINE must be honored.
25438 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25439 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25440 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25441 # PARAMS is the parameter list in the macro definition--in most cases, it's
25442 # just an empty string.
25443 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25444 ac_dB='\\)[      (].*,\\1define\\2'
25445 ac_dC=' '
25446 ac_dD=' ,'
25447
25448 uniq confdefs.h |
25449   sed -n '
25450         t rset
25451         :rset
25452         s/^[     ]*#[    ]*define[       ][      ]*//
25453         t ok
25454         d
25455         :ok
25456         s/[\\&,]/\\&/g
25457         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25458         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25459   ' >>conftest.defines
25460
25461 # Remove the space that was appended to ease matching.
25462 # Then replace #undef with comments.  This is necessary, for
25463 # example, in the case of _POSIX_SOURCE, which is predefined and required
25464 # on some systems where configure will not decide to define it.
25465 # (The regexp can be short, since the line contains either #define or #undef.)
25466 echo 's/ $//
25467 s,^[     #]*u.*,/* & */,' >>conftest.defines
25468
25469 # Break up conftest.defines:
25470 ac_max_sed_lines=50
25471
25472 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25473 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25474 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25475 # et cetera.
25476 ac_in='$ac_file_inputs'
25477 ac_out='"$tmp/out1"'
25478 ac_nxt='"$tmp/out2"'
25479
25480 while :
25481 do
25482   # Write a here document:
25483     cat >>$CONFIG_STATUS <<_ACEOF
25484     # First, check the format of the line:
25485     cat >"\$tmp/defines.sed" <<\\CEOF
25486 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25487 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25488 b
25489 :def
25490 _ACEOF
25491   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25492   echo 'CEOF
25493     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25494   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25495   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25496   grep . conftest.tail >/dev/null || break
25497   rm -f conftest.defines
25498   mv conftest.tail conftest.defines
25499 done
25500 rm -f conftest.defines conftest.tail
25501
25502 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25503 cat >>$CONFIG_STATUS <<\_ACEOF
25504   if test x"$ac_file" != x-; then
25505     echo "/* $configure_input  */" >"$tmp/config.h"
25506     cat "$ac_result" >>"$tmp/config.h"
25507     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25508       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25509 echo "$as_me: $ac_file is unchanged" >&6;}
25510     else
25511       rm -f $ac_file
25512       mv "$tmp/config.h" $ac_file
25513     fi
25514   else
25515     echo "/* $configure_input  */"
25516     cat "$ac_result"
25517   fi
25518   rm -f "$tmp/out12"
25519  ;;
25520
25521
25522   esac
25523
25524 done # for ac_tag
25525
25526
25527 { (exit 0); exit 0; }
25528 _ACEOF
25529 chmod +x $CONFIG_STATUS
25530 ac_clean_files=$ac_clean_files_save
25531
25532
25533 # configure is writing to config.log, and then calls config.status.
25534 # config.status does its own redirection, appending to config.log.
25535 # Unfortunately, on DOS this fails, as config.log is still kept open
25536 # by configure, so config.status won't be able to write to it; its
25537 # output is simply discarded.  So we exec the FD to /dev/null,
25538 # effectively closing config.log, so it can be properly (re)opened and
25539 # appended to by config.status.  When coming back to configure, we
25540 # need to make the FD available again.
25541 if test "$no_create" != yes; then
25542   ac_cs_success=:
25543   ac_config_status_args=
25544   test "$silent" = yes &&
25545     ac_config_status_args="$ac_config_status_args --quiet"
25546   exec 5>/dev/null
25547   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25548   exec 5>>config.log
25549   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25550   # would make configure fail if this is the last instruction.
25551   $ac_cs_success || { (exit 1); exit 1; }
25552 fi
25553
25554 #
25555 # CONFIG_SUBDIRS section.
25556 #
25557 if test "$no_recursion" != yes; then
25558
25559   # Remove --cache-file and --srcdir arguments so they do not pile up.
25560   ac_sub_configure_args=
25561   ac_prev=
25562   eval "set x $ac_configure_args"
25563   shift
25564   for ac_arg
25565   do
25566     if test -n "$ac_prev"; then
25567       ac_prev=
25568       continue
25569     fi
25570     case $ac_arg in
25571     -cache-file | --cache-file | --cache-fil | --cache-fi \
25572     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25573       ac_prev=cache_file ;;
25574     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25575     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25576     | --c=*)
25577       ;;
25578     --config-cache | -C)
25579       ;;
25580     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25581       ac_prev=srcdir ;;
25582     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25583       ;;
25584     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25585       ac_prev=prefix ;;
25586     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25587       ;;
25588     *)
25589       case $ac_arg in
25590       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25591       esac
25592       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
25593     esac
25594   done
25595
25596   # Always prepend --prefix to ensure using the same prefix
25597   # in subdir configurations.
25598   ac_arg="--prefix=$prefix"
25599   case $ac_arg in
25600   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25601   esac
25602   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25603
25604   # Pass --silent
25605   if test "$silent" = yes; then
25606     ac_sub_configure_args="--silent $ac_sub_configure_args"
25607   fi
25608
25609   ac_popdir=`pwd`
25610   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25611
25612     # Do not complain, so a configure script can configure whichever
25613     # parts of a large source tree are present.
25614     test -d "$srcdir/$ac_dir" || continue
25615
25616     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25617     echo "$as_me:$LINENO: $ac_msg" >&5
25618     echo "$ac_msg" >&6
25619     { as_dir="$ac_dir"
25620   case $as_dir in #(
25621   -*) as_dir=./$as_dir;;
25622   esac
25623   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25624     as_dirs=
25625     while :; do
25626       case $as_dir in #(
25627       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25628       *) as_qdir=$as_dir;;
25629       esac
25630       as_dirs="'$as_qdir' $as_dirs"
25631       as_dir=`$as_dirname -- "$as_dir" ||
25632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25633          X"$as_dir" : 'X\(//\)[^/]' \| \
25634          X"$as_dir" : 'X\(//\)$' \| \
25635          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25636 echo X"$as_dir" |
25637     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25638             s//\1/
25639             q
25640           }
25641           /^X\(\/\/\)[^/].*/{
25642             s//\1/
25643             q
25644           }
25645           /^X\(\/\/\)$/{
25646             s//\1/
25647             q
25648           }
25649           /^X\(\/\).*/{
25650             s//\1/
25651             q
25652           }
25653           s/.*/./; q'`
25654       test -d "$as_dir" && break
25655     done
25656     test -z "$as_dirs" || eval "mkdir $as_dirs"
25657   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25658 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25659    { (exit 1); exit 1; }; }; }
25660     ac_builddir=.
25661
25662 case "$ac_dir" in
25663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25664 *)
25665   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25666   # A ".." for each directory in $ac_dir_suffix.
25667   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25668   case $ac_top_builddir_sub in
25669   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25670   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25671   esac ;;
25672 esac
25673 ac_abs_top_builddir=$ac_pwd
25674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25675 # for backward compatibility:
25676 ac_top_builddir=$ac_top_build_prefix
25677
25678 case $srcdir in
25679   .)  # We are building in place.
25680     ac_srcdir=.
25681     ac_top_srcdir=$ac_top_builddir_sub
25682     ac_abs_top_srcdir=$ac_pwd ;;
25683   [\\/]* | ?:[\\/]* )  # Absolute name.
25684     ac_srcdir=$srcdir$ac_dir_suffix;
25685     ac_top_srcdir=$srcdir
25686     ac_abs_top_srcdir=$srcdir ;;
25687   *) # Relative name.
25688     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25689     ac_top_srcdir=$ac_top_build_prefix$srcdir
25690     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25691 esac
25692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25693
25694
25695     cd "$ac_dir"
25696
25697     # Check for guested configure; otherwise get Cygnus style configure.
25698     if test -f "$ac_srcdir/configure.gnu"; then
25699       ac_sub_configure=$ac_srcdir/configure.gnu
25700     elif test -f "$ac_srcdir/configure"; then
25701       ac_sub_configure=$ac_srcdir/configure
25702     elif test -f "$ac_srcdir/configure.in"; then
25703       # This should be Cygnus configure.
25704       ac_sub_configure=$ac_aux_dir/configure
25705     else
25706       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25707 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25708       ac_sub_configure=
25709     fi
25710
25711     # The recursion is here.
25712     if test -n "$ac_sub_configure"; then
25713       # Make the cache file name correct relative to the subdirectory.
25714       case $cache_file in
25715       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25716       *) # Relative name.
25717         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
25718       esac
25719
25720       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25721 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25722       # The eval makes quoting arguments work.
25723       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25724            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25725         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25726 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25727    { (exit 1); exit 1; }; }
25728     fi
25729
25730     cd "$ac_popdir"
25731   done
25732 fi
25733
25734
25735
25736 ac_config_commands="$ac_config_commands default-1"
25737
25738 ac_config_commands="$ac_config_commands default-2"
25739
25740 ac_config_commands="$ac_config_commands default-3"
25741
25742 ac_config_commands="$ac_config_commands default-4"
25743